webdetector/.cache/31/494cb976a333366bedb129e2e036ef.json
2018-12-21 13:36:28 +01:00

1 line
12 KiB
JSON

{"id":"Cp8V","dependencies":[{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/timeout.js.map","includedInParent":true,"mtime":499162500000},{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/src/internal/operators/timeout.ts","includedInParent":true,"mtime":499162500000},{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/package.json","includedInParent":true,"mtime":1545395749058},{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/package.json","includedInParent":true,"mtime":1545395355370},{"name":"../scheduler/async","loc":{"line":2,"column":22},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/timeout.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/scheduler/async.js"},{"name":"../util/TimeoutError","loc":{"line":3,"column":29},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/timeout.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/util/TimeoutError.js"},{"name":"./timeoutWith","loc":{"line":4,"column":28},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/timeout.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/timeoutWith.js"},{"name":"../observable/throwError","loc":{"line":5,"column":27},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/timeout.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/observable/throwError.js"}],"generated":{"js":"\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:!0}),exports.timeout=i;var r=require(\"../scheduler/async\"),e=require(\"../util/TimeoutError\"),t=require(\"./timeoutWith\"),o=require(\"../observable/throwError\");function i(i,u){return void 0===u&&(u=r.async),(0,t.timeoutWith)(i,(0,o.throwError)(new e.TimeoutError),u)}","map":{"mappings":[{"source":"../../../src/internal/operators/timeout.ts","name":null,"original":{"line":86,"column":1},"generated":{"line":1,"column":0}},{"source":"../../../src/internal/operators/timeout.ts","name":null,"original":{"line":86,"column":1},"generated":{"line":1,"column":13}},{"source":"../../../src/internal/operators/timeout.ts","name":null,"original":{"line":86,"column":1},"generated":{"line":1,"column":20}},{"source":"../../../src/internal/operators/timeout.ts","name":null,"original":{"line":86,"column":1},"generated":{"line":1,"column":35}},{"source":"../../../src/internal/operators/timeout.ts","name":null,"original":{"line":86,"column":1},"generated":{"line":1,"column":43}},{"source":"../../../src/internal/operators/timeout.ts","name":null,"original":{"line":86,"column":1},"generated":{"line":1,"column":56}},{"source":"../../../src/internal/operators/timeout.ts","name":null,"original":{"line":86,"column":1},"generated":{"line":1,"column":57}},{"source":"../../../src/internal/operators/timeout.ts","name":null,"original":{"line":86,"column":1},"generated":{"line":1,"column":64}},{"source":"../../../src/internal/operators/timeout.ts","name":null,"original":{"line":86,"column":1},"generated":{"line":1,"column":68}},{"source":"../../../src/internal/operators/timeout.ts","name":null,"original":{"line":86,"column":1},"generated":{"line":1,"column":76}},{"source":"../../../src/internal/operators/timeout.ts","name":null,"original":{"line":86,"column":1},"generated":{"line":1,"column":84}},{"source":"../../../src/internal/operators/timeout.ts","name":null,"original":{"line":6,"column":0},"generated":{"line":1,"column":86}},{"source":"../../../src/internal/operators/timeout.ts","name":null,"original":{"line":6,"column":0},"generated":{"line":1,"column":90}},{"source":"../../../src/internal/operators/timeout.ts","name":null,"original":{"line":6,"column":0},"generated":{"line":1,"column":92}},{"source":"../../../src/internal/operators/timeout.ts","name":null,"original":{"line":6,"column":0},"generated":{"line":1,"column":100}},{"source":"../../../src/internal/operators/timeout.ts","name":null,"original":{"line":8,"column":0},"generated":{"line":1,"column":122}},{"source":"../../../src/internal/operators/timeout.ts","name":null,"original":{"line":8,"column":0},"generated":{"line":1,"column":124}},{"source":"../../../src/internal/operators/timeout.ts","name":null,"original":{"line":8,"column":0},"generated":{"line":1,"column":132}},{"source":"../../../src/internal/operators/timeout.ts","name":null,"original":{"line":9,"column":0},"generated":{"line":1,"column":156}},{"source":"../../../src/internal/operators/timeout.ts","name":null,"original":{"line":9,"column":0},"generated":{"line":1,"column":158}},{"source":"../../../src/internal/operators/timeout.ts","name":null,"original":{"line":9,"column":0},"generated":{"line":1,"column":166}},{"source":"../../../src/internal/operators/timeout.ts","name":null,"original":{"line":83,"column":0},"generated":{"line":1,"column":183}},{"source":"../../../src/internal/operators/timeout.ts","name":null,"original":{"line":83,"column":0},"generated":{"line":1,"column":185}},{"source":"../../../src/internal/operators/timeout.ts","name":null,"original":{"line":83,"column":0},"generated":{"line":1,"column":193}},{"source":"../../../src/internal/operators/timeout.ts","name":null,"original":{"line":84,"column":27},"generated":{"line":1,"column":221}},{"source":"../../../src/internal/operators/timeout.ts","name":null,"original":{"line":84,"column":27},"generated":{"line":1,"column":230}},{"source":"../../../src/internal/operators/timeout.ts","name":null,"original":{"line":84,"column":27},"generated":{"line":1,"column":232}},{"source":"../../../src/internal/operators/timeout.ts","name":null,"original":{"line":84,"column":27},"generated":{"line":1,"column":234}},{"source":"../../../src/internal/operators/timeout.ts","name":null,"original":{"line":86,"column":1},"generated":{"line":1,"column":237}},{"source":"../../../src/internal/operators/timeout.ts","name":null,"original":{"line":85,"column":20},"generated":{"line":1,"column":249}},{"source":"../../../src/internal/operators/timeout.ts","name":null,"original":{"line":85,"column":2},"generated":{"line":1,"column":253}},{"source":"../../../src/internal/operators/timeout.ts","name":null,"original":{"line":86,"column":1},"generated":{"line":1,"column":257}},{"source":"../../../src/internal/operators/timeout.ts","name":null,"original":{"line":86,"column":1},"generated":{"line":1,"column":259}},{"source":"../../../src/internal/operators/timeout.ts","name":null,"original":{"line":86,"column":1},"generated":{"line":1,"column":261}},{"source":"../../../src/internal/operators/timeout.ts","name":null,"original":{"line":86,"column":1},"generated":{"line":1,"column":269}},{"source":"../../../src/internal/operators/timeout.ts","name":null,"original":{"line":86,"column":1},"generated":{"line":1,"column":271}},{"source":"../../../src/internal/operators/timeout.ts","name":null,"original":{"line":86,"column":1},"generated":{"line":1,"column":273}},{"source":"../../../src/internal/operators/timeout.ts","name":null,"original":{"line":86,"column":1},"generated":{"line":1,"column":286}},{"source":"../../../src/internal/operators/timeout.ts","name":null,"original":{"line":86,"column":1},"generated":{"line":1,"column":289}},{"source":"../../../src/internal/operators/timeout.ts","name":null,"original":{"line":86,"column":1},"generated":{"line":1,"column":291}},{"source":"../../../src/internal/operators/timeout.ts","name":null,"original":{"line":86,"column":1},"generated":{"line":1,"column":293}},{"source":"../../../src/internal/operators/timeout.ts","name":null,"original":{"line":86,"column":1},"generated":{"line":1,"column":305}},{"source":"../../../src/internal/operators/timeout.ts","name":null,"original":{"line":86,"column":1},"generated":{"line":1,"column":309}},{"source":"../../../src/internal/operators/timeout.ts","name":null,"original":{"line":86,"column":1},"generated":{"line":1,"column":311}},{"source":"../../../src/internal/operators/timeout.ts","name":null,"original":{"line":86,"column":1},"generated":{"line":1,"column":325}}],"sources":{"../../../src/internal/operators/timeout.ts":"import { async } from '../scheduler/async';\nimport { isDate } from '../util/isDate';\nimport { Operator } from '../Operator';\nimport { Subscriber } from '../Subscriber';\nimport { Observable } from '../Observable';\nimport { TimeoutError } from '../util/TimeoutError';\nimport { MonoTypeOperatorFunction, SchedulerAction, SchedulerLike, TeardownLogic } from '../types';\nimport { timeoutWith } from './timeoutWith';\nimport { throwError } from '../observable/throwError';\n\n/**\n *\n * Errors if Observable does not emit a value in given time span.\n *\n * <span class=\"informal\">Timeouts on Observable that doesn't emit values fast enough.</span>\n *\n * ![](timeout.png)\n *\n * `timeout` operator accepts as an argument either a number or a Date.\n *\n * If number was provided, it returns an Observable that behaves like a source\n * Observable, unless there is a period of time where there is no value emitted.\n * So if you provide `100` as argument and first value comes after 50ms from\n * the moment of subscription, this value will be simply re-emitted by the resulting\n * Observable. If however after that 100ms passes without a second value being emitted,\n * stream will end with an error and source Observable will be unsubscribed.\n * These checks are performed throughout whole lifecycle of Observable - from the moment\n * it was subscribed to, until it completes or errors itself. Thus every value must be\n * emitted within specified period since previous value.\n *\n * If provided argument was Date, returned Observable behaves differently. It throws\n * if Observable did not complete before provided Date. This means that periods between\n * emission of particular values do not matter in this case. If Observable did not complete\n * before provided Date, source Observable will be unsubscribed. Other than that, resulting\n * stream behaves just as source Observable.\n *\n * `timeout` accepts also a Scheduler as a second parameter. It is used to schedule moment (or moments)\n * when returned Observable will check if source stream emitted value or completed.\n *\n * ## Examples\n * Check if ticks are emitted within certain timespan\n * ```javascript\n * const seconds = interval(1000);\n *\n * seconds.pipe(timeout(1100)) // Let's use bigger timespan to be safe,\n * // since `interval` might fire a bit later then scheduled.\n * .subscribe(\n * value => console.log(value), // Will emit numbers just as regular `interval` would.\n * err => console.log(err), // Will never be called.\n * );\n *\n * seconds.pipe(timeout(900))\n * .subscribe(\n * value => console.log(value), // Will never be called.\n * err => console.log(err), // Will emit error before even first value is emitted,\n * // since it did not arrive within 900ms period.\n * );\n * ```\n *\n * Use Date to check if Observable completed\n * ```javascript\n * const seconds = interval(1000);\n *\n * seconds.pipe(\n * timeout(new Date(\"December 17, 2020 03:24:00\")),\n * )\n * .subscribe(\n * value => console.log(value), // Will emit values as regular `interval` would\n * // until December 17, 2020 at 03:24:00.\n * err => console.log(err) // On December 17, 2020 at 03:24:00 it will emit an error,\n * // since Observable did not complete by then.\n * );\n * ```\n * @see {@link timeoutWith}\n *\n * @param {number|Date} due Number specifying period within which Observable must emit values\n * or Date specifying before when Observable should complete\n * @param {SchedulerLike} [scheduler] Scheduler controlling when timeout checks occur.\n * @return {Observable<T>} Observable that mirrors behaviour of source, unless timeout checks fail.\n * @method timeout\n * @owner Observable\n */\nexport function timeout<T>(due: number | Date,\n scheduler: SchedulerLike = async): MonoTypeOperatorFunction<T> {\n return timeoutWith(due, throwError(new TimeoutError()), scheduler);\n}\n"},"lineCount":null}},"hash":"ca229189b7c7cf2dab70305f60a20d66","cacheData":{"env":{}}}