1 line
46 KiB
JSON
1 line
46 KiB
JSON
|
{"id":"../node_modules/rxjs/_esm5/internal/Notification.js","dependencies":[{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/Notification.js.map","includedInParent":true,"mtime":499162500000},{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/src/internal/Notification.ts","includedInParent":true,"mtime":499162500000},{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/package.json","includedInParent":true,"mtime":1545395695572},{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/package.json","includedInParent":true,"mtime":1545395355370},{"name":"./observable/empty","loc":{"line":2,"column":22},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/Notification.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/observable/empty.js"},{"name":"./observable/of","loc":{"line":3,"column":19},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/Notification.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/observable/of.js"},{"name":"./observable/throwError","loc":{"line":4,"column":27},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/Notification.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/observable/throwError.js"}],"generated":{"js":"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Notification = void 0;\n\nvar _empty = require(\"./observable/empty\");\n\nvar _of = require(\"./observable/of\");\n\nvar _throwError = require(\"./observable/throwError\");\n\n/** PURE_IMPORTS_START _observable_empty,_observable_of,_observable_throwError PURE_IMPORTS_END */\nvar Notification =\n/*@__PURE__*/\nfunction () {\n function Notification(kind, value, error) {\n this.kind = kind;\n this.value = value;\n this.error = error;\n this.hasValue = kind === 'N';\n }\n\n Notification.prototype.observe = function (observer) {\n switch (this.kind) {\n case 'N':\n return observer.next && observer.next(this.value);\n\n case 'E':\n return observer.error && observer.error(this.error);\n\n case 'C':\n return observer.complete && observer.complete();\n }\n };\n\n Notification.prototype.do = function (next, error, complete) {\n var kind = this.kind;\n\n switch (kind) {\n case 'N':\n return next && next(this.value);\n\n case 'E':\n return error && error(this.error);\n\n case 'C':\n return complete && complete();\n }\n };\n\n Notification.prototype.accept = function (nextOrObserver, error, complete) {\n if (nextOrObserver && typeof nextOrObserver.next === 'function') {\n return this.observe(nextOrObserver);\n } else {\n return this.do(nextOrObserver, error, complete);\n }\n };\n\n Notification.prototype.toObservable = function () {\n var kind = this.kind;\n\n switch (kind) {\n case 'N':\n return (0, _of.of)(this.value);\n\n case 'E':\n return (0, _throwError.throwError)(this.error);\n\n case 'C':\n return (0, _empty.empty)();\n }\n\n throw new Error('unexpected notification kind value');\n };\n\n Notification.createNext = function (value) {\n if (typeof value !== 'undefined') {\n return new Notification('N', value);\n }\n\n return Notification.undefinedValueNotification;\n };\n\n Notification.createError = function (err) {\n return new Notification('E', undefined, err);\n };\n\n Notification.createComplete = function () {\n return Notification.completeNotification;\n };\n\n Notification.completeNotification = new Notification('C');\n Notification.undefinedValueNotification = new Notification('N', undefined);\n return Notification;\n}();\n\nexports.Notification = Notification;","map":{"mappings":[{"source":"../../src/internal/Notification.t
|