1 line
23 KiB
JSON
1 line
23 KiB
JSON
{"id":"9vq9","dependencies":[{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/util/subscribeTo.js.map","includedInParent":true,"mtime":499162500000},{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/src/internal/util/subscribeTo.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/util/subscribeTo.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/Observable.js"},{"name":"./subscribeToArray","loc":{"line":3,"column":33},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/util/subscribeTo.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/util/subscribeToArray.js"},{"name":"./subscribeToPromise","loc":{"line":4,"column":35},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/util/subscribeTo.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/util/subscribeToPromise.js"},{"name":"./subscribeToIterable","loc":{"line":5,"column":36},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/util/subscribeTo.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/util/subscribeToIterable.js"},{"name":"./subscribeToObservable","loc":{"line":6,"column":38},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/util/subscribeTo.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/util/subscribeToObservable.js"},{"name":"./isArrayLike","loc":{"line":7,"column":28},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/util/subscribeTo.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/util/isArrayLike.js"},{"name":"./isPromise","loc":{"line":8,"column":26},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/util/subscribeTo.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/util/isPromise.js"},{"name":"./isObject","loc":{"line":9,"column":25},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/util/subscribeTo.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/util/isObject.js"},{"name":"../symbol/iterator","loc":{"line":10,"column":44},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/util/subscribeTo.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/symbol/iterator.js"},{"name":"../symbol/observable","loc":{"line":11,"column":48},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/util/subscribeTo.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/symbol/observable.js"}],"generated":{"js":"\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:!0}),exports.subscribeTo=void 0;var e=require(\"../Observable\"),r=require(\"./subscribeToArray\"),i=require(\"./subscribeToPromise\"),s=require(\"./subscribeToIterable\"),b=require(\"./subscribeToObservable\"),o=require(\"./isArrayLike\"),u=require(\"./isPromise\"),t=require(\"./isObject\"),a=require(\"../symbol/iterator\"),c=require(\"../symbol/observable\"),n=function(n){if(n instanceof e.Observable)return function(e){return n._isScalar?(e.next(n.value),void e.complete()):n.subscribe(e)};if(n&&\"function\"==typeof n[c.observable])return(0,b.subscribeToObservable)(n);if((0,o.isArrayLike)(n))return(0,r.subscribeToArray)(n);if((0,u.isPromise)(n))return(0,i.subscribeToPromise)(n);if(n&&\"function\"==typeof n[a.iterator])return(0,s.subscribeToIterable)(n);var l=(0,t.isObject)(n)?\"an invalid object\":\"'\"+n+\"'\";throw new TypeError(\"You provided \"+l+\" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.\")};exports.subscribeTo=n;","map":{"mappings":[{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":15,"column":2},"generated":{"line":1,"column":0}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":15,"column":2},"generated":{"line":1,"column":13}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":15,"column":2},"generated":{"line":1,"column":20}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":15,"column":2},"generated":{"line":1,"column":35}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":15,"column":2},"generated":{"line":1,"column":43}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":15,"column":2},"generated":{"line":1,"column":56}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":15,"column":2},"generated":{"line":1,"column":57}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":15,"column":2},"generated":{"line":1,"column":64}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":15,"column":2},"generated":{"line":1,"column":68}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":15,"column":2},"generated":{"line":1,"column":76}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":15,"column":2},"generated":{"line":1,"column":93}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":3,"column":0},"generated":{"line":1,"column":95}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":3,"column":0},"generated":{"line":1,"column":99}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":3,"column":0},"generated":{"line":1,"column":101}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":3,"column":0},"generated":{"line":1,"column":109}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":4,"column":0},"generated":{"line":1,"column":126}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":4,"column":0},"generated":{"line":1,"column":128}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":4,"column":0},"generated":{"line":1,"column":136}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":5,"column":0},"generated":{"line":1,"column":158}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":5,"column":0},"generated":{"line":1,"column":160}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":5,"column":0},"generated":{"line":1,"column":168}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":6,"column":0},"generated":{"line":1,"column":192}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":6,"column":0},"generated":{"line":1,"column":194}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":6,"column":0},"generated":{"line":1,"column":202}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":7,"column":0},"generated":{"line":1,"column":227}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":7,"column":0},"generated":{"line":1,"column":229}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":7,"column":0},"generated":{"line":1,"column":237}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":8,"column":0},"generated":{"line":1,"column":264}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":8,"column":0},"generated":{"line":1,"column":266}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":8,"column":0},"generated":{"line":1,"column":274}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":9,"column":0},"generated":{"line":1,"column":291}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":9,"column":0},"generated":{"line":1,"column":293}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":9,"column":0},"generated":{"line":1,"column":301}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":10,"column":0},"generated":{"line":1,"column":316}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":10,"column":0},"generated":{"line":1,"column":318}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":10,"column":0},"generated":{"line":1,"column":326}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":11,"column":0},"generated":{"line":1,"column":340}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":11,"column":0},"generated":{"line":1,"column":342}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":11,"column":0},"generated":{"line":1,"column":350}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":14,"column":0},"generated":{"line":1,"column":372}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":14,"column":0},"generated":{"line":1,"column":374}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":14,"column":0},"generated":{"line":1,"column":382}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":15,"column":6},"generated":{"line":1,"column":406}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":15,"column":12},"generated":{"line":1,"column":408}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":15,"column":24},"generated":{"line":1,"column":417}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":16,"column":4},"generated":{"line":1,"column":420}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":16,"column":4},"generated":{"line":1,"column":423}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":16,"column":12},"generated":{"line":1,"column":436}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":16,"column":37},"generated":{"line":1,"column":438}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":17,"column":8},"generated":{"line":1,"column":449}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":17,"column":8},"generated":{"line":1,"column":456}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":17,"column":19},"generated":{"line":1,"column":465}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":18,"column":8},"generated":{"line":1,"column":468}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":18,"column":8},"generated":{"line":1,"column":475}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":18,"column":8},"generated":{"line":1,"column":477}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":19,"column":8},"generated":{"line":1,"column":488}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":19,"column":19},"generated":{"line":1,"column":490}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":19,"column":19},"generated":{"line":1,"column":495}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":19,"column":30},"generated":{"line":1,"column":497}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":20,"column":8},"generated":{"line":1,"column":509}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":20,"column":15},"generated":{"line":1,"column":511}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":23,"column":7},"generated":{"line":1,"column":523}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":23,"column":7},"generated":{"line":1,"column":525}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":23,"column":7},"generated":{"line":1,"column":535}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":26,"column":4},"generated":{"line":1,"column":539}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":26,"column":4},"generated":{"line":1,"column":542}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":26,"column":48},"generated":{"line":1,"column":545}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":26,"column":11},"generated":{"line":1,"column":564}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":26,"column":33},"generated":{"line":1,"column":566}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":26,"column":32},"generated":{"line":1,"column":568}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":27,"column":3},"generated":{"line":1,"column":580}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":27,"column":3},"generated":{"line":1,"column":587}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":27,"column":3},"generated":{"line":1,"column":589}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":27,"column":3},"generated":{"line":1,"column":591}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":27,"column":3},"generated":{"line":1,"column":614}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":28,"column":4},"generated":{"line":1,"column":617}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":28,"column":4},"generated":{"line":1,"column":621}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":28,"column":11},"generated":{"line":1,"column":623}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":28,"column":11},"generated":{"line":1,"column":625}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":28,"column":11},"generated":{"line":1,"column":638}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":29,"column":3},"generated":{"line":1,"column":641}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":29,"column":3},"generated":{"line":1,"column":648}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":29,"column":3},"generated":{"line":1,"column":650}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":29,"column":3},"generated":{"line":1,"column":652}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":29,"column":3},"generated":{"line":1,"column":670}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":30,"column":4},"generated":{"line":1,"column":673}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":30,"column":4},"generated":{"line":1,"column":677}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":30,"column":11},"generated":{"line":1,"column":679}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":30,"column":11},"generated":{"line":1,"column":681}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":30,"column":11},"generated":{"line":1,"column":692}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":31,"column":3},"generated":{"line":1,"column":695}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":31,"column":3},"generated":{"line":1,"column":702}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":31,"column":3},"generated":{"line":1,"column":704}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":31,"column":3},"generated":{"line":1,"column":706}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":31,"column":3},"generated":{"line":1,"column":726}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":32,"column":4},"generated":{"line":1,"column":729}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":32,"column":4},"generated":{"line":1,"column":732}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":32,"column":46},"generated":{"line":1,"column":735}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":32,"column":11},"generated":{"line":1,"column":754}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":32,"column":31},"generated":{"line":1,"column":756}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":32,"column":31},"generated":{"line":1,"column":758}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":33,"column":3},"generated":{"line":1,"column":768}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":33,"column":3},"generated":{"line":1,"column":775}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":33,"column":3},"generated":{"line":1,"column":777}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":33,"column":3},"generated":{"line":1,"column":779}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":33,"column":3},"generated":{"line":1,"column":800}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":35,"column":10},"generated":{"line":1,"column":803}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":35,"column":10},"generated":{"line":1,"column":807}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":35,"column":16},"generated":{"line":1,"column":810}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":35,"column":16},"generated":{"line":1,"column":812}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":35,"column":16},"generated":{"line":1,"column":814}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":35,"column":16},"generated":{"line":1,"column":824}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":35,"column":32},"generated":{"line":1,"column":827}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":35,"column":37},"generated":{"line":1,"column":847}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":35,"column":37},"generated":{"line":1,"column":851}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":35,"column":68},"generated":{"line":1,"column":853}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":38,"column":3},"generated":{"line":1,"column":857}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":38,"column":3},"generated":{"line":1,"column":863}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":38,"column":3},"generated":{"line":1,"column":867}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":36,"column":8},"generated":{"line":1,"column":877}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":36,"column":8},"generated":{"line":1,"column":893}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":36,"column":8},"generated":{"line":1,"column":895}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":15,"column":2},"generated":{"line":1,"column":989}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":15,"column":2},"generated":{"line":1,"column":997}},{"source":"../../../src/internal/util/subscribeTo.ts","name":null,"original":{"line":15,"column":2},"generated":{"line":1,"column":1009}}],"sources":{"../../../src/internal/util/subscribeTo.ts":"import { Observable } from '../Observable';\nimport { ObservableInput } from '../types';\nimport { subscribeToArray } from './subscribeToArray';\nimport { subscribeToPromise } from './subscribeToPromise';\nimport { subscribeToIterable } from './subscribeToIterable';\nimport { subscribeToObservable } from './subscribeToObservable';\nimport { isArrayLike } from './isArrayLike';\nimport { isPromise } from './isPromise';\nimport { isObject } from './isObject';\nimport { iterator as Symbol_iterator } from '../symbol/iterator';\nimport { observable as Symbol_observable } from '../symbol/observable';\nimport { Subscriber } from '../Subscriber';\n\nexport const subscribeTo = <T>(result: ObservableInput<T>) => {\n if (result instanceof Observable) {\n return (subscriber: Subscriber<T>) => {\n if (result._isScalar) {\n subscriber.next((result as any).value);\n subscriber.complete();\n return undefined;\n } else {\n return result.subscribe(subscriber);\n }\n };\n } else if (result && typeof result[Symbol_observable] === 'function') {\n return subscribeToObservable(result as any);\n } else if (isArrayLike(result)) {\n return subscribeToArray(result);\n } else if (isPromise(result)) {\n return subscribeToPromise(result as Promise<any>);\n } else if (result && typeof result[Symbol_iterator] === 'function') {\n return subscribeToIterable(result as any);\n } else {\n const value = isObject(result) ? 'an invalid object' : `'${result}'`;\n const msg = `You provided ${value} where a stream was expected.`\n + ' You can provide an Observable, Promise, Array, or Iterable.';\n throw new TypeError(msg);\n }\n};\n"},"lineCount":null}},"hash":"b5d7c01fcdff84e44fbdc902a9af0d26","cacheData":{"env":{}}} |