webdetector/.cache/1d/dc46fa5a1fd92736b303811704c87c.json
2018-12-21 13:36:28 +01:00

1 line
10 KiB
JSON

{"id":"jvG2","dependencies":[{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/partition.js.map","includedInParent":true,"mtime":499162500000},{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/src/internal/operators/partition.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/not","loc":{"line":2,"column":20},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/partition.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/util/not.js"},{"name":"./filter","loc":{"line":3,"column":23},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/partition.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/filter.js"}],"generated":{"js":"\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:!0}),exports.partition=t;var e=require(\"../util/not\"),r=require(\"./filter\");function t(t,i){return function(n){return[(0,r.filter)(t,i)(n),(0,r.filter)((0,e.not)(t,i))(n)]}}","map":{"mappings":[{"source":"../../../src/internal/operators/partition.ts","name":null,"original":{"line":54,"column":4},"generated":{"line":1,"column":0}},{"source":"../../../src/internal/operators/partition.ts","name":null,"original":{"line":54,"column":4},"generated":{"line":1,"column":13}},{"source":"../../../src/internal/operators/partition.ts","name":null,"original":{"line":54,"column":4},"generated":{"line":1,"column":20}},{"source":"../../../src/internal/operators/partition.ts","name":null,"original":{"line":54,"column":4},"generated":{"line":1,"column":35}},{"source":"../../../src/internal/operators/partition.ts","name":null,"original":{"line":54,"column":4},"generated":{"line":1,"column":43}},{"source":"../../../src/internal/operators/partition.ts","name":null,"original":{"line":54,"column":4},"generated":{"line":1,"column":56}},{"source":"../../../src/internal/operators/partition.ts","name":null,"original":{"line":54,"column":4},"generated":{"line":1,"column":57}},{"source":"../../../src/internal/operators/partition.ts","name":null,"original":{"line":54,"column":4},"generated":{"line":1,"column":64}},{"source":"../../../src/internal/operators/partition.ts","name":null,"original":{"line":54,"column":4},"generated":{"line":1,"column":68}},{"source":"../../../src/internal/operators/partition.ts","name":null,"original":{"line":54,"column":4},"generated":{"line":1,"column":76}},{"source":"../../../src/internal/operators/partition.ts","name":null,"original":{"line":54,"column":4},"generated":{"line":1,"column":86}},{"source":"../../../src/internal/operators/partition.ts","name":null,"original":{"line":2,"column":0},"generated":{"line":1,"column":88}},{"source":"../../../src/internal/operators/partition.ts","name":null,"original":{"line":2,"column":0},"generated":{"line":1,"column":92}},{"source":"../../../src/internal/operators/partition.ts","name":null,"original":{"line":2,"column":0},"generated":{"line":1,"column":94}},{"source":"../../../src/internal/operators/partition.ts","name":null,"original":{"line":2,"column":0},"generated":{"line":1,"column":102}},{"source":"../../../src/internal/operators/partition.ts","name":null,"original":{"line":50,"column":0},"generated":{"line":1,"column":117}},{"source":"../../../src/internal/operators/partition.ts","name":null,"original":{"line":50,"column":0},"generated":{"line":1,"column":119}},{"source":"../../../src/internal/operators/partition.ts","name":null,"original":{"line":50,"column":0},"generated":{"line":1,"column":127}},{"source":"../../../src/internal/operators/partition.ts","name":null,"original":{"line":52,"column":2},"generated":{"line":1,"column":139}},{"source":"../../../src/internal/operators/partition.ts","name":null,"original":{"line":52,"column":9},"generated":{"line":1,"column":148}},{"source":"../../../src/internal/operators/partition.ts","name":null,"original":{"line":52,"column":10},"generated":{"line":1,"column":150}},{"source":"../../../src/internal/operators/partition.ts","name":null,"original":{"line":52,"column":36},"generated":{"line":1,"column":152}},{"source":"../../../src/internal/operators/partition.ts","name":null,"original":{"line":53,"column":4},"generated":{"line":1,"column":155}},{"source":"../../../src/internal/operators/partition.ts","name":null,"original":{"line":53,"column":4},"generated":{"line":1,"column":162}},{"source":"../../../src/internal/operators/partition.ts","name":null,"original":{"line":53,"column":11},"generated":{"line":1,"column":171}},{"source":"../../../src/internal/operators/partition.ts","name":null,"original":{"line":54,"column":11},"generated":{"line":1,"column":174}},{"source":"../../../src/internal/operators/partition.ts","name":null,"original":{"line":54,"column":11},"generated":{"line":1,"column":180}},{"source":"../../../src/internal/operators/partition.ts","name":null,"original":{"line":55,"column":38},"generated":{"line":1,"column":182}},{"source":"../../../src/internal/operators/partition.ts","name":null,"original":{"line":55,"column":38},"generated":{"line":1,"column":184}},{"source":"../../../src/internal/operators/partition.ts","name":null,"original":{"line":55,"column":38},"generated":{"line":1,"column":186}},{"source":"../../../src/internal/operators/partition.ts","name":null,"original":{"line":55,"column":38},"generated":{"line":1,"column":194}},{"source":"../../../src/internal/operators/partition.ts","name":null,"original":{"line":55,"column":38},"generated":{"line":1,"column":196}},{"source":"../../../src/internal/operators/partition.ts","name":null,"original":{"line":55,"column":38},"generated":{"line":1,"column":198}},{"source":"../../../src/internal/operators/partition.ts","name":null,"original":{"line":55,"column":38},"generated":{"line":1,"column":199}},{"source":"../../../src/internal/operators/partition.ts","name":null,"original":{"line":56,"column":1},"generated":{"line":1,"column":203}},{"source":"../../../src/internal/operators/partition.ts","name":null,"original":{"line":56,"column":1},"generated":{"line":1,"column":205}},{"source":"../../../src/internal/operators/partition.ts","name":null,"original":{"line":56,"column":1},"generated":{"line":1,"column":207}},{"source":"../../../src/internal/operators/partition.ts","name":null,"original":{"line":56,"column":1},"generated":{"line":1,"column":216}},{"source":"../../../src/internal/operators/partition.ts","name":null,"original":{"line":56,"column":1},"generated":{"line":1,"column":218}},{"source":"../../../src/internal/operators/partition.ts","name":null,"original":{"line":56,"column":1},"generated":{"line":1,"column":220}},{"source":"../../../src/internal/operators/partition.ts","name":null,"original":{"line":56,"column":1},"generated":{"line":1,"column":225}},{"source":"../../../src/internal/operators/partition.ts","name":null,"original":{"line":56,"column":1},"generated":{"line":1,"column":227}},{"source":"../../../src/internal/operators/partition.ts","name":null,"original":{"line":56,"column":1},"generated":{"line":1,"column":230}},{"source":"../../../src/internal/operators/partition.ts","name":null,"original":{"line":56,"column":1},"generated":{"line":1,"column":231}}],"sources":{"../../../src/internal/operators/partition.ts":"import { not } from '../util/not';\nimport { filter } from './filter';\nimport { Observable } from '../Observable';\nimport { UnaryFunction } from '../types';\n\n/**\n * Splits the source Observable into two, one with values that satisfy a\n * predicate, and another with values that don't satisfy the predicate.\n *\n * <span class=\"informal\">It's like {@link filter}, but returns two Observables:\n * one like the output of {@link filter}, and the other with values that did not\n * pass the condition.</span>\n *\n * ![](partition.png)\n *\n * `partition` outputs an array with two Observables that partition the values\n * from the source Observable through the given `predicate` function. The first\n * Observable in that array emits source values for which the predicate argument\n * returns true. The second Observable emits source values for which the\n * predicate returns false. The first behaves like {@link filter} and the second\n * behaves like {@link filter} with the predicate negated.\n *\n * ## Example\n * Partition click events into those on DIV elements and those elsewhere\n * ```javascript\n * const clicks = fromEvent(document, 'click');\n * const parts = clicks.pipe(partition(ev => ev.target.tagName === 'DIV'));\n * const clicksOnDivs = parts[0];\n * const clicksElsewhere = parts[1];\n * clicksOnDivs.subscribe(x => console.log('DIV clicked: ', x));\n * clicksElsewhere.subscribe(x => console.log('Other clicked: ', x));\n * ```\n *\n * @see {@link filter}\n *\n * @param {function(value: T, index: number): boolean} predicate A function that\n * evaluates each value emitted by the source Observable. If it returns `true`,\n * the value is emitted on the first Observable in the returned array, if\n * `false` the value is emitted on the second Observable in the array. The\n * `index` parameter is the number `i` for the i-th source emission that has\n * happened since the subscription, starting from the number `0`.\n * @param {any} [thisArg] An optional argument to determine the value of `this`\n * in the `predicate` function.\n * @return {[Observable<T>, Observable<T>]} An array with two Observables: one\n * with values that passed the predicate, and another with values that did not\n * pass the predicate.\n * @method partition\n * @owner Observable\n */\nexport function partition<T>(predicate: (value: T, index: number) => boolean,\n thisArg?: any): UnaryFunction<Observable<T>, [Observable<T>, Observable<T>]> {\n return (source: Observable<T>) => [\n filter(predicate, thisArg)(source),\n filter(not(predicate, thisArg) as any)(source)\n ] as [Observable<T>, Observable<T>];\n}\n"},"lineCount":null}},"hash":"564e9240fe9cd6c8d17fb092e4919dcb","cacheData":{"env":{}}}