1 line
19 KiB
JSON
1 line
19 KiB
JSON
{"id":"N+84","dependencies":[{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/observable/range.js.map","includedInParent":true,"mtime":499162500000},{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/src/internal/observable/range.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":"../Observable","loc":{"line":2,"column":27},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/observable/range.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/Observable.js"}],"generated":{"js":"\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:!0}),exports.range=r,exports.dispatch=t;var e=require(\"../Observable\");function r(r,s,i){return void 0===r&&(r=0),void 0===s&&(s=0),new e.Observable(function(e){var n=0,o=r;if(i)return i.schedule(t,0,{index:n,count:s,start:r,subscriber:e});for(;;){if(n++>=s){e.complete();break}if(e.next(o++),e.closed)break}})}function t(e){var r=e.start,t=e.index,s=e.count,i=e.subscriber;t>=s?i.complete():(i.next(r),i.closed||(e.index=t+1,e.start=r+1,this.schedule(e)))}","map":{"mappings":[{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":83,"column":1},"generated":{"line":1,"column":0}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":83,"column":1},"generated":{"line":1,"column":13}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":83,"column":1},"generated":{"line":1,"column":20}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":83,"column":1},"generated":{"line":1,"column":35}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":83,"column":1},"generated":{"line":1,"column":43}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":83,"column":1},"generated":{"line":1,"column":56}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":83,"column":1},"generated":{"line":1,"column":57}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":83,"column":1},"generated":{"line":1,"column":64}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":83,"column":1},"generated":{"line":1,"column":68}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":83,"column":1},"generated":{"line":1,"column":76}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":83,"column":1},"generated":{"line":1,"column":82}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":83,"column":1},"generated":{"line":1,"column":84}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":83,"column":1},"generated":{"line":1,"column":92}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":83,"column":1},"generated":{"line":1,"column":101}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":36,"column":0},"generated":{"line":1,"column":103}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":36,"column":0},"generated":{"line":1,"column":107}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":36,"column":0},"generated":{"line":1,"column":109}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":36,"column":0},"generated":{"line":1,"column":117}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":36,"column":22},"generated":{"line":1,"column":134}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":36,"column":22},"generated":{"line":1,"column":143}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":36,"column":22},"generated":{"line":1,"column":145}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":36,"column":22},"generated":{"line":1,"column":147}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":36,"column":22},"generated":{"line":1,"column":149}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":45,"column":13},"generated":{"line":1,"column":152}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":37,"column":22},"generated":{"line":1,"column":164}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":37,"column":22},"generated":{"line":1,"column":168}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":39,"column":2},"generated":{"line":1,"column":172}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":39,"column":13},"generated":{"line":1,"column":174}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":41,"column":8},"generated":{"line":1,"column":182}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":41,"column":4},"generated":{"line":1,"column":186}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":43,"column":4},"generated":{"line":1,"column":190}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":43,"column":8},"generated":{"line":1,"column":192}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":45,"column":13},"generated":{"line":1,"column":195}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":45,"column":13},"generated":{"line":1,"column":199}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":45,"column":13},"generated":{"line":1,"column":201}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":45,"column":13},"generated":{"line":1,"column":212}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":45,"column":20},"generated":{"line":1,"column":221}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":46,"column":9},"generated":{"line":1,"column":224}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":46,"column":9},"generated":{"line":1,"column":228}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":46,"column":9},"generated":{"line":1,"column":230}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":47,"column":5},"generated":{"line":1,"column":232}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":47,"column":5},"generated":{"line":1,"column":234}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":47,"column":11},"generated":{"line":1,"column":236}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":47,"column":11},"generated":{"line":1,"column":239}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":48,"column":9},"generated":{"line":1,"column":241}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":48,"column":9},"generated":{"line":1,"column":248}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":48,"column":9},"generated":{"line":1,"column":250}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":48,"column":9},"generated":{"line":1,"column":259}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":48,"column":9},"generated":{"line":1,"column":261}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":48,"column":9},"generated":{"line":1,"column":263}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":49,"column":8},"generated":{"line":1,"column":264}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":49,"column":12},"generated":{"line":1,"column":270}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":49,"column":19},"generated":{"line":1,"column":272}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":49,"column":28},"generated":{"line":1,"column":278}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":49,"column":30},"generated":{"line":1,"column":280}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":49,"column":30},"generated":{"line":1,"column":286}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":49,"column":30},"generated":{"line":1,"column":288}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":49,"column":30},"generated":{"line":1,"column":299}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":83,"column":1},"generated":{"line":1,"column":303}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":83,"column":1},"generated":{"line":1,"column":310}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":54,"column":12},"generated":{"line":1,"column":311}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":54,"column":12},"generated":{"line":1,"column":314}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":54,"column":23},"generated":{"line":1,"column":319}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":54,"column":29},"generated":{"line":1,"column":321}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":55,"column":10},"generated":{"line":1,"column":322}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":55,"column":16},"generated":{"line":1,"column":324}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":56,"column":9},"generated":{"line":1,"column":335}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":60,"column":11},"generated":{"line":1,"column":341}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":58,"column":5},"generated":{"line":1,"column":344}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":58,"column":5},"generated":{"line":1,"column":346}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":58,"column":5},"generated":{"line":1,"column":351}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":60,"column":11},"generated":{"line":1,"column":356}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":60,"column":21},"generated":{"line":1,"column":358}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":61,"column":5},"generated":{"line":1,"column":365}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":71,"column":3},"generated":{"line":1,"column":374}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":71,"column":3},"generated":{"line":1,"column":383}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":71,"column":3},"generated":{"line":1,"column":385}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":73,"column":2},"generated":{"line":1,"column":388}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":73,"column":2},"generated":{"line":1,"column":392}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":73,"column":13},"generated":{"line":1,"column":394}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":73,"column":18},"generated":{"line":1,"column":396}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":73,"column":25},"generated":{"line":1,"column":402}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":73,"column":25},"generated":{"line":1,"column":404}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":73,"column":25},"generated":{"line":1,"column":406}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":73,"column":25},"generated":{"line":1,"column":412}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":73,"column":25},"generated":{"line":1,"column":414}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":73,"column":25},"generated":{"line":1,"column":416}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":73,"column":25},"generated":{"line":1,"column":422}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":73,"column":25},"generated":{"line":1,"column":424}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":73,"column":25},"generated":{"line":1,"column":426}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":75,"column":6},"generated":{"line":1,"column":437}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":75,"column":6},"generated":{"line":1,"column":440}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":76,"column":4},"generated":{"line":1,"column":442}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":76,"column":11},"generated":{"line":1,"column":444}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":80,"column":2},"generated":{"line":1,"column":456}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":80,"column":13},"generated":{"line":1,"column":458}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":80,"column":16},"generated":{"line":1,"column":463}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":82,"column":6},"generated":{"line":1,"column":466}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":82,"column":16},"generated":{"line":1,"column":468}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":83,"column":1},"generated":{"line":1,"column":477}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":83,"column":1},"generated":{"line":1,"column":479}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":83,"column":1},"generated":{"line":1,"column":485}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":83,"column":1},"generated":{"line":1,"column":487}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":83,"column":1},"generated":{"line":1,"column":489}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":83,"column":1},"generated":{"line":1,"column":491}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":83,"column":1},"generated":{"line":1,"column":497}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":83,"column":1},"generated":{"line":1,"column":499}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":83,"column":1},"generated":{"line":1,"column":501}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":83,"column":1},"generated":{"line":1,"column":506}},{"source":"../../../src/internal/observable/range.ts","name":null,"original":{"line":83,"column":1},"generated":{"line":1,"column":515}}],"sources":{"../../../src/internal/observable/range.ts":"import { SchedulerAction, SchedulerLike } from '../types';\nimport { Observable } from '../Observable';\n\n/**\n * Creates an Observable that emits a sequence of numbers within a specified\n * range.\n *\n * <span class=\"informal\">Emits a sequence of numbers in a range.</span>\n *\n * ![](range.png)\n *\n * `range` operator emits a range of sequential integers, in order, where you\n * select the `start` of the range and its `length`. By default, uses no\n * {@link SchedulerLike} and just delivers the notifications synchronously, but may use\n * an optional {@link SchedulerLike} to regulate those deliveries.\n *\n * ## Example\n * Emits the numbers 1 to 10</caption>\n * ```javascript\n * const numbers = range(1, 10);\n * numbers.subscribe(x => console.log(x));\n * ```\n * @see {@link timer}\n * @see {@link index/interval}\n *\n * @param {number} [start=0] The value of the first integer in the sequence.\n * @param {number} [count=0] The number of sequential integers to generate.\n * @param {SchedulerLike} [scheduler] A {@link SchedulerLike} to use for scheduling\n * the emissions of the notifications.\n * @return {Observable} An Observable of numbers that emits a finite range of\n * sequential integers.\n * @static true\n * @name range\n * @owner Observable\n */\nexport function range(start: number = 0,\n count: number = 0,\n scheduler?: SchedulerLike): Observable<number> {\n return new Observable<number>(subscriber => {\n let index = 0;\n let current = start;\n\n if (scheduler) {\n return scheduler.schedule(dispatch, 0, {\n index, count, start, subscriber\n });\n } else {\n do {\n if (index++ >= count) {\n subscriber.complete();\n break;\n }\n subscriber.next(current++);\n if (subscriber.closed) {\n break;\n }\n } while (true);\n }\n\n return undefined;\n });\n}\n\n/** @internal */\nexport function dispatch(this: SchedulerAction<any>, state: any) {\n const { start, index, count, subscriber } = state;\n\n if (index >= count) {\n subscriber.complete();\n return;\n }\n\n subscriber.next(start);\n\n if (subscriber.closed) {\n return;\n }\n\n state.index = index + 1;\n state.start = start + 1;\n\n this.schedule(state);\n}\n"},"lineCount":null}},"hash":"c41a8ee82a468169ed6872b5b8765682","cacheData":{"env":{}}} |