1 line
32 KiB
JSON
1 line
32 KiB
JSON
{"id":"dNh5","dependencies":[{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/map.js.map","includedInParent":true,"mtime":499162500000},{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/src/internal/operators/map.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":"tslib","loc":{"line":2,"column":25},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/map.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/tslib/tslib.es6.js"},{"name":"../Subscriber","loc":{"line":3,"column":27},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/operators/map.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/Subscriber.js"}],"generated":{"js":"\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:!0}),exports.map=n,exports.MapOperator=void 0;var t=e(require(\"tslib\")),r=require(\"../Subscriber\");function e(t){if(t&&t.__esModule)return t;var r={};if(null!=t)for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,e):{};n.get||n.set?Object.defineProperty(r,e,n):r[e]=t[e]}return r.default=t,r}function n(t,r){return function(e){if(\"function\"!=typeof t)throw new TypeError(\"argument is not a function. Are you looking for `mapTo()`?\");return e.lift(new o(t,r))}}var o=function(){function t(t,r){this.project=t,this.thisArg=r}return t.prototype.call=function(t,r){return r.subscribe(new i(t,this.project,this.thisArg))},t}();exports.MapOperator=o;var i=function(r){function e(t,e,n){var o=r.call(this,t)||this;return o.project=e,o.count=0,o.thisArg=n||o,o}return t.__extends(e,r),e.prototype._next=function(t){var r;try{r=this.project.call(this.thisArg,t,this.count++)}catch(e){return void this.destination.error(e)}this.destination.next(r)},e}(r.Subscriber);","map":{"mappings":[{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":0}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":13}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":20}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":35}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":43}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":56}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":57}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":64}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":68}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":76}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":80}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":82}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":90}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":107}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":2,"column":0},"generated":{"line":1,"column":109}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":2,"column":0},"generated":{"line":1,"column":113}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":2,"column":0},"generated":{"line":1,"column":115}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":2,"column":0},"generated":{"line":1,"column":117}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":2,"column":0},"generated":{"line":1,"column":125}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":42,"column":0},"generated":{"line":1,"column":135}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":42,"column":0},"generated":{"line":1,"column":137}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":42,"column":0},"generated":{"line":1,"column":145}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":162}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":171}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":173}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":176}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":179}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":182}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":184}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":195}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":202}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":204}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":208}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":210}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":213}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":216}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":222}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":224}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":228}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":232}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":237}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":239}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":242}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":249}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":259}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":274}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":279}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":281}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":284}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":285}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":289}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":291}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":298}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":314}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":321}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":346}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":353}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":378}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":380}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":383}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":386}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":388}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":393}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":395}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":399}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":406}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":421}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":423}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":425}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":428}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":430}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":433}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":435}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":438}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":445}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":447}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":455}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":457}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":43,"column":2},"generated":{"line":1,"column":459}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":43,"column":9},"generated":{"line":1,"column":468}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":43,"column":18},"generated":{"line":1,"column":470}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":43,"column":18},"generated":{"line":1,"column":472}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":44,"column":4},"generated":{"line":1,"column":475}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":44,"column":4},"generated":{"line":1,"column":482}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":44,"column":27},"generated":{"line":1,"column":491}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":45,"column":6},"generated":{"line":1,"column":494}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":45,"column":25},"generated":{"line":1,"column":497}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":45,"column":12},"generated":{"line":1,"column":516}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":46,"column":5},"generated":{"line":1,"column":518}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":46,"column":5},"generated":{"line":1,"column":524}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":46,"column":5},"generated":{"line":1,"column":528}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":46,"column":5},"generated":{"line":1,"column":538}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":48,"column":4},"generated":{"line":1,"column":600}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":48,"column":4},"generated":{"line":1,"column":607}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":48,"column":4},"generated":{"line":1,"column":609}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":48,"column":4},"generated":{"line":1,"column":614}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":48,"column":4},"generated":{"line":1,"column":618}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":48,"column":4},"generated":{"line":1,"column":620}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":48,"column":4},"generated":{"line":1,"column":622}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":52,"column":2},"generated":{"line":1,"column":627}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":52,"column":2},"generated":{"line":1,"column":631}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":52,"column":61},"generated":{"line":1,"column":633}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":52,"column":22},"generated":{"line":1,"column":644}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":52,"column":22},"generated":{"line":1,"column":653}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":52,"column":22},"generated":{"line":1,"column":655}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":52,"column":61},"generated":{"line":1,"column":657}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":52,"column":71},"generated":{"line":1,"column":660}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":52,"column":71},"generated":{"line":1,"column":665}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":52,"column":71},"generated":{"line":1,"column":673}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":53,"column":3},"generated":{"line":1,"column":675}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":53,"column":3},"generated":{"line":1,"column":680}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":53,"column":3},"generated":{"line":1,"column":688}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":58,"column":1},"generated":{"line":1,"column":690}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":56,"column":11},"generated":{"line":1,"column":697}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":56,"column":11},"generated":{"line":1,"column":699}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":56,"column":18},"generated":{"line":1,"column":709}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":56,"column":28},"generated":{"line":1,"column":714}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":56,"column":32},"generated":{"line":1,"column":723}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":56,"column":46},"generated":{"line":1,"column":725}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":57,"column":3},"generated":{"line":1,"column":728}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":57,"column":3},"generated":{"line":1,"column":735}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":57,"column":3},"generated":{"line":1,"column":737}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":57,"column":3},"generated":{"line":1,"column":747}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":57,"column":3},"generated":{"line":1,"column":751}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":57,"column":3},"generated":{"line":1,"column":753}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":57,"column":3},"generated":{"line":1,"column":755}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":57,"column":3},"generated":{"line":1,"column":760}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":57,"column":3},"generated":{"line":1,"column":768}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":57,"column":3},"generated":{"line":1,"column":773}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":58,"column":1},"generated":{"line":1,"column":784}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":52,"column":61},"generated":{"line":1,"column":786}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":789}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":797}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":809}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":811}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":815}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":817}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":47},"generated":{"line":1,"column":826}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":69,"column":2},"generated":{"line":1,"column":829}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":69,"column":2},"generated":{"line":1,"column":838}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":72,"column":4},"generated":{"line":1,"column":840}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":72,"column":10},"generated":{"line":1,"column":842}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":72,"column":21},"generated":{"line":1,"column":844}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":70,"column":22},"generated":{"line":1,"column":847}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":70,"column":22},"generated":{"line":1,"column":851}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":70,"column":22},"generated":{"line":1,"column":853}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":70,"column":22},"generated":{"line":1,"column":855}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":70,"column":61},"generated":{"line":1,"column":860}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":70,"column":61},"generated":{"line":1,"column":865}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":70,"column":61},"generated":{"line":1,"column":869}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":74,"column":3},"generated":{"line":1,"column":874}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":66,"column":2},"generated":{"line":1,"column":881}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":66,"column":2},"generated":{"line":1,"column":883}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":66,"column":20},"generated":{"line":1,"column":891}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":73,"column":4},"generated":{"line":1,"column":893}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":73,"column":9},"generated":{"line":1,"column":895}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":73,"column":16},"generated":{"line":1,"column":901}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":903}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":905}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":913}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":916}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":74,"column":3},"generated":{"line":1,"column":918}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":920}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":69,"column":2},"generated":{"line":1,"column":927}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":69,"column":2},"generated":{"line":1,"column":929}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":69,"column":2},"generated":{"line":1,"column":939}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":69,"column":14},"generated":{"line":1,"column":941}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":79,"column":8},"generated":{"line":1,"column":944}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":79,"column":19},"generated":{"line":1,"column":946}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":79,"column":20},"generated":{"line":1,"column":956}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":79,"column":20},"generated":{"line":1,"column":962}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":79,"column":20},"generated":{"line":1,"column":971}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":80,"column":8},"generated":{"line":1,"column":974}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":80,"column":8},"generated":{"line":1,"column":978}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":81,"column":6},"generated":{"line":1,"column":980}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":82,"column":5},"generated":{"line":1,"column":984}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":82,"column":5},"generated":{"line":1,"column":986}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":82,"column":5},"generated":{"line":1,"column":991}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":82,"column":5},"generated":{"line":1,"column":999}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":82,"column":5},"generated":{"line":1,"column":1004}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":82,"column":5},"generated":{"line":1,"column":1009}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":82,"column":5},"generated":{"line":1,"column":1017}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":82,"column":5},"generated":{"line":1,"column":1019}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":82,"column":5},"generated":{"line":1,"column":1024}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":83,"column":6},"generated":{"line":1,"column":1033}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":83,"column":6},"generated":{"line":1,"column":1039}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":85,"column":5},"generated":{"line":1,"column":1042}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":84,"column":6},"generated":{"line":1,"column":1054}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":84,"column":6},"generated":{"line":1,"column":1059}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":84,"column":13},"generated":{"line":1,"column":1071}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":84,"column":13},"generated":{"line":1,"column":1077}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":87,"column":3},"generated":{"line":1,"column":1080}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":87,"column":3},"generated":{"line":1,"column":1085}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":87,"column":3},"generated":{"line":1,"column":1097}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":87,"column":3},"generated":{"line":1,"column":1102}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":1106}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":1108}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":1109}},{"source":"../../../src/internal/operators/map.ts","name":null,"original":{"line":65,"column":34},"generated":{"line":1,"column":1111}}],"sources":{"../../../src/internal/operators/map.ts":"import { Operator } from '../Operator';\nimport { Subscriber } from '../Subscriber';\nimport { Observable } from '../Observable';\nimport { OperatorFunction } from '../types';\n\n/**\n * Applies a given `project` function to each value emitted by the source\n * Observable, and emits the resulting values as an Observable.\n *\n * <span class=\"informal\">Like [Array.prototype.map()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map),\n * it passes each source value through a transformation function to get\n * corresponding output values.</span>\n *\n * ![](map.png)\n *\n * Similar to the well known `Array.prototype.map` function, this operator\n * applies a projection to each value and emits that projection in the output\n * Observable.\n *\n * ## Example\n * Map every click to the clientX position of that click\n * ```javascript\n * const clicks = fromEvent(document, 'click');\n * const positions = clicks.pipe(map(ev => ev.clientX));\n * positions.subscribe(x => console.log(x));\n * ```\n *\n * @see {@link mapTo}\n * @see {@link pluck}\n *\n * @param {function(value: T, index: number): R} project The function to apply\n * to each `value` emitted by the source Observable. The `index` parameter is\n * the number `i` for the i-th emission that has happened since the\n * subscription, starting from the number `0`.\n * @param {any} [thisArg] An optional argument to define what `this` is in the\n * `project` function.\n * @return {Observable<R>} An Observable that emits the values from the source\n * Observable transformed by the given `project` function.\n * @method map\n * @owner Observable\n */\nexport function map<T, R>(project: (value: T, index: number) => R, thisArg?: any): OperatorFunction<T, R> {\n return function mapOperation(source: Observable<T>): Observable<R> {\n if (typeof project !== 'function') {\n throw new TypeError('argument is not a function. Are you looking for `mapTo()`?');\n }\n return source.lift(new MapOperator(project, thisArg));\n };\n}\n\nexport class MapOperator<T, R> implements Operator<T, R> {\n constructor(private project: (value: T, index: number) => R, private thisArg: any) {\n }\n\n call(subscriber: Subscriber<R>, source: any): any {\n return source.subscribe(new MapSubscriber(subscriber, this.project, this.thisArg));\n }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass MapSubscriber<T, R> extends Subscriber<T> {\n count: number = 0;\n private thisArg: any;\n\n constructor(destination: Subscriber<R>,\n private project: (value: T, index: number) => R,\n thisArg: any) {\n super(destination);\n this.thisArg = thisArg || this;\n }\n\n // NOTE: This looks unoptimized, but it's actually purposefully NOT\n // using try/catch optimizations.\n protected _next(value: T) {\n let result: any;\n try {\n result = this.project.call(this.thisArg, value, this.count++);\n } catch (err) {\n this.destination.error(err);\n return;\n }\n this.destination.next(result);\n }\n}\n"},"lineCount":null}},"hash":"7b437398b4493512832774c9dce7d8d2","cacheData":{"env":{}}} |