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

1 line
14 KiB
JSON

{"id":"oOfO","dependencies":[{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/@pushrocks/smarttime/ts/smarttime.units.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/smarttime/package.json","includedInParent":true,"mtime":1545395356342}],"generated":{"js":"\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:!0}),exports.units={years:(s=1)=>3154e7*s,months:(s=1)=>2628e6*s,weeks:(s=1)=>6048e5*s,days:(s=1)=>864e5*s,hours:(s=1)=>36e5*s,minutes:(s=1)=>6e4*s},exports.getMilliSecondsFromUnits=(s=>{let e=0,t=s=>{e+=s};return s.years&&t(exports.units.years(s.years)),s.months&&t(exports.units.months(s.months)),s.weeks&&t(exports.units.weeks(s.weeks)),s.days&&t(exports.units.days(s.days)),s.hours&&t(exports.units.hours(s.hours)),s.minutes&&t(exports.units.minutes(s.minutes)),e});","map":{"mappings":[{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":1,"column":11},"generated":{"line":1,"column":68}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":1,"column":11},"generated":{"line":1,"column":76}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":1,"column":19},"generated":{"line":1,"column":82}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":2,"column":2},"generated":{"line":1,"column":83}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":2,"column":9},"generated":{"line":1,"column":89}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":2,"column":10},"generated":{"line":1,"column":90}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":2,"column":21},"generated":{"line":1,"column":92}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":3,"column":22},"generated":{"line":1,"column":96}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":3,"column":11},"generated":{"line":1,"column":103}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":5,"column":2},"generated":{"line":1,"column":105}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":5,"column":10},"generated":{"line":1,"column":112}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":5,"column":11},"generated":{"line":1,"column":113}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":5,"column":22},"generated":{"line":1,"column":115}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":6,"column":22},"generated":{"line":1,"column":119}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":6,"column":11},"generated":{"line":1,"column":126}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":8,"column":2},"generated":{"line":1,"column":128}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":8,"column":9},"generated":{"line":1,"column":134}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":8,"column":10},"generated":{"line":1,"column":135}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":8,"column":21},"generated":{"line":1,"column":137}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":9,"column":22},"generated":{"line":1,"column":141}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":9,"column":11},"generated":{"line":1,"column":148}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":11,"column":2},"generated":{"line":1,"column":150}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":11,"column":8},"generated":{"line":1,"column":155}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":11,"column":9},"generated":{"line":1,"column":156}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":11,"column":20},"generated":{"line":1,"column":158}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":12,"column":22},"generated":{"line":1,"column":162}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":12,"column":11},"generated":{"line":1,"column":168}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":14,"column":2},"generated":{"line":1,"column":170}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":14,"column":9},"generated":{"line":1,"column":176}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":14,"column":10},"generated":{"line":1,"column":177}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":14,"column":21},"generated":{"line":1,"column":179}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":15,"column":22},"generated":{"line":1,"column":183}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":15,"column":11},"generated":{"line":1,"column":188}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":17,"column":2},"generated":{"line":1,"column":190}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":17,"column":11},"generated":{"line":1,"column":198}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":17,"column":12},"generated":{"line":1,"column":199}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":17,"column":23},"generated":{"line":1,"column":201}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":18,"column":22},"generated":{"line":1,"column":205}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":18,"column":11},"generated":{"line":1,"column":209}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":31,"column":11},"generated":{"line":1,"column":212}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":31,"column":11},"generated":{"line":1,"column":220}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":31,"column":38},"generated":{"line":1,"column":245}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":31,"column":39},"generated":{"line":1,"column":246}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":32,"column":2},"generated":{"line":1,"column":250}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":32,"column":6},"generated":{"line":1,"column":254}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":32,"column":27},"generated":{"line":1,"column":256}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":33,"column":6},"generated":{"line":1,"column":258}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":33,"column":24},"generated":{"line":1,"column":260}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":34,"column":4},"generated":{"line":1,"column":264}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":34,"column":46},"generated":{"line":1,"column":267}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":55,"column":2},"generated":{"line":1,"column":270}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":36,"column":6},"generated":{"line":1,"column":277}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":36,"column":21},"generated":{"line":1,"column":279}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":37,"column":4},"generated":{"line":1,"column":286}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":37,"column":20},"generated":{"line":1,"column":288}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":37,"column":20},"generated":{"line":1,"column":296}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":37,"column":26},"generated":{"line":1,"column":302}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":37,"column":32},"generated":{"line":1,"column":308}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":37,"column":47},"generated":{"line":1,"column":310}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":39,"column":6},"generated":{"line":1,"column":318}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":39,"column":21},"generated":{"line":1,"column":320}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":40,"column":4},"generated":{"line":1,"column":328}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":40,"column":20},"generated":{"line":1,"column":330}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":40,"column":20},"generated":{"line":1,"column":338}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":40,"column":26},"generated":{"line":1,"column":344}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":40,"column":33},"generated":{"line":1,"column":351}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":40,"column":48},"generated":{"line":1,"column":353}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":42,"column":6},"generated":{"line":1,"column":362}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":42,"column":21},"generated":{"line":1,"column":364}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":43,"column":4},"generated":{"line":1,"column":371}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":43,"column":20},"generated":{"line":1,"column":373}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":43,"column":20},"generated":{"line":1,"column":381}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":43,"column":26},"generated":{"line":1,"column":387}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":43,"column":32},"generated":{"line":1,"column":393}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":43,"column":47},"generated":{"line":1,"column":395}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":45,"column":6},"generated":{"line":1,"column":403}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":45,"column":21},"generated":{"line":1,"column":405}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":46,"column":4},"generated":{"line":1,"column":411}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":46,"column":20},"generated":{"line":1,"column":413}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":46,"column":20},"generated":{"line":1,"column":421}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":46,"column":26},"generated":{"line":1,"column":427}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":46,"column":31},"generated":{"line":1,"column":432}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":46,"column":46},"generated":{"line":1,"column":434}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":48,"column":6},"generated":{"line":1,"column":441}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":48,"column":21},"generated":{"line":1,"column":443}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":49,"column":4},"generated":{"line":1,"column":450}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":49,"column":20},"generated":{"line":1,"column":452}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":49,"column":20},"generated":{"line":1,"column":460}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":49,"column":26},"generated":{"line":1,"column":466}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":49,"column":32},"generated":{"line":1,"column":472}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":49,"column":47},"generated":{"line":1,"column":474}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":51,"column":6},"generated":{"line":1,"column":482}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":51,"column":21},"generated":{"line":1,"column":484}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":52,"column":4},"generated":{"line":1,"column":493}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":52,"column":20},"generated":{"line":1,"column":495}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":52,"column":20},"generated":{"line":1,"column":503}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":52,"column":26},"generated":{"line":1,"column":509}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":52,"column":34},"generated":{"line":1,"column":517}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":52,"column":49},"generated":{"line":1,"column":519}},{"source":"../ts/smarttime.units.ts","name":null,"original":{"line":55,"column":9},"generated":{"line":1,"column":529}}],"sources":{"../ts/smarttime.units.ts":"export let units = {\n years: (timesArg = 1): number => {\n return timesArg * 3.154e10;\n },\n months: (timesArg = 1): number => {\n return timesArg * 2.628e9;\n },\n weeks: (timesArg = 1) => {\n return timesArg * 6.048e8;\n },\n days: (timesArg = 1) => {\n return timesArg * 8.64e7;\n },\n hours: (timesArg = 1) => {\n return timesArg * 3.6e6;\n },\n minutes: (timesArg = 1) => {\n return timesArg * 60000;\n }\n};\n\nexport interface IUnitCombinationArg {\n years?: number;\n months?: number;\n weeks?: number;\n days?: number;\n hours?: number;\n minutes?: number;\n}\n\nexport let getMilliSecondsFromUnits = (combinationArg: IUnitCombinationArg) => {\n let timeInMilliseconds = 0;\n let addMilliSeconds = milliSecondsArg => {\n timeInMilliseconds = timeInMilliseconds + milliSecondsArg;\n };\n if (combinationArg.years) {\n addMilliSeconds(units.years(combinationArg.years));\n }\n if (combinationArg.months) {\n addMilliSeconds(units.months(combinationArg.months));\n }\n if (combinationArg.weeks) {\n addMilliSeconds(units.weeks(combinationArg.weeks));\n }\n if (combinationArg.days) {\n addMilliSeconds(units.days(combinationArg.days));\n }\n if (combinationArg.hours) {\n addMilliSeconds(units.hours(combinationArg.hours));\n }\n if (combinationArg.minutes) {\n addMilliSeconds(units.minutes(combinationArg.minutes));\n }\n\n return timeInMilliseconds;\n};\n"},"lineCount":null}},"hash":"18c603274b40c0483ead15e8077baa9c","cacheData":{"env":{}}}