1 line
31 KiB
JSON
1 line
31 KiB
JSON
{"id":"../node_modules/rxjs/_esm5/internal/operators/materialize.js","dependencies":[{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/materialize.js.map","includedInParent":true,"mtime":499162500000},{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/src/internal/operators/materialize.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/materialize.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/materialize.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/Subscriber.js"},{"name":"../Notification","loc":{"line":4,"column":29},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/materialize.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/Notification.js"}],"generated":{"js":"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.materialize = materialize;\n\nvar tslib_1 = _interopRequireWildcard(require(\"tslib\"));\n\nvar _Subscriber = require(\"../Subscriber\");\n\nvar _Notification = require(\"../Notification\");\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,_Notification PURE_IMPORTS_END */\nfunction materialize() {\n return function materializeOperatorFunction(source) {\n return source.lift(new MaterializeOperator());\n };\n}\n\nvar MaterializeOperator =\n/*@__PURE__*/\nfunction () {\n function MaterializeOperator() {}\n\n MaterializeOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new MaterializeSubscriber(subscriber));\n };\n\n return MaterializeOperator;\n}();\n\nvar MaterializeSubscriber =\n/*@__PURE__*/\nfunction (_super) {\n tslib_1.__extends(MaterializeSubscriber, _super);\n\n function MaterializeSubscriber(destination) {\n return _super.call(this, destination) || this;\n }\n\n MaterializeSubscriber.prototype._next = function (value) {\n this.destination.next(_Notification.Notification.createNext(value));\n };\n\n MaterializeSubscriber.prototype._error = function (err) {\n var destination = this.destination;\n destination.next(_Notification.Notification.createError(err));\n destination.complete();\n };\n\n MaterializeSubscriber.prototype._complete = function () {\n var destination = this.destination;\n destination.next(_Notification.Notification.createComplete());\n destination.complete();\n };\n\n return MaterializeSubscriber;\n}(_Subscriber.Subscriber);","map":{"mappings":[{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":3,"column":0},"generated":{"line":8,"column":0}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":4,"column":0},"generated":{"line":10,"column":0}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":54,"column":0},"generated":{"line":12,"column":0}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":55,"column":2},"generated":{"line":17,"column":0}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":55,"column":9},"generated":{"line":17,"column":9}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":55,"column":2},"generated":{"line":17,"column":20}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":55,"column":18},"generated":{"line":17,"column":23}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":56,"column":4},"generated":{"line":18,"column":9}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":56,"column":11},"generated":{"line":18,"column":18}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":56,"column":4},"generated":{"line":18,"column":45}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":56,"column":27},"generated":{"line":18,"column":46}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":56,"column":4},"generated":{"line":18,"column":52}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":56,"column":50},"generated":{"line":18,"column":54}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":57,"column":4},"generated":{"line":19,"column":0}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":57,"column":4},"generated":{"line":19,"column":11}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":57,"column":4},"generated":{"line":19,"column":17}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":57,"column":4},"generated":{"line":19,"column":18}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":57,"column":4},"generated":{"line":19,"column":22}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":57,"column":4},"generated":{"line":19,"column":23}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":57,"column":4},"generated":{"line":19,"column":27}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":57,"column":4},"generated":{"line":19,"column":46}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":57,"column":4},"generated":{"line":19,"column":48}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":57,"column":4},"generated":{"line":19,"column":49}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":58,"column":1},"generated":{"line":20,"column":0}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":60,"column":0},"generated":{"line":21,"column":0}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":60,"column":0},"generated":{"line":23,"column":4}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":60,"column":0},"generated":{"line":23,"column":23}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":60,"column":0},"generated":{"line":24,"column":0}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":60,"column":0},"generated":{"line":25,"column":0}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":60,"column":0},"generated":{"line":25,"column":12}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":64,"column":0},"generated":{"line":26,"column":0}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":64,"column":1},"generated":{"line":26,"column":11}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":64,"column":0},"generated":{"line":26,"column":30}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":64,"column":1},"generated":{"line":26,"column":33}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":61,"column":2},"generated":{"line":26,"column":34}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":62,"column":18},"generated":{"line":28,"column":21}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":62,"column":18},"generated":{"line":28,"column":22}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":62,"column":28},"generated":{"line":28,"column":32}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":62,"column":32},"generated":{"line":28,"column":39}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":62,"column":32},"generated":{"line":28,"column":49}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":62,"column":32},"generated":{"line":28,"column":59}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":62,"column":54},"generated":{"line":28,"column":61}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":62,"column":32},"generated":{"line":28,"column":67}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":62,"column":67},"generated":{"line":28,"column":69}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":63,"column":3},"generated":{"line":29,"column":0}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":63,"column":3},"generated":{"line":29,"column":11}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":63,"column":3},"generated":{"line":29,"column":17}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":63,"column":3},"generated":{"line":29,"column":18}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":63,"column":3},"generated":{"line":29,"column":27}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":63,"column":3},"generated":{"line":29,"column":28}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":63,"column":3},"generated":{"line":29,"column":32}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":63,"column":3},"generated":{"line":29,"column":53}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":63,"column":3},"generated":{"line":29,"column":54}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":63,"column":3},"generated":{"line":29,"column":64}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":63,"column":3},"generated":{"line":29,"column":65}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":63,"column":3},"generated":{"line":29,"column":66}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":64,"column":0},"generated":{"line":30,"column":0}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":60,"column":0},"generated":{"line":32,"column":0}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":64,"column":1},"generated":{"line":32,"column":9}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":60,"column":0},"generated":{"line":32,"column":28}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":71,"column":0},"generated":{"line":33,"column":0}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":60,"column":0},"generated":{"line":33,"column":1}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":71,"column":39},"generated":{"line":35,"column":4}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":71,"column":39},"generated":{"line":35,"column":25}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":71,"column":39},"generated":{"line":36,"column":0}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":71,"column":39},"generated":{"line":37,"column":0}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":71,"column":52},"generated":{"line":37,"column":10}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":71,"column":39},"generated":{"line":37,"column":16}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":71,"column":52},"generated":{"line":37,"column":18}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":72,"column":2},"generated":{"line":38,"column":0}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":72,"column":2},"generated":{"line":38,"column":2}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":72,"column":2},"generated":{"line":38,"column":9}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":72,"column":2},"generated":{"line":38,"column":10}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":72,"column":2},"generated":{"line":38,"column":19}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":72,"column":2},"generated":{"line":38,"column":20}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":72,"column":2},"generated":{"line":38,"column":41}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":72,"column":14},"generated":{"line":38,"column":43}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":72,"column":2},"generated":{"line":38,"column":49}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":73,"column":10},"generated":{"line":40,"column":33}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":73,"column":22},"generated":{"line":40,"column":46}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":74,"column":3},"generated":{"line":41,"column":0}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":74,"column":3},"generated":{"line":41,"column":11}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":74,"column":3},"generated":{"line":41,"column":17}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":74,"column":3},"generated":{"line":41,"column":18}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":74,"column":3},"generated":{"line":41,"column":22}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":74,"column":3},"generated":{"line":41,"column":23}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":74,"column":3},"generated":{"line":41,"column":27}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":74,"column":3},"generated":{"line":41,"column":29}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":74,"column":3},"generated":{"line":41,"column":40}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":74,"column":3},"generated":{"line":41,"column":45}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":74,"column":3},"generated":{"line":41,"column":49}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":76,"column":12},"generated":{"line":42,"column":0}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":77,"column":21},"generated":{"line":44,"column":23}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":77,"column":21},"generated":{"line":44,"column":24}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":77,"column":26},"generated":{"line":44,"column":34}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":77,"column":39},"generated":{"line":44,"column":42}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":77,"column":50},"generated":{"line":44,"column":52}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":77,"column":39},"generated":{"line":44,"column":57}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":77,"column":57},"generated":{"line":44,"column":59}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":78,"column":3},"generated":{"line":45,"column":0}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":78,"column":3},"generated":{"line":45,"column":9}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":78,"column":3},"generated":{"line":45,"column":20}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":78,"column":3},"generated":{"line":45,"column":21}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":78,"column":3},"generated":{"line":45,"column":25}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":78,"column":3},"generated":{"line":45,"column":26}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":78,"column":3},"generated":{"line":45,"column":53}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":78,"column":3},"generated":{"line":45,"column":63}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":78,"column":3},"generated":{"line":45,"column":64}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":78,"column":3},"generated":{"line":45,"column":69}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":78,"column":3},"generated":{"line":45,"column":70}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":80,"column":12},"generated":{"line":46,"column":0}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":81,"column":21},"generated":{"line":48,"column":23}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":81,"column":24},"generated":{"line":48,"column":24}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":81,"column":29},"generated":{"line":48,"column":34}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":81,"column":41},"generated":{"line":48,"column":43}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":81,"column":41},"generated":{"line":48,"column":53}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":81,"column":41},"generated":{"line":48,"column":56}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":81,"column":41},"generated":{"line":48,"column":58}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":82,"column":4},"generated":{"line":49,"column":0}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":82,"column":4},"generated":{"line":49,"column":8}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":82,"column":16},"generated":{"line":49,"column":19}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":82,"column":21},"generated":{"line":49,"column":22}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":82,"column":21},"generated":{"line":49,"column":27}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":82,"column":4},"generated":{"line":49,"column":38}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":83,"column":4},"generated":{"line":50,"column":0}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":83,"column":4},"generated":{"line":50,"column":4}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":83,"column":15},"generated":{"line":50,"column":15}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":83,"column":16},"generated":{"line":50,"column":16}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":83,"column":4},"generated":{"line":50,"column":20}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":83,"column":16},"generated":{"line":50,"column":21}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":83,"column":27},"generated":{"line":50,"column":48}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":83,"column":16},"generated":{"line":50,"column":59}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":83,"column":27},"generated":{"line":50,"column":60}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":83,"column":16},"generated":{"line":50,"column":63}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":83,"column":4},"generated":{"line":50,"column":64}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":84,"column":3},"generated":{"line":51,"column":0}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":84,"column":3},"generated":{"line":51,"column":4}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":84,"column":3},"generated":{"line":51,"column":15}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":84,"column":3},"generated":{"line":51,"column":16}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":84,"column":3},"generated":{"line":51,"column":24}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":86,"column":12},"generated":{"line":52,"column":0}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":87,"column":21},"generated":{"line":54,"column":23}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":87,"column":24},"generated":{"line":54,"column":24}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":87,"column":29},"generated":{"line":54,"column":34}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":87,"column":41},"generated":{"line":54,"column":46}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":87,"column":41},"generated":{"line":54,"column":58}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":88,"column":4},"generated":{"line":55,"column":0}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":88,"column":4},"generated":{"line":55,"column":8}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":88,"column":16},"generated":{"line":55,"column":19}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":88,"column":21},"generated":{"line":55,"column":22}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":88,"column":21},"generated":{"line":55,"column":27}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":88,"column":4},"generated":{"line":55,"column":38}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":89,"column":4},"generated":{"line":56,"column":0}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":89,"column":4},"generated":{"line":56,"column":4}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":89,"column":15},"generated":{"line":56,"column":15}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":89,"column":16},"generated":{"line":56,"column":16}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":89,"column":4},"generated":{"line":56,"column":20}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":89,"column":16},"generated":{"line":56,"column":21}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":89,"column":27},"generated":{"line":56,"column":48}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":89,"column":16},"generated":{"line":56,"column":62}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":89,"column":4},"generated":{"line":56,"column":64}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":90,"column":3},"generated":{"line":57,"column":0}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":90,"column":3},"generated":{"line":57,"column":4}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":90,"column":3},"generated":{"line":57,"column":15}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":90,"column":3},"generated":{"line":57,"column":16}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":90,"column":3},"generated":{"line":57,"column":24}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":91,"column":0},"generated":{"line":58,"column":0}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":71,"column":39},"generated":{"line":60,"column":0}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":71,"column":39},"generated":{"line":60,"column":9}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":71,"column":39},"generated":{"line":60,"column":30}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":71,"column":39},"generated":{"line":61,"column":1}},{"source":"../../../src/internal/operators/materialize.ts","name":null,"original":{"line":71,"column":39},"generated":{"line":61,"column":24}}],"sources":{"../../../src/internal/operators/materialize.ts":"import { Operator } from '../Operator';\nimport { Observable } from '../Observable';\nimport { Subscriber } from '../Subscriber';\nimport { Notification } from '../Notification';\nimport { OperatorFunction } from '../types';\n\n/**\n * Represents all of the notifications from the source Observable as `next`\n * emissions marked with their original types within {@link Notification}\n * objects.\n *\n * <span class=\"informal\">Wraps `next`, `error` and `complete` emissions in\n * {@link Notification} objects, emitted as `next` on the output Observable.\n * </span>\n *\n * ![](materialize.png)\n *\n * `materialize` returns an Observable that emits a `next` notification for each\n * `next`, `error`, or `complete` emission of the source Observable. When the\n * source Observable emits `complete`, the output Observable will emit `next` as\n * a Notification of type \"complete\", and then it will emit `complete` as well.\n * When the source Observable emits `error`, the output will emit `next` as a\n * Notification of type \"error\", and then `complete`.\n *\n * This operator is useful for producing metadata of the source Observable, to\n * be consumed as `next` emissions. Use it in conjunction with\n * {@link dematerialize}.\n *\n * ## Example\n * Convert a faulty Observable to an Observable of Notifications\n * ```javascript\n * const letters = of('a', 'b', 13, 'd');\n * const upperCase = letters.pipe(map(x => x.toUpperCase()));\n * const materialized = upperCase.pipe(materialize());\n * materialized.subscribe(x => console.log(x));\n *\n * // Results in the following:\n * // - Notification {kind: \"N\", value: \"A\", error: undefined, hasValue: true}\n * // - Notification {kind: \"N\", value: \"B\", error: undefined, hasValue: true}\n * // - Notification {kind: \"E\", value: undefined, error: TypeError:\n * // x.toUpperCase is not a function at MapSubscriber.letters.map.x\n * // [as project] (http://1…, hasValue: false}\n * ```\n *\n * @see {@link Notification}\n * @see {@link dematerialize}\n *\n * @return {Observable<Notification<T>>} An Observable that emits\n * {@link Notification} objects that wrap the original emissions from the source\n * Observable with metadata.\n * @method materialize\n * @owner Observable\n */\nexport function materialize<T>(): OperatorFunction<T, Notification<T>> {\n return function materializeOperatorFunction(source: Observable<T>) {\n return source.lift(new MaterializeOperator());\n };\n}\n\nclass MaterializeOperator<T> implements Operator<T, Notification<T>> {\n call(subscriber: Subscriber<Notification<T>>, source: any): any {\n return source.subscribe(new MaterializeSubscriber(subscriber));\n }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass MaterializeSubscriber<T> extends Subscriber<T> {\n constructor(destination: Subscriber<Notification<T>>) {\n super(destination);\n }\n\n protected _next(value: T) {\n this.destination.next(Notification.createNext(value));\n }\n\n protected _error(err: any) {\n const destination = this.destination;\n destination.next(Notification.createError(err));\n destination.complete();\n }\n\n protected _complete() {\n const destination = this.destination;\n destination.next(Notification.createComplete());\n destination.complete();\n }\n}\n"},"lineCount":null}},"hash":"fc67cc7f3f085c1f6e4103e7162531e7","cacheData":{"env":{}}} |