webdetector/.cache/23/6656b4897626252840839e25da9e41.json

1 line
32 KiB
JSON
Raw Permalink Normal View History

2018-12-21 12:36:28 +00:00
{"id":"../node_modules/rxjs/_esm5/internal/operators/take.js","dependencies":[{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/take.js.map","includedInParent":true,"mtime":499162500000},{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/src/internal/operators/take.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/take.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/take.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/Subscriber.js"},{"name":"../util/ArgumentOutOfRangeError","loc":{"line":4,"column":40},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/take.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/util/ArgumentOutOfRangeError.js"},{"name":"../observable/empty","loc":{"line":5,"column":22},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/take.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/observable/empty.js"}],"generated":{"js":"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.take = take;\n\nvar tslib_1 = _interopRequireWildcard(require(\"tslib\"));\n\nvar _Subscriber = require(\"../Subscriber\");\n\nvar _ArgumentOutOfRangeError = require(\"../util/ArgumentOutOfRangeError\");\n\nvar _empty = require(\"../observable/empty\");\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,_util_ArgumentOutOfRangeError,_observable_empty PURE_IMPORTS_END */\nfunction take(count) {\n return function (source) {\n if (count === 0) {\n return (0, _empty.empty)();\n } else {\n return source.lift(new TakeOperator(count));\n }\n };\n}\n\nvar TakeOperator =\n/*@__PURE__*/\nfunction () {\n function TakeOperator(total) {\n this.total = total;\n\n if (this.total < 0) {\n throw new _ArgumentOutOfRangeError.ArgumentOutOfRangeError();\n }\n }\n\n TakeOperator.prototype.call = function (subscriber, source) {\n return source.subscribe(new TakeSubscriber(subscriber, this.total));\n };\n\n return TakeOperator;\n}();\n\nvar TakeSubscriber =\n/*@__PURE__*/\nfunction (_super) {\n tslib_1.__extends(TakeSubscriber, _super);\n\n function TakeSubscriber(destination, total) {\n var _this = _super.call(this, destination) || this;\n\n _this.total = total;\n _this.count = 0;\n return _this;\n }\n\n TakeSubscriber.prototype._next = function (value) {\n var total = this.total;\n var count = ++this.count;\n\n if (count <= total) {\n this.destination.next(value);\n\n if (count === total) {\n this.destination.complete();\n this.unsubscribe();\n }\n }\n };\n\n return TakeSubscriber;\n}(_Subscriber.Subscriber);","map":{"mappings":[{"source":"../../../src/internal/operators/take.ts","name":null,"original":{"line":2,"column