webdetector/.cache/8c/70437dc76b14458aa83e0943a0538d.json
2018-12-21 13:36:28 +01:00

1 line
20 KiB
JSON

{"id":"../node_modules/rxjs/_esm5/internal/operators/pluck.js","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":1545395695572},{"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\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.pluck = pluck;\n\nvar _map = require(\"./map\");\n\n/** PURE_IMPORTS_START _map PURE_IMPORTS_END */\nfunction pluck() {\n var properties = [];\n\n for (var _i = 0; _i < arguments.length; _i++) {\n properties[_i] = arguments[_i];\n }\n\n var length = properties.length;\n\n if (length === 0) {\n throw new Error('list of properties cannot be empty.');\n }\n\n return function (source) {\n return (0, _map.map)(plucker(properties, length))(source);\n };\n}\n\nfunction plucker(props, length) {\n var mapper = function (x) {\n var currentProp = x;\n\n for (var i = 0; i < length; i++) {\n var p = currentProp[props[i]];\n\n if (typeof p !== 'undefined') {\n currentProp = p;\n } else {\n return undefined;\n }\n }\n\n return currentProp;\n };\n\n return mapper;\n}","map":{"mappings":[{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":34,"column":0},"generated":{"line":8,"column":0}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":2,"column":0},"generated":{"line":10,"column":0}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":34,"column":28},"generated":{"line":11,"column":0}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":34,"column":28},"generated":{"line":11,"column":9}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":34,"column":28},"generated":{"line":11,"column":14}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":34,"column":51},"generated":{"line":11,"column":17}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":34,"column":28},"generated":{"line":12,"column":16}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":34,"column":28},"generated":{"line":12,"column":19}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":34,"column":28},"generated":{"line":14,"column":7}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":34,"column":28},"generated":{"line":14,"column":11}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":34,"column":28},"generated":{"line":14,"column":13}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":34,"column":28},"generated":{"line":14,"column":16}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":34,"column":28},"generated":{"line":14,"column":19}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":34,"column":28},"generated":{"line":14,"column":21}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":34,"column":28},"generated":{"line":14,"column":24}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":34,"column":28},"generated":{"line":14,"column":33}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":34,"column":28},"generated":{"line":14,"column":34}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":34,"column":51},"generated":{"line":14,"column":42}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":34,"column":51},"generated":{"line":14,"column":44}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":34,"column":51},"generated":{"line":14,"column":48}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":35,"column":2},"generated":{"line":16,"column":0}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":36,"column":2},"generated":{"line":18,"column":0}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":36,"column":6},"generated":{"line":18,"column":6}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":36,"column":12},"generated":{"line":18,"column":12}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":36,"column":12},"generated":{"line":18,"column":15}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":36,"column":20},"generated":{"line":18,"column":25}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":36,"column":20},"generated":{"line":18,"column":26}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":36,"column":2},"generated":{"line":18,"column":32}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":37,"column":4},"generated":{"line":20,"column":6}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":37,"column":10},"generated":{"line":20,"column":12}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":37,"column":14},"generated":{"line":20,"column":17}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":37,"column":14},"generated":{"line":20,"column":20}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":38,"column":3},"generated":{"line":21,"column":0}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":38,"column":3},"generated":{"line":21,"column":10}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":38,"column":3},"generated":{"line":21,"column":14}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":38,"column":3},"generated":{"line":21,"column":19}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":38,"column":3},"generated":{"line":21,"column":20}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":38,"column":3},"generated":{"line":21,"column":57}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":38,"column":3},"generated":{"line":21,"column":58}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":39,"column":2},"generated":{"line":22,"column":0}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":40,"column":1},"generated":{"line":24,"column":0}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":40,"column":1},"generated":{"line":24,"column":9}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":40,"column":1},"generated":{"line":24,"column":19}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":40,"column":1},"generated":{"line":24,"column":25}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":40,"column":1},"generated":{"line":24,"column":27}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":40,"column":1},"generated":{"line":25,"column":0}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":40,"column":1},"generated":{"line":25,"column":11}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":40,"column":1},"generated":{"line":25,"column":25}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":40,"column":1},"generated":{"line":25,"column":32}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":40,"column":1},"generated":{"line":25,"column":33}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":40,"column":1},"generated":{"line":25,"column":43}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":40,"column":1},"generated":{"line":25,"column":45}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":40,"column":1},"generated":{"line":25,"column":51}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":40,"column":1},"generated":{"line":25,"column":52}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":40,"column":1},"generated":{"line":25,"column":54}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":40,"column":1},"generated":{"line":25,"column":60}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":40,"column":1},"generated":{"line":25,"column":61}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":40,"column":1},"generated":{"line":26,"column":0}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":40,"column":1},"generated":{"line":26,"column":3}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":42,"column":0},"generated":{"line":27,"column":0}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":43,"column":8},"generated":{"line":29,"column":9}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":43,"column":17},"generated":{"line":29,"column":17}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":43,"column":17},"generated":{"line":29,"column":24}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":43,"column":27},"generated":{"line":29,"column":32}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":44,"column":4},"generated":{"line":30,"column":6}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":44,"column":8},"generated":{"line":30,"column":12}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":44,"column":8},"generated":{"line":30,"column":15}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":44,"column":23},"generated":{"line":30,"column":25}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":44,"column":8},"generated":{"line":30,"column":26}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":44,"column":24},"generated":{"line":30,"column":28}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":45,"column":4},"generated":{"line":31,"column":0}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":45,"column":4},"generated":{"line":31,"column":8}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":45,"column":18},"generated":{"line":31,"column":19}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":45,"column":21},"generated":{"line":31,"column":22}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":45,"column":4},"generated":{"line":31,"column":23}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":46,"column":6},"generated":{"line":33,"column":9}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":46,"column":13},"generated":{"line":33,"column":13}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":46,"column":13},"generated":{"line":33,"column":14}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":46,"column":16},"generated":{"line":33,"column":17}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":46,"column":16},"generated":{"line":33,"column":20}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":46,"column":16},"generated":{"line":33,"column":21}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":46,"column":16},"generated":{"line":33,"column":24}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":46,"column":28},"generated":{"line":33,"column":32}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":46,"column":33},"generated":{"line":33,"column":33}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":46,"column":37},"generated":{"line":33,"column":37}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":47,"column":6},"generated":{"line":34,"column":0}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":47,"column":10},"generated":{"line":34,"column":10}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":47,"column":10},"generated":{"line":34,"column":11}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":47,"column":10},"generated":{"line":34,"column":14}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":47,"column":23},"generated":{"line":34,"column":25}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":47,"column":23},"generated":{"line":34,"column":26}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":47,"column":23},"generated":{"line":34,"column":31}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":47,"column":23},"generated":{"line":34,"column":32}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":47,"column":23},"generated":{"line":34,"column":33}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":47,"column":23},"generated":{"line":34,"column":34}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":47,"column":6},"generated":{"line":34,"column":35}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":48,"column":8},"generated":{"line":36,"column":10}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":48,"column":8},"generated":{"line":36,"column":17}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":48,"column":8},"generated":{"line":36,"column":18}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":48,"column":19},"generated":{"line":36,"column":23}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":48,"column":24},"generated":{"line":36,"column":36}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":49,"column":7},"generated":{"line":37,"column":0}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":49,"column":7},"generated":{"line":37,"column":8}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":49,"column":7},"generated":{"line":37,"column":19}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":49,"column":7},"generated":{"line":37,"column":22}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":49,"column":7},"generated":{"line":37,"column":23}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":50,"column":8},"generated":{"line":38,"column":13}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":51,"column":7},"generated":{"line":39,"column":0}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":51,"column":7},"generated":{"line":39,"column":15}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":51,"column":7},"generated":{"line":39,"column":24}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":52,"column":5},"generated":{"line":40,"column":0}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":53,"column":4},"generated":{"line":41,"column":0}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":54,"column":4},"generated":{"line":43,"column":0}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":54,"column":4},"generated":{"line":43,"column":11}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":54,"column":4},"generated":{"line":43,"column":22}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":56,"column":2},"generated":{"line":44,"column":0}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":57,"column":1},"generated":{"line":46,"column":0}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":57,"column":1},"generated":{"line":46,"column":9}},{"source":"../../../src/internal/operators/pluck.ts","name":null,"original":{"line":57,"column":1},"generated":{"line":46,"column":15}}],"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":"15e6af1077a3bd4e78bba11d5aaa265c","cacheData":{"env":{}}}