1 line
40 KiB
JSON
1 line
40 KiB
JSON
|
{"id":"../node_modules/rxjs/_esm5/internal/operators/refCount.js","dependencies":[{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/refCount.js.map","includedInParent":true,"mtime":499162500000},{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/src/internal/operators/refCount.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/refCount.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/refCount.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.refCount = refCount;\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 refCount() {\n return function refCountOperatorFunction(source) {\n return source.lift(new RefCountOperator(source));\n };\n}\n\nvar RefCountOperator =\n/*@__PURE__*/\nfunction () {\n function RefCountOperator(connectable) {\n this.connectable = connectable;\n }\n\n RefCountOperator.prototype.call = function (subscriber, source) {\n var connectable = this.connectable;\n connectable._refCount++;\n var refCounter = new RefCountSubscriber(subscriber, connectable);\n var subscription = source.subscribe(refCounter);\n\n if (!refCounter.closed) {\n refCounter.connection = connectable.connect();\n }\n\n return subscription;\n };\n\n return RefCountOperator;\n}();\n\nvar RefCountSubscriber =\n/*@__PURE__*/\nfunction (_super) {\n tslib_1.__extends(RefCountSubscriber, _super);\n\n function RefCountSubscriber(destination, connectable) {\n var _this = _super.call(this, destination) || this;\n\n _this.connectable = connectable;\n return _this;\n }\n\n RefCountSubscriber.prototype._unsubscribe = function () {\n var connectable = this.connectable;\n\n if (!connectable) {\n this.connection = null;\n return;\n }\n\n this.connectable = null;\n var refCount = connectable._refCount;\n\n if (refCount <= 0) {\n this.connection = null;\n return;\n }\n\n connectable._refCount = refCount - 1;\n\n if (refCount > 1) {\n this.connection = null;\n return;\n }\n\n var connection = this.connection;\n var sharedConnection = connectable._connection;\n this.connection = null;\n\n if (sharedConnection && (!connection || sharedConnection === connection)) {\n sharedConnection.unsubscribe();\n }\n };\n\n return RefCountSubscriber;\n}(_Subscriber.Subscriber);","map":{"mappings":[{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":2,"column":0},"generated":{"line":8,"column":0}},{"source":"../../../src/internal/operators/refCount.ts","name":null,"original":{"line":8,"column":0},"generated":{"line":10,"column":0}},{"source":"../../..
|