webdetector/.cache/ec/eaa42f22078800982d22fbccec4574.json
2018-12-21 13:36:28 +01:00

1 line
11 KiB
JSON

{"id":"mh0h","dependencies":[{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/@pushrocks/lik/ts/lik.limitedarray.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/@pushrocks/lik/package.json","includedInParent":true,"mtime":1545395355371}],"generated":{"js":"\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:!0});class r{constructor(r){this.array=[],this.arrayLimit=r}addOne(r){this.array.unshift(r),this.array.length>this.arrayLimit&&(this.array.length=this.arrayLimit)}addMany(r){for(let t of r)this.addOne(t)}setLimit(r){this.arrayLimit=r,this.array.length>this.arrayLimit&&(this.array.length=this.arrayLimit)}getAverage(){if(\"number\"==typeof this.array[0]){let r=0;for(let t of this.array){r+=t}return r/this.array.length}return null}}exports.LimitedArray=r;","map":{"mappings":[{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":3,"column":0},"generated":{"line":1,"column":68}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":3,"column":13},"generated":{"line":1,"column":74}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":6,"column":2},"generated":{"line":1,"column":76}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":6,"column":14},"generated":{"line":1,"column":88}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":4,"column":2},"generated":{"line":1,"column":91}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":4,"column":2},"generated":{"line":1,"column":96}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":4,"column":15},"generated":{"line":1,"column":102}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":7,"column":4},"generated":{"line":1,"column":105}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":7,"column":9},"generated":{"line":1,"column":110}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":7,"column":22},"generated":{"line":1,"column":121}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":10,"column":2},"generated":{"line":1,"column":123}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":10,"column":9},"generated":{"line":1,"column":130}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":11,"column":4},"generated":{"line":1,"column":133}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":11,"column":9},"generated":{"line":1,"column":138}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":11,"column":15},"generated":{"line":1,"column":144}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":11,"column":23},"generated":{"line":1,"column":152}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":12,"column":8},"generated":{"line":1,"column":155}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":12,"column":13},"generated":{"line":1,"column":160}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":12,"column":19},"generated":{"line":1,"column":166}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":12,"column":28},"generated":{"line":1,"column":173}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":12,"column":33},"generated":{"line":1,"column":178}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":13,"column":6},"generated":{"line":1,"column":191}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":13,"column":11},"generated":{"line":1,"column":196}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":13,"column":17},"generated":{"line":1,"column":202}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":13,"column":26},"generated":{"line":1,"column":209}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":13,"column":31},"generated":{"line":1,"column":214}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":17,"column":2},"generated":{"line":1,"column":226}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":17,"column":10},"generated":{"line":1,"column":234}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":18,"column":4},"generated":{"line":1,"column":237}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":18,"column":9},"generated":{"line":1,"column":241}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":18,"column":13},"generated":{"line":1,"column":245}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":18,"column":26},"generated":{"line":1,"column":250}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":19,"column":6},"generated":{"line":1,"column":252}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":19,"column":11},"generated":{"line":1,"column":257}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":19,"column":18},"generated":{"line":1,"column":264}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":23,"column":2},"generated":{"line":1,"column":267}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":23,"column":11},"generated":{"line":1,"column":276}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":24,"column":4},"generated":{"line":1,"column":279}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":24,"column":9},"generated":{"line":1,"column":284}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":24,"column":22},"generated":{"line":1,"column":295}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":25,"column":8},"generated":{"line":1,"column":297}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":25,"column":13},"generated":{"line":1,"column":302}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":25,"column":19},"generated":{"line":1,"column":308}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":25,"column":28},"generated":{"line":1,"column":315}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":25,"column":33},"generated":{"line":1,"column":320}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":26,"column":6},"generated":{"line":1,"column":333}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":26,"column":11},"generated":{"line":1,"column":338}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":26,"column":17},"generated":{"line":1,"column":344}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":26,"column":26},"generated":{"line":1,"column":351}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":26,"column":31},"generated":{"line":1,"column":356}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":30,"column":2},"generated":{"line":1,"column":368}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":31,"column":4},"generated":{"line":1,"column":381}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":31,"column":33},"generated":{"line":1,"column":384}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":31,"column":15},"generated":{"line":1,"column":401}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":31,"column":20},"generated":{"line":1,"column":406}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":31,"column":26},"generated":{"line":1,"column":412}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":31,"column":43},"generated":{"line":1,"column":415}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":32,"column":6},"generated":{"line":1,"column":416}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":32,"column":10},"generated":{"line":1,"column":420}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":32,"column":16},"generated":{"line":1,"column":422}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":33,"column":6},"generated":{"line":1,"column":424}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":33,"column":11},"generated":{"line":1,"column":428}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":33,"column":15},"generated":{"line":1,"column":432}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":33,"column":30},"generated":{"line":1,"column":437}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":33,"column":35},"generated":{"line":1,"column":442}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":33,"column":42},"generated":{"line":1,"column":448}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":35,"column":8},"generated":{"line":1,"column":449}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":34,"column":34},"generated":{"line":1,"column":452}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":37,"column":6},"generated":{"line":1,"column":454}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":37,"column":13},"generated":{"line":1,"column":461}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":37,"column":19},"generated":{"line":1,"column":463}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":37,"column":24},"generated":{"line":1,"column":468}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":37,"column":30},"generated":{"line":1,"column":474}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":39,"column":6},"generated":{"line":1,"column":481}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":39,"column":13},"generated":{"line":1,"column":488}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":3,"column":0},"generated":{"line":1,"column":494}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":3,"column":0},"generated":{"line":1,"column":502}},{"source":"../ts/lik.limitedarray.ts","name":null,"original":{"line":3,"column":0},"generated":{"line":1,"column":515}}],"sources":{"../ts/lik.limitedarray.ts":"import * as plugins from './lik.plugins';\n\nexport class LimitedArray<T> {\n array: T[] = [];\n arrayLimit: number;\n constructor(limitArg: number) {\n this.arrayLimit = limitArg;\n }\n\n addOne(objectArg: T) {\n this.array.unshift(objectArg);\n if (this.array.length > this.arrayLimit) {\n this.array.length = this.arrayLimit;\n }\n }\n\n addMany(objectArrayArg: T[]) {\n for (let objectArg of objectArrayArg) {\n this.addOne(objectArg);\n }\n }\n\n setLimit(limitArg: number) {\n this.arrayLimit = limitArg;\n if (this.array.length > this.arrayLimit) {\n this.array.length = this.arrayLimit;\n }\n }\n\n getAverage(): number {\n if (typeof this.array[0] === 'number') {\n let sum = 0;\n for (let localNumber of this.array) {\n let localNumberAny: any = localNumber;\n sum = sum + localNumberAny;\n }\n return sum / this.array.length;\n } else {\n return null;\n }\n }\n}\n"},"lineCount":null}},"hash":"67ff917ae719ddfe9b6b7ff9158cb82e","cacheData":{"env":{}}}