1 line
17 KiB
JSON
1 line
17 KiB
JSON
{"id":"wZuk","dependencies":[{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/observable/of.js.map","includedInParent":true,"mtime":499162500000},{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/src/internal/observable/of.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":"../util/isScheduler","loc":{"line":2,"column":28},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/observable/of.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/util/isScheduler.js"},{"name":"./fromArray","loc":{"line":3,"column":26},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/observable/of.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/observable/fromArray.js"},{"name":"./empty","loc":{"line":4,"column":22},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/observable/of.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/observable/empty.js"},{"name":"./scalar","loc":{"line":5,"column":23},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/observable/of.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/observable/scalar.js"}],"generated":{"js":"\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:!0}),exports.of=a;var r=require(\"../util/isScheduler\"),e=require(\"./fromArray\"),t=require(\"./empty\"),u=require(\"./scalar\");function a(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];var o=a[a.length-1];switch((0,r.isScheduler)(o)?a.pop():o=void 0,a.length){case 0:return(0,t.empty)(o);case 1:return o?(0,e.fromArray)(a,o):(0,u.scalar)(a[0]);default:return(0,e.fromArray)(a,o)}}","map":{"mappings":[{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":89,"column":3},"generated":{"line":1,"column":0}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":89,"column":3},"generated":{"line":1,"column":13}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":89,"column":3},"generated":{"line":1,"column":20}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":89,"column":3},"generated":{"line":1,"column":35}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":89,"column":3},"generated":{"line":1,"column":43}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":89,"column":3},"generated":{"line":1,"column":56}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":89,"column":3},"generated":{"line":1,"column":57}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":89,"column":3},"generated":{"line":1,"column":64}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":89,"column":3},"generated":{"line":1,"column":68}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":89,"column":3},"generated":{"line":1,"column":76}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":89,"column":3},"generated":{"line":1,"column":79}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":3,"column":0},"generated":{"line":1,"column":81}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":3,"column":0},"generated":{"line":1,"column":85}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":3,"column":0},"generated":{"line":1,"column":87}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":3,"column":0},"generated":{"line":1,"column":95}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":4,"column":0},"generated":{"line":1,"column":118}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":4,"column":0},"generated":{"line":1,"column":120}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":4,"column":0},"generated":{"line":1,"column":128}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":5,"column":0},"generated":{"line":1,"column":143}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":5,"column":0},"generated":{"line":1,"column":145}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":5,"column":0},"generated":{"line":1,"column":153}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":75,"column":0},"generated":{"line":1,"column":164}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":75,"column":0},"generated":{"line":1,"column":166}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":75,"column":0},"generated":{"line":1,"column":174}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":75,"column":22},"generated":{"line":1,"column":186}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":75,"column":22},"generated":{"line":1,"column":195}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":75,"column":22},"generated":{"line":1,"column":199}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":75,"column":22},"generated":{"line":1,"column":203}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":75,"column":22},"generated":{"line":1,"column":207}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":75,"column":22},"generated":{"line":1,"column":209}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":75,"column":22},"generated":{"line":1,"column":212}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":75,"column":22},"generated":{"line":1,"column":214}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":75,"column":22},"generated":{"line":1,"column":216}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":75,"column":22},"generated":{"line":1,"column":218}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":75,"column":55},"generated":{"line":1,"column":228}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":75,"column":55},"generated":{"line":1,"column":235}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":89,"column":3},"generated":{"line":1,"column":239}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":89,"column":3},"generated":{"line":1,"column":241}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":89,"column":3},"generated":{"line":1,"column":244}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":89,"column":3},"generated":{"line":1,"column":254}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":77,"column":6},"generated":{"line":1,"column":257}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":77,"column":6},"generated":{"line":1,"column":261}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":77,"column":18},"generated":{"line":1,"column":263}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":77,"column":18},"generated":{"line":1,"column":265}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":77,"column":28},"generated":{"line":1,"column":267}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":77,"column":30},"generated":{"line":1,"column":274}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":83,"column":4},"generated":{"line":1,"column":277}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":78,"column":4},"generated":{"line":1,"column":285}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":78,"column":15},"generated":{"line":1,"column":287}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":78,"column":15},"generated":{"line":1,"column":289}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":78,"column":15},"generated":{"line":1,"column":302}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":79,"column":3},"generated":{"line":1,"column":305}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":79,"column":3},"generated":{"line":1,"column":307}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":81,"column":3},"generated":{"line":1,"column":313}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":81,"column":3},"generated":{"line":1,"column":320}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":83,"column":4},"generated":{"line":1,"column":322}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":83,"column":10},"generated":{"line":1,"column":324}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":84,"column":6},"generated":{"line":1,"column":332}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":84,"column":6},"generated":{"line":1,"column":337}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":85,"column":10},"generated":{"line":1,"column":339}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":85,"column":10},"generated":{"line":1,"column":346}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":85,"column":10},"generated":{"line":1,"column":348}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":85,"column":10},"generated":{"line":1,"column":350}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":85,"column":10},"generated":{"line":1,"column":357}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":86,"column":6},"generated":{"line":1,"column":360}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":86,"column":6},"generated":{"line":1,"column":365}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":87,"column":4},"generated":{"line":1,"column":367}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":87,"column":4},"generated":{"line":1,"column":374}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":87,"column":4},"generated":{"line":1,"column":377}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":87,"column":4},"generated":{"line":1,"column":379}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":87,"column":4},"generated":{"line":1,"column":381}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":87,"column":4},"generated":{"line":1,"column":392}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":87,"column":4},"generated":{"line":1,"column":394}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":87,"column":4},"generated":{"line":1,"column":398}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":87,"column":4},"generated":{"line":1,"column":400}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":87,"column":4},"generated":{"line":1,"column":402}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":87,"column":4},"generated":{"line":1,"column":410}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":87,"column":4},"generated":{"line":1,"column":412}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":89,"column":3},"generated":{"line":1,"column":416}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":89,"column":3},"generated":{"line":1,"column":424}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":89,"column":3},"generated":{"line":1,"column":431}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":89,"column":3},"generated":{"line":1,"column":433}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":89,"column":3},"generated":{"line":1,"column":435}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":89,"column":3},"generated":{"line":1,"column":446}},{"source":"../../../src/internal/observable/of.ts","name":null,"original":{"line":89,"column":3},"generated":{"line":1,"column":448}}],"sources":{"../../../src/internal/observable/of.ts":"import { SchedulerLike } from '../types';\nimport { isScheduler } from '../util/isScheduler';\nimport { fromArray } from './fromArray';\nimport { empty } from './empty';\nimport { scalar } from './scalar';\nimport { Observable } from '../Observable';\n\n/* tslint:disable:max-line-length */\nexport function of<T>(a: T, scheduler?: SchedulerLike): Observable<T>;\nexport function of<T, T2>(a: T, b: T2, scheduler?: SchedulerLike): Observable<T | T2>;\nexport function of<T, T2, T3>(a: T, b: T2, c: T3, scheduler?: SchedulerLike): Observable<T | T2 | T3>;\nexport function of<T, T2, T3, T4>(a: T, b: T2, c: T3, d: T4, scheduler?: SchedulerLike): Observable<T | T2 | T3 | T4>;\nexport function of<T, T2, T3, T4, T5>(a: T, b: T2, c: T3, d: T4, e: T5, scheduler?: SchedulerLike): Observable<T | T2 | T3 | T4 | T5>;\nexport function of<T, T2, T3, T4, T5, T6>(a: T, b: T2, c: T3, d: T4, e: T5, f: T6, scheduler?: SchedulerLike): Observable<T | T2 | T3 | T4 | T5 | T6>;\nexport function of<T, T2, T3, T4, T5, T6, T7>(a: T, b: T2, c: T3, d: T4, e: T5, f: T6, g: T7, scheduler?: SchedulerLike):\n Observable<T | T2 | T3 | T4 | T5 | T6 | T7>;\nexport function of<T, T2, T3, T4, T5, T6, T7, T8>(a: T, b: T2, c: T3, d: T4, e: T5, f: T6, g: T7, h: T8, scheduler?: SchedulerLike):\n Observable<T | T2 | T3 | T4 | T5 | T6 | T7 | T8>;\nexport function of<T, T2, T3, T4, T5, T6, T7, T8, T9>(a: T, b: T2, c: T3, d: T4, e: T5, f: T6, g: T7, h: T8, i: T9, scheduler?: SchedulerLike):\n Observable<T | T2 | T3 | T4 | T5 | T6 | T7 | T8 | T9>;\nexport function of<T>(...args: Array<T | SchedulerLike>): Observable<T>;\n/* tslint:enable:max-line-length */\n\n/**\n * Converts the arguments to an observable sequence.\n *\n * <span class=\"informal\">Each argument becomes a `next` notification.</span>\n *\n * ![](of.png)\n *\n * Unlike {@link from}, it does not do any flattening and emits each argument in whole\n * as a separate `next` notification.\n *\n * ## Examples\n *\n * Emit the values `10, 20, 30`\n *\n * ```javascript\n * of(10, 20, 30)\n * .subscribe(\n * next => console.log('next:', next),\n * err => console.log('error:', err),\n * () => console.log('the end'),\n * );\n * // result:\n * // 'next: 10'\n * // 'next: 20'\n * // 'next: 30'\n *\n * ```\n *\n * Emit the array `[1,2,3]`\n *\n * ```javascript\n * of([1,2,3])\n * .subscribe(\n * next => console.log('next:', next),\n * err => console.log('error:', err),\n * () => console.log('the end'),\n * );\n * // result:\n * // 'next: [1,2,3]'\n * ```\n *\n * @see {@link from}\n * @see {@link range}\n *\n * @param {...T} values A comma separated list of arguments you want to be emitted\n * @return {Observable} An Observable that emits the arguments\n * described above and then completes.\n * @method of\n * @owner Observable\n */\n\nexport function of<T>(...args: Array<T | SchedulerLike>): Observable<T> {\n let scheduler = args[args.length - 1] as SchedulerLike;\n if (isScheduler(scheduler)) {\n args.pop();\n } else {\n scheduler = undefined;\n }\n switch (args.length) {\n case 0:\n return empty(scheduler);\n case 1:\n return scheduler ? fromArray(args as T[], scheduler) : scalar(args[0] as T);\n default:\n return fromArray(args as T[], scheduler);\n }\n}\n"},"lineCount":null}},"hash":"db3ba6adfea201e24a443fa238e0ed0b","cacheData":{"env":{}}} |