1 line
21 KiB
JSON
1 line
21 KiB
JSON
{"id":"../node_modules/rxjs/_esm5/internal/operators/dematerialize.js","dependencies":[{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/dematerialize.js.map","includedInParent":true,"mtime":499162500000},{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/src/internal/operators/dematerialize.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":"tslib","loc":{"line":2,"column":25},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/dematerialize.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/tslib/tslib.es6.js"},{"name":"../Subscriber","loc":{"line":3,"column":27},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/dematerialize.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/Subscriber.js"}],"generated":{"js":"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.dematerialize = dematerialize;\n\nvar tslib_1 = _interopRequireWildcard(require(\"tslib\"));\n\nvar _Subscriber = require(\"../Subscriber\");\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }\n\n/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */\nfunction dematerialize() {\n return function dematerializeOperatorFunction(source) {\n return source.lift(new DeMaterializeOperator());\n };\n}\n\nvar DeMaterializeOperator =\n/*@__PURE__*/\nfunction () {\n function DeMaterializeOperator() {}\n\n DeMaterializeOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new DeMaterializeSubscriber(subscriber));\n };\n\n return DeMaterializeOperator;\n}();\n\nvar DeMaterializeSubscriber =\n/*@__PURE__*/\nfunction (_super) {\n tslib_1.__extends(DeMaterializeSubscriber, _super);\n\n function DeMaterializeSubscriber(destination) {\n return _super.call(this, destination) || this;\n }\n\n DeMaterializeSubscriber.prototype._next = function (value) {\n value.observe(this.destination);\n };\n\n return DeMaterializeSubscriber;\n}(_Subscriber.Subscriber);","map":{"mappings":[{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":3,"column":0},"generated":{"line":8,"column":0}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":50,"column":0},"generated":{"line":10,"column":0}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":51,"column":2},"generated":{"line":15,"column":0}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":51,"column":9},"generated":{"line":15,"column":9}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":51,"column":2},"generated":{"line":15,"column":22}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":51,"column":18},"generated":{"line":15,"column":25}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":52,"column":4},"generated":{"line":16,"column":9}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":52,"column":11},"generated":{"line":16,"column":18}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":52,"column":4},"generated":{"line":16,"column":47}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":52,"column":27},"generated":{"line":16,"column":48}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":52,"column":4},"generated":{"line":16,"column":54}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":52,"column":52},"generated":{"line":16,"column":56}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":53,"column":4},"generated":{"line":17,"column":0}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":53,"column":4},"generated":{"line":17,"column":11}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":53,"column":4},"generated":{"line":17,"column":17}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":53,"column":4},"generated":{"line":17,"column":18}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":53,"column":4},"generated":{"line":17,"column":22}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":53,"column":4},"generated":{"line":17,"column":23}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":53,"column":4},"generated":{"line":17,"column":27}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":53,"column":4},"generated":{"line":17,"column":48}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":53,"column":4},"generated":{"line":17,"column":50}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":53,"column":4},"generated":{"line":17,"column":51}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":54,"column":1},"generated":{"line":18,"column":0}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":56,"column":0},"generated":{"line":19,"column":0}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":56,"column":0},"generated":{"line":21,"column":4}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":56,"column":0},"generated":{"line":21,"column":25}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":56,"column":0},"generated":{"line":22,"column":0}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":56,"column":0},"generated":{"line":23,"column":0}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":56,"column":0},"generated":{"line":23,"column":12}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":60,"column":0},"generated":{"line":24,"column":0}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":60,"column":1},"generated":{"line":24,"column":11}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":60,"column":0},"generated":{"line":24,"column":32}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":60,"column":1},"generated":{"line":24,"column":35}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":57,"column":2},"generated":{"line":24,"column":36}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":58,"column":18},"generated":{"line":26,"column":23}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":58,"column":18},"generated":{"line":26,"column":24}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":58,"column":32},"generated":{"line":26,"column":34}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":58,"column":32},"generated":{"line":26,"column":41}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":58,"column":32},"generated":{"line":26,"column":51}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":58,"column":32},"generated":{"line":26,"column":61}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":58,"column":56},"generated":{"line":26,"column":63}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":58,"column":32},"generated":{"line":26,"column":69}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":58,"column":69},"generated":{"line":26,"column":71}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":59,"column":3},"generated":{"line":27,"column":0}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":59,"column":3},"generated":{"line":27,"column":11}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":59,"column":3},"generated":{"line":27,"column":17}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":59,"column":3},"generated":{"line":27,"column":18}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":59,"column":3},"generated":{"line":27,"column":27}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":59,"column":3},"generated":{"line":27,"column":28}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":59,"column":3},"generated":{"line":27,"column":32}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":59,"column":3},"generated":{"line":27,"column":55}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":59,"column":3},"generated":{"line":27,"column":56}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":59,"column":3},"generated":{"line":27,"column":66}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":59,"column":3},"generated":{"line":27,"column":67}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":59,"column":3},"generated":{"line":27,"column":68}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":60,"column":0},"generated":{"line":28,"column":0}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":56,"column":0},"generated":{"line":30,"column":0}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":60,"column":1},"generated":{"line":30,"column":9}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":56,"column":0},"generated":{"line":30,"column":30}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":67,"column":0},"generated":{"line":31,"column":0}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":56,"column":0},"generated":{"line":31,"column":1}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":67,"column":67},"generated":{"line":33,"column":4}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":67,"column":67},"generated":{"line":33,"column":27}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":67,"column":67},"generated":{"line":34,"column":0}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":67,"column":67},"generated":{"line":35,"column":0}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":67,"column":80},"generated":{"line":35,"column":10}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":67,"column":67},"generated":{"line":35,"column":16}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":67,"column":80},"generated":{"line":35,"column":18}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":68,"column":2},"generated":{"line":36,"column":0}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":68,"column":2},"generated":{"line":36,"column":2}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":68,"column":2},"generated":{"line":36,"column":9}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":68,"column":2},"generated":{"line":36,"column":10}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":68,"column":2},"generated":{"line":36,"column":19}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":68,"column":2},"generated":{"line":36,"column":20}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":68,"column":2},"generated":{"line":36,"column":43}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":68,"column":14},"generated":{"line":36,"column":45}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":68,"column":2},"generated":{"line":36,"column":51}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":69,"column":10},"generated":{"line":38,"column":35}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":69,"column":22},"generated":{"line":38,"column":48}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":70,"column":3},"generated":{"line":39,"column":0}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":70,"column":3},"generated":{"line":39,"column":11}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":70,"column":3},"generated":{"line":39,"column":17}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":70,"column":3},"generated":{"line":39,"column":18}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":70,"column":3},"generated":{"line":39,"column":22}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":70,"column":3},"generated":{"line":39,"column":23}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":70,"column":3},"generated":{"line":39,"column":27}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":70,"column":3},"generated":{"line":39,"column":29}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":70,"column":3},"generated":{"line":39,"column":40}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":70,"column":3},"generated":{"line":39,"column":45}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":70,"column":3},"generated":{"line":39,"column":49}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":72,"column":12},"generated":{"line":40,"column":0}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":73,"column":23},"generated":{"line":42,"column":25}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":73,"column":23},"generated":{"line":42,"column":26}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":73,"column":34},"generated":{"line":42,"column":36}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":73,"column":36},"generated":{"line":42,"column":44}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":73,"column":36},"generated":{"line":42,"column":54}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":73,"column":36},"generated":{"line":42,"column":59}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":73,"column":36},"generated":{"line":42,"column":61}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":74,"column":3},"generated":{"line":43,"column":0}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":74,"column":3},"generated":{"line":43,"column":4}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":74,"column":3},"generated":{"line":43,"column":9}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":74,"column":3},"generated":{"line":43,"column":10}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":74,"column":3},"generated":{"line":43,"column":17}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":74,"column":3},"generated":{"line":43,"column":18}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":74,"column":3},"generated":{"line":43,"column":23}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":74,"column":3},"generated":{"line":43,"column":34}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":75,"column":0},"generated":{"line":44,"column":0}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":67,"column":67},"generated":{"line":46,"column":0}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":67,"column":67},"generated":{"line":46,"column":9}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":67,"column":67},"generated":{"line":46,"column":32}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":67,"column":67},"generated":{"line":47,"column":1}},{"source":"../../../src/internal/operators/dematerialize.ts","name":null,"original":{"line":67,"column":67},"generated":{"line":47,"column":24}}],"sources":{"../../../src/internal/operators/dematerialize.ts":"import { Operator } from '../Operator';\nimport { Observable } from '../Observable';\nimport { Subscriber } from '../Subscriber';\nimport { Notification } from '../Notification';\nimport { OperatorFunction } from '../types';\n\n/**\n * Converts an Observable of {@link Notification} objects into the emissions\n * that they represent.\n *\n * <span class=\"informal\">Unwraps {@link Notification} objects as actual `next`,\n * `error` and `complete` emissions. The opposite of {@link materialize}.</span>\n *\n * ![](dematerialize.png)\n *\n * `dematerialize` is assumed to operate an Observable that only emits\n * {@link Notification} objects as `next` emissions, and does not emit any\n * `error`. Such Observable is the output of a `materialize` operation. Those\n * notifications are then unwrapped using the metadata they contain, and emitted\n * as `next`, `error`, and `complete` on the output Observable.\n *\n * Use this operator in conjunction with {@link materialize}.\n *\n * ## Example\n * Convert an Observable of Notifications to an actual Observable\n * ```javascript\n * const notifA = new Notification('N', 'A');\n * const notifB = new Notification('N', 'B');\n * const notifE = new Notification('E', undefined,\n * new TypeError('x.toUpperCase is not a function')\n * );\n * const materialized = of(notifA, notifB, notifE);\n * const upperCase = materialized.pipe(dematerialize());\n * upperCase.subscribe(x => console.log(x), e => console.error(e));\n *\n * // Results in:\n * // A\n * // B\n * // TypeError: x.toUpperCase is not a function\n * ```\n *\n * @see {@link Notification}\n * @see {@link materialize}\n *\n * @return {Observable} An Observable that emits items and notifications\n * embedded in Notification objects emitted by the source Observable.\n * @method dematerialize\n * @owner Observable\n */\nexport function dematerialize<T>(): OperatorFunction<Notification<T>, T> {\n return function dematerializeOperatorFunction(source: Observable<Notification<T>>) {\n return source.lift(new DeMaterializeOperator());\n };\n}\n\nclass DeMaterializeOperator<T extends Notification<any>, R> implements Operator<T, R> {\n call(subscriber: Subscriber<any>, source: any): any {\n return source.subscribe(new DeMaterializeSubscriber(subscriber));\n }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass DeMaterializeSubscriber<T extends Notification<any>> extends Subscriber<T> {\n constructor(destination: Subscriber<any>) {\n super(destination);\n }\n\n protected _next(value: T) {\n value.observe(this.destination);\n }\n}\n"},"lineCount":null}},"hash":"999422e655978a4d99084a2d5dd5b72c","cacheData":{"env":{}}} |