@pnpm/exe 11.0.0-alpha.9 → 11.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/node_modules/@gar/promise-retry/lib/index.js +28 -0
- package/dist/node_modules/@gar/promise-retry/package.json +48 -0
- package/dist/node_modules/@npmcli/agent/package.json +7 -7
- package/dist/node_modules/@npmcli/fs/package.json +4 -4
- package/dist/node_modules/abbrev/package.json +11 -15
- package/dist/node_modules/balanced-match/package.json +4 -7
- package/dist/node_modules/brace-expansion/dist/commonjs/index.js +1 -1
- package/dist/node_modules/brace-expansion/dist/esm/index.js +1 -1
- package/dist/node_modules/brace-expansion/package.json +3 -3
- package/dist/node_modules/cacache/package.json +10 -11
- package/dist/node_modules/glob/dist/commonjs/glob.js +2 -1
- package/dist/node_modules/glob/dist/commonjs/index.min.js +4 -0
- package/dist/node_modules/glob/dist/commonjs/pattern.js +4 -0
- package/dist/node_modules/glob/dist/esm/glob.js +2 -1
- package/dist/node_modules/glob/dist/esm/index.min.js +4 -0
- package/dist/node_modules/glob/dist/esm/pattern.js +4 -0
- package/dist/node_modules/glob/package.json +38 -37
- package/dist/node_modules/iconv-lite/encodings/dbcs-codec.js +460 -525
- package/dist/node_modules/iconv-lite/encodings/dbcs-data.js +179 -182
- package/dist/node_modules/iconv-lite/encodings/index.js +15 -15
- package/dist/node_modules/iconv-lite/encodings/internal.js +168 -148
- package/dist/node_modules/iconv-lite/encodings/sbcs-codec.js +55 -52
- package/dist/node_modules/iconv-lite/encodings/sbcs-data.js +174 -175
- package/dist/node_modules/iconv-lite/encodings/utf16.js +121 -131
- package/dist/node_modules/iconv-lite/encodings/utf32.js +226 -238
- package/dist/node_modules/iconv-lite/encodings/utf7.js +208 -215
- package/dist/node_modules/iconv-lite/lib/bom-handling.js +30 -34
- package/dist/node_modules/iconv-lite/lib/helpers/merge-exports.js +13 -0
- package/dist/node_modules/iconv-lite/lib/index.js +125 -123
- package/dist/node_modules/iconv-lite/lib/streams.js +92 -96
- package/dist/node_modules/iconv-lite/package.json +34 -8
- package/dist/node_modules/isexe/package.json +65 -18
- package/dist/node_modules/lru-cache/dist/commonjs/index.js +134 -85
- package/dist/node_modules/lru-cache/dist/commonjs/index.min.js +1 -1
- package/dist/node_modules/lru-cache/dist/esm/index.js +134 -85
- package/dist/node_modules/lru-cache/dist/esm/index.min.js +1 -1
- package/dist/node_modules/lru-cache/package.json +18 -41
- package/dist/node_modules/make-fetch-happen/lib/remote.js +1 -1
- package/dist/node_modules/make-fetch-happen/package.json +10 -10
- package/dist/node_modules/minimatch/dist/commonjs/ast.js +266 -21
- package/dist/node_modules/minimatch/dist/commonjs/index.js +178 -92
- package/dist/node_modules/minimatch/dist/esm/ast.js +266 -21
- package/dist/node_modules/minimatch/dist/esm/index.js +178 -92
- package/dist/node_modules/minimatch/package.json +4 -4
- package/dist/node_modules/minipass/dist/commonjs/index.js +13 -3
- package/dist/node_modules/minipass/dist/esm/index.js +3 -1
- package/dist/node_modules/minipass/package.json +9 -14
- package/dist/node_modules/minipass-fetch/lib/body.js +25 -15
- package/dist/node_modules/minipass-fetch/package.json +7 -7
- package/dist/node_modules/minipass-sized/dist/commonjs/index.js +69 -0
- package/dist/node_modules/minipass-sized/dist/esm/index.js +64 -0
- package/dist/node_modules/minipass-sized/package.json +39 -9
- package/dist/node_modules/node-gyp/.release-please-manifest.json +1 -1
- package/dist/node_modules/node-gyp/bin/node-gyp.js +7 -0
- package/dist/node_modules/node-gyp/gyp/.release-please-manifest.json +1 -1
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSNew.py +3 -3
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSVersion.py +26 -1
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py +1 -1
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja.py +3 -4
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/xcodeproj_file.py +1 -1
- package/dist/node_modules/node-gyp/gyp/pyproject.toml +1 -1
- package/dist/node_modules/node-gyp/lib/build.js +2 -2
- package/dist/node_modules/node-gyp/lib/find-python.js +2 -8
- package/dist/node_modules/node-gyp/lib/find-visualstudio.js +11 -5
- package/dist/node_modules/node-gyp/lib/install.js +1 -1
- package/dist/node_modules/node-gyp/lib/process-release.js +3 -3
- package/dist/node_modules/node-gyp/package.json +13 -13
- package/dist/node_modules/nopt/package.json +5 -5
- package/dist/node_modules/path-scurry/package.json +8 -24
- package/dist/node_modules/proc-log/lib/index.js +10 -5
- package/dist/node_modules/proc-log/package.json +5 -5
- package/dist/node_modules/retry/lib/retry.js +2 -2
- package/dist/node_modules/retry/lib/retry_operation.js +10 -6
- package/dist/node_modules/retry/package.json +6 -2
- package/dist/node_modules/ssri/lib/index.js +33 -63
- package/dist/node_modules/ssri/package.json +17 -17
- package/dist/node_modules/tar/dist/commonjs/index.min.js +2 -2
- package/dist/node_modules/tar/dist/commonjs/unpack.js +4 -4
- package/dist/node_modules/tar/dist/esm/index.min.js +2 -2
- package/dist/node_modules/tar/dist/esm/unpack.js +4 -4
- package/dist/node_modules/tar/package.json +6 -6
- package/dist/node_modules/unique-filename/package.json +5 -5
- package/dist/node_modules/unique-slug/package.json +4 -4
- package/dist/node_modules/which/package.json +29 -20
- package/dist/pnpm.mjs +225713 -208017
- package/dist/worker.js +4838 -5926
- package/package.json +10 -10
- package/setup.js +12 -14
- package/dist/node_modules/@isaacs/cliui/dist/commonjs/ansi-regex/index.js +0 -16
- package/dist/node_modules/@isaacs/cliui/dist/commonjs/ansi-styles/index.js +0 -170
- package/dist/node_modules/@isaacs/cliui/dist/commonjs/eastasianwidth/index.js +0 -307
- package/dist/node_modules/@isaacs/cliui/dist/commonjs/emoji-regex/index.js +0 -7
- package/dist/node_modules/@isaacs/cliui/dist/commonjs/index.js +0 -322
- package/dist/node_modules/@isaacs/cliui/dist/commonjs/index.min.js +0 -12
- package/dist/node_modules/@isaacs/cliui/dist/commonjs/string-width/index.js +0 -49
- package/dist/node_modules/@isaacs/cliui/dist/commonjs/strip-ansi/index.js +0 -8
- package/dist/node_modules/@isaacs/cliui/dist/commonjs/wrap-ansi/index.js +0 -176
- package/dist/node_modules/@isaacs/cliui/dist/esm/ansi-regex/index.js +0 -12
- package/dist/node_modules/@isaacs/cliui/dist/esm/ansi-styles/index.js +0 -167
- package/dist/node_modules/@isaacs/cliui/dist/esm/eastasianwidth/index.js +0 -299
- package/dist/node_modules/@isaacs/cliui/dist/esm/emoji-regex/index.js +0 -3
- package/dist/node_modules/@isaacs/cliui/dist/esm/index.js +0 -317
- package/dist/node_modules/@isaacs/cliui/dist/esm/index.min.js +0 -12
- package/dist/node_modules/@isaacs/cliui/dist/esm/string-width/index.js +0 -46
- package/dist/node_modules/@isaacs/cliui/dist/esm/strip-ansi/index.js +0 -4
- package/dist/node_modules/@isaacs/cliui/dist/esm/wrap-ansi/index.js +0 -172
- package/dist/node_modules/@isaacs/cliui/package.json +0 -163
- package/dist/node_modules/cross-spawn/LICENSE +0 -21
- package/dist/node_modules/cross-spawn/index.js +0 -39
- package/dist/node_modules/cross-spawn/lib/enoent.js +0 -59
- package/dist/node_modules/cross-spawn/lib/parse.js +0 -91
- package/dist/node_modules/cross-spawn/lib/util/escape.js +0 -47
- package/dist/node_modules/cross-spawn/lib/util/readShebang.js +0 -23
- package/dist/node_modules/cross-spawn/lib/util/resolveCommand.js +0 -52
- package/dist/node_modules/cross-spawn/package.json +0 -73
- package/dist/node_modules/encoding/.prettierrc.js +0 -8
- package/dist/node_modules/encoding/LICENSE +0 -16
- package/dist/node_modules/encoding/lib/encoding.js +0 -83
- package/dist/node_modules/encoding/package.json +0 -18
- package/dist/node_modules/err-code/.eslintrc.json +0 -7
- package/dist/node_modules/err-code/bower.json +0 -30
- package/dist/node_modules/err-code/index.js +0 -47
- package/dist/node_modules/err-code/index.umd.js +0 -51
- package/dist/node_modules/err-code/package.json +0 -34
- package/dist/node_modules/foreground-child/LICENSE +0 -15
- package/dist/node_modules/foreground-child/dist/commonjs/all-signals.js +0 -58
- package/dist/node_modules/foreground-child/dist/commonjs/index.js +0 -123
- package/dist/node_modules/foreground-child/dist/commonjs/proxy-signals.js +0 -38
- package/dist/node_modules/foreground-child/dist/commonjs/watchdog.js +0 -50
- package/dist/node_modules/foreground-child/dist/esm/all-signals.js +0 -52
- package/dist/node_modules/foreground-child/dist/esm/index.js +0 -115
- package/dist/node_modules/foreground-child/dist/esm/proxy-signals.js +0 -34
- package/dist/node_modules/foreground-child/dist/esm/watchdog.js +0 -46
- package/dist/node_modules/foreground-child/package.json +0 -106
- package/dist/node_modules/glob/dist/esm/bin.d.mts +0 -3
- package/dist/node_modules/glob/dist/esm/bin.mjs +0 -346
- package/dist/node_modules/iconv-lite/.github/dependabot.yml +0 -11
- package/dist/node_modules/iconv-lite/.idea/codeStyles/Project.xml +0 -47
- package/dist/node_modules/iconv-lite/.idea/codeStyles/codeStyleConfig.xml +0 -5
- package/dist/node_modules/iconv-lite/.idea/iconv-lite.iml +0 -12
- package/dist/node_modules/iconv-lite/.idea/inspectionProfiles/Project_Default.xml +0 -6
- package/dist/node_modules/iconv-lite/.idea/modules.xml +0 -8
- package/dist/node_modules/iconv-lite/.idea/vcs.xml +0 -6
- package/dist/node_modules/isexe/LICENSE +0 -15
- package/dist/node_modules/isexe/index.js +0 -57
- package/dist/node_modules/isexe/mode.js +0 -41
- package/dist/node_modules/isexe/windows.js +0 -42
- package/dist/node_modules/jackspeak/dist/commonjs/index.js +0 -944
- package/dist/node_modules/jackspeak/dist/commonjs/index.min.js +0 -33
- package/dist/node_modules/jackspeak/dist/commonjs/package.json +0 -3
- package/dist/node_modules/jackspeak/dist/esm/index.js +0 -936
- package/dist/node_modules/jackspeak/dist/esm/index.min.js +0 -33
- package/dist/node_modules/jackspeak/dist/esm/package.json +0 -3
- package/dist/node_modules/jackspeak/package.json +0 -115
- package/dist/node_modules/lru-cache/LICENSE +0 -15
- package/dist/node_modules/minipass/LICENSE +0 -15
- package/dist/node_modules/minipass-sized/index.js +0 -67
- package/dist/node_modules/minipass-sized/node_modules/minipass/LICENSE +0 -15
- package/dist/node_modules/minipass-sized/node_modules/minipass/index.js +0 -649
- package/dist/node_modules/minipass-sized/node_modules/minipass/package.json +0 -56
- package/dist/node_modules/minipass-sized/package-lock.json +0 -3464
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/commonjs/package.json +0 -3
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/esm/package.json +0 -3
- package/dist/node_modules/node-gyp/node_modules/isexe/package.json +0 -78
- package/dist/node_modules/node-gyp/node_modules/which/LICENSE +0 -15
- package/dist/node_modules/node-gyp/node_modules/which/package.json +0 -52
- package/dist/node_modules/package-json-from-dist/dist/commonjs/index.js +0 -134
- package/dist/node_modules/package-json-from-dist/dist/commonjs/package.json +0 -3
- package/dist/node_modules/package-json-from-dist/dist/esm/index.js +0 -129
- package/dist/node_modules/package-json-from-dist/dist/esm/package.json +0 -3
- package/dist/node_modules/package-json-from-dist/package.json +0 -68
- package/dist/node_modules/path-key/index.js +0 -16
- package/dist/node_modules/path-key/license +0 -9
- package/dist/node_modules/path-key/package.json +0 -39
- package/dist/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/index.js +0 -1589
- package/dist/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/index.min.js +0 -2
- package/dist/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/package.json +0 -3
- package/dist/node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.js +0 -1585
- package/dist/node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.min.js +0 -2
- package/dist/node_modules/path-scurry/node_modules/lru-cache/dist/esm/package.json +0 -3
- package/dist/node_modules/path-scurry/node_modules/lru-cache/package.json +0 -101
- package/dist/node_modules/promise-retry/index.js +0 -52
- package/dist/node_modules/promise-retry/package.json +0 -37
- package/dist/node_modules/retry/equation.gif +0 -0
- package/dist/node_modules/shebang-command/index.js +0 -19
- package/dist/node_modules/shebang-command/license +0 -9
- package/dist/node_modules/shebang-command/package.json +0 -34
- package/dist/node_modules/shebang-regex/index.js +0 -2
- package/dist/node_modules/shebang-regex/license +0 -9
- package/dist/node_modules/shebang-regex/package.json +0 -35
- package/dist/node_modules/signal-exit/LICENSE.txt +0 -16
- package/dist/node_modules/signal-exit/dist/cjs/browser.js +0 -10
- package/dist/node_modules/signal-exit/dist/cjs/index.js +0 -279
- package/dist/node_modules/signal-exit/dist/cjs/package.json +0 -3
- package/dist/node_modules/signal-exit/dist/cjs/signals.js +0 -42
- package/dist/node_modules/signal-exit/dist/mjs/browser.js +0 -4
- package/dist/node_modules/signal-exit/dist/mjs/index.js +0 -275
- package/dist/node_modules/signal-exit/dist/mjs/package.json +0 -3
- package/dist/node_modules/signal-exit/dist/mjs/signals.js +0 -39
- package/dist/node_modules/signal-exit/package.json +0 -106
- package/dist/node_modules/which/bin/node-which +0 -52
- package/dist/node_modules/which/which.js +0 -125
- /package/dist/node_modules/{promise-retry → @gar/promise-retry}/LICENSE +0 -0
- /package/dist/node_modules/{node-gyp/node_modules/isexe → isexe}/dist/commonjs/index.js +0 -0
- /package/dist/node_modules/{node-gyp/node_modules/isexe → isexe}/dist/commonjs/index.min.js +0 -0
- /package/dist/node_modules/{node-gyp/node_modules/isexe → isexe}/dist/commonjs/options.js +0 -0
- /package/dist/node_modules/{@isaacs/cliui → isexe}/dist/commonjs/package.json +0 -0
- /package/dist/node_modules/{node-gyp/node_modules/isexe → isexe}/dist/commonjs/posix.js +0 -0
- /package/dist/node_modules/{node-gyp/node_modules/isexe → isexe}/dist/commonjs/win32.js +0 -0
- /package/dist/node_modules/{node-gyp/node_modules/isexe → isexe}/dist/esm/index.js +0 -0
- /package/dist/node_modules/{node-gyp/node_modules/isexe → isexe}/dist/esm/index.min.js +0 -0
- /package/dist/node_modules/{node-gyp/node_modules/isexe → isexe}/dist/esm/options.js +0 -0
- /package/dist/node_modules/{@isaacs/cliui → isexe}/dist/esm/package.json +0 -0
- /package/dist/node_modules/{node-gyp/node_modules/isexe → isexe}/dist/esm/posix.js +0 -0
- /package/dist/node_modules/{node-gyp/node_modules/isexe → isexe}/dist/esm/win32.js +0 -0
- /package/dist/node_modules/{foreground-child → minipass-sized}/dist/commonjs/package.json +0 -0
- /package/dist/node_modules/{foreground-child → minipass-sized}/dist/esm/package.json +0 -0
- /package/dist/node_modules/{node-gyp/node_modules/which → which}/bin/which.js +0 -0
- /package/dist/node_modules/{node-gyp/node_modules/which → which}/lib/index.js +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var M=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,I=new Set,R=typeof process=="object"&&process?process:{},x=(a,t,e,i)=>{typeof R.emitWarning=="function"?R.emitWarning(a,t,e,i):console.error(`[${e}] ${t}: ${a}`)},C=globalThis.AbortController,D=globalThis.AbortSignal;if(typeof C>"u"){D=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(i,s){this._onabort.push(s)}},C=class{constructor(){t()}signal=new D;abort(i){if(!this.signal.aborted){this.signal.reason=i,this.signal.aborted=!0;for(let s of this.signal._onabort)s(i);this.signal.onabort?.(i)}}};let a=R.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",t=()=>{a&&(a=!1,x("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",t))}}var G=a=>!I.has(a),H=Symbol("type"),y=a=>a&&a===Math.floor(a)&&a>0&&isFinite(a),U=a=>y(a)?a<=Math.pow(2,8)?Uint8Array:a<=Math.pow(2,16)?Uint16Array:a<=Math.pow(2,32)?Uint32Array:a<=Number.MAX_SAFE_INTEGER?z:null:null,z=class extends Array{constructor(t){super(t),this.fill(0)}},W=class a{heap;length;static#o=!1;static create(t){let e=U(t);if(!e)return[];a.#o=!0;let i=new a(t,e);return a.#o=!1,i}constructor(t,e){if(!a.#o)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new e(t),this.length=0}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}},L=class a{#o;#c;#w;#C;#S;#L;#I;#m;get perf(){return this.#m}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#n;#_;#s;#i;#t;#a;#u;#l;#h;#b;#r;#y;#A;#d;#g;#T;#v;#f;#x;static unsafeExposeInternals(t){return{starts:t.#A,ttls:t.#d,autopurgeTimers:t.#g,sizes:t.#y,keyMap:t.#s,keyList:t.#i,valList:t.#t,next:t.#a,prev:t.#u,get head(){return t.#l},get tail(){return t.#h},free:t.#b,isBackgroundFetch:e=>t.#e(e),backgroundFetch:(e,i,s,h)=>t.#G(e,i,s,h),moveToTail:e=>t.#D(e),indexes:e=>t.#F(e),rindexes:e=>t.#O(e),isStale:e=>t.#p(e)}}get max(){return this.#o}get maxSize(){return this.#c}get calculatedSize(){return this.#_}get size(){return this.#n}get fetchMethod(){return this.#L}get memoMethod(){return this.#I}get dispose(){return this.#w}get onInsert(){return this.#C}get disposeAfter(){return this.#S}constructor(t){let{max:e=0,ttl:i,ttlResolution:s=1,ttlAutopurge:h,updateAgeOnGet:n,updateAgeOnHas:o,allowStale:r,dispose:f,onInsert:m,disposeAfter:c,noDisposeOnSet:d,noUpdateTTL:g,maxSize:A=0,maxEntrySize:p=0,sizeCalculation:_,fetchMethod:l,memoMethod:w,noDeleteOnFetchRejection:b,noDeleteOnStaleGet:S,allowStaleOnFetchRejection:u,allowStaleOnFetchAbort:T,ignoreFetchAbort:F,perf:v}=t;if(v!==void 0&&typeof v?.now!="function")throw new TypeError("perf option must have a now() method if specified");if(this.#m=v??M,e!==0&&!y(e))throw new TypeError("max option must be a nonnegative integer");let O=e?U(e):Array;if(!O)throw new Error("invalid max value: "+e);if(this.#o=e,this.#c=A,this.maxEntrySize=p||this.#c,this.sizeCalculation=_,this.sizeCalculation){if(!this.#c&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(w!==void 0&&typeof w!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#I=w,l!==void 0&&typeof l!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#L=l,this.#v=!!l,this.#s=new Map,this.#i=new Array(e).fill(void 0),this.#t=new Array(e).fill(void 0),this.#a=new O(e),this.#u=new O(e),this.#l=0,this.#h=0,this.#b=W.create(e),this.#n=0,this.#_=0,typeof f=="function"&&(this.#w=f),typeof m=="function"&&(this.#C=m),typeof c=="function"?(this.#S=c,this.#r=[]):(this.#S=void 0,this.#r=void 0),this.#T=!!this.#w,this.#x=!!this.#C,this.#f=!!this.#S,this.noDisposeOnSet=!!d,this.noUpdateTTL=!!g,this.noDeleteOnFetchRejection=!!b,this.allowStaleOnFetchRejection=!!u,this.allowStaleOnFetchAbort=!!T,this.ignoreFetchAbort=!!F,this.maxEntrySize!==0){if(this.#c!==0&&!y(this.#c))throw new TypeError("maxSize must be a positive integer if specified");if(!y(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#B()}if(this.allowStale=!!r,this.noDeleteOnStaleGet=!!S,this.updateAgeOnGet=!!n,this.updateAgeOnHas=!!o,this.ttlResolution=y(s)||s===0?s:1,this.ttlAutopurge=!!h,this.ttl=i||0,this.ttl){if(!y(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#j()}if(this.#o===0&&this.ttl===0&&this.#c===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#o&&!this.#c){let E="LRU_CACHE_UNBOUNDED";G(E)&&(I.add(E),x("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",E,a))}}getRemainingTTL(t){return this.#s.has(t)?1/0:0}#j(){let t=new z(this.#o),e=new z(this.#o);this.#d=t,this.#A=e;let i=this.ttlAutopurge?new Array(this.#o):void 0;this.#g=i,this.#N=(n,o,r=this.#m.now())=>{if(e[n]=o!==0?r:0,t[n]=o,i?.[n]&&(clearTimeout(i[n]),i[n]=void 0),o!==0&&i){let f=setTimeout(()=>{this.#p(n)&&this.#E(this.#i[n],"expire")},o+1);f.unref&&f.unref(),i[n]=f}},this.#R=n=>{e[n]=t[n]!==0?this.#m.now():0},this.#z=(n,o)=>{if(t[o]){let r=t[o],f=e[o];if(!r||!f)return;n.ttl=r,n.start=f,n.now=s||h();let m=n.now-f;n.remainingTTL=r-m}};let s=0,h=()=>{let n=this.#m.now();if(this.ttlResolution>0){s=n;let o=setTimeout(()=>s=0,this.ttlResolution);o.unref&&o.unref()}return n};this.getRemainingTTL=n=>{let o=this.#s.get(n);if(o===void 0)return 0;let r=t[o],f=e[o];if(!r||!f)return 1/0;let m=(s||h())-f;return r-m},this.#p=n=>{let o=e[n],r=t[n];return!!r&&!!o&&(s||h())-o>r}}#R=()=>{};#z=()=>{};#N=()=>{};#p=()=>!1;#B(){let t=new z(this.#o);this.#_=0,this.#y=t,this.#W=e=>{this.#_-=t[e],t[e]=0},this.#P=(e,i,s,h)=>{if(this.#e(i))return 0;if(!y(s))if(h){if(typeof h!="function")throw new TypeError("sizeCalculation must be a function");if(s=h(i,e),!y(s))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return s},this.#U=(e,i,s)=>{if(t[e]=i,this.#c){let h=this.#c-t[e];for(;this.#_>h;)this.#M(!0)}this.#_+=t[e],s&&(s.entrySize=i,s.totalCalculatedSize=this.#_)}}#W=t=>{};#U=(t,e,i)=>{};#P=(t,e,i,s)=>{if(i||s)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#F({allowStale:t=this.allowStale}={}){if(this.#n)for(let e=this.#h;!(!this.#H(e)||((t||!this.#p(e))&&(yield e),e===this.#l));)e=this.#u[e]}*#O({allowStale:t=this.allowStale}={}){if(this.#n)for(let e=this.#l;!(!this.#H(e)||((t||!this.#p(e))&&(yield e),e===this.#h));)e=this.#a[e]}#H(t){return t!==void 0&&this.#s.get(this.#i[t])===t}*entries(){for(let t of this.#F())this.#t[t]!==void 0&&this.#i[t]!==void 0&&!this.#e(this.#t[t])&&(yield[this.#i[t],this.#t[t]])}*rentries(){for(let t of this.#O())this.#t[t]!==void 0&&this.#i[t]!==void 0&&!this.#e(this.#t[t])&&(yield[this.#i[t],this.#t[t]])}*keys(){for(let t of this.#F()){let e=this.#i[t];e!==void 0&&!this.#e(this.#t[t])&&(yield e)}}*rkeys(){for(let t of this.#O()){let e=this.#i[t];e!==void 0&&!this.#e(this.#t[t])&&(yield e)}}*values(){for(let t of this.#F())this.#t[t]!==void 0&&!this.#e(this.#t[t])&&(yield this.#t[t])}*rvalues(){for(let t of this.#O())this.#t[t]!==void 0&&!this.#e(this.#t[t])&&(yield this.#t[t])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(t,e={}){for(let i of this.#F()){let s=this.#t[i],h=this.#e(s)?s.__staleWhileFetching:s;if(h!==void 0&&t(h,this.#i[i],this))return this.get(this.#i[i],e)}}forEach(t,e=this){for(let i of this.#F()){let s=this.#t[i],h=this.#e(s)?s.__staleWhileFetching:s;h!==void 0&&t.call(e,h,this.#i[i],this)}}rforEach(t,e=this){for(let i of this.#O()){let s=this.#t[i],h=this.#e(s)?s.__staleWhileFetching:s;h!==void 0&&t.call(e,h,this.#i[i],this)}}purgeStale(){let t=!1;for(let e of this.#O({allowStale:!0}))this.#p(e)&&(this.#E(this.#i[e],"expire"),t=!0);return t}info(t){let e=this.#s.get(t);if(e===void 0)return;let i=this.#t[e],s=this.#e(i)?i.__staleWhileFetching:i;if(s===void 0)return;let h={value:s};if(this.#d&&this.#A){let n=this.#d[e],o=this.#A[e];if(n&&o){let r=n-(this.#m.now()-o);h.ttl=r,h.start=Date.now()}}return this.#y&&(h.size=this.#y[e]),h}dump(){let t=[];for(let e of this.#F({allowStale:!0})){let i=this.#i[e],s=this.#t[e],h=this.#e(s)?s.__staleWhileFetching:s;if(h===void 0||i===void 0)continue;let n={value:h};if(this.#d&&this.#A){n.ttl=this.#d[e];let o=this.#m.now()-this.#A[e];n.start=Math.floor(Date.now()-o)}this.#y&&(n.size=this.#y[e]),t.unshift([i,n])}return t}load(t){this.clear();for(let[e,i]of t){if(i.start){let s=Date.now()-i.start;i.start=this.#m.now()-s}this.set(e,i.value,i)}}set(t,e,i={}){if(e===void 0)return this.delete(t),this;let{ttl:s=this.ttl,start:h,noDisposeOnSet:n=this.noDisposeOnSet,sizeCalculation:o=this.sizeCalculation,status:r}=i,{noUpdateTTL:f=this.noUpdateTTL}=i,m=this.#P(t,e,i.size||0,o);if(this.maxEntrySize&&m>this.maxEntrySize)return r&&(r.set="miss",r.maxEntrySizeExceeded=!0),this.#E(t,"set"),this;let c=this.#n===0?void 0:this.#s.get(t);if(c===void 0)c=this.#n===0?this.#h:this.#b.length!==0?this.#b.pop():this.#n===this.#o?this.#M(!1):this.#n,this.#i[c]=t,this.#t[c]=e,this.#s.set(t,c),this.#a[this.#h]=c,this.#u[c]=this.#h,this.#h=c,this.#n++,this.#U(c,m,r),r&&(r.set="add"),f=!1,this.#x&&this.#C?.(e,t,"add");else{this.#D(c);let d=this.#t[c];if(e!==d){if(this.#v&&this.#e(d)){d.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:g}=d;g!==void 0&&!n&&(this.#T&&this.#w?.(g,t,"set"),this.#f&&this.#r?.push([g,t,"set"]))}else n||(this.#T&&this.#w?.(d,t,"set"),this.#f&&this.#r?.push([d,t,"set"]));if(this.#W(c),this.#U(c,m,r),this.#t[c]=e,r){r.set="replace";let g=d&&this.#e(d)?d.__staleWhileFetching:d;g!==void 0&&(r.oldValue=g)}}else r&&(r.set="update");this.#x&&this.onInsert?.(e,t,e===d?"update":"replace")}if(s!==0&&!this.#d&&this.#j(),this.#d&&(f||this.#N(c,s,h),r&&this.#z(r,c)),!n&&this.#f&&this.#r){let d=this.#r,g;for(;g=d?.shift();)this.#S?.(...g)}return this}pop(){try{for(;this.#n;){let t=this.#t[this.#l];if(this.#M(!0),this.#e(t)){if(t.__staleWhileFetching)return t.__staleWhileFetching}else if(t!==void 0)return t}}finally{if(this.#f&&this.#r){let t=this.#r,e;for(;e=t?.shift();)this.#S?.(...e)}}}#M(t){let e=this.#l,i=this.#i[e],s=this.#t[e];return this.#v&&this.#e(s)?s.__abortController.abort(new Error("evicted")):(this.#T||this.#f)&&(this.#T&&this.#w?.(s,i,"evict"),this.#f&&this.#r?.push([s,i,"evict"])),this.#W(e),this.#g?.[e]&&(clearTimeout(this.#g[e]),this.#g[e]=void 0),t&&(this.#i[e]=void 0,this.#t[e]=void 0,this.#b.push(e)),this.#n===1?(this.#l=this.#h=0,this.#b.length=0):this.#l=this.#a[e],this.#s.delete(i),this.#n--,e}has(t,e={}){let{updateAgeOnHas:i=this.updateAgeOnHas,status:s}=e,h=this.#s.get(t);if(h!==void 0){let n=this.#t[h];if(this.#e(n)&&n.__staleWhileFetching===void 0)return!1;if(this.#p(h))s&&(s.has="stale",this.#z(s,h));else return i&&this.#R(h),s&&(s.has="hit",this.#z(s,h)),!0}else s&&(s.has="miss");return!1}peek(t,e={}){let{allowStale:i=this.allowStale}=e,s=this.#s.get(t);if(s===void 0||!i&&this.#p(s))return;let h=this.#t[s];return this.#e(h)?h.__staleWhileFetching:h}#G(t,e,i,s){let h=e===void 0?void 0:this.#t[e];if(this.#e(h))return h;let n=new C,{signal:o}=i;o?.addEventListener("abort",()=>n.abort(o.reason),{signal:n.signal});let r={signal:n.signal,options:i,context:s},f=(p,_=!1)=>{let{aborted:l}=n.signal,w=i.ignoreFetchAbort&&p!==void 0,b=i.ignoreFetchAbort||!!(i.allowStaleOnFetchAbort&&p!==void 0);if(i.status&&(l&&!_?(i.status.fetchAborted=!0,i.status.fetchError=n.signal.reason,w&&(i.status.fetchAbortIgnored=!0)):i.status.fetchResolved=!0),l&&!w&&!_)return c(n.signal.reason,b);let S=g,u=this.#t[e];return(u===g||w&&_&&u===void 0)&&(p===void 0?S.__staleWhileFetching!==void 0?this.#t[e]=S.__staleWhileFetching:this.#E(t,"fetch"):(i.status&&(i.status.fetchUpdated=!0),this.set(t,p,r.options))),p},m=p=>(i.status&&(i.status.fetchRejected=!0,i.status.fetchError=p),c(p,!1)),c=(p,_)=>{let{aborted:l}=n.signal,w=l&&i.allowStaleOnFetchAbort,b=w||i.allowStaleOnFetchRejection,S=b||i.noDeleteOnFetchRejection,u=g;if(this.#t[e]===g&&(!S||!_&&u.__staleWhileFetching===void 0?this.#E(t,"fetch"):w||(this.#t[e]=u.__staleWhileFetching)),b)return i.status&&u.__staleWhileFetching!==void 0&&(i.status.returnedStale=!0),u.__staleWhileFetching;if(u.__returned===u)throw p},d=(p,_)=>{let l=this.#L?.(t,h,r);l&&l instanceof Promise&&l.then(w=>p(w===void 0?void 0:w),_),n.signal.addEventListener("abort",()=>{(!i.ignoreFetchAbort||i.allowStaleOnFetchAbort)&&(p(void 0),i.allowStaleOnFetchAbort&&(p=w=>f(w,!0)))})};i.status&&(i.status.fetchDispatched=!0);let g=new Promise(d).then(f,m),A=Object.assign(g,{__abortController:n,__staleWhileFetching:h,__returned:void 0});return e===void 0?(this.set(t,A,{...r.options,status:void 0}),e=this.#s.get(t)):this.#t[e]=A,A}#e(t){if(!this.#v)return!1;let e=t;return!!e&&e instanceof Promise&&e.hasOwnProperty("__staleWhileFetching")&&e.__abortController instanceof C}async fetch(t,e={}){let{allowStale:i=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:h=this.noDeleteOnStaleGet,ttl:n=this.ttl,noDisposeOnSet:o=this.noDisposeOnSet,size:r=0,sizeCalculation:f=this.sizeCalculation,noUpdateTTL:m=this.noUpdateTTL,noDeleteOnFetchRejection:c=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:d=this.allowStaleOnFetchRejection,ignoreFetchAbort:g=this.ignoreFetchAbort,allowStaleOnFetchAbort:A=this.allowStaleOnFetchAbort,context:p,forceRefresh:_=!1,status:l,signal:w}=e;if(!this.#v)return l&&(l.fetch="get"),this.get(t,{allowStale:i,updateAgeOnGet:s,noDeleteOnStaleGet:h,status:l});let b={allowStale:i,updateAgeOnGet:s,noDeleteOnStaleGet:h,ttl:n,noDisposeOnSet:o,size:r,sizeCalculation:f,noUpdateTTL:m,noDeleteOnFetchRejection:c,allowStaleOnFetchRejection:d,allowStaleOnFetchAbort:A,ignoreFetchAbort:g,status:l,signal:w},S=this.#s.get(t);if(S===void 0){l&&(l.fetch="miss");let u=this.#G(t,S,b,p);return u.__returned=u}else{let u=this.#t[S];if(this.#e(u)){let E=i&&u.__staleWhileFetching!==void 0;return l&&(l.fetch="inflight",E&&(l.returnedStale=!0)),E?u.__staleWhileFetching:u.__returned=u}let T=this.#p(S);if(!_&&!T)return l&&(l.fetch="hit"),this.#D(S),s&&this.#R(S),l&&this.#z(l,S),u;let F=this.#G(t,S,b,p),O=F.__staleWhileFetching!==void 0&&i;return l&&(l.fetch=T?"stale":"refresh",O&&T&&(l.returnedStale=!0)),O?F.__staleWhileFetching:F.__returned=F}}async forceFetch(t,e={}){let i=await this.fetch(t,e);if(i===void 0)throw new Error("fetch() returned undefined");return i}memo(t,e={}){let i=this.#I;if(!i)throw new Error("no memoMethod provided to constructor");let{context:s,forceRefresh:h,...n}=e,o=this.get(t,n);if(!h&&o!==void 0)return o;let r=i(t,o,{options:n,context:s});return this.set(t,r,n),r}get(t,e={}){let{allowStale:i=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:h=this.noDeleteOnStaleGet,status:n}=e,o=this.#s.get(t);if(o!==void 0){let r=this.#t[o],f=this.#e(r);return n&&this.#z(n,o),this.#p(o)?(n&&(n.get="stale"),f?(n&&i&&r.__staleWhileFetching!==void 0&&(n.returnedStale=!0),i?r.__staleWhileFetching:void 0):(h||this.#E(t,"expire"),n&&i&&(n.returnedStale=!0),i?r:void 0)):(n&&(n.get="hit"),f?r.__staleWhileFetching:(this.#D(o),s&&this.#R(o),r))}else n&&(n.get="miss")}#k(t,e){this.#u[e]=t,this.#a[t]=e}#D(t){t!==this.#h&&(t===this.#l?this.#l=this.#a[t]:this.#k(this.#u[t],this.#a[t]),this.#k(this.#h,t),this.#h=t)}delete(t){return this.#E(t,"delete")}#E(t,e){let i=!1;if(this.#n!==0){let s=this.#s.get(t);if(s!==void 0)if(this.#g?.[s]&&(clearTimeout(this.#g?.[s]),this.#g[s]=void 0),i=!0,this.#n===1)this.#V(e);else{this.#W(s);let h=this.#t[s];if(this.#e(h)?h.__abortController.abort(new Error("deleted")):(this.#T||this.#f)&&(this.#T&&this.#w?.(h,t,e),this.#f&&this.#r?.push([h,t,e])),this.#s.delete(t),this.#i[s]=void 0,this.#t[s]=void 0,s===this.#h)this.#h=this.#u[s];else if(s===this.#l)this.#l=this.#a[s];else{let n=this.#u[s];this.#a[n]=this.#a[s];let o=this.#a[s];this.#u[o]=this.#u[s]}this.#n--,this.#b.push(s)}}if(this.#f&&this.#r?.length){let s=this.#r,h;for(;h=s?.shift();)this.#S?.(...h)}return i}clear(){return this.#V("delete")}#V(t){for(let e of this.#O({allowStale:!0})){let i=this.#t[e];if(this.#e(i))i.__abortController.abort(new Error("deleted"));else{let s=this.#i[e];this.#T&&this.#w?.(i,s,t),this.#f&&this.#r?.push([i,s,t])}}if(this.#s.clear(),this.#t.fill(void 0),this.#i.fill(void 0),this.#d&&this.#A){this.#d.fill(0),this.#A.fill(0);for(let e of this.#g??[])e!==void 0&&clearTimeout(e);this.#g?.fill(void 0)}if(this.#y&&this.#y.fill(0),this.#l=0,this.#h=0,this.#b.length=0,this.#_=0,this.#n=0,this.#f&&this.#r){let e=this.#r,i;for(;i=e?.shift();)this.#S?.(...i)}}};export{L as LRUCache};
|
|
2
|
-
//# sourceMappingURL=index.min.js.map
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "lru-cache",
|
|
3
|
-
"description": "A cache object that deletes the least-recently-used items.",
|
|
4
|
-
"version": "11.2.6",
|
|
5
|
-
"author": "Isaac Z. Schlueter <i@izs.me>",
|
|
6
|
-
"keywords": [
|
|
7
|
-
"mru",
|
|
8
|
-
"lru",
|
|
9
|
-
"cache"
|
|
10
|
-
],
|
|
11
|
-
"sideEffects": false,
|
|
12
|
-
"scripts": {
|
|
13
|
-
"build": "npm run prepare",
|
|
14
|
-
"prepare": "tshy && bash fixup.sh",
|
|
15
|
-
"pretest": "npm run prepare",
|
|
16
|
-
"presnap": "npm run prepare",
|
|
17
|
-
"test": "tap",
|
|
18
|
-
"snap": "tap",
|
|
19
|
-
"preversion": "npm test",
|
|
20
|
-
"postversion": "npm publish",
|
|
21
|
-
"prepublishOnly": "git push origin --follow-tags",
|
|
22
|
-
"format": "prettier --write .",
|
|
23
|
-
"typedoc": "typedoc --tsconfig ./.tshy/esm.json ./src/*.ts",
|
|
24
|
-
"benchmark-results-typedoc": "bash scripts/benchmark-results-typedoc.sh",
|
|
25
|
-
"prebenchmark": "npm run prepare",
|
|
26
|
-
"benchmark": "make -C benchmark",
|
|
27
|
-
"preprofile": "npm run prepare",
|
|
28
|
-
"profile": "make -C benchmark profile"
|
|
29
|
-
},
|
|
30
|
-
"main": "./dist/commonjs/index.min.js",
|
|
31
|
-
"types": "./dist/commonjs/index.d.ts",
|
|
32
|
-
"tshy": {
|
|
33
|
-
"exports": {
|
|
34
|
-
"./raw": "./src/index.ts",
|
|
35
|
-
".": {
|
|
36
|
-
"import": {
|
|
37
|
-
"types": "./dist/esm/index.d.ts",
|
|
38
|
-
"default": "./dist/esm/index.min.js"
|
|
39
|
-
},
|
|
40
|
-
"require": {
|
|
41
|
-
"types": "./dist/commonjs/index.d.ts",
|
|
42
|
-
"default": "./dist/commonjs/index.min.js"
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
"repository": {
|
|
48
|
-
"type": "git",
|
|
49
|
-
"url": "git+ssh://git@github.com/isaacs/node-lru-cache.git"
|
|
50
|
-
},
|
|
51
|
-
"devDependencies": {
|
|
52
|
-
"@types/node": "^24.3.0",
|
|
53
|
-
"benchmark": "^2.1.4",
|
|
54
|
-
"esbuild": "^0.25.9",
|
|
55
|
-
"marked": "^4.2.12",
|
|
56
|
-
"mkdirp": "^3.0.1",
|
|
57
|
-
"prettier": "^3.6.2",
|
|
58
|
-
"tap": "^21.1.0",
|
|
59
|
-
"tshy": "^3.0.2",
|
|
60
|
-
"typedoc": "^0.28.12"
|
|
61
|
-
},
|
|
62
|
-
"license": "BlueOak-1.0.0",
|
|
63
|
-
"files": [
|
|
64
|
-
"dist"
|
|
65
|
-
],
|
|
66
|
-
"engines": {
|
|
67
|
-
"node": "20 || >=22"
|
|
68
|
-
},
|
|
69
|
-
"tap": {
|
|
70
|
-
"node-arg": [
|
|
71
|
-
"--expose-gc"
|
|
72
|
-
],
|
|
73
|
-
"plugin": [
|
|
74
|
-
"@tapjs/clock"
|
|
75
|
-
]
|
|
76
|
-
},
|
|
77
|
-
"exports": {
|
|
78
|
-
"./raw": {
|
|
79
|
-
"import": {
|
|
80
|
-
"types": "./dist/esm/index.d.ts",
|
|
81
|
-
"default": "./dist/esm/index.js"
|
|
82
|
-
},
|
|
83
|
-
"require": {
|
|
84
|
-
"types": "./dist/commonjs/index.d.ts",
|
|
85
|
-
"default": "./dist/commonjs/index.js"
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
".": {
|
|
89
|
-
"import": {
|
|
90
|
-
"types": "./dist/esm/index.d.ts",
|
|
91
|
-
"default": "./dist/esm/index.min.js"
|
|
92
|
-
},
|
|
93
|
-
"require": {
|
|
94
|
-
"types": "./dist/commonjs/index.d.ts",
|
|
95
|
-
"default": "./dist/commonjs/index.min.js"
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
},
|
|
99
|
-
"type": "module",
|
|
100
|
-
"module": "./dist/esm/index.min.js"
|
|
101
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var errcode = require('err-code');
|
|
4
|
-
var retry = require('retry');
|
|
5
|
-
|
|
6
|
-
var hasOwn = Object.prototype.hasOwnProperty;
|
|
7
|
-
|
|
8
|
-
function isRetryError(err) {
|
|
9
|
-
return err && err.code === 'EPROMISERETRY' && hasOwn.call(err, 'retried');
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
function promiseRetry(fn, options) {
|
|
13
|
-
var temp;
|
|
14
|
-
var operation;
|
|
15
|
-
|
|
16
|
-
if (typeof fn === 'object' && typeof options === 'function') {
|
|
17
|
-
// Swap options and fn when using alternate signature (options, fn)
|
|
18
|
-
temp = options;
|
|
19
|
-
options = fn;
|
|
20
|
-
fn = temp;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
operation = retry.operation(options);
|
|
24
|
-
|
|
25
|
-
return new Promise(function (resolve, reject) {
|
|
26
|
-
operation.attempt(function (number) {
|
|
27
|
-
Promise.resolve()
|
|
28
|
-
.then(function () {
|
|
29
|
-
return fn(function (err) {
|
|
30
|
-
if (isRetryError(err)) {
|
|
31
|
-
err = err.retried;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
throw errcode(new Error('Retrying'), 'EPROMISERETRY', { retried: err });
|
|
35
|
-
}, number);
|
|
36
|
-
})
|
|
37
|
-
.then(resolve, function (err) {
|
|
38
|
-
if (isRetryError(err)) {
|
|
39
|
-
err = err.retried;
|
|
40
|
-
|
|
41
|
-
if (operation.retry(err || new Error())) {
|
|
42
|
-
return;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
reject(err);
|
|
47
|
-
});
|
|
48
|
-
});
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
module.exports = promiseRetry;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "promise-retry",
|
|
3
|
-
"version": "2.0.1",
|
|
4
|
-
"description": "Retries a function that returns a promise, leveraging the power of the retry module.",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"test": "mocha --bail -t 10000"
|
|
8
|
-
},
|
|
9
|
-
"bugs": {
|
|
10
|
-
"url": "https://github.com/IndigoUnited/node-promise-retry/issues/"
|
|
11
|
-
},
|
|
12
|
-
"repository": {
|
|
13
|
-
"type": "git",
|
|
14
|
-
"url": "git://github.com/IndigoUnited/node-promise-retry.git"
|
|
15
|
-
},
|
|
16
|
-
"keywords": [
|
|
17
|
-
"retry",
|
|
18
|
-
"promise",
|
|
19
|
-
"backoff",
|
|
20
|
-
"repeat",
|
|
21
|
-
"replay"
|
|
22
|
-
],
|
|
23
|
-
"author": "IndigoUnited <hello@indigounited.com> (http://indigounited.com)",
|
|
24
|
-
"license": "MIT",
|
|
25
|
-
"devDependencies": {
|
|
26
|
-
"expect.js": "^0.3.1",
|
|
27
|
-
"mocha": "^8.0.1",
|
|
28
|
-
"sleep-promise": "^8.0.1"
|
|
29
|
-
},
|
|
30
|
-
"dependencies": {
|
|
31
|
-
"err-code": "^2.0.2",
|
|
32
|
-
"retry": "^0.12.0"
|
|
33
|
-
},
|
|
34
|
-
"engines": {
|
|
35
|
-
"node": ">=10"
|
|
36
|
-
}
|
|
37
|
-
}
|
|
Binary file
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
const shebangRegex = require('shebang-regex');
|
|
3
|
-
|
|
4
|
-
module.exports = (string = '') => {
|
|
5
|
-
const match = string.match(shebangRegex);
|
|
6
|
-
|
|
7
|
-
if (!match) {
|
|
8
|
-
return null;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
const [path, argument] = match[0].replace(/#! ?/, '').split(' ');
|
|
12
|
-
const binary = path.split('/').pop();
|
|
13
|
-
|
|
14
|
-
if (binary === 'env') {
|
|
15
|
-
return argument;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
return argument ? `${binary} ${argument}` : binary;
|
|
19
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) Kevin Mårtensson <kevinmartensson@gmail.com> (github.com/kevva)
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
-
|
|
7
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
-
|
|
9
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "shebang-command",
|
|
3
|
-
"version": "2.0.0",
|
|
4
|
-
"description": "Get the command from a shebang",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"repository": "kevva/shebang-command",
|
|
7
|
-
"author": {
|
|
8
|
-
"name": "Kevin Mårtensson",
|
|
9
|
-
"email": "kevinmartensson@gmail.com",
|
|
10
|
-
"url": "github.com/kevva"
|
|
11
|
-
},
|
|
12
|
-
"engines": {
|
|
13
|
-
"node": ">=8"
|
|
14
|
-
},
|
|
15
|
-
"scripts": {
|
|
16
|
-
"test": "xo && ava"
|
|
17
|
-
},
|
|
18
|
-
"files": [
|
|
19
|
-
"index.js"
|
|
20
|
-
],
|
|
21
|
-
"keywords": [
|
|
22
|
-
"cmd",
|
|
23
|
-
"command",
|
|
24
|
-
"parse",
|
|
25
|
-
"shebang"
|
|
26
|
-
],
|
|
27
|
-
"dependencies": {
|
|
28
|
-
"shebang-regex": "^3.0.0"
|
|
29
|
-
},
|
|
30
|
-
"devDependencies": {
|
|
31
|
-
"ava": "^2.3.0",
|
|
32
|
-
"xo": "^0.24.0"
|
|
33
|
-
}
|
|
34
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
-
|
|
7
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
-
|
|
9
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "shebang-regex",
|
|
3
|
-
"version": "3.0.0",
|
|
4
|
-
"description": "Regular expression for matching a shebang line",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"repository": "sindresorhus/shebang-regex",
|
|
7
|
-
"author": {
|
|
8
|
-
"name": "Sindre Sorhus",
|
|
9
|
-
"email": "sindresorhus@gmail.com",
|
|
10
|
-
"url": "sindresorhus.com"
|
|
11
|
-
},
|
|
12
|
-
"engines": {
|
|
13
|
-
"node": ">=8"
|
|
14
|
-
},
|
|
15
|
-
"scripts": {
|
|
16
|
-
"test": "xo && ava && tsd"
|
|
17
|
-
},
|
|
18
|
-
"files": [
|
|
19
|
-
"index.js",
|
|
20
|
-
"index.d.ts"
|
|
21
|
-
],
|
|
22
|
-
"keywords": [
|
|
23
|
-
"regex",
|
|
24
|
-
"regexp",
|
|
25
|
-
"shebang",
|
|
26
|
-
"match",
|
|
27
|
-
"test",
|
|
28
|
-
"line"
|
|
29
|
-
],
|
|
30
|
-
"devDependencies": {
|
|
31
|
-
"ava": "^1.4.1",
|
|
32
|
-
"tsd": "^0.7.2",
|
|
33
|
-
"xo": "^0.24.0"
|
|
34
|
-
}
|
|
35
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
The ISC License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2015-2023 Benjamin Coe, Isaac Z. Schlueter, and Contributors
|
|
4
|
-
|
|
5
|
-
Permission to use, copy, modify, and/or distribute this software
|
|
6
|
-
for any purpose with or without fee is hereby granted, provided
|
|
7
|
-
that the above copyright notice and this permission notice
|
|
8
|
-
appear in all copies.
|
|
9
|
-
|
|
10
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
11
|
-
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
|
|
12
|
-
OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE
|
|
13
|
-
LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES
|
|
14
|
-
OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
|
15
|
-
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
|
|
16
|
-
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.unload = exports.load = exports.onExit = void 0;
|
|
4
|
-
const onExit = () => () => { };
|
|
5
|
-
exports.onExit = onExit;
|
|
6
|
-
const load = () => { };
|
|
7
|
-
exports.load = load;
|
|
8
|
-
const unload = () => { };
|
|
9
|
-
exports.unload = unload;
|
|
10
|
-
//# sourceMappingURL=browser.js.map
|
|
@@ -1,279 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var _a;
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.unload = exports.load = exports.onExit = exports.signals = void 0;
|
|
5
|
-
// Note: since nyc uses this module to output coverage, any lines
|
|
6
|
-
// that are in the direct sync flow of nyc's outputCoverage are
|
|
7
|
-
// ignored, since we can never get coverage for them.
|
|
8
|
-
// grab a reference to node's real process object right away
|
|
9
|
-
const signals_js_1 = require("./signals.js");
|
|
10
|
-
Object.defineProperty(exports, "signals", { enumerable: true, get: function () { return signals_js_1.signals; } });
|
|
11
|
-
const processOk = (process) => !!process &&
|
|
12
|
-
typeof process === 'object' &&
|
|
13
|
-
typeof process.removeListener === 'function' &&
|
|
14
|
-
typeof process.emit === 'function' &&
|
|
15
|
-
typeof process.reallyExit === 'function' &&
|
|
16
|
-
typeof process.listeners === 'function' &&
|
|
17
|
-
typeof process.kill === 'function' &&
|
|
18
|
-
typeof process.pid === 'number' &&
|
|
19
|
-
typeof process.on === 'function';
|
|
20
|
-
const kExitEmitter = Symbol.for('signal-exit emitter');
|
|
21
|
-
const global = globalThis;
|
|
22
|
-
const ObjectDefineProperty = Object.defineProperty.bind(Object);
|
|
23
|
-
// teeny special purpose ee
|
|
24
|
-
class Emitter {
|
|
25
|
-
emitted = {
|
|
26
|
-
afterExit: false,
|
|
27
|
-
exit: false,
|
|
28
|
-
};
|
|
29
|
-
listeners = {
|
|
30
|
-
afterExit: [],
|
|
31
|
-
exit: [],
|
|
32
|
-
};
|
|
33
|
-
count = 0;
|
|
34
|
-
id = Math.random();
|
|
35
|
-
constructor() {
|
|
36
|
-
if (global[kExitEmitter]) {
|
|
37
|
-
return global[kExitEmitter];
|
|
38
|
-
}
|
|
39
|
-
ObjectDefineProperty(global, kExitEmitter, {
|
|
40
|
-
value: this,
|
|
41
|
-
writable: false,
|
|
42
|
-
enumerable: false,
|
|
43
|
-
configurable: false,
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
on(ev, fn) {
|
|
47
|
-
this.listeners[ev].push(fn);
|
|
48
|
-
}
|
|
49
|
-
removeListener(ev, fn) {
|
|
50
|
-
const list = this.listeners[ev];
|
|
51
|
-
const i = list.indexOf(fn);
|
|
52
|
-
/* c8 ignore start */
|
|
53
|
-
if (i === -1) {
|
|
54
|
-
return;
|
|
55
|
-
}
|
|
56
|
-
/* c8 ignore stop */
|
|
57
|
-
if (i === 0 && list.length === 1) {
|
|
58
|
-
list.length = 0;
|
|
59
|
-
}
|
|
60
|
-
else {
|
|
61
|
-
list.splice(i, 1);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
emit(ev, code, signal) {
|
|
65
|
-
if (this.emitted[ev]) {
|
|
66
|
-
return false;
|
|
67
|
-
}
|
|
68
|
-
this.emitted[ev] = true;
|
|
69
|
-
let ret = false;
|
|
70
|
-
for (const fn of this.listeners[ev]) {
|
|
71
|
-
ret = fn(code, signal) === true || ret;
|
|
72
|
-
}
|
|
73
|
-
if (ev === 'exit') {
|
|
74
|
-
ret = this.emit('afterExit', code, signal) || ret;
|
|
75
|
-
}
|
|
76
|
-
return ret;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
class SignalExitBase {
|
|
80
|
-
}
|
|
81
|
-
const signalExitWrap = (handler) => {
|
|
82
|
-
return {
|
|
83
|
-
onExit(cb, opts) {
|
|
84
|
-
return handler.onExit(cb, opts);
|
|
85
|
-
},
|
|
86
|
-
load() {
|
|
87
|
-
return handler.load();
|
|
88
|
-
},
|
|
89
|
-
unload() {
|
|
90
|
-
return handler.unload();
|
|
91
|
-
},
|
|
92
|
-
};
|
|
93
|
-
};
|
|
94
|
-
class SignalExitFallback extends SignalExitBase {
|
|
95
|
-
onExit() {
|
|
96
|
-
return () => { };
|
|
97
|
-
}
|
|
98
|
-
load() { }
|
|
99
|
-
unload() { }
|
|
100
|
-
}
|
|
101
|
-
class SignalExit extends SignalExitBase {
|
|
102
|
-
// "SIGHUP" throws an `ENOSYS` error on Windows,
|
|
103
|
-
// so use a supported signal instead
|
|
104
|
-
/* c8 ignore start */
|
|
105
|
-
#hupSig = process.platform === 'win32' ? 'SIGINT' : 'SIGHUP';
|
|
106
|
-
/* c8 ignore stop */
|
|
107
|
-
#emitter = new Emitter();
|
|
108
|
-
#process;
|
|
109
|
-
#originalProcessEmit;
|
|
110
|
-
#originalProcessReallyExit;
|
|
111
|
-
#sigListeners = {};
|
|
112
|
-
#loaded = false;
|
|
113
|
-
constructor(process) {
|
|
114
|
-
super();
|
|
115
|
-
this.#process = process;
|
|
116
|
-
// { <signal>: <listener fn>, ... }
|
|
117
|
-
this.#sigListeners = {};
|
|
118
|
-
for (const sig of signals_js_1.signals) {
|
|
119
|
-
this.#sigListeners[sig] = () => {
|
|
120
|
-
// If there are no other listeners, an exit is coming!
|
|
121
|
-
// Simplest way: remove us and then re-send the signal.
|
|
122
|
-
// We know that this will kill the process, so we can
|
|
123
|
-
// safely emit now.
|
|
124
|
-
const listeners = this.#process.listeners(sig);
|
|
125
|
-
let { count } = this.#emitter;
|
|
126
|
-
// This is a workaround for the fact that signal-exit v3 and signal
|
|
127
|
-
// exit v4 are not aware of each other, and each will attempt to let
|
|
128
|
-
// the other handle it, so neither of them do. To correct this, we
|
|
129
|
-
// detect if we're the only handler *except* for previous versions
|
|
130
|
-
// of signal-exit, and increment by the count of listeners it has
|
|
131
|
-
// created.
|
|
132
|
-
/* c8 ignore start */
|
|
133
|
-
const p = process;
|
|
134
|
-
if (typeof p.__signal_exit_emitter__ === 'object' &&
|
|
135
|
-
typeof p.__signal_exit_emitter__.count === 'number') {
|
|
136
|
-
count += p.__signal_exit_emitter__.count;
|
|
137
|
-
}
|
|
138
|
-
/* c8 ignore stop */
|
|
139
|
-
if (listeners.length === count) {
|
|
140
|
-
this.unload();
|
|
141
|
-
const ret = this.#emitter.emit('exit', null, sig);
|
|
142
|
-
/* c8 ignore start */
|
|
143
|
-
const s = sig === 'SIGHUP' ? this.#hupSig : sig;
|
|
144
|
-
if (!ret)
|
|
145
|
-
process.kill(process.pid, s);
|
|
146
|
-
/* c8 ignore stop */
|
|
147
|
-
}
|
|
148
|
-
};
|
|
149
|
-
}
|
|
150
|
-
this.#originalProcessReallyExit = process.reallyExit;
|
|
151
|
-
this.#originalProcessEmit = process.emit;
|
|
152
|
-
}
|
|
153
|
-
onExit(cb, opts) {
|
|
154
|
-
/* c8 ignore start */
|
|
155
|
-
if (!processOk(this.#process)) {
|
|
156
|
-
return () => { };
|
|
157
|
-
}
|
|
158
|
-
/* c8 ignore stop */
|
|
159
|
-
if (this.#loaded === false) {
|
|
160
|
-
this.load();
|
|
161
|
-
}
|
|
162
|
-
const ev = opts?.alwaysLast ? 'afterExit' : 'exit';
|
|
163
|
-
this.#emitter.on(ev, cb);
|
|
164
|
-
return () => {
|
|
165
|
-
this.#emitter.removeListener(ev, cb);
|
|
166
|
-
if (this.#emitter.listeners['exit'].length === 0 &&
|
|
167
|
-
this.#emitter.listeners['afterExit'].length === 0) {
|
|
168
|
-
this.unload();
|
|
169
|
-
}
|
|
170
|
-
};
|
|
171
|
-
}
|
|
172
|
-
load() {
|
|
173
|
-
if (this.#loaded) {
|
|
174
|
-
return;
|
|
175
|
-
}
|
|
176
|
-
this.#loaded = true;
|
|
177
|
-
// This is the number of onSignalExit's that are in play.
|
|
178
|
-
// It's important so that we can count the correct number of
|
|
179
|
-
// listeners on signals, and don't wait for the other one to
|
|
180
|
-
// handle it instead of us.
|
|
181
|
-
this.#emitter.count += 1;
|
|
182
|
-
for (const sig of signals_js_1.signals) {
|
|
183
|
-
try {
|
|
184
|
-
const fn = this.#sigListeners[sig];
|
|
185
|
-
if (fn)
|
|
186
|
-
this.#process.on(sig, fn);
|
|
187
|
-
}
|
|
188
|
-
catch (_) { }
|
|
189
|
-
}
|
|
190
|
-
this.#process.emit = (ev, ...a) => {
|
|
191
|
-
return this.#processEmit(ev, ...a);
|
|
192
|
-
};
|
|
193
|
-
this.#process.reallyExit = (code) => {
|
|
194
|
-
return this.#processReallyExit(code);
|
|
195
|
-
};
|
|
196
|
-
}
|
|
197
|
-
unload() {
|
|
198
|
-
if (!this.#loaded) {
|
|
199
|
-
return;
|
|
200
|
-
}
|
|
201
|
-
this.#loaded = false;
|
|
202
|
-
signals_js_1.signals.forEach(sig => {
|
|
203
|
-
const listener = this.#sigListeners[sig];
|
|
204
|
-
/* c8 ignore start */
|
|
205
|
-
if (!listener) {
|
|
206
|
-
throw new Error('Listener not defined for signal: ' + sig);
|
|
207
|
-
}
|
|
208
|
-
/* c8 ignore stop */
|
|
209
|
-
try {
|
|
210
|
-
this.#process.removeListener(sig, listener);
|
|
211
|
-
/* c8 ignore start */
|
|
212
|
-
}
|
|
213
|
-
catch (_) { }
|
|
214
|
-
/* c8 ignore stop */
|
|
215
|
-
});
|
|
216
|
-
this.#process.emit = this.#originalProcessEmit;
|
|
217
|
-
this.#process.reallyExit = this.#originalProcessReallyExit;
|
|
218
|
-
this.#emitter.count -= 1;
|
|
219
|
-
}
|
|
220
|
-
#processReallyExit(code) {
|
|
221
|
-
/* c8 ignore start */
|
|
222
|
-
if (!processOk(this.#process)) {
|
|
223
|
-
return 0;
|
|
224
|
-
}
|
|
225
|
-
this.#process.exitCode = code || 0;
|
|
226
|
-
/* c8 ignore stop */
|
|
227
|
-
this.#emitter.emit('exit', this.#process.exitCode, null);
|
|
228
|
-
return this.#originalProcessReallyExit.call(this.#process, this.#process.exitCode);
|
|
229
|
-
}
|
|
230
|
-
#processEmit(ev, ...args) {
|
|
231
|
-
const og = this.#originalProcessEmit;
|
|
232
|
-
if (ev === 'exit' && processOk(this.#process)) {
|
|
233
|
-
if (typeof args[0] === 'number') {
|
|
234
|
-
this.#process.exitCode = args[0];
|
|
235
|
-
/* c8 ignore start */
|
|
236
|
-
}
|
|
237
|
-
/* c8 ignore start */
|
|
238
|
-
const ret = og.call(this.#process, ev, ...args);
|
|
239
|
-
/* c8 ignore start */
|
|
240
|
-
this.#emitter.emit('exit', this.#process.exitCode, null);
|
|
241
|
-
/* c8 ignore stop */
|
|
242
|
-
return ret;
|
|
243
|
-
}
|
|
244
|
-
else {
|
|
245
|
-
return og.call(this.#process, ev, ...args);
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
const process = globalThis.process;
|
|
250
|
-
// wrap so that we call the method on the actual handler, without
|
|
251
|
-
// exporting it directly.
|
|
252
|
-
_a = signalExitWrap(processOk(process) ? new SignalExit(process) : new SignalExitFallback()),
|
|
253
|
-
/**
|
|
254
|
-
* Called when the process is exiting, whether via signal, explicit
|
|
255
|
-
* exit, or running out of stuff to do.
|
|
256
|
-
*
|
|
257
|
-
* If the global process object is not suitable for instrumentation,
|
|
258
|
-
* then this will be a no-op.
|
|
259
|
-
*
|
|
260
|
-
* Returns a function that may be used to unload signal-exit.
|
|
261
|
-
*/
|
|
262
|
-
exports.onExit = _a.onExit,
|
|
263
|
-
/**
|
|
264
|
-
* Load the listeners. Likely you never need to call this, unless
|
|
265
|
-
* doing a rather deep integration with signal-exit functionality.
|
|
266
|
-
* Mostly exposed for the benefit of testing.
|
|
267
|
-
*
|
|
268
|
-
* @internal
|
|
269
|
-
*/
|
|
270
|
-
exports.load = _a.load,
|
|
271
|
-
/**
|
|
272
|
-
* Unload the listeners. Likely you never need to call this, unless
|
|
273
|
-
* doing a rather deep integration with signal-exit functionality.
|
|
274
|
-
* Mostly exposed for the benefit of testing.
|
|
275
|
-
*
|
|
276
|
-
* @internal
|
|
277
|
-
*/
|
|
278
|
-
exports.unload = _a.unload;
|
|
279
|
-
//# sourceMappingURL=index.js.map
|