1 line
29 KiB
JSON
1 line
29 KiB
JSON
{"id":"../node_modules/rxjs/_esm5/internal/observable/fromIterable.js","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":1545395695572},{"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\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.fromIterable = fromIterable;\n\nvar _Observable = require(\"../Observable\");\n\nvar _Subscription = require(\"../Subscription\");\n\nvar _iterator = require(\"../symbol/iterator\");\n\nvar _subscribeToIterable = require(\"../util/subscribeToIterable\");\n\n/** PURE_IMPORTS_START _Observable,_Subscription,_symbol_iterator,_util_subscribeToIterable PURE_IMPORTS_END */\nfunction fromIterable(input, scheduler) {\n if (!input) {\n throw new Error('Iterable cannot be null');\n }\n\n if (!scheduler) {\n return new _Observable.Observable((0, _subscribeToIterable.subscribeToIterable)(input));\n } else {\n return new _Observable.Observable(function (subscriber) {\n var sub = new _Subscription.Subscription();\n var iterator;\n sub.add(function () {\n if (iterator && typeof iterator.return === 'function') {\n iterator.return();\n }\n });\n sub.add(scheduler.schedule(function () {\n iterator = input[_iterator.iterator]();\n sub.add(scheduler.schedule(function () {\n if (subscriber.closed) {\n return;\n }\n\n var value;\n var done;\n\n try {\n var result = iterator.next();\n value = result.value;\n done = result.done;\n } catch (err) {\n subscriber.error(err);\n return;\n }\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}","map":{"mappings":[{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":3,"column":0},"generated":{"line":8,"column":0}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":4,"column":0},"generated":{"line":10,"column":0}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":5,"column":0},"generated":{"line":12,"column":0}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":7,"column":0},"generated":{"line":14,"column":0}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":1,"column":0},"generated":{"line":16,"column":0}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":8,"column":2},"generated":{"line":17,"column":0}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":8,"column":14},"generated":{"line":17,"column":9}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":8,"column":2},"generated":{"line":17,"column":21}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":8,"column":14},"generated":{"line":17,"column":22}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":8,"column":2},"generated":{"line":17,"column":27}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":8,"column":14},"generated":{"line":17,"column":29}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":8,"column":2},"generated":{"line":17,"column":38}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":8,"column":14},"generated":{"line":17,"column":40}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":9,"column":4},"generated":{"line":18,"column":6}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":9,"column":4},"generated":{"line":18,"column":7}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":9,"column":10},"generated":{"line":18,"column":14}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":10,"column":3},"generated":{"line":19,"column":0}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":10,"column":3},"generated":{"line":19,"column":10}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":10,"column":3},"generated":{"line":19,"column":14}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":10,"column":3},"generated":{"line":19,"column":19}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":10,"column":3},"generated":{"line":19,"column":20}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":10,"column":3},"generated":{"line":19,"column":45}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":10,"column":3},"generated":{"line":19,"column":46}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":11,"column":2},"generated":{"line":20,"column":0}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":12,"column":4},"generated":{"line":22,"column":6}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":12,"column":4},"generated":{"line":22,"column":7}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":12,"column":15},"generated":{"line":22,"column":18}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":13,"column":3},"generated":{"line":23,"column":0}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":13,"column":3},"generated":{"line":23,"column":11}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":13,"column":3},"generated":{"line":23,"column":15}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":13,"column":3},"generated":{"line":23,"column":37}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":13,"column":3},"generated":{"line":23,"column":38}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":13,"column":3},"generated":{"line":23,"column":84}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":13,"column":3},"generated":{"line":23,"column":89}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":13,"column":3},"generated":{"line":23,"column":90}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":13,"column":3},"generated":{"line":23,"column":91}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":14,"column":4},"generated":{"line":24,"column":9}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":15,"column":6},"generated":{"line":25,"column":11}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":15,"column":15},"generated":{"line":25,"column":15}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":15,"column":6},"generated":{"line":25,"column":37}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":15,"column":22},"generated":{"line":25,"column":38}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":15,"column":36},"generated":{"line":25,"column":48}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":15,"column":22},"generated":{"line":25,"column":58}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":15,"column":37},"generated":{"line":25,"column":60}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":16,"column":6},"generated":{"line":26,"column":0}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":16,"column":10},"generated":{"line":26,"column":10}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":16,"column":10},"generated":{"line":26,"column":13}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":16,"column":10},"generated":{"line":26,"column":16}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":16,"column":32},"generated":{"line":26,"column":20}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":16,"column":10},"generated":{"line":26,"column":46}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":16,"column":6},"generated":{"line":26,"column":48}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":17,"column":6},"generated":{"line":27,"column":0}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":17,"column":10},"generated":{"line":27,"column":10}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":17,"column":6},"generated":{"line":27,"column":18}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":19,"column":8},"generated":{"line":28,"column":10}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":19,"column":12},"generated":{"line":28,"column":14}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":19,"column":24},"generated":{"line":28,"column":26}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":20,"column":10},"generated":{"line":29,"column":12}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":20,"column":18},"generated":{"line":29,"column":20}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":20,"column":19},"generated":{"line":29,"column":24}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":20,"column":28},"generated":{"line":29,"column":31}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":20,"column":28},"generated":{"line":29,"column":39}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":20,"column":28},"generated":{"line":29,"column":40}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":20,"column":19},"generated":{"line":29,"column":46}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":20,"column":28},"generated":{"line":29,"column":51}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":20,"column":28},"generated":{"line":29,"column":63}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":21,"column":9},"generated":{"line":30,"column":0}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":21,"column":9},"generated":{"line":30,"column":10}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":21,"column":9},"generated":{"line":30,"column":18}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":21,"column":9},"generated":{"line":30,"column":19}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":21,"column":9},"generated":{"line":30,"column":25}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":22,"column":9},"generated":{"line":31,"column":0}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":23,"column":6},"generated":{"line":32,"column":0}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":24,"column":8},"generated":{"line":33,"column":10}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":24,"column":8},"generated":{"line":33,"column":14}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":24,"column":19},"generated":{"line":33,"column":23}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":24,"column":19},"generated":{"line":33,"column":24}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":24,"column":8},"generated":{"line":33,"column":32}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":24,"column":25},"generated":{"line":33,"column":33}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":24,"column":43},"generated":{"line":33,"column":45}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":25,"column":8},"generated":{"line":34,"column":0}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":25,"column":8},"generated":{"line":34,"column":8}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":25,"column":16},"generated":{"line":34,"column":16}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":25,"column":16},"generated":{"line":34,"column":19}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":25,"column":16},"generated":{"line":34,"column":24}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":25,"column":25},"generated":{"line":34,"column":25}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":25,"column":16},"generated":{"line":34,"column":43}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":25,"column":16},"generated":{"line":34,"column":44}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":25,"column":8},"generated":{"line":34,"column":46}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":26,"column":10},"generated":{"line":35,"column":12}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":26,"column":14},"generated":{"line":35,"column":16}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":26,"column":14},"generated":{"line":35,"column":25}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":26,"column":24},"generated":{"line":35,"column":26}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":26,"column":14},"generated":{"line":35,"column":34}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":26,"column":33},"generated":{"line":35,"column":35}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":26,"column":33},"generated":{"line":35,"column":47}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":27,"column":12},"generated":{"line":36,"column":14}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":27,"column":19},"generated":{"line":36,"column":24}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":27,"column":19},"generated":{"line":36,"column":25}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":27,"column":19},"generated":{"line":36,"column":33}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":28,"column":11},"generated":{"line":37,"column":0}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":29,"column":10},"generated":{"line":38,"column":0}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":30,"column":10},"generated":{"line":40,"column":0}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":30,"column":14},"generated":{"line":40,"column":14}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":30,"column":10},"generated":{"line":40,"column":19}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":31,"column":10},"generated":{"line":41,"column":0}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":31,"column":14},"generated":{"line":41,"column":14}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":31,"column":10},"generated":{"line":41,"column":18}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":32,"column":12},"generated":{"line":43,"column":14}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":33,"column":12},"generated":{"line":44,"column":0}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":33,"column":12},"generated":{"line":44,"column":16}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":33,"column":20},"generated":{"line":44,"column":22}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":33,"column":20},"generated":{"line":44,"column":25}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":33,"column":33},"generated":{"line":44,"column":33}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":33,"column":33},"generated":{"line":44,"column":34}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":33,"column":20},"generated":{"line":44,"column":38}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":33,"column":12},"generated":{"line":44,"column":40}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":34,"column":12},"generated":{"line":45,"column":0}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":34,"column":12},"generated":{"line":45,"column":12}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":34,"column":16},"generated":{"line":45,"column":17}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":34,"column":19},"generated":{"line":45,"column":20}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":34,"column":26},"generated":{"line":45,"column":26}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":34,"column":26},"generated":{"line":45,"column":27}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":34,"column":12},"generated":{"line":45,"column":32}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":35,"column":11},"generated":{"line":46,"column":0}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":35,"column":11},"generated":{"line":46,"column":12}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":35,"column":11},"generated":{"line":46,"column":16}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":35,"column":11},"generated":{"line":46,"column":19}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":35,"column":11},"generated":{"line":46,"column":25}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":35,"column":11},"generated":{"line":46,"column":26}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":35,"column":11},"generated":{"line":46,"column":30}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":35,"column":12},"generated":{"line":47,"column":0}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":36,"column":12},"generated":{"line":47,"column":19}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":36,"column":12},"generated":{"line":47,"column":24}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":37,"column":12},"generated":{"line":48,"column":0}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":37,"column":12},"generated":{"line":48,"column":12}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":37,"column":19},"generated":{"line":48,"column":22}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":37,"column":19},"generated":{"line":48,"column":23}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":37,"column":12},"generated":{"line":48,"column":28}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":37,"column":19},"generated":{"line":48,"column":29}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":37,"column":12},"generated":{"line":48,"column":32}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":38,"column":11},"generated":{"line":49,"column":0}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":39,"column":10},"generated":{"line":50,"column":0}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":40,"column":12},"generated":{"line":52,"column":14}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":40,"column":12},"generated":{"line":52,"column":20}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":41,"column":11},"generated":{"line":53,"column":0}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":41,"column":11},"generated":{"line":53,"column":12}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":41,"column":11},"generated":{"line":53,"column":22}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":41,"column":11},"generated":{"line":53,"column":23}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":41,"column":11},"generated":{"line":53,"column":31}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":42,"column":12},"generated":{"line":54,"column":17}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":43,"column":12},"generated":{"line":55,"column":0}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":43,"column":12},"generated":{"line":55,"column":12}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":43,"column":17},"generated":{"line":55,"column":22}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":43,"column":17},"generated":{"line":55,"column":23}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":43,"column":12},"generated":{"line":55,"column":27}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":43,"column":28},"generated":{"line":55,"column":28}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":43,"column":12},"generated":{"line":55,"column":33}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":44,"column":11},"generated":{"line":56,"column":0}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":44,"column":11},"generated":{"line":56,"column":17}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":44,"column":11},"generated":{"line":56,"column":25}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":45,"column":12},"generated":{"line":57,"column":0}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":46,"column":10},"generated":{"line":58,"column":0}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":26,"column":14},"generated":{"line":58,"column":9}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":47,"column":6},"generated":{"line":59,"column":0}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":24,"column":8},"generated":{"line":59,"column":7}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":48,"column":7},"generated":{"line":60,"column":0}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":48,"column":7},"generated":{"line":60,"column":13}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":48,"column":7},"generated":{"line":60,"column":16}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":49,"column":3},"generated":{"line":61,"column":0}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":15,"column":6},"generated":{"line":61,"column":5}},{"source":"../../../src/internal/observable/fromIterable.ts","name":null,"original":{"line":50,"column":1},"generated":{"line":62,"column":0}}],"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":"705017454724e41efe159fdafce2340a","cacheData":{"env":{}}} |