webdetector/.cache/62/3287a0b3f287346245ac022bf9d5ee.json

1 line
20 KiB
JSON
Raw Normal View History

2018-12-21 12:36:28 +00:00
{"id":"../node_modules/rxjs/_esm5/internal/observable/using.js","dependencies":[{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/observable/using.js.map","includedInParent":true,"mtime":499162500000},{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/src/internal/observable/using.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/using.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/Observable.js"},{"name":"./from","loc":{"line":3,"column":21},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/observable/using.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/observable/from.js"},{"name":"./empty","loc":{"line":4,"column":22},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/observable/using.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/observable/empty.js"}],"generated":{"js":"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.using = using;\n\nvar _Observable = require(\"../Observable\");\n\nvar _from = require(\"./from\");\n\nvar _empty = require(\"./empty\");\n\n/** PURE_IMPORTS_START _Observable,_from,_empty PURE_IMPORTS_END */\nfunction using(resourceFactory, observableFactory) {\n return new _Observable.Observable(function (subscriber) {\n var resource;\n\n try {\n resource = resourceFactory();\n } catch (err) {\n subscriber.error(err);\n return undefined;\n }\n\n var result;\n\n try {\n result = observableFactory(resource);\n } catch (err) {\n subscriber.error(err);\n return undefined;\n }\n\n var source = result ? (0, _from.from)(result) : _empty.EMPTY;\n var subscription = source.subscribe(subscriber);\n return function () {\n subscription.unsubscribe();\n\n if (resource) {\n resource.unsubscribe();\n }\n };\n });\n}","map":{"mappings":[{"source":"../../../src/internal/observable/using.ts","name":null,"original":{"line":3,"column":0},"generated":{"line":8,"column":0}},{"source":"../../../src/internal/observable/using.ts","name":null,"original":{"line":4,"column":0},"generated":{"line":10,"column":0}},{"source":"../../../src/internal/observable/using.ts","name":null,"original":{"line":34,"column":0},"generated":{"line":12,"column":0}},{"source":"../../../src/internal/observable/using.ts","name":null,"original":{"line":1,"column":0},"generated":{"line":14,"column":0}},{"source":"../../../src/internal/observable/using.ts","name":null,"original":{"line":36,"column":2},"generated":{"line":15,"column":0}},{"source":"../../../src/internal/observable/using.ts","name":null,"original":{"line":36,"column":13},"generated":{"line":15,"column":9}},{"source":"../../../src/internal/observable/using.ts","name":null,"original":{"line":36,"column":2},"generated":{"line":15,"column":14}},{"source":"../../../src/internal/observable/using.ts","name":null,"original":{"line":36,"column":13},"generated":{"line":15,"column":15}},{"source":"../../../src/internal/observable/using.ts","name":null,"original":{"line":36,"column":2},"generated":{"line":15,"column":30}},{"source":"../../../src/internal/observable/using.ts","name":null,"original":{"line":36,"column":27},"generated":{"line":15,"column":32}},{"source":"../../../src/internal/observable/using.ts","name":null,"original":{"line":36,"column":2},"generated":{"line":15,"column":49}},{"source":"../../../src/internal/observable/using.ts","name":nu