1 line
81 KiB
JSON
1 line
81 KiB
JSON
|
{"id":"../node_modules/rxjs/_esm5/internal/scheduler/VirtualTimeScheduler.js","dependencies":[{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/scheduler/VirtualTimeScheduler.js.map","includedInParent":true,"mtime":499162500000},{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/src/internal/scheduler/VirtualTimeScheduler.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/scheduler/VirtualTimeScheduler.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/tslib/tslib.es6.js"},{"name":"./AsyncAction","loc":{"line":3,"column":28},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/scheduler/VirtualTimeScheduler.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/scheduler/AsyncAction.js"},{"name":"./AsyncScheduler","loc":{"line":4,"column":31},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/scheduler/VirtualTimeScheduler.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/scheduler/AsyncScheduler.js"}],"generated":{"js":"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.VirtualAction = exports.VirtualTimeScheduler = void 0;\n\nvar tslib_1 = _interopRequireWildcard(require(\"tslib\"));\n\nvar _AsyncAction = require(\"./AsyncAction\");\n\nvar _AsyncScheduler = require(\"./AsyncScheduler\");\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,_AsyncAction,_AsyncScheduler PURE_IMPORTS_END */\nvar VirtualTimeScheduler =\n/*@__PURE__*/\nfunction (_super) {\n tslib_1.__extends(VirtualTimeScheduler, _super);\n\n function VirtualTimeScheduler(SchedulerAction, maxFrames) {\n if (SchedulerAction === void 0) {\n SchedulerAction = VirtualAction;\n }\n\n if (maxFrames === void 0) {\n maxFrames = Number.POSITIVE_INFINITY;\n }\n\n var _this = _super.call(this, SchedulerAction, function () {\n return _this.frame;\n }) || this;\n\n _this.maxFrames = maxFrames;\n _this.frame = 0;\n _this.index = -1;\n return _this;\n }\n\n VirtualTimeScheduler.prototype.flush = function () {\n var _a = this,\n actions = _a.actions,\n maxFrames = _a.maxFrames;\n\n var error, action;\n\n while ((action = actions.shift()) && (this.frame = action.delay) <= maxFrames) {\n if (error = action.execute(action.state, action.delay)) {\n break;\n }\n }\n\n if (error) {\n while (action = actions.shift()) {\n action.unsubscribe();\n }\n\n throw error;\n }\n };\n\n VirtualTimeScheduler.frameTimeFactor = 10;\n return VirtualTimeScheduler;\n}(_AsyncScheduler.AsyncScheduler);\n\nexports.VirtualTimeScheduler = VirtualTimeScheduler;\n\nvar VirtualAction =\n/*@__PURE__*/\nfunction (_super) {\n tslib_1.__extends(VirtualAction, _super);\n\n function VirtualAction(scheduler, work, index) {\n if (index === void 0) {\n index = scheduler.index += 1;\n }\n\n var _this = _super.call(this, scheduler, work) || this;\n\n _this.scheduler = scheduler;\n _this.work = work;\n _this.index = index;\n
|