webdetector/.cache/97/2c2300dbd1399fa7cb413ff6c8b832.json
2018-12-21 13:36:28 +01:00

1 line
20 KiB
JSON

{"id":"nqCp","dependencies":[{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/observable/fromIterable.js.map","includedInParent":true,"mtime":499162500000},{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/src/internal/observable/fromIterable.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/fromIterable.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/Observable.js"},{"name":"../Subscription","loc":{"line":3,"column":29},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/observable/fromIterable.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/Subscription.js"},{"name":"../symbol/iterator","loc":{"line":4,"column":44},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/observable/fromIterable.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/symbol/iterator.js"},{"name":"../util/subscribeToIterable","loc":{"line":5,"column":36},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/observable/fromIterable.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/util/subscribeToIterable.js"}],"generated":{"js":"\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:!0}),exports.fromIterable=u;var e=require(\"../Observable\"),r=require(\"../Subscription\"),t=require(\"../symbol/iterator\"),n=require(\"../util/subscribeToIterable\");function u(u,o){if(!u)throw new Error(\"Iterable cannot be null\");return o?new e.Observable(function(e){var n,i=new r.Subscription;return i.add(function(){n&&\"function\"==typeof n.return&&n.return()}),i.add(o.schedule(function(){n=u[t.iterator](),i.add(o.schedule(function(){if(!e.closed){var r,t;try{var u=n.next();r=u.value,t=u.done}catch(o){return void e.error(o)}t?e.complete():(e.next(r),this.schedule())}}))})),i}):new e.Observable((0,n.subscribeToIterable)(u))}","map":{"mappings":[{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":50,"column":1},"generated":{"line":1,"column":0}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":50,"column":1},"generated":{"line":1,"column":13}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":50,"column":1},"generated":{"line":1,"column":20}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":50,"column":1},"generated":{"line":1,"column":35}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":50,"column":1},"generated":{"line":1,"column":43}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":50,"column":1},"generated":{"line":1,"column":56}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":50,"column":1},"generated":{"line":1,"column":57}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":50,"column":1},"generated":{"line":1,"column":64}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":50,"column":1},"generated":{"line":1,"column":68}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":50,"column":1},"generated":{"line":1,"column":76}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":50,"column":1},"generated":{"line":1,"column":89}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":3,"column":0},"generated":{"line":1,"column":91}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":3,"column":0},"generated":{"line":1,"column":95}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":3,"column":0},"generated":{"line":1,"column":97}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":3,"column":0},"generated":{"line":1,"column":105}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":4,"column":0},"generated":{"line":1,"column":122}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":4,"column":0},"generated":{"line":1,"column":124}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":4,"column":0},"generated":{"line":1,"column":132}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":5,"column":0},"generated":{"line":1,"column":151}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":5,"column":0},"generated":{"line":1,"column":153}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":5,"column":0},"generated":{"line":1,"column":161}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":7,"column":0},"generated":{"line":1,"column":183}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":7,"column":0},"generated":{"line":1,"column":185}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":7,"column":0},"generated":{"line":1,"column":193}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":8,"column":2},"generated":{"line":1,"column":224}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":8,"column":14},"generated":{"line":1,"column":233}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":8,"column":14},"generated":{"line":1,"column":235}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":8,"column":14},"generated":{"line":1,"column":237}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":9,"column":4},"generated":{"line":1,"column":240}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":9,"column":4},"generated":{"line":1,"column":244}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":10,"column":3},"generated":{"line":1,"column":246}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":10,"column":3},"generated":{"line":1,"column":252}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":10,"column":3},"generated":{"line":1,"column":256}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":10,"column":3},"generated":{"line":1,"column":262}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":12,"column":4},"generated":{"line":1,"column":289}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":12,"column":4},"generated":{"line":1,"column":296}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":15,"column":6},"generated":{"line":1,"column":298}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":15,"column":15},"generated":{"line":1,"column":302}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":15,"column":6},"generated":{"line":1,"column":304}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":15,"column":22},"generated":{"line":1,"column":315}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":15,"column":36},"generated":{"line":1,"column":324}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":16,"column":10},"generated":{"line":1,"column":327}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":17,"column":10},"generated":{"line":1,"column":331}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":16,"column":10},"generated":{"line":1,"column":333}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":16,"column":10},"generated":{"line":1,"column":335}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":16,"column":32},"generated":{"line":1,"column":339}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":16,"column":10},"generated":{"line":1,"column":341}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":48,"column":7},"generated":{"line":1,"column":354}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":19,"column":8},"generated":{"line":1,"column":361}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":19,"column":8},"generated":{"line":1,"column":363}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":19,"column":12},"generated":{"line":1,"column":367}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":20,"column":10},"generated":{"line":1,"column":378}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":20,"column":28},"generated":{"line":1,"column":381}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":20,"column":28},"generated":{"line":1,"column":400}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":20,"column":28},"generated":{"line":1,"column":402}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":21,"column":9},"generated":{"line":1,"column":410}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":21,"column":9},"generated":{"line":1,"column":412}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":24,"column":8},"generated":{"line":1,"column":423}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":24,"column":8},"generated":{"line":1,"column":425}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":24,"column":8},"generated":{"line":1,"column":429}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":24,"column":19},"generated":{"line":1,"column":431}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":24,"column":25},"generated":{"line":1,"column":440}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":25,"column":8},"generated":{"line":1,"column":451}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":25,"column":16},"generated":{"line":1,"column":453}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":25,"column":25},"generated":{"line":1,"column":455}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":25,"column":16},"generated":{"line":1,"column":457}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":26,"column":10},"generated":{"line":1,"column":469}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":26,"column":10},"generated":{"line":1,"column":471}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":26,"column":14},"generated":{"line":1,"column":475}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":26,"column":24},"generated":{"line":1,"column":477}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":26,"column":33},"generated":{"line":1,"column":486}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":27,"column":12},"generated":{"line":1,"column":497}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":27,"column":12},"generated":{"line":1,"column":501}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":27,"column":19},"generated":{"line":1,"column":503}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":27,"column":12},"generated":{"line":1,"column":510}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":30,"column":14},"generated":{"line":1,"column":511}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":30,"column":14},"generated":{"line":1,"column":515}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":31,"column":14},"generated":{"line":1,"column":517}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":32,"column":12},"generated":{"line":1,"column":519}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":33,"column":12},"generated":{"line":1,"column":523}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":33,"column":12},"generated":{"line":1,"column":527}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":33,"column":20},"generated":{"line":1,"column":529}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":33,"column":33},"generated":{"line":1,"column":531}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":34,"column":12},"generated":{"line":1,"column":538}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":34,"column":19},"generated":{"line":1,"column":540}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":34,"column":26},"generated":{"line":1,"column":542}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":35,"column":11},"generated":{"line":1,"column":548}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":35,"column":11},"generated":{"line":1,"column":550}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":35,"column":11},"generated":{"line":1,"column":552}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":36,"column":12},"generated":{"line":1,"column":557}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":36,"column":12},"generated":{"line":1,"column":563}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":38,"column":11},"generated":{"line":1,"column":566}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":37,"column":12},"generated":{"line":1,"column":578}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":37,"column":19},"generated":{"line":1,"column":580}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":37,"column":19},"generated":{"line":1,"column":586}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":40,"column":12},"generated":{"line":1,"column":589}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":41,"column":11},"generated":{"line":1,"column":591}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":41,"column":11},"generated":{"line":1,"column":593}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":43,"column":12},"generated":{"line":1,"column":605}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":43,"column":17},"generated":{"line":1,"column":607}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":43,"column":28},"generated":{"line":1,"column":612}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":44,"column":11},"generated":{"line":1,"column":615}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":44,"column":11},"generated":{"line":1,"column":620}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":48,"column":7},"generated":{"line":1,"column":639}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":13,"column":3},"generated":{"line":1,"column":643}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":13,"column":3},"generated":{"line":1,"column":647}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":13,"column":3},"generated":{"line":1,"column":649}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":13,"column":3},"generated":{"line":1,"column":661}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":13,"column":3},"generated":{"line":1,"column":663}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":13,"column":3},"generated":{"line":1,"column":665}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":13,"column":3},"generated":{"line":1,"column":686}}],"sources":{"../../../src/internal/observable/fromIterable.ts":"import { Observable } from '../Observable';\nimport { SchedulerLike } from '../types';\nimport { Subscription } from '../Subscription';\nimport { iterator as Symbol_iterator } from '../symbol/iterator';\nimport { subscribeToIterable } from '../util/subscribeToIterable';\n\nexport function fromIterable<T>(input: Iterable<T>, scheduler: SchedulerLike) {\n if (!input) {\n throw new Error('Iterable cannot be null');\n }\n if (!scheduler) {\n return new Observable<T>(subscribeToIterable(input));\n } else {\n return new Observable<T>(subscriber => {\n const sub = new Subscription();\n let iterator: Iterator<T>;\n sub.add(() => {\n // Finalize generators\n if (iterator && typeof iterator.return === 'function') {\n iterator.return();\n }\n });\n sub.add(scheduler.schedule(() => {\n iterator = input[Symbol_iterator]();\n sub.add(scheduler.schedule(function () {\n if (subscriber.closed) {\n return;\n }\n let value: T;\n let done: boolean;\n try {\n const result = iterator.next();\n value = result.value;\n done = result.done;\n } catch (err) {\n subscriber.error(err);\n return;\n }\n if (done) {\n subscriber.complete();\n } else {\n subscriber.next(value);\n this.schedule();\n }\n }));\n }));\n return sub;\n });\n }\n}\n"},"lineCount":null}},"hash":"f36f759b10ae20c5adc713e06636fa62","cacheData":{"env":{}}}