webdetector/.cache/61/5b0425596ae571abaf9e3c815e3448.json
2018-12-21 13:36:28 +01:00

1 line
14 KiB
JSON

{"id":"Td+/","dependencies":[{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/pluck.js.map","includedInParent":true,"mtime":499162500000},{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/src/internal/operators/pluck.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":"./map","loc":{"line":2,"column":20},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/pluck.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/map.js"}],"generated":{"js":"\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:!0}),exports.pluck=e;var r=require(\"./map\");function e(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var o=e.length;if(0===o)throw new Error(\"list of properties cannot be empty.\");return function(n){return(0,r.map)(t(e,o))(n)}}function t(r,e){return function(t){for(var n=t,o=0;o<e;o++){var u=n[r[o]];if(void 0===u)return;n=u}return n}}","map":{"mappings":[{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":57,"column":1},"generated":{"line":1,"column":0}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":57,"column":1},"generated":{"line":1,"column":13}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":57,"column":1},"generated":{"line":1,"column":20}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":57,"column":1},"generated":{"line":1,"column":35}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":57,"column":1},"generated":{"line":1,"column":43}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":57,"column":1},"generated":{"line":1,"column":56}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":57,"column":1},"generated":{"line":1,"column":57}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":57,"column":1},"generated":{"line":1,"column":64}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":57,"column":1},"generated":{"line":1,"column":68}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":57,"column":1},"generated":{"line":1,"column":76}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":57,"column":1},"generated":{"line":1,"column":82}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":34,"column":0},"generated":{"line":1,"column":84}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":34,"column":0},"generated":{"line":1,"column":88}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":34,"column":0},"generated":{"line":1,"column":90}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":34,"column":0},"generated":{"line":1,"column":98}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":34,"column":28},"generated":{"line":1,"column":107}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":34,"column":28},"generated":{"line":1,"column":116}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":34,"column":28},"generated":{"line":1,"column":120}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":34,"column":28},"generated":{"line":1,"column":124}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":34,"column":28},"generated":{"line":1,"column":128}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":34,"column":28},"generated":{"line":1,"column":130}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":34,"column":28},"generated":{"line":1,"column":133}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":34,"column":28},"generated":{"line":1,"column":135}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":34,"column":28},"generated":{"line":1,"column":137}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":34,"column":28},"generated":{"line":1,"column":139}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":34,"column":28},"generated":{"line":1,"column":149}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":34,"column":51},"generated":{"line":1,"column":156}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":57,"column":1},"generated":{"line":1,"column":160}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":57,"column":1},"generated":{"line":1,"column":162}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":57,"column":1},"generated":{"line":1,"column":165}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":57,"column":1},"generated":{"line":1,"column":175}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":36,"column":6},"generated":{"line":1,"column":178}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":36,"column":6},"generated":{"line":1,"column":182}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":36,"column":12},"generated":{"line":1,"column":184}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":36,"column":20},"generated":{"line":1,"column":186}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":37,"column":4},"generated":{"line":1,"column":193}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":37,"column":14},"generated":{"line":1,"column":196}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":37,"column":4},"generated":{"line":1,"column":200}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":38,"column":3},"generated":{"line":1,"column":202}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":38,"column":3},"generated":{"line":1,"column":208}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":38,"column":3},"generated":{"line":1,"column":212}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":38,"column":3},"generated":{"line":1,"column":218}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":40,"column":1},"generated":{"line":1,"column":257}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":40,"column":1},"generated":{"line":1,"column":264}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":40,"column":1},"generated":{"line":1,"column":273}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":40,"column":1},"generated":{"line":1,"column":276}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":40,"column":1},"generated":{"line":1,"column":283}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":40,"column":1},"generated":{"line":1,"column":285}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":40,"column":1},"generated":{"line":1,"column":287}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":40,"column":1},"generated":{"line":1,"column":292}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":40,"column":1},"generated":{"line":1,"column":294}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":40,"column":1},"generated":{"line":1,"column":296}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":40,"column":1},"generated":{"line":1,"column":299}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":40,"column":1},"generated":{"line":1,"column":300}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":43,"column":8},"generated":{"line":1,"column":304}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":43,"column":8},"generated":{"line":1,"column":313}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":43,"column":17},"generated":{"line":1,"column":315}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":43,"column":17},"generated":{"line":1,"column":317}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":57,"column":1},"generated":{"line":1,"column":320}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":44,"column":8},"generated":{"line":1,"column":327}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":44,"column":23},"generated":{"line":1,"column":336}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":46,"column":6},"generated":{"line":1,"column":339}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":45,"column":4},"generated":{"line":1,"column":343}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":45,"column":4},"generated":{"line":1,"column":347}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":45,"column":21},"generated":{"line":1,"column":349}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":46,"column":13},"generated":{"line":1,"column":351}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":46,"column":16},"generated":{"line":1,"column":353}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":46,"column":16},"generated":{"line":1,"column":355}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":46,"column":16},"generated":{"line":1,"column":357}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":46,"column":28},"generated":{"line":1,"column":359}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":46,"column":37},"generated":{"line":1,"column":363}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":47,"column":10},"generated":{"line":1,"column":364}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":47,"column":10},"generated":{"line":1,"column":368}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":47,"column":10},"generated":{"line":1,"column":370}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":47,"column":23},"generated":{"line":1,"column":372}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":47,"column":23},"generated":{"line":1,"column":374}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":48,"column":8},"generated":{"line":1,"column":378}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":48,"column":19},"generated":{"line":1,"column":386}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":48,"column":8},"generated":{"line":1,"column":390}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":51,"column":7},"generated":{"line":1,"column":392}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":49,"column":7},"generated":{"line":1,"column":399}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":49,"column":7},"generated":{"line":1,"column":401}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":54,"column":4},"generated":{"line":1,"column":403}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":54,"column":4},"generated":{"line":1,"column":410}}],"sources":{"../../../src/internal/operators/pluck.ts":"import { Observable } from '../Observable';\nimport { map } from './map';\nimport { OperatorFunction } from '../types';\n\n/**\n * Maps each source value (an object) to its specified nested property.\n *\n * <span class=\"informal\">Like {@link map}, but meant only for picking one of\n * the nested properties of every emitted object.</span>\n *\n * ![](pluck.png)\n *\n * Given a list of strings describing a path to an object property, retrieves\n * the value of a specified nested property from all values in the source\n * Observable. If a property can't be resolved, it will return `undefined` for\n * that value.\n *\n * ## Example\n * Map every click to the tagName of the clicked target element\n * ```javascript\n * const clicks = fromEvent(document, 'click');\n * const tagNames = clicks.pipe(pluck('target', 'tagName'));\n * tagNames.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link map}\n *\n * @param {...string} properties The nested properties to pluck from each source\n * value (an object).\n * @return {Observable} A new Observable of property values from the source values.\n * @method pluck\n * @owner Observable\n */\nexport function pluck<T, R>(...properties: string[]): OperatorFunction<T, R> {\n const length = properties.length;\n if (length === 0) {\n throw new Error('list of properties cannot be empty.');\n }\n return (source: Observable<T>) => map(plucker(properties, length))(source as any);\n}\n\nfunction plucker(props: string[], length: number): (x: string) => any {\n const mapper = (x: string) => {\n let currentProp = x;\n for (let i = 0; i < length; i++) {\n const p = currentProp[props[i]];\n if (typeof p !== 'undefined') {\n currentProp = p;\n } else {\n return undefined;\n }\n }\n return currentProp;\n };\n\n return mapper;\n}\n"},"lineCount":null}},"hash":"2e011eddaa7cebbf5bb84bd98deddb41","cacheData":{"env":{}}}