{"id":"../node_modules/rxjs/_esm5/internal/observable/fromPromise.js","dependencies":[{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/observable/fromPromise.js.map","includedInParent":true,"mtime":499162500000},{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/src/internal/observable/fromPromise.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/fromPromise.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/fromPromise.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/Subscription.js"},{"name":"../util/subscribeToPromise","loc":{"line":4,"column":35},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/observable/fromPromise.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/util/subscribeToPromise.js"}],"generated":{"js":"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.fromPromise = fromPromise;\n\nvar _Observable = require(\"../Observable\");\n\nvar _Subscription = require(\"../Subscription\");\n\nvar _subscribeToPromise = require(\"../util/subscribeToPromise\");\n\n/** PURE_IMPORTS_START _Observable,_Subscription,_util_subscribeToPromise PURE_IMPORTS_END */\nfunction fromPromise(input, scheduler) {\n if (!scheduler) {\n return new _Observable.Observable((0, _subscribeToPromise.subscribeToPromise)(input));\n } else {\n return new _Observable.Observable(function (subscriber) {\n var sub = new _Subscription.Subscription();\n sub.add(scheduler.schedule(function () {\n return input.then(function (value) {\n sub.add(scheduler.schedule(function () {\n subscriber.next(value);\n sub.add(scheduler.schedule(function () {\n return subscriber.complete();\n }));\n }));\n }, function (err) {\n sub.add(scheduler.schedule(function () {\n return subscriber.error(err);\n }));\n });\n }));\n return sub;\n });\n }\n}","map":{"mappings":[{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":3,"column":0},"generated":{"line":8,"column":0}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":4,"column":0},"generated":{"line":10,"column":0}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":6,"column":0},"generated":{"line":12,"column":0}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":1,"column":0},"generated":{"line":14,"column":0}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":7,"column":2},"generated":{"line":15,"column":0}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":7,"column":7},"generated":{"line":15,"column":9}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":7,"column":2},"generated":{"line":15,"column":20}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":7,"column":18},"generated":{"line":15,"column":21}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":7,"column":2},"generated":{"line":15,"column":26}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":7,"column":18},"generated":{"line":15,"column":28}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":7,"column":2},"generated":{"line":15,"column":37}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":7,"column":18},"generated":{"line":15,"column":39}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":8,"column":4},"generated":{"line":16,"column":6}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":8,"column":4},"generated":{"line":16,"column":7}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":8,"column":15},"generated":{"line":16,"column":18}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":9,"column":3},"generated":{"line":17,"column":0}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":9,"column":3},"generated":{"line":17,"column":11}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":9,"column":3},"generated":{"line":17,"column":15}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":9,"column":3},"generated":{"line":17,"column":37}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":9,"column":3},"generated":{"line":17,"column":38}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":9,"column":3},"generated":{"line":17,"column":82}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":9,"column":3},"generated":{"line":17,"column":87}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":9,"column":3},"generated":{"line":17,"column":88}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":9,"column":3},"generated":{"line":17,"column":89}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":10,"column":4},"generated":{"line":18,"column":9}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":11,"column":6},"generated":{"line":19,"column":11}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":11,"column":15},"generated":{"line":19,"column":15}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":11,"column":6},"generated":{"line":19,"column":37}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":11,"column":22},"generated":{"line":19,"column":38}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":11,"column":36},"generated":{"line":19,"column":48}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":11,"column":22},"generated":{"line":19,"column":58}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":11,"column":37},"generated":{"line":19,"column":60}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":12,"column":6},"generated":{"line":20,"column":0}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":12,"column":10},"generated":{"line":20,"column":10}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":12,"column":13},"generated":{"line":20,"column":13}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":12,"column":14},"generated":{"line":20,"column":16}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":12,"column":14},"generated":{"line":20,"column":20}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":12,"column":14},"generated":{"line":20,"column":46}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":12,"column":6},"generated":{"line":20,"column":48}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":14,"column":10},"generated":{"line":21,"column":10}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":14,"column":14},"generated":{"line":21,"column":14}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":14,"column":18},"generated":{"line":21,"column":23}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":14,"column":18},"generated":{"line":21,"column":24}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":14,"column":14},"generated":{"line":21,"column":32}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":14,"column":28},"generated":{"line":21,"column":33}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":14,"column":37},"generated":{"line":21,"column":45}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":15,"column":12},"generated":{"line":22,"column":15}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":15,"column":12},"generated":{"line":22,"column":20}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":15,"column":12},"generated":{"line":22,"column":21}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":15,"column":12},"generated":{"line":22,"column":25}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":15,"column":23},"generated":{"line":22,"column":26}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":15,"column":35},"generated":{"line":22,"column":36}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":15,"column":23},"generated":{"line":22,"column":41}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":15,"column":35},"generated":{"line":22,"column":43}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":16,"column":12},"generated":{"line":23,"column":0}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":16,"column":12},"generated":{"line":23,"column":10}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":16,"column":15},"generated":{"line":23,"column":13}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":16,"column":16},"generated":{"line":23,"column":14}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":16,"column":12},"generated":{"line":23,"column":17}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":16,"column":20},"generated":{"line":23,"column":18}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":16,"column":29},"generated":{"line":23,"column":27}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":16,"column":30},"generated":{"line":23,"column":28}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":16,"column":20},"generated":{"line":23,"column":36}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":16,"column":39},"generated":{"line":23,"column":37}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":16,"column":39},"generated":{"line":23,"column":49}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":17,"column":14},"generated":{"line":24,"column":0}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":17,"column":14},"generated":{"line":24,"column":12}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":17,"column":14},"generated":{"line":24,"column":22}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":17,"column":14},"generated":{"line":24,"column":23}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":17,"column":14},"generated":{"line":24,"column":27}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":17,"column":14},"generated":{"line":24,"column":28}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":17,"column":14},"generated":{"line":24,"column":33}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":19,"column":8},"generated":{"line":25,"column":0}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":19,"column":8},"generated":{"line":25,"column":12}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":19,"column":8},"generated":{"line":25,"column":15}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":19,"column":11},"generated":{"line":25,"column":16}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":19,"column":8},"generated":{"line":25,"column":19}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":19,"column":11},"generated":{"line":25,"column":20}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":19,"column":11},"generated":{"line":25,"column":29}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":19,"column":11},"generated":{"line":25,"column":30}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":19,"column":11},"generated":{"line":25,"column":38}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":19,"column":11},"generated":{"line":25,"column":39}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":19,"column":11},"generated":{"line":25,"column":51}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":19,"column":11},"generated":{"line":26,"column":0}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":19,"column":11},"generated":{"line":26,"column":21}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":19,"column":11},"generated":{"line":26,"column":31}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":19,"column":11},"generated":{"line":26,"column":32}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":19,"column":11},"generated":{"line":26,"column":40}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":19,"column":11},"generated":{"line":26,"column":42}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":19,"column":11},"generated":{"line":27,"column":0}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":19,"column":11},"generated":{"line":27,"column":13}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":19,"column":8},"generated":{"line":27,"column":14}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":20,"column":14},"generated":{"line":28,"column":0}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":16,"column":20},"generated":{"line":28,"column":11}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":16,"column":12},"generated":{"line":28,"column":12}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":22,"column":7},"generated":{"line":29,"column":0}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":15,"column":12},"generated":{"line":29,"column":9}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":22,"column":9},"generated":{"line":29,"column":11}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":22,"column":10},"generated":{"line":29,"column":21}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":22,"column":9},"generated":{"line":29,"column":24}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":22,"column":10},"generated":{"line":29,"column":26}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":23,"column":13},"generated":{"line":30,"column":0}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":23,"column":13},"generated":{"line":30,"column":10}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":23,"column":17},"generated":{"line":30,"column":13}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":23,"column":17},"generated":{"line":30,"column":14}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":23,"column":13},"generated":{"line":30,"column":17}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":23,"column":17},"generated":{"line":30,"column":18}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":23,"column":17},"generated":{"line":30,"column":27}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":23,"column":17},"generated":{"line":30,"column":28}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":23,"column":17},"generated":{"line":30,"column":36}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":23,"column":17},"generated":{"line":30,"column":37}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":23,"column":17},"generated":{"line":30,"column":49}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":23,"column":17},"generated":{"line":31,"column":0}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":23,"column":17},"generated":{"line":31,"column":19}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":23,"column":17},"generated":{"line":31,"column":29}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":23,"column":17},"generated":{"line":31,"column":30}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":23,"column":17},"generated":{"line":31,"column":35}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":23,"column":17},"generated":{"line":31,"column":36}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":23,"column":17},"generated":{"line":31,"column":39}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":23,"column":17},"generated":{"line":31,"column":40}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":23,"column":17},"generated":{"line":32,"column":0}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":23,"column":17},"generated":{"line":32,"column":11}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":23,"column":13},"generated":{"line":32,"column":12}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":24,"column":7},"generated":{"line":33,"column":0}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":15,"column":12},"generated":{"line":33,"column":9}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":25,"column":3},"generated":{"line":34,"column":0}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":14,"column":14},"generated":{"line":34,"column":7}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":26,"column":1},"generated":{"line":35,"column":0}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":26,"column":1},"generated":{"line":35,"column":13}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":26,"column":1},"generated":{"line":35,"column":16}},{"source":"../../../src/internal/observable/fromPromise.ts","name":null,"original":{"line":11,"column":6},"generated":{"line":36,"column":5}}],"sources":{"../../../src/internal/observable/fromPromise.ts":"import { Observable } from '../Observable';\nimport { SchedulerLike } from '../types';\nimport { Subscription } from '../Subscription';\nimport { subscribeToPromise } from '../util/subscribeToPromise';\n\nexport function fromPromise(input: PromiseLike, scheduler?: SchedulerLike) {\n if (!scheduler) {\n return new Observable(subscribeToPromise(input));\n } else {\n return new Observable(subscriber => {\n const sub = new Subscription();\n sub.add(scheduler.schedule(() => input.then(\n value => {\n sub.add(scheduler.schedule(() => {\n subscriber.next(value);\n sub.add(scheduler.schedule(() => subscriber.complete()));\n }));\n },\n err => {\n sub.add(scheduler.schedule(() => subscriber.error(err)));\n }\n )));\n return sub;\n });\n }\n}\n"},"lineCount":null}},"hash":"cec4d900b155388f419b044215b8d2e2","cacheData":{"env":{}}}