1 line
8.7 KiB
JSON
1 line
8.7 KiB
JSON
{"id":"Z56L","dependencies":[{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/_esm5/internal/util/Immediate.js.map","includedInParent":true,"mtime":499162500000},{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/rxjs/src/internal/util/Immediate.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}],"generated":{"js":"\"use strict\";Object.defineProperty(exports,\"__esModule\",{value:!0}),exports.Immediate=void 0;var e=1,t={};function r(e){var r=t[e];r&&r()}var i={setImmediate:function(i){var n=e++;return t[n]=i,Promise.resolve().then(function(){return r(n)}),n},clearImmediate:function(e){delete t[e]}};exports.Immediate=i;","map":{"mappings":[{"source":"../../../src/internal/util/Immediate.ts","name":null,"original":{"line":13,"column":2},"generated":{"line":1,"column":0}},{"source":"../../../src/internal/util/Immediate.ts","name":null,"original":{"line":13,"column":2},"generated":{"line":1,"column":13}},{"source":"../../../src/internal/util/Immediate.ts","name":null,"original":{"line":13,"column":2},"generated":{"line":1,"column":20}},{"source":"../../../src/internal/util/Immediate.ts","name":null,"original":{"line":13,"column":2},"generated":{"line":1,"column":35}},{"source":"../../../src/internal/util/Immediate.ts","name":null,"original":{"line":13,"column":2},"generated":{"line":1,"column":43}},{"source":"../../../src/internal/util/Immediate.ts","name":null,"original":{"line":13,"column":2},"generated":{"line":1,"column":56}},{"source":"../../../src/internal/util/Immediate.ts","name":null,"original":{"line":13,"column":2},"generated":{"line":1,"column":57}},{"source":"../../../src/internal/util/Immediate.ts","name":null,"original":{"line":13,"column":2},"generated":{"line":1,"column":64}},{"source":"../../../src/internal/util/Immediate.ts","name":null,"original":{"line":13,"column":2},"generated":{"line":1,"column":68}},{"source":"../../../src/internal/util/Immediate.ts","name":null,"original":{"line":13,"column":2},"generated":{"line":1,"column":76}},{"source":"../../../src/internal/util/Immediate.ts","name":null,"original":{"line":13,"column":2},"generated":{"line":1,"column":91}},{"source":"../../../src/internal/util/Immediate.ts","name":null,"original":{"line":3,"column":0},"generated":{"line":1,"column":93}},{"source":"../../../src/internal/util/Immediate.ts","name":null,"original":{"line":3,"column":6},"generated":{"line":1,"column":97}},{"source":"../../../src/internal/util/Immediate.ts","name":null,"original":{"line":3,"column":19},"generated":{"line":1,"column":99}},{"source":"../../../src/internal/util/Immediate.ts","name":null,"original":{"line":5,"column":0},"generated":{"line":1,"column":101}},{"source":"../../../src/internal/util/Immediate.ts","name":null,"original":{"line":5,"column":9},"generated":{"line":1,"column":103}},{"source":"../../../src/internal/util/Immediate.ts","name":null,"original":{"line":6,"column":8},"generated":{"line":1,"column":106}},{"source":"../../../src/internal/util/Immediate.ts","name":null,"original":{"line":6,"column":8},"generated":{"line":1,"column":115}},{"source":"../../../src/internal/util/Immediate.ts","name":null,"original":{"line":6,"column":13},"generated":{"line":1,"column":117}},{"source":"../../../src/internal/util/Immediate.ts","name":null,"original":{"line":7,"column":6},"generated":{"line":1,"column":120}},{"source":"../../../src/internal/util/Immediate.ts","name":null,"original":{"line":7,"column":6},"generated":{"line":1,"column":124}},{"source":"../../../src/internal/util/Immediate.ts","name":null,"original":{"line":7,"column":10},"generated":{"line":1,"column":126}},{"source":"../../../src/internal/util/Immediate.ts","name":null,"original":{"line":7,"column":10},"generated":{"line":1,"column":128}},{"source":"../../../src/internal/util/Immediate.ts","name":null,"original":{"line":8,"column":4},"generated":{"line":1,"column":131}},{"source":"../../../src/internal/util/Immediate.ts","name":null,"original":{"line":9,"column":3},"generated":{"line":1,"column":134}},{"source":"../../../src/internal/util/Immediate.ts","name":null,"original":{"line":13,"column":2},"generated":{"line":1,"column":138}},{"source":"../../../src/internal/util/Immediate.ts","name":null,"original":{"line":13,"column":2},"generated":{"line":1,"column":142}},{"source":"../../../src/internal/util/Immediate.ts","name":null,"original":{"line":13,"column":2},"generated":{"line":1,"column":144}},{"source":"../../../src/internal/util/Immediate.ts","name":null,"original":{"line":14,"column":10},"generated":{"line":1,"column":145}},{"source":"../../../src/internal/util/Immediate.ts","name":null,"original":{"line":14,"column":16},"generated":{"line":1,"column":158}},{"source":"../../../src/internal/util/Immediate.ts","name":null,"original":{"line":14,"column":19},"generated":{"line":1,"column":167}},{"source":"../../../src/internal/util/Immediate.ts","name":null,"original":{"line":15,"column":4},"generated":{"line":1,"column":170}},{"source":"../../../src/internal/util/Immediate.ts","name":null,"original":{"line":15,"column":4},"generated":{"line":1,"column":174}},{"source":"../../../src/internal/util/Immediate.ts","name":null,"original":{"line":15,"column":17},"generated":{"line":1,"column":176}},{"source":"../../../src/internal/util/Immediate.ts","name":null,"original":{"line":18,"column":3},"generated":{"line":1,"column":180}},{"source":"../../../src/internal/util/Immediate.ts","name":null,"original":{"line":16,"column":4},"generated":{"line":1,"column":187}},{"source":"../../../src/internal/util/Immediate.ts","name":null,"original":{"line":16,"column":12},"generated":{"line":1,"column":189}},{"source":"../../../src/internal/util/Immediate.ts","name":null,"original":{"line":16,"column":27},"generated":{"line":1,"column":192}},{"source":"../../../src/internal/util/Immediate.ts","name":null,"original":{"line":17,"column":4},"generated":{"line":1,"column":194}},{"source":"../../../src/internal/util/Immediate.ts","name":null,"original":{"line":17,"column":11},"generated":{"line":1,"column":202}},{"source":"../../../src/internal/util/Immediate.ts","name":null,"original":{"line":17,"column":18},"generated":{"line":1,"column":212}},{"source":"../../../src/internal/util/Immediate.ts","name":null,"original":{"line":17,"column":18},"generated":{"line":1,"column":217}},{"source":"../../../src/internal/util/Immediate.ts","name":null,"original":{"line":17,"column":18},"generated":{"line":1,"column":228}},{"source":"../../../src/internal/util/Immediate.ts","name":null,"original":{"line":17,"column":18},"generated":{"line":1,"column":235}},{"source":"../../../src/internal/util/Immediate.ts","name":null,"original":{"line":17,"column":18},"generated":{"line":1,"column":237}},{"source":"../../../src/internal/util/Immediate.ts","name":null,"original":{"line":18,"column":3},"generated":{"line":1,"column":242}},{"source":"../../../src/internal/util/Immediate.ts","name":null,"original":{"line":21,"column":11},"generated":{"line":1,"column":245}},{"source":"../../../src/internal/util/Immediate.ts","name":null,"original":{"line":21,"column":11},"generated":{"line":1,"column":260}},{"source":"../../../src/internal/util/Immediate.ts","name":null,"original":{"line":21,"column":25},"generated":{"line":1,"column":269}},{"source":"../../../src/internal/util/Immediate.ts","name":null,"original":{"line":22,"column":3},"generated":{"line":1,"column":279}},{"source":"../../../src/internal/util/Immediate.ts","name":null,"original":{"line":22,"column":3},"generated":{"line":1,"column":281}},{"source":"../../../src/internal/util/Immediate.ts","name":null,"original":{"line":13,"column":2},"generated":{"line":1,"column":286}},{"source":"../../../src/internal/util/Immediate.ts","name":null,"original":{"line":13,"column":2},"generated":{"line":1,"column":294}},{"source":"../../../src/internal/util/Immediate.ts","name":null,"original":{"line":13,"column":2},"generated":{"line":1,"column":304}}],"sources":{"../../../src/internal/util/Immediate.ts":"let nextHandle = 1;\n\nconst tasksByHandle: { [handle: string]: () => void } = {};\n\nfunction runIfPresent(handle: number) {\n const cb = tasksByHandle[handle];\n if (cb) {\n cb();\n }\n}\n\nexport const Immediate = {\n setImmediate(cb: () => void): number {\n const handle = nextHandle++;\n tasksByHandle[handle] = cb;\n Promise.resolve().then(() => runIfPresent(handle));\n return handle;\n },\n\n clearImmediate(handle: number): void {\n delete tasksByHandle[handle];\n },\n};\n"},"lineCount":null}},"hash":"a748a3dc8bdec61883bfa66e553c0a12","cacheData":{"env":{}}} |