webdetector/.cache/31/42b5df67d5c78e91ede8f7ce3503c6.json
2018-12-21 13:36:28 +01:00

1 line
13 KiB
JSON

{"id":"G/K2","dependencies":[{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/@pushrocks/smartpromise/ts/index.ts","includedInParent":true,"mtime":1530600267000},{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/package.json","includedInParent":true,"mtime":1545395749058},{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/@pushrocks/smartpromise/package.json","includedInParent":true,"mtime":1545395354775},{"name":"util","loc":{"line":11,"column":21},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/@pushrocks/smartpromise/dist/index.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/util/util.js"}],"generated":{"js":"\"use strict\";var e=this&&this.__awaiter||function(e,t,r,o){return new(r||(r=Promise))(function(s,i){function n(e){try{u(o.next(e))}catch(t){i(t)}}function c(e){try{u(o.throw(e))}catch(t){i(t)}}function u(e){e.done?s(e.value):new r(function(t){t(e.value)}).then(n,c)}u((o=o.apply(e,t||[])).next())})};Object.defineProperty(exports,\"__esModule\",{value:!0});const t=require(\"util\");class r{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t,this.status=\"pending\"})}}exports.Deferred=r,exports.defer=(()=>new r),exports.resolvedPromise=(e=>Promise.resolve(e)),exports.rejectedPromise=(e=>Promise.reject(e)),exports.promisify=t.promisify,exports.map=((t,r)=>e(this,void 0,void 0,function*(){let e=exports.promisify(r),o=[],s=[];for(let r of t){let t=e(r);o.push(t),t.then(e=>{s.push(e)})}return yield Promise.all(o),s}));","map":{"mappings":[{"source":"../ts/index.ts","name":null,"original":{"line":1,"column":0},"generated":{"line":1,"column":355}},{"source":"../ts/index.ts","name":null,"original":{"line":1,"column":0},"generated":{"line":1,"column":361}},{"source":"../ts/index.ts","name":null,"original":{"line":1,"column":0},"generated":{"line":1,"column":363}},{"source":"../ts/index.ts","name":null,"original":{"line":1,"column":0},"generated":{"line":1,"column":371}},{"source":"../ts/index.ts","name":null,"original":{"line":13,"column":0},"generated":{"line":1,"column":379}},{"source":"../ts/index.ts","name":null,"original":{"line":13,"column":0},"generated":{"line":1,"column":385}},{"source":"../ts/index.ts","name":null,"original":{"line":18,"column":2},"generated":{"line":1,"column":387}},{"source":"../ts/index.ts","name":null,"original":{"line":19,"column":4},"generated":{"line":1,"column":401}},{"source":"../ts/index.ts","name":null,"original":{"line":19,"column":9},"generated":{"line":1,"column":406}},{"source":"../ts/index.ts","name":null,"original":{"line":19,"column":19},"generated":{"line":1,"column":414}},{"source":"../ts/index.ts","name":null,"original":{"line":19,"column":23},"generated":{"line":1,"column":418}},{"source":"../ts/index.ts","name":null,"original":{"line":19,"column":34},"generated":{"line":1,"column":426}},{"source":"../ts/index.ts","name":null,"original":{"line":19,"column":35},"generated":{"line":1,"column":427}},{"source":"../ts/index.ts","name":null,"original":{"line":19,"column":44},"generated":{"line":1,"column":429}},{"source":"../ts/index.ts","name":null,"original":{"line":20,"column":6},"generated":{"line":1,"column":434}},{"source":"../ts/index.ts","name":null,"original":{"line":20,"column":11},"generated":{"line":1,"column":439}},{"source":"../ts/index.ts","name":null,"original":{"line":20,"column":21},"generated":{"line":1,"column":447}},{"source":"../ts/index.ts","name":null,"original":{"line":21,"column":6},"generated":{"line":1,"column":449}},{"source":"../ts/index.ts","name":null,"original":{"line":21,"column":11},"generated":{"line":1,"column":454}},{"source":"../ts/index.ts","name":null,"original":{"line":21,"column":20},"generated":{"line":1,"column":461}},{"source":"../ts/index.ts","name":null,"original":{"line":22,"column":6},"generated":{"line":1,"column":463}},{"source":"../ts/index.ts","name":null,"original":{"line":22,"column":11},"generated":{"line":1,"column":468}},{"source":"../ts/index.ts","name":null,"original":{"line":22,"column":20},"generated":{"line":1,"column":475}},{"source":"../ts/index.ts","name":null,"original":{"line":13,"column":0},"generated":{"line":1,"column":488}},{"source":"../ts/index.ts","name":null,"original":{"line":13,"column":0},"generated":{"line":1,"column":496}},{"source":"../ts/index.ts","name":null,"original":{"line":13,"column":0},"generated":{"line":1,"column":505}},{"source":"../ts/index.ts","name":null,"original":{"line":27,"column":11},"generated":{"line":1,"column":507}},{"source":"../ts/index.ts","name":null,"original":{"line":27,"column":11},"generated":{"line":1,"column":515}},{"source":"../ts/index.ts","name":null,"original":{"line":27,"column":19},"generated":{"line":1,"column":521}},{"source":"../ts/index.ts","name":null,"original":{"line":28,"column":9},"generated":{"line":1,"column":526}},{"source":"../ts/index.ts","name":null,"original":{"line":28,"column":13},"generated":{"line":1,"column":530}},{"source":"../ts/index.ts","name":null,"original":{"line":34,"column":11},"generated":{"line":1,"column":533}},{"source":"../ts/index.ts","name":null,"original":{"line":34,"column":11},"generated":{"line":1,"column":541}},{"source":"../ts/index.ts","name":null,"original":{"line":34,"column":29},"generated":{"line":1,"column":557}},{"source":"../ts/index.ts","name":null,"original":{"line":34,"column":33},"generated":{"line":1,"column":558}},{"source":"../ts/index.ts","name":null,"original":{"line":35,"column":9},"generated":{"line":1,"column":561}},{"source":"../ts/index.ts","name":null,"original":{"line":35,"column":17},"generated":{"line":1,"column":569}},{"source":"../ts/index.ts","name":null,"original":{"line":35,"column":25},"generated":{"line":1,"column":577}},{"source":"../ts/index.ts","name":null,"original":{"line":41,"column":11},"generated":{"line":1,"column":581}},{"source":"../ts/index.ts","name":null,"original":{"line":41,"column":11},"generated":{"line":1,"column":589}},{"source":"../ts/index.ts","name":null,"original":{"line":41,"column":29},"generated":{"line":1,"column":605}},{"source":"../ts/index.ts","name":null,"original":{"line":41,"column":29},"generated":{"line":1,"column":606}},{"source":"../ts/index.ts","name":null,"original":{"line":42,"column":9},"generated":{"line":1,"column":609}},{"source":"../ts/index.ts","name":null,"original":{"line":42,"column":17},"generated":{"line":1,"column":617}},{"source":"../ts/index.ts","name":null,"original":{"line":42,"column":24},"generated":{"line":1,"column":624}},{"source":"../ts/index.ts","name":null,"original":{"line":45,"column":11},"generated":{"line":1,"column":628}},{"source":"../ts/index.ts","name":null,"original":{"line":45,"column":11},"generated":{"line":1,"column":636}},{"source":"../ts/index.ts","name":null,"original":{"line":45,"column":23},"generated":{"line":1,"column":646}},{"source":"../ts/index.ts","name":null,"original":{"line":45,"column":28},"generated":{"line":1,"column":648}},{"source":"../ts/index.ts","name":null,"original":{"line":47,"column":11},"generated":{"line":1,"column":658}},{"source":"../ts/index.ts","name":null,"original":{"line":47,"column":11},"generated":{"line":1,"column":666}},{"source":"../ts/index.ts","name":null,"original":{"line":47,"column":17},"generated":{"line":1,"column":670}},{"source":"../ts/index.ts","name":null,"original":{"line":47,"column":27},"generated":{"line":1,"column":672}},{"source":"../ts/index.ts","name":null,"original":{"line":47,"column":42},"generated":{"line":1,"column":674}},{"source":"../ts/index.ts","name":null,"original":{"line":47,"column":57},"generated":{"line":1,"column":678}},{"source":"../ts/index.ts","name":null,"original":{"line":47,"column":57},"generated":{"line":1,"column":680}},{"source":"../ts/index.ts","name":null,"original":{"line":47,"column":57},"generated":{"line":1,"column":690}},{"source":"../ts/index.ts","name":null,"original":{"line":47,"column":57},"generated":{"line":1,"column":697}},{"source":"../ts/index.ts","name":null,"original":{"line":47,"column":57},"generated":{"line":1,"column":699}},{"source":"../ts/index.ts","name":null,"original":{"line":48,"column":2},"generated":{"line":1,"column":711}},{"source":"../ts/index.ts","name":null,"original":{"line":48,"column":6},"generated":{"line":1,"column":715}},{"source":"../ts/index.ts","name":null,"original":{"line":48,"column":27},"generated":{"line":1,"column":717}},{"source":"../ts/index.ts","name":null,"original":{"line":48,"column":27},"generated":{"line":1,"column":725}},{"source":"../ts/index.ts","name":null,"original":{"line":48,"column":37},"generated":{"line":1,"column":735}},{"source":"../ts/index.ts","name":null,"original":{"line":49,"column":6},"generated":{"line":1,"column":738}},{"source":"../ts/index.ts","name":null,"original":{"line":49,"column":37},"generated":{"line":1,"column":740}},{"source":"../ts/index.ts","name":null,"original":{"line":50,"column":6},"generated":{"line":1,"column":743}},{"source":"../ts/index.ts","name":null,"original":{"line":50,"column":20},"generated":{"line":1,"column":745}},{"source":"../ts/index.ts","name":null,"original":{"line":51,"column":2},"generated":{"line":1,"column":748}},{"source":"../ts/index.ts","name":null,"original":{"line":51,"column":7},"generated":{"line":1,"column":752}},{"source":"../ts/index.ts","name":null,"original":{"line":51,"column":11},"generated":{"line":1,"column":756}},{"source":"../ts/index.ts","name":null,"original":{"line":51,"column":19},"generated":{"line":1,"column":761}},{"source":"../ts/index.ts","name":null,"original":{"line":51,"column":29},"generated":{"line":1,"column":763}},{"source":"../ts/index.ts","name":null,"original":{"line":52,"column":4},"generated":{"line":1,"column":764}},{"source":"../ts/index.ts","name":null,"original":{"line":52,"column":8},"generated":{"line":1,"column":768}},{"source":"../ts/index.ts","name":null,"original":{"line":52,"column":32},"generated":{"line":1,"column":770}},{"source":"../ts/index.ts","name":null,"original":{"line":52,"column":51},"generated":{"line":1,"column":772}},{"source":"../ts/index.ts","name":null,"original":{"line":53,"column":4},"generated":{"line":1,"column":775}},{"source":"../ts/index.ts","name":null,"original":{"line":53,"column":17},"generated":{"line":1,"column":777}},{"source":"../ts/index.ts","name":null,"original":{"line":53,"column":22},"generated":{"line":1,"column":782}},{"source":"../ts/index.ts","name":null,"original":{"line":54,"column":4},"generated":{"line":1,"column":785}},{"source":"../ts/index.ts","name":null,"original":{"line":54,"column":12},"generated":{"line":1,"column":787}},{"source":"../ts/index.ts","name":null,"original":{"line":54,"column":17},"generated":{"line":1,"column":792}},{"source":"../ts/index.ts","name":null,"original":{"line":55,"column":6},"generated":{"line":1,"column":796}},{"source":"../ts/index.ts","name":null,"original":{"line":55,"column":18},"generated":{"line":1,"column":798}},{"source":"../ts/index.ts","name":null,"original":{"line":55,"column":23},"generated":{"line":1,"column":803}},{"source":"../ts/index.ts","name":null,"original":{"line":59,"column":2},"generated":{"line":1,"column":808}},{"source":"../ts/index.ts","name":null,"original":{"line":58,"column":8},"generated":{"line":1,"column":821}},{"source":"../ts/index.ts","name":null,"original":{"line":58,"column":16},"generated":{"line":1,"column":829}},{"source":"../ts/index.ts","name":null,"original":{"line":58,"column":20},"generated":{"line":1,"column":833}},{"source":"../ts/index.ts","name":null,"original":{"line":59,"column":9},"generated":{"line":1,"column":836}}],"sources":{"../ts/index.ts":"import * as util from 'util';\n\nexport interface IResolve<T> {\n (value?: T | Promise<T>): void;\n}\n\nexport interface IReject {\n (reason?: any): void;\n}\n\nexport type TDeferredStatus = 'pending' | 'fulfilled' | 'rejected';\n\nexport class Deferred<T> {\n promise: Promise<T>;\n resolve: IResolve<T>;\n reject: IReject;\n status: TDeferredStatus;\n constructor() {\n this.promise = new Promise<T>((resolve, reject) => {\n this.resolve = resolve;\n this.reject = reject;\n this.status = 'pending';\n });\n }\n}\n\nexport let defer = <T>() => {\n return new Deferred<T>();\n};\n\n/**\n * Creates a new resolved promise for the provided value.\n */\nexport let resolvedPromise = <T>(value?: T): Promise<T> => {\n return Promise.resolve(value);\n};\n\n/**\n * Creates a new rejected promise for the provided reason.\n */\nexport let rejectedPromise = err => {\n return Promise.reject(err);\n};\n\nexport let promisify = util.promisify;\n\nexport let map = async <T>(inputArg: T[], functionArg) => {\n let promisifedFunction = promisify(functionArg);\n let promiseArray: Promise<any>[] = [];\n let resultArray = [];\n for (let item of inputArg) {\n let promise: Promise<any> = promisifedFunction(item);\n promiseArray.push(promise);\n promise.then(x => {\n resultArray.push(x);\n });\n }\n await Promise.all(promiseArray);\n return resultArray;\n};\n"},"lineCount":null}},"hash":"ada32ca97392e29a233afdb3da17123f","cacheData":{"env":{}}}