webdetector/.cache/fc/582b7c632ad32f0024feadce78529b.json

1 line
34 KiB
JSON
Raw Normal View History

2018-12-21 12:36:28 +00:00
{"id":"../node_modules/rxjs/_esm5/internal/operators/sample.js","dependencies":[{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/sample.js.map","includedInParent":true,"mtime":499162500000},{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/src/internal/operators/sample.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/sample.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/tslib/tslib.es6.js"},{"name":"../OuterSubscriber","loc":{"line":3,"column":32},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/sample.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/OuterSubscriber.js"},{"name":"../util/subscribeToResult","loc":{"line":4,"column":34},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/sample.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/util/subscribeToResult.js"}],"generated":{"js":"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.sample = sample;\n\nvar tslib_1 = _interopRequireWildcard(require(\"tslib\"));\n\nvar _OuterSubscriber = require(\"../OuterSubscriber\");\n\nvar _subscribeToResult = require(\"../util/subscribeToResult\");\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,_OuterSubscriber,_util_subscribeToResult PURE_IMPORTS_END */\nfunction sample(notifier) {\n return function (source) {\n return source.lift(new SampleOperator(notifier));\n };\n}\n\nvar SampleOperator =\n/*@__PURE__*/\nfunction () {\n function SampleOperator(notifier) {\n this.notifier = notifier;\n }\n\n SampleOperator.prototype.call = function (subscriber, source) {\n var sampleSubscriber = new SampleSubscriber(subscriber);\n var subscription = source.subscribe(sampleSubscriber);\n subscription.add((0, _subscribeToResult.subscribeToResult)(sampleSubscriber, this.notifier));\n return subscription;\n };\n\n return SampleOperator;\n}();\n\nvar SampleSubscriber =\n/*@__PURE__*/\nfunction (_super) {\n tslib_1.__extends(SampleSubscriber, _super);\n\n function SampleSubscriber() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.hasValue = false;\n return _this;\n }\n\n SampleSubscriber.prototype._next = function (value) {\n this.value = value;\n this.hasValue = true;\n };\n\n SampleSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {\n this.emitValue();\n };\n\n SampleSubscriber.prototype.notifyComplete = function () {\n this.emitValue();\n };\n\n SampleSubscriber.prototype.emitValue = function () {\n if (this.hasValue) {\n this.hasValue = false;\n this.destination.next(this.value);\n }\n };\n\n return SampleSubscriber;\n}(_OuterSubscriber.OuterSubscriber);","map":{"mappings":[{"source":"../../../src/internal/operators/sample.ts","name":null,"original":{"line":4,"column":0},"generated":{"line":8,"column":0}},{"source":"../../../src/internal/operators/sample.ts","name":null,"origin