1 line
22 KiB
JSON
1 line
22 KiB
JSON
|
{"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/o
|