Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jiti

Package Overview
Dependencies
Maintainers
1
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jiti - npm Package Compare versions

Comparing version 1.3.0 to 1.4.0

7

CHANGELOG.md

@@ -5,2 +5,9 @@ # Changelog

## [1.4.0](https://github.com/nuxt-contrib/jiti/compare/v1.3.0...v1.4.0) (2021-03-01)
### Features
* transpile nullish-coalescing-operator and optional-chaining for node<14 ([6011ef5](https://github.com/nuxt-contrib/jiti/commit/6011ef5e83653a30730bc33e5c628f6cafe5b411))
## [1.3.0](https://github.com/nuxt-contrib/jiti/compare/v1.2.1...v1.3.0) (2021-01-21)

@@ -7,0 +14,0 @@

1

dist/jiti.d.ts

@@ -9,2 +9,3 @@ /// <reference types="node" />

onError?: (error: Error) => void;
legacy?: boolean;
};

@@ -11,0 +12,0 @@ declare type Require = typeof require;

2

dist/jiti.js

@@ -1,1 +0,1 @@

module.exports=(()=>{var e={"./node_modules/create-require/create-require.js":(e,r,t)=>{const n=t("module"),s=t("path"),o=t("fs");e.exports=function(e){return e||(e=process.cwd()),function(e){try{return o.lstatSync(e).isDirectory()}catch(e){return!1}}(e)&&(e=s.join(e,"index.js")),n.createRequire?n.createRequire(e):n.createRequireFromPath?n.createRequireFromPath(e):function(e){const r=new n.Module(e,null);return r.filename=e,r.paths=n.Module._nodeModulePaths(s.dirname(e)),r._compile("module.exports = require;",e),r.exports}(e)}},"./node_modules/destr/dist/index.js":e=>{"use strict";var r=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,t=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,n=/^["{[]|^-?[0-9][0-9.]{0,14}$/;function s(e,r){if("__proto__"!==e&&"constructor"!==e)return r}e.exports=function(e){if("string"!=typeof e)return e;var o=e.toLowerCase();if("true"===o)return!0;if("false"===o)return!1;if("null"===o)return null;if("nan"===o)return NaN;if("infinity"===o)return 1/0;if("undefined"!==o){if(!n.test(e))return e;try{return r.test(e)||t.test(e)?JSON.parse(e,s):JSON.parse(e)}catch(r){return e}}}},"./node_modules/mkdirp/index.js":(e,r,t)=>{const n=t("./node_modules/mkdirp/lib/opts-arg.js"),s=t("./node_modules/mkdirp/lib/path-arg.js"),{mkdirpNative:o,mkdirpNativeSync:i}=t("./node_modules/mkdirp/lib/mkdirp-native.js"),{mkdirpManual:c,mkdirpManualSync:a}=t("./node_modules/mkdirp/lib/mkdirp-manual.js"),{useNative:d,useNativeSync:u}=t("./node_modules/mkdirp/lib/use-native.js"),m=(e,r)=>(e=s(e),r=n(r),d(r)?o(e,r):c(e,r));m.sync=(e,r)=>(e=s(e),r=n(r),u(r)?i(e,r):a(e,r)),m.native=(e,r)=>o(s(e),n(r)),m.manual=(e,r)=>c(s(e),n(r)),m.nativeSync=(e,r)=>i(s(e),n(r)),m.manualSync=(e,r)=>a(s(e),n(r)),e.exports=m},"./node_modules/mkdirp/lib/find-made.js":(e,r,t)=>{const{dirname:n}=t("path"),s=(e,r,t)=>t===r?Promise.resolve():e.statAsync(r).then((e=>e.isDirectory()?t:void 0),(t=>"ENOENT"===t.code?s(e,n(r),r):void 0)),o=(e,r,t)=>{if(t!==r)try{return e.statSync(r).isDirectory()?t:void 0}catch(t){return"ENOENT"===t.code?o(e,n(r),r):void 0}};e.exports={findMade:s,findMadeSync:o}},"./node_modules/mkdirp/lib/mkdirp-manual.js":(e,r,t)=>{const{dirname:n}=t("path"),s=(e,r,t)=>{r.recursive=!1;const o=n(e);return o===e?r.mkdirAsync(e,r).catch((e=>{if("EISDIR"!==e.code)throw e})):r.mkdirAsync(e,r).then((()=>t||e),(n=>{if("ENOENT"===n.code)return s(o,r).then((t=>s(e,r,t)));if("EEXIST"!==n.code&&"EROFS"!==n.code)throw n;return r.statAsync(e).then((e=>{if(e.isDirectory())return t;throw n}),(()=>{throw n}))}))},o=(e,r,t)=>{const s=n(e);if(r.recursive=!1,s===e)try{return r.mkdirSync(e,r)}catch(e){if("EISDIR"!==e.code)throw e;return}try{return r.mkdirSync(e,r),t||e}catch(n){if("ENOENT"===n.code)return o(e,r,o(s,r,t));if("EEXIST"!==n.code&&"EROFS"!==n.code)throw n;try{if(!r.statSync(e).isDirectory())throw n}catch(e){throw n}}};e.exports={mkdirpManual:s,mkdirpManualSync:o}},"./node_modules/mkdirp/lib/mkdirp-native.js":(e,r,t)=>{const{dirname:n}=t("path"),{findMade:s,findMadeSync:o}=t("./node_modules/mkdirp/lib/find-made.js"),{mkdirpManual:i,mkdirpManualSync:c}=t("./node_modules/mkdirp/lib/mkdirp-manual.js");e.exports={mkdirpNative:(e,r)=>(r.recursive=!0,n(e)===e?r.mkdirAsync(e,r):s(r,e).then((t=>r.mkdirAsync(e,r).then((()=>t)).catch((t=>{if("ENOENT"===t.code)return i(e,r);throw t}))))),mkdirpNativeSync:(e,r)=>{if(r.recursive=!0,n(e)===e)return r.mkdirSync(e,r);const t=o(r,e);try{return r.mkdirSync(e,r),t}catch(t){if("ENOENT"===t.code)return c(e,r);throw t}}}},"./node_modules/mkdirp/lib/opts-arg.js":(e,r,t)=>{const{promisify:n}=t("util"),s=t("fs");e.exports=e=>{if(e)if("object"==typeof e)e={mode:511,fs:s,...e};else if("number"==typeof e)e={mode:e,fs:s};else{if("string"!=typeof e)throw new TypeError("invalid options argument");e={mode:parseInt(e,8),fs:s}}else e={mode:511,fs:s};return e.mkdir=e.mkdir||e.fs.mkdir||s.mkdir,e.mkdirAsync=n(e.mkdir),e.stat=e.stat||e.fs.stat||s.stat,e.statAsync=n(e.stat),e.statSync=e.statSync||e.fs.statSync||s.statSync,e.mkdirSync=e.mkdirSync||e.fs.mkdirSync||s.mkdirSync,e}},"./node_modules/mkdirp/lib/path-arg.js":(e,r,t)=>{const n=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:s,parse:o}=t("path");e.exports=e=>{if(/\0/.test(e))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:e,code:"ERR_INVALID_ARG_VALUE"});if(e=s(e),"win32"===n){const r=/[*|"<>?:]/,{root:t}=o(e);if(r.test(e.substr(t.length)))throw Object.assign(new Error("Illegal characters in path."),{path:e,code:"EINVAL"})}return e}},"./node_modules/mkdirp/lib/use-native.js":(e,r,t)=>{const n=t("fs"),s=(process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version).replace(/^v/,"").split("."),o=+s[0]>10||10==+s[0]&&+s[1]>=12,i=o?e=>e.mkdir===n.mkdir:()=>!1,c=o?e=>e.mkdirSync===n.mkdirSync:()=>!1;e.exports={useNative:i,useNativeSync:c}},"./node_modules/node-modules-regexp/index.js":e=>{"use strict";e.exports=/^(?:.*[\\\/])?node_modules(?:[\\\/].*)?$/},"./node_modules/pirates/lib/index.js":(e,r,t)=>{"use strict";e=t.nmd(e),Object.defineProperty(r,"__esModule",{value:!0}),r.addHook=function(e,r={}){let t=!1;const n=[],i=[];let a;const d=c._extensions[".js"],u=r.matcher||null,m=!1!==r.ignoreNodeModules;return a=r.extensions||r.exts||r.extension||r.ext||[".js"],Array.isArray(a)||(a=[a]),a.forEach((r=>{if("string"!=typeof r)throw new TypeError(`Invalid Extension: ${r}`);const l=c._extensions[r]||d;i[r]=l,n[r]=c._extensions[r]=function(r,n){let i;t||function(e,r,t,n){if("string"!=typeof e)return!1;if(-1===r.indexOf(s.default.extname(e)))return!1;const i=s.default.resolve(e);return(!n||!o.default.test(i))&&(!t||"function"!=typeof t||!!t(i))}(n,a,u,m)&&(i=r._compile,r._compile=function(t){r._compile=i;const s=e(t,n);if("string"!=typeof s)throw new Error("[Pirates] A hook returned a non-string, or nothing at all! This is a violation of intergalactic law!\n--------------------\nIf you have no idea what this means or what Pirates is, let me explain: Pirates is a module that makes is easy to implement require hooks. One of the require hooks you're using uses it. One of these require hooks didn't return anything from it's handler, so we don't know what to do. You might want to debug this.");return r._compile(s,n)}),l(r,n)}})),function(){t||(t=!0,a.forEach((e=>{c._extensions[e]===n[e]&&(c._extensions[e]=i[e])})))}};var n=i(t("module")),s=i(t("path")),o=i(t("./node_modules/node-modules-regexp/index.js"));function i(e){return e&&e.__esModule?e:{default:e}}const c=e.constructor.length>1?e.constructor:n.default},"./src/jiti.ts":(e,r,t)=>{"use strict";t.d(r,{default:()=>j});var n=t("fs"),s=t("module"),o=t("path");const i=require("os"),c=require("crypto"),a=require("vm");var d=t.n(a),u=t("./node_modules/mkdirp/index.js"),m=t.n(u),l=t("./node_modules/destr/dist/index.js"),f=t.n(l),p=t("./node_modules/create-require/create-require.js"),h=t.n(p),y=t("./node_modules/pirates/lib/index.js");e=t.hmd(e);const _=f()(process.env.JITI_DEBUG),x=f()(process.env.JITI_CACHE),k={debug:_,cache:void 0===x||x};function v(e,r=8){return(0,c.createHash)("md5").update(e).digest("hex").substr(0,r)}function j(r=process.cwd(),t={}){function c(...e){t.debug&&console.log("[jiti]",...e)}if(t=Object.assign(Object.assign({},k),t),function(e){try{return(0,n.lstatSync)(e).isDirectory()}catch(e){return!1}}(r)&&(r=(0,o.join)(r,"index.js")),!0===t.cache&&(t.cache=(0,o.join)((0,i.tmpdir)(),"node-jiti")),t.cache)try{if(m().sync(t.cache),!function(e){try{return(0,n.accessSync)(e,n.constants.W_OK),!0}catch(e){return!1}}(t.cache))throw new Error("directory is not writable")}catch(e){c("Error creating cache directory at ",t.cache,e),t.cache=!1}const a=h()(r),u=(e,r)=>{try{return a.resolve(e,r)}catch(e){}},l=(e,r)=>[".js",".ts",".mjs"].includes((0,o.extname)(e))?a.resolve(e,r):u(e,r)||u(e+".ts",r)||u(e+"/index.ts",r)||u(e+".mjs",r)||u(e+"/index.mjs",r)||a.resolve(e,r);function f(e,r,s){if(!t.cache)return s();const i=` /* v3-${v(r,16)} */`,c=(0,o.basename)((0,o.dirname)(e))+"-"+(0,o.basename)(e),a=(0,o.join)(t.cache,c+"."+v(e)+".js");if((0,n.existsSync)(a)){const e=(0,n.readFileSync)(a,"utf-8");if(e.endsWith(i))return e}const d=s();return(0,n.writeFileSync)(a,d+i,"utf-8"),d}function p(r){var i;if(s.builtinModules.includes(r))return a(r);const u=l(r),m=(0,o.extname)(u);if(![".js",".ts"].includes(m))return c("[unknown]",u),a(r);if(".mjs"===m&&t.dynamicImport)return c("[mjs]",u),t.dynamicImport(u);if(a.cache[u])return null===(i=a.cache[u])||void 0===i?void 0:i.exports;let h=(0,n.readFileSync)(u,"utf-8");if(".ts"===m)c("[ts]",u),h=f(u,h,(()=>t.transform({source:h,filename:u,ts:!0})));else if(h.match(/^\s*import .* from/m)||!t.dynamicImport&&h.match(/import\s*\(/)||h.match(/^\s*export /m))c("[esm]",u),h=f(u,h,(()=>t.transform({source:h,filename:u})));else try{return c("[cjs]",u),a(r)}catch(e){c("Native require error:",e),c("[esm fallback]",u),h=f(u,h,(()=>t.transform({source:h,filename:u})))}const y=new s.Module(u);let _;y.filename=u,y.parent=e,y.require=j(u,t),y.path=(0,o.dirname)(u),y.paths=s.Module._nodeModulePaths(y.path),a.cache[u]=y;try{_=d().runInThisContext(s.Module.wrap(h),{filename:u,lineOffset:0,displayErrors:!1})}catch(e){delete a.cache[u],t.onError(e)}try{_(y.exports,y.require,y,y.filename,(0,o.dirname)(y.filename))}catch(e){delete a.cache[u],t.onError(e)}if(y.exports&&y.exports.__JITI_ERROR__){const{filename:e,line:r,column:n,code:s,message:o}=y.exports.__JITI_ERROR__,i=new Error(`${s}: ${o} \n ${e}:${r}:${n}`);Error.captureStackTrace(i,p),t.onError(i)}return y.loaded=!0,y.exports}return l.paths=a.resolve.paths,p.resolve=l,p.cache=a.cache,p.extensions=a.extensions,p.main=a.main,p.transform=t.transform,p.register=function(){return(0,y.addHook)(((e,r)=>p.transform({source:e,filename:r,ts:!!r.match(/.ts$/)})),{exts:[".js",".ts"]})},p}},fs:e=>{"use strict";e.exports=require("fs")},module:e=>{"use strict";e.exports=require("module")},path:e=>{"use strict";e.exports=require("path")},util:e=>{"use strict";e.exports=require("util")}},r={};function t(n){if(r[n])return r[n].exports;var s=r[n]={id:n,loaded:!1,exports:{}};return e[n](s,s.exports,t),s.loaded=!0,s.exports}return t.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return t.d(r,{a:r}),r},t.d=(e,r)=>{for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},t.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),t("./src/jiti.ts")})().default;
(()=>{var e={"./node_modules/create-require/create-require.js":(e,s,t)=>{const r=t("module"),n=t("path"),o=t("fs");e.exports=function(e){return e||(e=process.cwd()),function(e){try{return o.lstatSync(e).isDirectory()}catch(e){return!1}}(e)&&(e=n.join(e,"index.js")),r.createRequire?r.createRequire(e):r.createRequireFromPath?r.createRequireFromPath(e):function(e){const s=new r.Module(e,null);return s.filename=e,s.paths=r.Module._nodeModulePaths(n.dirname(e)),s._compile("module.exports = require;",e),s.exports}(e)}},"./node_modules/lru-cache/index.js":(e,s,t)=>{"use strict";const r=t("./node_modules/yallist/yallist.js"),n=Symbol("max"),o=Symbol("length"),i=Symbol("lengthCalculator"),a=Symbol("allowStale"),l=Symbol("maxAge"),u=Symbol("dispose"),c=Symbol("noDisposeOnSet"),m=Symbol("lruList"),d=Symbol("cache"),h=Symbol("updateAgeOnGet"),p=()=>1,f=(e,s,t)=>{const r=e[d].get(s);if(r){const s=r.value;if(v(e,s)){if(g(e,r),!e[a])return}else t&&(e[h]&&(r.value.now=Date.now()),e[m].unshiftNode(r));return s.value}},v=(e,s)=>{if(!s||!s.maxAge&&!e[l])return!1;const t=Date.now()-s.now;return s.maxAge?t>s.maxAge:e[l]&&t>e[l]},E=e=>{if(e[o]>e[n])for(let s=e[m].tail;e[o]>e[n]&&null!==s;){const t=s.prev;g(e,s),s=t}},g=(e,s)=>{if(s){const t=s.value;e[u]&&e[u](t.key,t.value),e[o]-=t.length,e[d].delete(t.key),e[m].removeNode(s)}};class _{constructor(e,s,t,r,n){this.key=e,this.value=s,this.length=t,this.now=r,this.maxAge=n||0}}const j=(e,s,t,r)=>{let n=t.value;v(e,n)&&(g(e,t),e[a]||(n=void 0)),n&&s.call(r,n.value,n.key,e)};e.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[n]=e.max||1/0;const s=e.length||p;if(this[i]="function"!=typeof s?p:s,this[a]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[l]=e.maxAge||0,this[u]=e.dispose,this[c]=e.noDisposeOnSet||!1,this[h]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[n]=e||1/0,E(this)}get max(){return this[n]}set allowStale(e){this[a]=!!e}get allowStale(){return this[a]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[l]=e,E(this)}get maxAge(){return this[l]}set lengthCalculator(e){"function"!=typeof e&&(e=p),e!==this[i]&&(this[i]=e,this[o]=0,this[m].forEach((e=>{e.length=this[i](e.value,e.key),this[o]+=e.length}))),E(this)}get lengthCalculator(){return this[i]}get length(){return this[o]}get itemCount(){return this[m].length}rforEach(e,s){s=s||this;for(let t=this[m].tail;null!==t;){const r=t.prev;j(this,e,t,s),t=r}}forEach(e,s){s=s||this;for(let t=this[m].head;null!==t;){const r=t.next;j(this,e,t,s),t=r}}keys(){return this[m].toArray().map((e=>e.key))}values(){return this[m].toArray().map((e=>e.value))}reset(){this[u]&&this[m]&&this[m].length&&this[m].forEach((e=>this[u](e.key,e.value))),this[d]=new Map,this[m]=new r,this[o]=0}dump(){return this[m].map((e=>!v(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[m]}set(e,s,t){if((t=t||this[l])&&"number"!=typeof t)throw new TypeError("maxAge must be a number");const r=t?Date.now():0,a=this[i](s,e);if(this[d].has(e)){if(a>this[n])return g(this,this[d].get(e)),!1;const i=this[d].get(e).value;return this[u]&&(this[c]||this[u](e,i.value)),i.now=r,i.maxAge=t,i.value=s,this[o]+=a-i.length,i.length=a,this.get(e),E(this),!0}const h=new _(e,s,a,r,t);return h.length>this[n]?(this[u]&&this[u](e,s),!1):(this[o]+=h.length,this[m].unshift(h),this[d].set(e,this[m].head),E(this),!0)}has(e){if(!this[d].has(e))return!1;const s=this[d].get(e).value;return!v(this,s)}get(e){return f(this,e,!0)}peek(e){return f(this,e,!1)}pop(){const e=this[m].tail;return e?(g(this,e),e.value):null}del(e){g(this,this[d].get(e))}load(e){this.reset();const s=Date.now();for(let t=e.length-1;t>=0;t--){const r=e[t],n=r.e||0;if(0===n)this.set(r.k,r.v);else{const e=n-s;e>0&&this.set(r.k,r.v,e)}}}prune(){this[d].forEach(((e,s)=>f(this,s,!1)))}}},"./node_modules/mkdirp/index.js":(e,s,t)=>{const r=t("./node_modules/mkdirp/lib/opts-arg.js"),n=t("./node_modules/mkdirp/lib/path-arg.js"),{mkdirpNative:o,mkdirpNativeSync:i}=t("./node_modules/mkdirp/lib/mkdirp-native.js"),{mkdirpManual:a,mkdirpManualSync:l}=t("./node_modules/mkdirp/lib/mkdirp-manual.js"),{useNative:u,useNativeSync:c}=t("./node_modules/mkdirp/lib/use-native.js"),m=(e,s)=>(e=n(e),s=r(s),u(s)?o(e,s):a(e,s));m.sync=(e,s)=>(e=n(e),s=r(s),c(s)?i(e,s):l(e,s)),m.native=(e,s)=>o(n(e),r(s)),m.manual=(e,s)=>a(n(e),r(s)),m.nativeSync=(e,s)=>i(n(e),r(s)),m.manualSync=(e,s)=>l(n(e),r(s)),e.exports=m},"./node_modules/mkdirp/lib/find-made.js":(e,s,t)=>{const{dirname:r}=t("path"),n=(e,s,t)=>t===s?Promise.resolve():e.statAsync(s).then((e=>e.isDirectory()?t:void 0),(t=>"ENOENT"===t.code?n(e,r(s),s):void 0)),o=(e,s,t)=>{if(t!==s)try{return e.statSync(s).isDirectory()?t:void 0}catch(t){return"ENOENT"===t.code?o(e,r(s),s):void 0}};e.exports={findMade:n,findMadeSync:o}},"./node_modules/mkdirp/lib/mkdirp-manual.js":(e,s,t)=>{const{dirname:r}=t("path"),n=(e,s,t)=>{s.recursive=!1;const o=r(e);return o===e?s.mkdirAsync(e,s).catch((e=>{if("EISDIR"!==e.code)throw e})):s.mkdirAsync(e,s).then((()=>t||e),(r=>{if("ENOENT"===r.code)return n(o,s).then((t=>n(e,s,t)));if("EEXIST"!==r.code&&"EROFS"!==r.code)throw r;return s.statAsync(e).then((e=>{if(e.isDirectory())return t;throw r}),(()=>{throw r}))}))},o=(e,s,t)=>{const n=r(e);if(s.recursive=!1,n===e)try{return s.mkdirSync(e,s)}catch(e){if("EISDIR"!==e.code)throw e;return}try{return s.mkdirSync(e,s),t||e}catch(r){if("ENOENT"===r.code)return o(e,s,o(n,s,t));if("EEXIST"!==r.code&&"EROFS"!==r.code)throw r;try{if(!s.statSync(e).isDirectory())throw r}catch(e){throw r}}};e.exports={mkdirpManual:n,mkdirpManualSync:o}},"./node_modules/mkdirp/lib/mkdirp-native.js":(e,s,t)=>{const{dirname:r}=t("path"),{findMade:n,findMadeSync:o}=t("./node_modules/mkdirp/lib/find-made.js"),{mkdirpManual:i,mkdirpManualSync:a}=t("./node_modules/mkdirp/lib/mkdirp-manual.js");e.exports={mkdirpNative:(e,s)=>(s.recursive=!0,r(e)===e?s.mkdirAsync(e,s):n(s,e).then((t=>s.mkdirAsync(e,s).then((()=>t)).catch((t=>{if("ENOENT"===t.code)return i(e,s);throw t}))))),mkdirpNativeSync:(e,s)=>{if(s.recursive=!0,r(e)===e)return s.mkdirSync(e,s);const t=o(s,e);try{return s.mkdirSync(e,s),t}catch(t){if("ENOENT"===t.code)return a(e,s);throw t}}}},"./node_modules/mkdirp/lib/opts-arg.js":(e,s,t)=>{const{promisify:r}=t("util"),n=t("fs");e.exports=e=>{if(e)if("object"==typeof e)e={mode:511,fs:n,...e};else if("number"==typeof e)e={mode:e,fs:n};else{if("string"!=typeof e)throw new TypeError("invalid options argument");e={mode:parseInt(e,8),fs:n}}else e={mode:511,fs:n};return e.mkdir=e.mkdir||e.fs.mkdir||n.mkdir,e.mkdirAsync=r(e.mkdir),e.stat=e.stat||e.fs.stat||n.stat,e.statAsync=r(e.stat),e.statSync=e.statSync||e.fs.statSync||n.statSync,e.mkdirSync=e.mkdirSync||e.fs.mkdirSync||n.mkdirSync,e}},"./node_modules/mkdirp/lib/path-arg.js":(e,s,t)=>{const r=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:n,parse:o}=t("path");e.exports=e=>{if(/\0/.test(e))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:e,code:"ERR_INVALID_ARG_VALUE"});if(e=n(e),"win32"===r){const s=/[*|"<>?:]/,{root:t}=o(e);if(s.test(e.substr(t.length)))throw Object.assign(new Error("Illegal characters in path."),{path:e,code:"EINVAL"})}return e}},"./node_modules/mkdirp/lib/use-native.js":(e,s,t)=>{const r=t("fs"),n=(process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version).replace(/^v/,"").split("."),o=+n[0]>10||10==+n[0]&&+n[1]>=12,i=o?e=>e.mkdir===r.mkdir:()=>!1,a=o?e=>e.mkdirSync===r.mkdirSync:()=>!1;e.exports={useNative:i,useNativeSync:a}},"./node_modules/node-modules-regexp/index.js":e=>{"use strict";e.exports=/^(?:.*[\\\/])?node_modules(?:[\\\/].*)?$/},"./node_modules/pirates/lib/index.js":(e,s,t)=>{"use strict";e=t.nmd(e),Object.defineProperty(s,"__esModule",{value:!0}),s.addHook=function(e,s={}){let t=!1;const r=[],i=[];let l;const u=a._extensions[".js"],c=s.matcher||null,m=!1!==s.ignoreNodeModules;return l=s.extensions||s.exts||s.extension||s.ext||[".js"],Array.isArray(l)||(l=[l]),l.forEach((s=>{if("string"!=typeof s)throw new TypeError(`Invalid Extension: ${s}`);const d=a._extensions[s]||u;i[s]=d,r[s]=a._extensions[s]=function(s,r){let i;t||function(e,s,t,r){if("string"!=typeof e)return!1;if(-1===s.indexOf(n.default.extname(e)))return!1;const i=n.default.resolve(e);return(!r||!o.default.test(i))&&(!t||"function"!=typeof t||!!t(i))}(r,l,c,m)&&(i=s._compile,s._compile=function(t){s._compile=i;const n=e(t,r);if("string"!=typeof n)throw new Error("[Pirates] A hook returned a non-string, or nothing at all! This is a violation of intergalactic law!\n--------------------\nIf you have no idea what this means or what Pirates is, let me explain: Pirates is a module that makes is easy to implement require hooks. One of the require hooks you're using uses it. One of these require hooks didn't return anything from it's handler, so we don't know what to do. You might want to debug this.");return s._compile(n,r)}),d(s,r)}})),function(){t||(t=!0,l.forEach((e=>{a._extensions[e]===r[e]&&(a._extensions[e]=i[e])})))}};var r=i(t("module")),n=i(t("path")),o=i(t("./node_modules/node-modules-regexp/index.js"));function i(e){return e&&e.__esModule?e:{default:e}}const a=e.constructor.length>1?e.constructor:r.default},"./node_modules/semver/classes/comparator.js":(e,s,t)=>{const r=Symbol("SemVer ANY");class n{static get ANY(){return r}constructor(e,s){if(s=o(s),e instanceof n){if(e.loose===!!s.loose)return e;e=e.value}u("comparator",e,s),this.options=s,this.loose=!!s.loose,this.parse(e),this.semver===r?this.value="":this.value=this.operator+this.semver.version,u("comp",this)}parse(e){const s=this.options.loose?i[a.COMPARATORLOOSE]:i[a.COMPARATOR],t=e.match(s);if(!t)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==t[1]?t[1]:"","="===this.operator&&(this.operator=""),t[2]?this.semver=new c(t[2],this.options.loose):this.semver=r}toString(){return this.value}test(e){if(u("Comparator.test",e,this.options.loose),this.semver===r||e===r)return!0;if("string"==typeof e)try{e=new c(e,this.options)}catch(e){return!1}return l(e,this.operator,this.semver,this.options)}intersects(e,s){if(!(e instanceof n))throw new TypeError("a Comparator is required");if(s&&"object"==typeof s||(s={loose:!!s,includePrerelease:!1}),""===this.operator)return""===this.value||new m(e.value,s).test(this.value);if(""===e.operator)return""===e.value||new m(this.value,s).test(e.semver);const t=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),r=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,i=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=l(this.semver,"<",e.semver,s)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=l(this.semver,">",e.semver,s)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return t||r||o&&i||a||u}}e.exports=n;const o=t("./node_modules/semver/internal/parse-options.js"),{re:i,t:a}=t("./node_modules/semver/internal/re.js"),l=t("./node_modules/semver/functions/cmp.js"),u=t("./node_modules/semver/internal/debug.js"),c=t("./node_modules/semver/classes/semver.js"),m=t("./node_modules/semver/classes/range.js")},"./node_modules/semver/classes/range.js":(e,s,t)=>{class r{constructor(e,s){if(s=o(s),e instanceof r)return e.loose===!!s.loose&&e.includePrerelease===!!s.includePrerelease?e:new r(e.raw,s);if(e instanceof i)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=s,this.loose=!!s.loose,this.includePrerelease=!!s.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${e}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!p(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&f(e[0])){this.set=[e];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){e=e.trim();const s=`parseRange:${Object.keys(this.options).join(",")}:${e}`,t=n.get(s);if(t)return t;const r=this.options.loose,o=r?u[c.HYPHENRANGELOOSE]:u[c.HYPHENRANGE];e=e.replace(o,w(this.options.includePrerelease)),a("hyphen replace",e),e=e.replace(u[c.COMPARATORTRIM],m),a("comparator trim",e,u[c.COMPARATORTRIM]),e=(e=(e=e.replace(u[c.TILDETRIM],d)).replace(u[c.CARETTRIM],h)).split(/\s+/).join(" ");const l=r?u[c.COMPARATORLOOSE]:u[c.COMPARATOR],f=e.split(" ").map((e=>E(e,this.options))).join(" ").split(/\s+/).map((e=>x(e,this.options))).filter(this.options.loose?e=>!!e.match(l):()=>!0).map((e=>new i(e,this.options))),v=(f.length,new Map);for(const e of f){if(p(e))return[e];v.set(e.value,e)}v.size>1&&v.has("")&&v.delete("");const g=[...v.values()];return n.set(s,g),g}intersects(e,s){if(!(e instanceof r))throw new TypeError("a Range is required");return this.set.some((t=>v(t,s)&&e.set.some((e=>v(e,s)&&t.every((t=>e.every((e=>t.intersects(e,s)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new l(e,this.options)}catch(e){return!1}for(let s=0;s<this.set.length;s++)if(O(this.set[s],e,this.options))return!0;return!1}}e.exports=r;const n=new(t("./node_modules/lru-cache/index.js"))({max:1e3}),o=t("./node_modules/semver/internal/parse-options.js"),i=t("./node_modules/semver/classes/comparator.js"),a=t("./node_modules/semver/internal/debug.js"),l=t("./node_modules/semver/classes/semver.js"),{re:u,t:c,comparatorTrimReplace:m,tildeTrimReplace:d,caretTrimReplace:h}=t("./node_modules/semver/internal/re.js"),p=e=>"<0.0.0-0"===e.value,f=e=>""===e.value,v=(e,s)=>{let t=!0;const r=e.slice();let n=r.pop();for(;t&&r.length;)t=r.every((e=>n.intersects(e,s))),n=r.pop();return t},E=(e,s)=>(a("comp",e,s),e=y(e,s),a("caret",e),e=_(e,s),a("tildes",e),e=$(e,s),a("xrange",e),e=N(e,s),a("stars",e),e),g=e=>!e||"x"===e.toLowerCase()||"*"===e,_=(e,s)=>e.trim().split(/\s+/).map((e=>j(e,s))).join(" "),j=(e,s)=>{const t=s.loose?u[c.TILDELOOSE]:u[c.TILDE];return e.replace(t,((s,t,r,n,o)=>{let i;return a("tilde",e,s,t,r,n,o),g(t)?i="":g(r)?i=`>=${t}.0.0 <${+t+1}.0.0-0`:g(n)?i=`>=${t}.${r}.0 <${t}.${+r+1}.0-0`:o?(a("replaceTilde pr",o),i=`>=${t}.${r}.${n}-${o} <${t}.${+r+1}.0-0`):i=`>=${t}.${r}.${n} <${t}.${+r+1}.0-0`,a("tilde return",i),i}))},y=(e,s)=>e.trim().split(/\s+/).map((e=>I(e,s))).join(" "),I=(e,s)=>{a("caret",e,s);const t=s.loose?u[c.CARETLOOSE]:u[c.CARET],r=s.includePrerelease?"-0":"";return e.replace(t,((s,t,n,o,i)=>{let l;return a("caret",e,s,t,n,o,i),g(t)?l="":g(n)?l=`>=${t}.0.0${r} <${+t+1}.0.0-0`:g(o)?l="0"===t?`>=${t}.${n}.0${r} <${t}.${+n+1}.0-0`:`>=${t}.${n}.0${r} <${+t+1}.0.0-0`:i?(a("replaceCaret pr",i),l="0"===t?"0"===n?`>=${t}.${n}.${o}-${i} <${t}.${n}.${+o+1}-0`:`>=${t}.${n}.${o}-${i} <${t}.${+n+1}.0-0`:`>=${t}.${n}.${o}-${i} <${+t+1}.0.0-0`):(a("no pr"),l="0"===t?"0"===n?`>=${t}.${n}.${o}${r} <${t}.${n}.${+o+1}-0`:`>=${t}.${n}.${o}${r} <${t}.${+n+1}.0-0`:`>=${t}.${n}.${o} <${+t+1}.0.0-0`),a("caret return",l),l}))},$=(e,s)=>(a("replaceXRanges",e,s),e.split(/\s+/).map((e=>R(e,s))).join(" ")),R=(e,s)=>{e=e.trim();const t=s.loose?u[c.XRANGELOOSE]:u[c.XRANGE];return e.replace(t,((t,r,n,o,i,l)=>{a("xRange",e,t,r,n,o,i,l);const u=g(n),c=u||g(o),m=c||g(i),d=m;return"="===r&&d&&(r=""),l=s.includePrerelease?"-0":"",u?t=">"===r||"<"===r?"<0.0.0-0":"*":r&&d?(c&&(o=0),i=0,">"===r?(r=">=",c?(n=+n+1,o=0,i=0):(o=+o+1,i=0)):"<="===r&&(r="<",c?n=+n+1:o=+o+1),"<"===r&&(l="-0"),t=`${r+n}.${o}.${i}${l}`):c?t=`>=${n}.0.0${l} <${+n+1}.0.0-0`:m&&(t=`>=${n}.${o}.0${l} <${n}.${+o+1}.0-0`),a("xRange return",t),t}))},N=(e,s)=>(a("replaceStars",e,s),e.trim().replace(u[c.STAR],"")),x=(e,s)=>(a("replaceGTE0",e,s),e.trim().replace(u[s.includePrerelease?c.GTE0PRE:c.GTE0],"")),w=e=>(s,t,r,n,o,i,a,l,u,c,m,d,h)=>`${t=g(r)?"":g(n)?`>=${r}.0.0${e?"-0":""}`:g(o)?`>=${r}.${n}.0${e?"-0":""}`:i?`>=${t}`:`>=${t}${e?"-0":""}`} ${l=g(u)?"":g(c)?`<${+u+1}.0.0-0`:g(m)?`<${u}.${+c+1}.0-0`:d?`<=${u}.${c}.${m}-${d}`:e?`<${u}.${c}.${+m+1}-0`:`<=${l}`}`.trim(),O=(e,s,t)=>{for(let t=0;t<e.length;t++)if(!e[t].test(s))return!1;if(s.prerelease.length&&!t.includePrerelease){for(let t=0;t<e.length;t++)if(a(e[t].semver),e[t].semver!==i.ANY&&e[t].semver.prerelease.length>0){const r=e[t].semver;if(r.major===s.major&&r.minor===s.minor&&r.patch===s.patch)return!0}return!1}return!0}},"./node_modules/semver/classes/semver.js":(e,s,t)=>{const r=t("./node_modules/semver/internal/debug.js"),{MAX_LENGTH:n,MAX_SAFE_INTEGER:o}=t("./node_modules/semver/internal/constants.js"),{re:i,t:a}=t("./node_modules/semver/internal/re.js"),l=t("./node_modules/semver/internal/parse-options.js"),{compareIdentifiers:u}=t("./node_modules/semver/internal/identifiers.js");class c{constructor(e,s){if(s=l(s),e instanceof c){if(e.loose===!!s.loose&&e.includePrerelease===!!s.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid Version: ${e}`);if(e.length>n)throw new TypeError(`version is longer than ${n} characters`);r("SemVer",e,s),this.options=s,this.loose=!!s.loose,this.includePrerelease=!!s.includePrerelease;const t=e.trim().match(s.loose?i[a.LOOSE]:i[a.FULL]);if(!t)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+t[1],this.minor=+t[2],this.patch=+t[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");t[4]?this.prerelease=t[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const s=+e;if(s>=0&&s<o)return s}return e})):this.prerelease=[],this.build=t[5]?t[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(r("SemVer.compare",this.version,this.options,e),!(e instanceof c)){if("string"==typeof e&&e===this.version)return 0;e=new c(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof c||(e=new c(e,this.options)),u(this.major,e.major)||u(this.minor,e.minor)||u(this.patch,e.patch)}comparePre(e){if(e instanceof c||(e=new c(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let s=0;do{const t=this.prerelease[s],n=e.prerelease[s];if(r("prerelease compare",s,t,n),void 0===t&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===t)return-1;if(t!==n)return u(t,n)}while(++s)}compareBuild(e){e instanceof c||(e=new c(e,this.options));let s=0;do{const t=this.build[s],n=e.build[s];if(r("prerelease compare",s,t,n),void 0===t&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===t)return-1;if(t!==n)return u(t,n)}while(++s)}inc(e,s){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",s);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",s);break;case"prepatch":this.prerelease.length=0,this.inc("patch",s),this.inc("pre",s);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",s),this.inc("pre",s);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{let e=this.prerelease.length;for(;--e>=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}s&&(this.prerelease[0]===s?isNaN(this.prerelease[1])&&(this.prerelease=[s,0]):this.prerelease=[s,0]);break;default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}}e.exports=c},"./node_modules/semver/functions/clean.js":(e,s,t)=>{const r=t("./node_modules/semver/functions/parse.js");e.exports=(e,s)=>{const t=r(e.trim().replace(/^[=v]+/,""),s);return t?t.version:null}},"./node_modules/semver/functions/cmp.js":(e,s,t)=>{const r=t("./node_modules/semver/functions/eq.js"),n=t("./node_modules/semver/functions/neq.js"),o=t("./node_modules/semver/functions/gt.js"),i=t("./node_modules/semver/functions/gte.js"),a=t("./node_modules/semver/functions/lt.js"),l=t("./node_modules/semver/functions/lte.js");e.exports=(e,s,t,u)=>{switch(s){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof t&&(t=t.version),e===t;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof t&&(t=t.version),e!==t;case"":case"=":case"==":return r(e,t,u);case"!=":return n(e,t,u);case">":return o(e,t,u);case">=":return i(e,t,u);case"<":return a(e,t,u);case"<=":return l(e,t,u);default:throw new TypeError(`Invalid operator: ${s}`)}}},"./node_modules/semver/functions/coerce.js":(e,s,t)=>{const r=t("./node_modules/semver/classes/semver.js"),n=t("./node_modules/semver/functions/parse.js"),{re:o,t:i}=t("./node_modules/semver/internal/re.js");e.exports=(e,s)=>{if(e instanceof r)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let t=null;if((s=s||{}).rtl){let s;for(;(s=o[i.COERCERTL].exec(e))&&(!t||t.index+t[0].length!==e.length);)t&&s.index+s[0].length===t.index+t[0].length||(t=s),o[i.COERCERTL].lastIndex=s.index+s[1].length+s[2].length;o[i.COERCERTL].lastIndex=-1}else t=e.match(o[i.COERCE]);return null===t?null:n(`${t[2]}.${t[3]||"0"}.${t[4]||"0"}`,s)}},"./node_modules/semver/functions/compare-build.js":(e,s,t)=>{const r=t("./node_modules/semver/classes/semver.js");e.exports=(e,s,t)=>{const n=new r(e,t),o=new r(s,t);return n.compare(o)||n.compareBuild(o)}},"./node_modules/semver/functions/compare-loose.js":(e,s,t)=>{const r=t("./node_modules/semver/functions/compare.js");e.exports=(e,s)=>r(e,s,!0)},"./node_modules/semver/functions/compare.js":(e,s,t)=>{const r=t("./node_modules/semver/classes/semver.js");e.exports=(e,s,t)=>new r(e,t).compare(new r(s,t))},"./node_modules/semver/functions/diff.js":(e,s,t)=>{const r=t("./node_modules/semver/functions/parse.js"),n=t("./node_modules/semver/functions/eq.js");e.exports=(e,s)=>{if(n(e,s))return null;{const t=r(e),n=r(s),o=t.prerelease.length||n.prerelease.length,i=o?"pre":"",a=o?"prerelease":"";for(const e in t)if(("major"===e||"minor"===e||"patch"===e)&&t[e]!==n[e])return i+e;return a}}},"./node_modules/semver/functions/eq.js":(e,s,t)=>{const r=t("./node_modules/semver/functions/compare.js");e.exports=(e,s,t)=>0===r(e,s,t)},"./node_modules/semver/functions/gt.js":(e,s,t)=>{const r=t("./node_modules/semver/functions/compare.js");e.exports=(e,s,t)=>r(e,s,t)>0},"./node_modules/semver/functions/gte.js":(e,s,t)=>{const r=t("./node_modules/semver/functions/compare.js");e.exports=(e,s,t)=>r(e,s,t)>=0},"./node_modules/semver/functions/inc.js":(e,s,t)=>{const r=t("./node_modules/semver/classes/semver.js");e.exports=(e,s,t,n)=>{"string"==typeof t&&(n=t,t=void 0);try{return new r(e,t).inc(s,n).version}catch(e){return null}}},"./node_modules/semver/functions/lt.js":(e,s,t)=>{const r=t("./node_modules/semver/functions/compare.js");e.exports=(e,s,t)=>r(e,s,t)<0},"./node_modules/semver/functions/lte.js":(e,s,t)=>{const r=t("./node_modules/semver/functions/compare.js");e.exports=(e,s,t)=>r(e,s,t)<=0},"./node_modules/semver/functions/major.js":(e,s,t)=>{const r=t("./node_modules/semver/classes/semver.js");e.exports=(e,s)=>new r(e,s).major},"./node_modules/semver/functions/minor.js":(e,s,t)=>{const r=t("./node_modules/semver/classes/semver.js");e.exports=(e,s)=>new r(e,s).minor},"./node_modules/semver/functions/neq.js":(e,s,t)=>{const r=t("./node_modules/semver/functions/compare.js");e.exports=(e,s,t)=>0!==r(e,s,t)},"./node_modules/semver/functions/parse.js":(e,s,t)=>{const{MAX_LENGTH:r}=t("./node_modules/semver/internal/constants.js"),{re:n,t:o}=t("./node_modules/semver/internal/re.js"),i=t("./node_modules/semver/classes/semver.js"),a=t("./node_modules/semver/internal/parse-options.js");e.exports=(e,s)=>{if(s=a(s),e instanceof i)return e;if("string"!=typeof e)return null;if(e.length>r)return null;if(!(s.loose?n[o.LOOSE]:n[o.FULL]).test(e))return null;try{return new i(e,s)}catch(e){return null}}},"./node_modules/semver/functions/patch.js":(e,s,t)=>{const r=t("./node_modules/semver/classes/semver.js");e.exports=(e,s)=>new r(e,s).patch},"./node_modules/semver/functions/prerelease.js":(e,s,t)=>{const r=t("./node_modules/semver/functions/parse.js");e.exports=(e,s)=>{const t=r(e,s);return t&&t.prerelease.length?t.prerelease:null}},"./node_modules/semver/functions/rcompare.js":(e,s,t)=>{const r=t("./node_modules/semver/functions/compare.js");e.exports=(e,s,t)=>r(s,e,t)},"./node_modules/semver/functions/rsort.js":(e,s,t)=>{const r=t("./node_modules/semver/functions/compare-build.js");e.exports=(e,s)=>e.sort(((e,t)=>r(t,e,s)))},"./node_modules/semver/functions/satisfies.js":(e,s,t)=>{const r=t("./node_modules/semver/classes/range.js");e.exports=(e,s,t)=>{try{s=new r(s,t)}catch(e){return!1}return s.test(e)}},"./node_modules/semver/functions/sort.js":(e,s,t)=>{const r=t("./node_modules/semver/functions/compare-build.js");e.exports=(e,s)=>e.sort(((e,t)=>r(e,t,s)))},"./node_modules/semver/functions/valid.js":(e,s,t)=>{const r=t("./node_modules/semver/functions/parse.js");e.exports=(e,s)=>{const t=r(e,s);return t?t.version:null}},"./node_modules/semver/index.js":(e,s,t)=>{const r=t("./node_modules/semver/internal/re.js");e.exports={re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:t("./node_modules/semver/internal/constants.js").SEMVER_SPEC_VERSION,SemVer:t("./node_modules/semver/classes/semver.js"),compareIdentifiers:t("./node_modules/semver/internal/identifiers.js").compareIdentifiers,rcompareIdentifiers:t("./node_modules/semver/internal/identifiers.js").rcompareIdentifiers,parse:t("./node_modules/semver/functions/parse.js"),valid:t("./node_modules/semver/functions/valid.js"),clean:t("./node_modules/semver/functions/clean.js"),inc:t("./node_modules/semver/functions/inc.js"),diff:t("./node_modules/semver/functions/diff.js"),major:t("./node_modules/semver/functions/major.js"),minor:t("./node_modules/semver/functions/minor.js"),patch:t("./node_modules/semver/functions/patch.js"),prerelease:t("./node_modules/semver/functions/prerelease.js"),compare:t("./node_modules/semver/functions/compare.js"),rcompare:t("./node_modules/semver/functions/rcompare.js"),compareLoose:t("./node_modules/semver/functions/compare-loose.js"),compareBuild:t("./node_modules/semver/functions/compare-build.js"),sort:t("./node_modules/semver/functions/sort.js"),rsort:t("./node_modules/semver/functions/rsort.js"),gt:t("./node_modules/semver/functions/gt.js"),lt:t("./node_modules/semver/functions/lt.js"),eq:t("./node_modules/semver/functions/eq.js"),neq:t("./node_modules/semver/functions/neq.js"),gte:t("./node_modules/semver/functions/gte.js"),lte:t("./node_modules/semver/functions/lte.js"),cmp:t("./node_modules/semver/functions/cmp.js"),coerce:t("./node_modules/semver/functions/coerce.js"),Comparator:t("./node_modules/semver/classes/comparator.js"),Range:t("./node_modules/semver/classes/range.js"),satisfies:t("./node_modules/semver/functions/satisfies.js"),toComparators:t("./node_modules/semver/ranges/to-comparators.js"),maxSatisfying:t("./node_modules/semver/ranges/max-satisfying.js"),minSatisfying:t("./node_modules/semver/ranges/min-satisfying.js"),minVersion:t("./node_modules/semver/ranges/min-version.js"),validRange:t("./node_modules/semver/ranges/valid.js"),outside:t("./node_modules/semver/ranges/outside.js"),gtr:t("./node_modules/semver/ranges/gtr.js"),ltr:t("./node_modules/semver/ranges/ltr.js"),intersects:t("./node_modules/semver/ranges/intersects.js"),simplifyRange:t("./node_modules/semver/ranges/simplify.js"),subset:t("./node_modules/semver/ranges/subset.js")}},"./node_modules/semver/internal/constants.js":e=>{const s=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:s,MAX_SAFE_COMPONENT_LENGTH:16}},"./node_modules/semver/internal/debug.js":e=>{const s="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=s},"./node_modules/semver/internal/identifiers.js":e=>{const s=/^[0-9]+$/,t=(e,t)=>{const r=s.test(e),n=s.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1};e.exports={compareIdentifiers:t,rcompareIdentifiers:(e,s)=>t(s,e)}},"./node_modules/semver/internal/parse-options.js":e=>{const s=["includePrerelease","loose","rtl"];e.exports=e=>e?"object"!=typeof e?{loose:!0}:s.filter((s=>e[s])).reduce(((e,s)=>(e[s]=!0,e)),{}):{}},"./node_modules/semver/internal/re.js":(e,s,t)=>{const{MAX_SAFE_COMPONENT_LENGTH:r}=t("./node_modules/semver/internal/constants.js"),n=t("./node_modules/semver/internal/debug.js"),o=(s=e.exports={}).re=[],i=s.src=[],a=s.t={};let l=0;const u=(e,s,t)=>{const r=l++;n(r,s),a[e]=r,i[r]=s,o[r]=new RegExp(s,t?"g":void 0)};u("NUMERICIDENTIFIER","0|[1-9]\\d*"),u("NUMERICIDENTIFIERLOOSE","[0-9]+"),u("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),u("MAINVERSION",`(${i[a.NUMERICIDENTIFIER]})\\.(${i[a.NUMERICIDENTIFIER]})\\.(${i[a.NUMERICIDENTIFIER]})`),u("MAINVERSIONLOOSE",`(${i[a.NUMERICIDENTIFIERLOOSE]})\\.(${i[a.NUMERICIDENTIFIERLOOSE]})\\.(${i[a.NUMERICIDENTIFIERLOOSE]})`),u("PRERELEASEIDENTIFIER",`(?:${i[a.NUMERICIDENTIFIER]}|${i[a.NONNUMERICIDENTIFIER]})`),u("PRERELEASEIDENTIFIERLOOSE",`(?:${i[a.NUMERICIDENTIFIERLOOSE]}|${i[a.NONNUMERICIDENTIFIER]})`),u("PRERELEASE",`(?:-(${i[a.PRERELEASEIDENTIFIER]}(?:\\.${i[a.PRERELEASEIDENTIFIER]})*))`),u("PRERELEASELOOSE",`(?:-?(${i[a.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${i[a.PRERELEASEIDENTIFIERLOOSE]})*))`),u("BUILDIDENTIFIER","[0-9A-Za-z-]+"),u("BUILD",`(?:\\+(${i[a.BUILDIDENTIFIER]}(?:\\.${i[a.BUILDIDENTIFIER]})*))`),u("FULLPLAIN",`v?${i[a.MAINVERSION]}${i[a.PRERELEASE]}?${i[a.BUILD]}?`),u("FULL",`^${i[a.FULLPLAIN]}$`),u("LOOSEPLAIN",`[v=\\s]*${i[a.MAINVERSIONLOOSE]}${i[a.PRERELEASELOOSE]}?${i[a.BUILD]}?`),u("LOOSE",`^${i[a.LOOSEPLAIN]}$`),u("GTLT","((?:<|>)?=?)"),u("XRANGEIDENTIFIERLOOSE",`${i[a.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),u("XRANGEIDENTIFIER",`${i[a.NUMERICIDENTIFIER]}|x|X|\\*`),u("XRANGEPLAIN",`[v=\\s]*(${i[a.XRANGEIDENTIFIER]})(?:\\.(${i[a.XRANGEIDENTIFIER]})(?:\\.(${i[a.XRANGEIDENTIFIER]})(?:${i[a.PRERELEASE]})?${i[a.BUILD]}?)?)?`),u("XRANGEPLAINLOOSE",`[v=\\s]*(${i[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[a.XRANGEIDENTIFIERLOOSE]})(?:${i[a.PRERELEASELOOSE]})?${i[a.BUILD]}?)?)?`),u("XRANGE",`^${i[a.GTLT]}\\s*${i[a.XRANGEPLAIN]}$`),u("XRANGELOOSE",`^${i[a.GTLT]}\\s*${i[a.XRANGEPLAINLOOSE]}$`),u("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),u("COERCERTL",i[a.COERCE],!0),u("LONETILDE","(?:~>?)"),u("TILDETRIM",`(\\s*)${i[a.LONETILDE]}\\s+`,!0),s.tildeTrimReplace="$1~",u("TILDE",`^${i[a.LONETILDE]}${i[a.XRANGEPLAIN]}$`),u("TILDELOOSE",`^${i[a.LONETILDE]}${i[a.XRANGEPLAINLOOSE]}$`),u("LONECARET","(?:\\^)"),u("CARETTRIM",`(\\s*)${i[a.LONECARET]}\\s+`,!0),s.caretTrimReplace="$1^",u("CARET",`^${i[a.LONECARET]}${i[a.XRANGEPLAIN]}$`),u("CARETLOOSE",`^${i[a.LONECARET]}${i[a.XRANGEPLAINLOOSE]}$`),u("COMPARATORLOOSE",`^${i[a.GTLT]}\\s*(${i[a.LOOSEPLAIN]})$|^$`),u("COMPARATOR",`^${i[a.GTLT]}\\s*(${i[a.FULLPLAIN]})$|^$`),u("COMPARATORTRIM",`(\\s*)${i[a.GTLT]}\\s*(${i[a.LOOSEPLAIN]}|${i[a.XRANGEPLAIN]})`,!0),s.comparatorTrimReplace="$1$2$3",u("HYPHENRANGE",`^\\s*(${i[a.XRANGEPLAIN]})\\s+-\\s+(${i[a.XRANGEPLAIN]})\\s*$`),u("HYPHENRANGELOOSE",`^\\s*(${i[a.XRANGEPLAINLOOSE]})\\s+-\\s+(${i[a.XRANGEPLAINLOOSE]})\\s*$`),u("STAR","(<|>)?=?\\s*\\*"),u("GTE0","^\\s*>=\\s*0.0.0\\s*$"),u("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")},"./node_modules/semver/ranges/gtr.js":(e,s,t)=>{const r=t("./node_modules/semver/ranges/outside.js");e.exports=(e,s,t)=>r(e,s,">",t)},"./node_modules/semver/ranges/intersects.js":(e,s,t)=>{const r=t("./node_modules/semver/classes/range.js");e.exports=(e,s,t)=>(e=new r(e,t),s=new r(s,t),e.intersects(s))},"./node_modules/semver/ranges/ltr.js":(e,s,t)=>{const r=t("./node_modules/semver/ranges/outside.js");e.exports=(e,s,t)=>r(e,s,"<",t)},"./node_modules/semver/ranges/max-satisfying.js":(e,s,t)=>{const r=t("./node_modules/semver/classes/semver.js"),n=t("./node_modules/semver/classes/range.js");e.exports=(e,s,t)=>{let o=null,i=null,a=null;try{a=new n(s,t)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(o&&-1!==i.compare(e)||(o=e,i=new r(o,t)))})),o}},"./node_modules/semver/ranges/min-satisfying.js":(e,s,t)=>{const r=t("./node_modules/semver/classes/semver.js"),n=t("./node_modules/semver/classes/range.js");e.exports=(e,s,t)=>{let o=null,i=null,a=null;try{a=new n(s,t)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(o&&1!==i.compare(e)||(o=e,i=new r(o,t)))})),o}},"./node_modules/semver/ranges/min-version.js":(e,s,t)=>{const r=t("./node_modules/semver/classes/semver.js"),n=t("./node_modules/semver/classes/range.js"),o=t("./node_modules/semver/functions/gt.js");e.exports=(e,s)=>{e=new n(e,s);let t=new r("0.0.0");if(e.test(t))return t;if(t=new r("0.0.0-0"),e.test(t))return t;t=null;for(let s=0;s<e.set.length;++s){const n=e.set[s];let i=null;n.forEach((e=>{const s=new r(e.semver.version);switch(e.operator){case">":0===s.prerelease.length?s.patch++:s.prerelease.push(0),s.raw=s.format();case"":case">=":i&&!o(s,i)||(i=s);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!i||t&&!o(t,i)||(t=i)}return t&&e.test(t)?t:null}},"./node_modules/semver/ranges/outside.js":(e,s,t)=>{const r=t("./node_modules/semver/classes/semver.js"),n=t("./node_modules/semver/classes/comparator.js"),{ANY:o}=n,i=t("./node_modules/semver/classes/range.js"),a=t("./node_modules/semver/functions/satisfies.js"),l=t("./node_modules/semver/functions/gt.js"),u=t("./node_modules/semver/functions/lt.js"),c=t("./node_modules/semver/functions/lte.js"),m=t("./node_modules/semver/functions/gte.js");e.exports=(e,s,t,d)=>{let h,p,f,v,E;switch(e=new r(e,d),s=new i(s,d),t){case">":h=l,p=c,f=u,v=">",E=">=";break;case"<":h=u,p=m,f=l,v="<",E="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(a(e,s,d))return!1;for(let t=0;t<s.set.length;++t){const r=s.set[t];let i=null,a=null;if(r.forEach((e=>{e.semver===o&&(e=new n(">=0.0.0")),i=i||e,a=a||e,h(e.semver,i.semver,d)?i=e:f(e.semver,a.semver,d)&&(a=e)})),i.operator===v||i.operator===E)return!1;if((!a.operator||a.operator===v)&&p(e,a.semver))return!1;if(a.operator===E&&f(e,a.semver))return!1}return!0}},"./node_modules/semver/ranges/simplify.js":(e,s,t)=>{const r=t("./node_modules/semver/functions/satisfies.js"),n=t("./node_modules/semver/functions/compare.js");e.exports=(e,s,t)=>{const o=[];let i=null,a=null;const l=e.sort(((e,s)=>n(e,s,t)));for(const e of l)r(e,s,t)?(a=e,i||(i=e)):(a&&o.push([i,a]),a=null,i=null);i&&o.push([i,null]);const u=[];for(const[e,s]of o)e===s?u.push(e):s||e!==l[0]?s?e===l[0]?u.push(`<=${s}`):u.push(`${e} - ${s}`):u.push(`>=${e}`):u.push("*");const c=u.join(" || "),m="string"==typeof s.raw?s.raw:String(s);return c.length<m.length?c:s}},"./node_modules/semver/ranges/subset.js":(e,s,t)=>{const r=t("./node_modules/semver/classes/range.js"),{ANY:n}=t("./node_modules/semver/classes/comparator.js"),o=t("./node_modules/semver/functions/satisfies.js"),i=t("./node_modules/semver/functions/compare.js"),a=(e,s,t)=>{if(e===s)return!0;if(1===e.length&&e[0].semver===n)return 1===s.length&&s[0].semver===n;const r=new Set;let a,c,m,d,h,p,f;for(const s of e)">"===s.operator||">="===s.operator?a=l(a,s,t):"<"===s.operator||"<="===s.operator?c=u(c,s,t):r.add(s.semver);if(r.size>1)return null;if(a&&c){if(m=i(a.semver,c.semver,t),m>0)return null;if(0===m&&(">="!==a.operator||"<="!==c.operator))return null}for(const e of r){if(a&&!o(e,String(a),t))return null;if(c&&!o(e,String(c),t))return null;for(const r of s)if(!o(e,String(r),t))return!1;return!0}for(const e of s){if(f=f||">"===e.operator||">="===e.operator,p=p||"<"===e.operator||"<="===e.operator,a)if(">"===e.operator||">="===e.operator){if(d=l(a,e,t),d===e&&d!==a)return!1}else if(">="===a.operator&&!o(a.semver,String(e),t))return!1;if(c)if("<"===e.operator||"<="===e.operator){if(h=u(c,e,t),h===e&&h!==c)return!1}else if("<="===c.operator&&!o(c.semver,String(e),t))return!1;if(!e.operator&&(c||a)&&0!==m)return!1}return!(a&&p&&!c&&0!==m||c&&f&&!a&&0!==m)},l=(e,s,t)=>{if(!e)return s;const r=i(e.semver,s.semver,t);return r>0?e:r<0||">"===s.operator&&">="===e.operator?s:e},u=(e,s,t)=>{if(!e)return s;const r=i(e.semver,s.semver,t);return r<0?e:r>0||"<"===s.operator&&"<="===e.operator?s:e};e.exports=(e,s,t)=>{if(e===s)return!0;e=new r(e,t),s=new r(s,t);let n=!1;e:for(const r of e.set){for(const e of s.set){const s=a(r,e,t);if(n=n||null!==s,s)continue e}if(n)return!1}return!0}},"./node_modules/semver/ranges/to-comparators.js":(e,s,t)=>{const r=t("./node_modules/semver/classes/range.js");e.exports=(e,s)=>new r(e,s).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))},"./node_modules/semver/ranges/valid.js":(e,s,t)=>{const r=t("./node_modules/semver/classes/range.js");e.exports=(e,s)=>{try{return new r(e,s).range||"*"}catch(e){return null}}},"./src/jiti.ts":(e,s,t)=>{"use strict";t.d(s,{default:()=>x});var r=t("fs"),n=t("module"),o=t("path");const i=require("os"),a=require("crypto"),l=require("vm");var u=t.n(l),c=t("./node_modules/mkdirp/index.js"),m=t.n(c);const d=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,h=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,p=/^["{[]|^-?[0-9][0-9.]{0,14}$/;function f(e,s){if("__proto__"!==e&&"constructor"!==e)return s}const v=function(e){if("string"!=typeof e)return e;const s=e.toLowerCase();if("true"===s)return!0;if("false"===s)return!1;if("null"===s)return null;if("nan"===s)return NaN;if("infinity"===s)return 1/0;if("undefined"!==s){if(!p.test(e))return e;try{return d.test(e)||h.test(e)?JSON.parse(e,f):JSON.parse(e)}catch(s){return e}}};var E=t("./node_modules/create-require/create-require.js"),g=t.n(E),_=t("./node_modules/semver/index.js"),j=t.n(_),y=t("./node_modules/pirates/lib/index.js");e=t.hmd(e);const I=v(process.env.JITI_DEBUG),$=v(process.env.JITI_CACHE),R={debug:I,cache:void 0===$||$,legacy:j().lt(process.version||"0.0.0","14.0.0")};function N(e,s=8){return(0,a.createHash)("md5").update(e).digest("hex").substr(0,s)}function x(s=process.cwd(),t={}){const a="3"+((t=Object.assign(Object.assign({},R),t)).legacy?"-legacy":"");function l(...e){t.debug&&console.log("[jiti]",...e)}if(function(e){try{return(0,r.lstatSync)(e).isDirectory()}catch(e){return!1}}(s)&&(s=(0,o.join)(s,"index.js")),!0===t.cache&&(t.cache=(0,o.join)((0,i.tmpdir)(),"node-jiti")),t.cache)try{if(m().sync(t.cache),!function(e){try{return(0,r.accessSync)(e,r.constants.W_OK),!0}catch(e){return!1}}(t.cache))throw new Error("directory is not writable")}catch(e){l("Error creating cache directory at ",t.cache,e),t.cache=!1}const c=g()(s),d=(e,s)=>{try{return c.resolve(e,s)}catch(e){}},h=(e,s)=>[".js",".ts",".mjs"].includes((0,o.extname)(e))?c.resolve(e,s):d(e,s)||d(e+".ts",s)||d(e+"/index.ts",s)||d(e+".mjs",s)||d(e+"/index.mjs",s)||c.resolve(e,s);function p(e,s,n){if(!t.cache)return n();const i=` /* v${a}-${N(s,16)} */`,l=(0,o.basename)((0,o.dirname)(e))+"-"+(0,o.basename)(e),u=(0,o.join)(t.cache,l+"."+N(e)+".js");if((0,r.existsSync)(u)){const e=(0,r.readFileSync)(u,"utf-8");if(e.endsWith(i))return e}const c=n();return(0,r.writeFileSync)(u,c+i,"utf-8"),c}function f(s){var i;if(n.builtinModules.includes(s))return c(s);const a=h(s),m=(0,o.extname)(a);if(![".js",".ts"].includes(m))return l("[unknown]",a),c(s);if(".mjs"===m&&t.dynamicImport)return l("[mjs]",a),t.dynamicImport(a);if(c.cache[a])return null===(i=c.cache[a])||void 0===i?void 0:i.exports;let d=(0,r.readFileSync)(a,"utf-8");const v=".ts"===m;if(v||d.match(/^\s*import .* from/m)||d.match(/^\s*export /m)||t.legacy&&(d.match(/\?\./)||d.match(/\?\?/))||!t.dynamicImport&&d.match(/import\s*\(/))l("[transpile]",a),d=p(a,d,(()=>t.transform({source:d,filename:a,legacy:t.legacy,ts:v})));else try{return l("[native]",a),c(s)}catch(e){l("Native require error:",e),l("[fallback]",a),d=p(a,d,(()=>t.transform({source:d,filename:a,legacy:t.legacy})))}const E=new n.Module(a);let g;E.filename=a,E.parent=e,E.require=x(a,t),E.path=(0,o.dirname)(a),E.paths=n.Module._nodeModulePaths(E.path),c.cache[a]=E;try{g=u().runInThisContext(n.Module.wrap(d),{filename:a,lineOffset:0,displayErrors:!1})}catch(e){delete c.cache[a],t.onError(e)}try{g(E.exports,E.require,E,E.filename,(0,o.dirname)(E.filename))}catch(e){delete c.cache[a],t.onError(e)}if(E.exports&&E.exports.__JITI_ERROR__){const{filename:e,line:s,column:r,code:n,message:o}=E.exports.__JITI_ERROR__,i=new Error(`${n}: ${o} \n ${e}:${s}:${r}`);Error.captureStackTrace(i,f),t.onError(i)}return E.loaded=!0,E.exports}return h.paths=c.resolve.paths,f.resolve=h,f.cache=c.cache,f.extensions=c.extensions,f.main=c.main,f.transform=t.transform,f.register=function(){return(0,y.addHook)(((e,s)=>f.transform({source:e,filename:s,ts:!!s.match(/.ts$/)})),{exts:[".js",".ts"]})},f}},"./node_modules/yallist/iterator.js":e=>{"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}},"./node_modules/yallist/yallist.js":(e,s,t)=>{"use strict";function r(e){var s=this;if(s instanceof r||(s=new r),s.tail=null,s.head=null,s.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){s.push(e)}));else if(arguments.length>0)for(var t=0,n=arguments.length;t<n;t++)s.push(arguments[t]);return s}function n(e,s){e.tail=new i(s,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function o(e,s){e.head=new i(s,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function i(e,s,t,r){if(!(this instanceof i))return new i(e,s,t,r);this.list=r,this.value=e,s?(s.next=this,this.prev=s):this.prev=null,t?(t.prev=this,this.next=t):this.next=null}e.exports=r,r.Node=i,r.create=r,r.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var s=e.next,t=e.prev;return s&&(s.prev=t),t&&(t.next=s),e===this.head&&(this.head=s),e===this.tail&&(this.tail=t),e.list.length--,e.next=null,e.prev=null,e.list=null,s},r.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var s=this.head;e.list=this,e.next=s,s&&(s.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},r.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var s=this.tail;e.list=this,e.prev=s,s&&(s.next=e),this.tail=e,this.head||(this.head=e),this.length++}},r.prototype.push=function(){for(var e=0,s=arguments.length;e<s;e++)n(this,arguments[e]);return this.length},r.prototype.unshift=function(){for(var e=0,s=arguments.length;e<s;e++)o(this,arguments[e]);return this.length},r.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},r.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},r.prototype.forEach=function(e,s){s=s||this;for(var t=this.head,r=0;null!==t;r++)e.call(s,t.value,r,this),t=t.next},r.prototype.forEachReverse=function(e,s){s=s||this;for(var t=this.tail,r=this.length-1;null!==t;r--)e.call(s,t.value,r,this),t=t.prev},r.prototype.get=function(e){for(var s=0,t=this.head;null!==t&&s<e;s++)t=t.next;if(s===e&&null!==t)return t.value},r.prototype.getReverse=function(e){for(var s=0,t=this.tail;null!==t&&s<e;s++)t=t.prev;if(s===e&&null!==t)return t.value},r.prototype.map=function(e,s){s=s||this;for(var t=new r,n=this.head;null!==n;)t.push(e.call(s,n.value,this)),n=n.next;return t},r.prototype.mapReverse=function(e,s){s=s||this;for(var t=new r,n=this.tail;null!==n;)t.push(e.call(s,n.value,this)),n=n.prev;return t},r.prototype.reduce=function(e,s){var t,r=this.head;if(arguments.length>1)t=s;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");r=this.head.next,t=this.head.value}for(var n=0;null!==r;n++)t=e(t,r.value,n),r=r.next;return t},r.prototype.reduceReverse=function(e,s){var t,r=this.tail;if(arguments.length>1)t=s;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");r=this.tail.prev,t=this.tail.value}for(var n=this.length-1;null!==r;n--)t=e(t,r.value,n),r=r.prev;return t},r.prototype.toArray=function(){for(var e=new Array(this.length),s=0,t=this.head;null!==t;s++)e[s]=t.value,t=t.next;return e},r.prototype.toArrayReverse=function(){for(var e=new Array(this.length),s=0,t=this.tail;null!==t;s++)e[s]=t.value,t=t.prev;return e},r.prototype.slice=function(e,s){(s=s||this.length)<0&&(s+=this.length),(e=e||0)<0&&(e+=this.length);var t=new r;if(s<e||s<0)return t;e<0&&(e=0),s>this.length&&(s=this.length);for(var n=0,o=this.head;null!==o&&n<e;n++)o=o.next;for(;null!==o&&n<s;n++,o=o.next)t.push(o.value);return t},r.prototype.sliceReverse=function(e,s){(s=s||this.length)<0&&(s+=this.length),(e=e||0)<0&&(e+=this.length);var t=new r;if(s<e||s<0)return t;e<0&&(e=0),s>this.length&&(s=this.length);for(var n=this.length,o=this.tail;null!==o&&n>s;n--)o=o.prev;for(;null!==o&&n>e;n--,o=o.prev)t.push(o.value);return t},r.prototype.splice=function(e,s,...t){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var r=0,n=this.head;null!==n&&r<e;r++)n=n.next;var o,a,l,u,c=[];for(r=0;n&&r<s;r++)c.push(n.value),n=this.removeNode(n);for(null===n&&(n=this.tail),n!==this.head&&n!==this.tail&&(n=n.prev),r=0;r<t.length;r++)o=this,a=n,l=t[r],u=void 0,null===(u=a===o.head?new i(l,null,a,o):new i(l,a,a.next,o)).next&&(o.tail=u),null===u.prev&&(o.head=u),o.length++,n=u;return c},r.prototype.reverse=function(){for(var e=this.head,s=this.tail,t=e;null!==t;t=t.prev){var r=t.prev;t.prev=t.next,t.next=r}return this.head=s,this.tail=e,this};try{t("./node_modules/yallist/iterator.js")(r)}catch(e){}},fs:e=>{"use strict";e.exports=require("fs")},module:e=>{"use strict";e.exports=require("module")},path:e=>{"use strict";e.exports=require("path")},util:e=>{"use strict";e.exports=require("util")}},s={};function t(r){if(s[r])return s[r].exports;var n=s[r]={id:r,loaded:!1,exports:{}};return e[r](n,n.exports,t),n.loaded=!0,n.exports}t.n=e=>{var s=e&&e.__esModule?()=>e.default:()=>e;return t.d(s,{a:s}),s},t.d=(e,s)=>{for(var r in s)t.o(s,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:s[r]})},t.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),t.o=(e,s)=>Object.prototype.hasOwnProperty.call(e,s),t.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var r=t("./src/jiti.ts");module.exports=r.default})();

@@ -6,2 +6,3 @@ export declare type TransformOptions = {

retainLines?: Boolean;
legacy?: Boolean;
};
/*! For license information please see v8cache.js.LICENSE.txt */
module.exports=(()=>{var e={"./node_modules/v8-compile-cache/v8-compile-cache.js":(e,t,s)=>{"use strict";e=s.nmd(e);const o=s("module"),r=s("crypto"),i=s("fs"),c=s("path"),n=s("vm"),a=s("os"),l=Object.prototype.hasOwnProperty;class h{constructor(e,t){const s=t?_(t+"."):"";this._blobFilename=c.join(e,s+"BLOB"),this._mapFilename=c.join(e,s+"MAP"),this._lockFilename=c.join(e,s+"LOCK"),this._directory=e,this._load()}has(e,t){return l.call(this._memoryBlobs,e)?this._invalidationKeys[e]===t:!!l.call(this._storedMap,e)&&this._storedMap[e][0]===t}get(e,t){if(l.call(this._memoryBlobs,e)){if(this._invalidationKeys[e]===t)return this._memoryBlobs[e]}else if(l.call(this._storedMap,e)){const s=this._storedMap[e];if(s[0]===t)return this._storedBlob.slice(s[1],s[2])}}set(e,t,s){this._invalidationKeys[e]=t,this._memoryBlobs[e]=s,this._dirty=!0}delete(e){l.call(this._memoryBlobs,e)&&(this._dirty=!0,delete this._memoryBlobs[e]),l.call(this._invalidationKeys,e)&&(this._dirty=!0,delete this._invalidationKeys[e]),l.call(this._storedMap,e)&&(this._dirty=!0,delete this._storedMap[e])}isDirty(){return this._dirty}save(){const e=this._getDump(),t=Buffer.concat(e[0]),s=JSON.stringify(e[1]);try{d(this._directory),i.writeFileSync(this._lockFilename,"LOCK",{flag:"wx"})}catch(e){return!1}try{i.writeFileSync(this._blobFilename,t),i.writeFileSync(this._mapFilename,s)}finally{i.unlinkSync(this._lockFilename)}return!0}_load(){try{this._storedBlob=i.readFileSync(this._blobFilename),this._storedMap=JSON.parse(i.readFileSync(this._mapFilename))}catch(e){this._storedBlob=Buffer.alloc(0),this._storedMap={}}this._dirty=!1,this._memoryBlobs={},this._invalidationKeys={}}_getDump(){const e=[],t={};let s=0;function o(o,r,i){e.push(i),t[o]=[r,s,s+i.length],s+=i.length}for(const e of Object.keys(this._memoryBlobs)){const t=this._memoryBlobs[e];o(e,this._invalidationKeys[e],t)}for(const e of Object.keys(this._storedMap)){if(l.call(t,e))continue;const s=this._storedMap[e],r=this._storedBlob.slice(s[1],s[2]);o(e,s[0],r)}return[e,t]}}class p{constructor(){this._cacheStore=null,this._previousModuleCompile=null}setCacheStore(e){this._cacheStore=e}install(){const e=this,t="function"==typeof s("./node_modules/v8-compile-cache sync recursive").resolve.paths;this._previousModuleCompile=o.prototype._compile,o.prototype._compile=function(s,r){const i=this;function n(e){return i.require(e)}function a(e,t){return o._resolveFilename(e,i,!1,t)}n.resolve=a,t&&(a.paths=function(e){return o._resolveLookupPaths(e,i,!0)}),n.main=process.mainModule,n.extensions=o._extensions,n.cache=o._cache;const l=c.dirname(r),h=e._moduleCompile(r,s),p=[i.exports,n,i,r,l,process,global,Buffer];return h.apply(i.exports,p)}}uninstall(){o.prototype._compile=this._previousModuleCompile}_moduleCompile(e,t){var s=t.length;if(s>=2&&35===t.charCodeAt(0)&&33===t.charCodeAt(1))if(2===s)t="";else{for(var i=2;i<s;++i){var c=t.charCodeAt(i);if(10===c||13===c)break}t=i===s?"":t.slice(i)}var a=o.wrap(t),l=r.createHash("sha1").update(t,"utf8").digest("hex"),h=this._cacheStore.get(e,l),p=new n.Script(a,{filename:e,lineOffset:0,displayErrors:!0,cachedData:h,produceCachedData:!0});return p.cachedDataProduced?this._cacheStore.set(e,l,p.cachedData):p.cachedDataRejected&&this._cacheStore.delete(e),p.runInThisContext({filename:e,lineOffset:0,columnOffset:0,displayErrors:!0})}}function d(e){u(c.resolve(e),511)}function u(e,t){try{i.mkdirSync(e,t)}catch(t){if("ENOENT"===t.code)u(c.dirname(e)),u(e);else try{if(!i.statSync(e).isDirectory())throw t}catch(e){throw t}}}function _(e){const t={"\\":"zB",":":"zC","/":"zS","\0":"z0",z:"zZ"};return e.replace(/[\\:/\x00z]/g,(e=>t[e]))}function m(){return!0===new n.Script('""',{produceCachedData:!0}).cachedDataProduced}function y(){const e=process.env.V8_COMPILE_CACHE_CACHE_DIR;if(e)return e;const t="function"==typeof process.getuid?"v8-compile-cache-"+process.getuid():"v8-compile-cache",s="string"==typeof process.versions.v8?process.versions.v8:"string"==typeof process.versions.chakracore?"chakracore-"+process.versions.chakracore:"node-"+process.version;return c.join(a.tmpdir(),t,s)}function f(){return e.parent&&"string"==typeof e.parent.filename?e.parent.filename:process.cwd()}if(!process.env.DISABLE_V8_COMPILE_CACHE&&m()){const e=new h(y(),f()),t=new p;t.setCacheStore(e),t.install(),process.once("exit",(()=>{e.isDirty()&&e.save(),t.uninstall()}))}e.exports.__TEST__={FileSystemBlobStore:h,NativeCompileCache:p,mkdirpSync:d,slashEscape:_,supportsCachedData:m,getCacheDir:y,getParentName:f}},"./node_modules/v8-compile-cache sync recursive":e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id="./node_modules/v8-compile-cache sync recursive",e.exports=t},crypto:e=>{"use strict";e.exports=require("crypto")},fs:e=>{"use strict";e.exports=require("fs")},module:e=>{"use strict";e.exports=require("module")},os:e=>{"use strict";e.exports=require("os")},path:e=>{"use strict";e.exports=require("path")},vm:e=>{"use strict";e.exports=require("vm")}},t={};function s(o){if(t[o])return t[o].exports;var r=t[o]={id:o,loaded:!1,exports:{}};return e[o](r,r.exports,s),r.loaded=!0,r.exports}return s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),s("./node_modules/v8-compile-cache/v8-compile-cache.js")})().default;
(()=>{var e={"./node_modules/v8-compile-cache/v8-compile-cache.js":(e,t,s)=>{"use strict";e=s.nmd(e);const o=s("module"),r=s("crypto"),i=s("fs"),c=s("path"),n=s("vm"),a=s("os"),l=Object.prototype.hasOwnProperty;class h{constructor(e,t){const s=t?_(t+"."):"";this._blobFilename=c.join(e,s+"BLOB"),this._mapFilename=c.join(e,s+"MAP"),this._lockFilename=c.join(e,s+"LOCK"),this._directory=e,this._load()}has(e,t){return l.call(this._memoryBlobs,e)?this._invalidationKeys[e]===t:!!l.call(this._storedMap,e)&&this._storedMap[e][0]===t}get(e,t){if(l.call(this._memoryBlobs,e)){if(this._invalidationKeys[e]===t)return this._memoryBlobs[e]}else if(l.call(this._storedMap,e)){const s=this._storedMap[e];if(s[0]===t)return this._storedBlob.slice(s[1],s[2])}}set(e,t,s){this._invalidationKeys[e]=t,this._memoryBlobs[e]=s,this._dirty=!0}delete(e){l.call(this._memoryBlobs,e)&&(this._dirty=!0,delete this._memoryBlobs[e]),l.call(this._invalidationKeys,e)&&(this._dirty=!0,delete this._invalidationKeys[e]),l.call(this._storedMap,e)&&(this._dirty=!0,delete this._storedMap[e])}isDirty(){return this._dirty}save(){const e=this._getDump(),t=Buffer.concat(e[0]),s=JSON.stringify(e[1]);try{d(this._directory),i.writeFileSync(this._lockFilename,"LOCK",{flag:"wx"})}catch(e){return!1}try{i.writeFileSync(this._blobFilename,t),i.writeFileSync(this._mapFilename,s)}finally{i.unlinkSync(this._lockFilename)}return!0}_load(){try{this._storedBlob=i.readFileSync(this._blobFilename),this._storedMap=JSON.parse(i.readFileSync(this._mapFilename))}catch(e){this._storedBlob=Buffer.alloc(0),this._storedMap={}}this._dirty=!1,this._memoryBlobs={},this._invalidationKeys={}}_getDump(){const e=[],t={};let s=0;function o(o,r,i){e.push(i),t[o]=[r,s,s+i.length],s+=i.length}for(const e of Object.keys(this._memoryBlobs)){const t=this._memoryBlobs[e];o(e,this._invalidationKeys[e],t)}for(const e of Object.keys(this._storedMap)){if(l.call(t,e))continue;const s=this._storedMap[e],r=this._storedBlob.slice(s[1],s[2]);o(e,s[0],r)}return[e,t]}}class p{constructor(){this._cacheStore=null,this._previousModuleCompile=null}setCacheStore(e){this._cacheStore=e}install(){const e=this,t="function"==typeof s("./node_modules/v8-compile-cache sync recursive").resolve.paths;this._previousModuleCompile=o.prototype._compile,o.prototype._compile=function(s,r){const i=this;function n(e){return i.require(e)}function a(e,t){return o._resolveFilename(e,i,!1,t)}n.resolve=a,t&&(a.paths=function(e){return o._resolveLookupPaths(e,i,!0)}),n.main=process.mainModule,n.extensions=o._extensions,n.cache=o._cache;const l=c.dirname(r),h=e._moduleCompile(r,s),p=[i.exports,n,i,r,l,process,global,Buffer];return h.apply(i.exports,p)}}uninstall(){o.prototype._compile=this._previousModuleCompile}_moduleCompile(e,t){var s=t.length;if(s>=2&&35===t.charCodeAt(0)&&33===t.charCodeAt(1))if(2===s)t="";else{for(var i=2;i<s;++i){var c=t.charCodeAt(i);if(10===c||13===c)break}t=i===s?"":t.slice(i)}var a=o.wrap(t),l=r.createHash("sha1").update(t,"utf8").digest("hex"),h=this._cacheStore.get(e,l),p=new n.Script(a,{filename:e,lineOffset:0,displayErrors:!0,cachedData:h,produceCachedData:!0});return p.cachedDataProduced?this._cacheStore.set(e,l,p.cachedData):p.cachedDataRejected&&this._cacheStore.delete(e),p.runInThisContext({filename:e,lineOffset:0,columnOffset:0,displayErrors:!0})}}function d(e){u(c.resolve(e),511)}function u(e,t){try{i.mkdirSync(e,t)}catch(t){if("ENOENT"===t.code)u(c.dirname(e)),u(e);else try{if(!i.statSync(e).isDirectory())throw t}catch(e){throw t}}}function _(e){const t={"\\":"zB",":":"zC","/":"zS","\0":"z0",z:"zZ"};return e.replace(/[\\:/\x00z]/g,(e=>t[e]))}function m(){return!0===new n.Script('""',{produceCachedData:!0}).cachedDataProduced}function y(){const e=process.env.V8_COMPILE_CACHE_CACHE_DIR;if(e)return e;const t="function"==typeof process.getuid?"v8-compile-cache-"+process.getuid():"v8-compile-cache",s="string"==typeof process.versions.v8?process.versions.v8:"string"==typeof process.versions.chakracore?"chakracore-"+process.versions.chakracore:"node-"+process.version;return c.join(a.tmpdir(),t,s)}function f(){return e.parent&&"string"==typeof e.parent.filename?e.parent.filename:process.cwd()}if(!process.env.DISABLE_V8_COMPILE_CACHE&&m()){const e=new h(y(),f()),t=new p;t.setCacheStore(e),t.install(),process.once("exit",(()=>{e.isDirty()&&e.save(),t.uninstall()}))}e.exports.__TEST__={FileSystemBlobStore:h,NativeCompileCache:p,mkdirpSync:d,slashEscape:_,supportsCachedData:m,getCacheDir:y,getParentName:f}},"./node_modules/v8-compile-cache sync recursive":e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id="./node_modules/v8-compile-cache sync recursive",e.exports=t},crypto:e=>{"use strict";e.exports=require("crypto")},fs:e=>{"use strict";e.exports=require("fs")},module:e=>{"use strict";e.exports=require("module")},os:e=>{"use strict";e.exports=require("os")},path:e=>{"use strict";e.exports=require("path")},vm:e=>{"use strict";e.exports=require("vm")}},t={};function s(o){if(t[o])return t[o].exports;var r=t[o]={id:o,loaded:!1,exports:{}};return e[o](r,r.exports,s),r.loaded=!0,r.exports}s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var o=s("./node_modules/v8-compile-cache/v8-compile-cache.js");module.exports=o.default})();
{
"name": "jiti",
"version": "1.3.0",
"version": "1.4.0",
"description": "Runtime typescript and ESM support for Node.js (CommonJS)",

@@ -21,2 +21,3 @@ "repository": "nuxt-contrib/jiti",

"jiti": "JITI_DEBUG=1 ./bin/jiti.js",
"jiti:legacy": "JITI_DEBUG=1 npx node@12 ./bin/jiti.js",
"lint": "eslint --ext .ts,.js .",

@@ -28,2 +29,4 @@ "release": "yarn test && yarn build && yarn standard-version && git push --follow-tags && npm publish",

"@babel/core": "latest",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.13.8",
"@babel/plugin-proposal-optional-chaining": "^7.13.8",
"@babel/plugin-transform-modules-commonjs": "latest",

@@ -44,2 +47,3 @@ "@babel/plugin-transform-typescript": "latest",

"pirates": "latest",
"semver": "^7.3.4",
"standard-version": "latest",

@@ -52,3 +56,6 @@ "ts-loader": "latest",

"webpack-cli": "latest"
},
"dependencies": {
"@types/semver": "^7.3.4"
}
}

@@ -93,3 +93,3 @@ # jiti

- `+` Configured out of the box
- `+` Smart syntax detect to avoid unnecessary trnaspilation
- `+` Smart syntax detect to avoid unnecessary transpilation
- `+` Does not ignores `node_modules`. ESM everywhere yay!

@@ -96,0 +96,0 @@ - `+` Embeddable

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc