npm-check-updates 17.0.4 → 17.0.5

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/build/index.js CHANGED
@@ -401,7 +401,7 @@ globstar while`,C,H,T,z,oe),this.matchOne(C.slice(H),T.slice(z),U))return this.d
401
401
  * IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
402
402
  * express or implied. See the License for the specific language
403
403
  * governing permissions and limitations under the License.
404
- */return new vp.URL(r.url).hostname!==o.hostname&&(r.headers.delete("authorization"),r.headers.delete("cookie")),(e.status===303||r.method==="POST"&&[301,302].includes(e.status))&&(s.method="GET",s.body=null,r.headers.delete("content-length")),s.headers={},r.headers.forEach((u,c)=>{s.headers[c]=u}),s.counter=++r.counter,{request:new uY(vp.format(o),s),options:s}},e$=async(r,e)=>{const t=lY.storable(r,e)?await av(r,e):await hY(r,e);if(!["GET","HEAD"].includes(r.method)&&t.status>=200&&t.status<=399&&await av.invalidate(r,e),!fY(r,t,e))return t;const s=dY(r,t,e);return e$(s.request,s.options)};var pY=e$;const{FetchError:gY,Headers:mY,Request:t$,Response:yY}=uu,DY=J7,EY=pY,El=(r,e)=>{const t=DY(e),s=new t$(r,t);return EY(s,t)};El.defaults=(r,e={},t=El)=>{typeof r=="object"&&(e=r,r=null);const s=(n,o={})=>{const a=n||r,u={...e,...o,headers:{...e.headers,...o.headers}};return t(a,u)};return s.defaults=(n,o={})=>El.defaults(n,o,s),s};Eo.exports=El;Eo.exports.FetchError=gY;Eo.exports.Headers=mY;Eo.exports.Request=t$;Eo.exports.Response=yY;var bY=Eo.exports,Te={},r$=Te.LEFT_BRACE=1,bl=Te.RIGHT_BRACE=2,i$=Te.LEFT_BRACKET=3,bg=Te.RIGHT_BRACKET=4,wl=Te.COLON=5,Ll=Te.COMMA=6,s$=Te.TRUE=7,n$=Te.FALSE=8,o$=Te.NULL=9,kl=Te.STRING=10,a$=Te.NUMBER=11,Qs=Te.START=17,u$=Te.STOP=18,uv=Te.TRUE1=33,cv=Te.TRUE2=34,lv=Te.TRUE3=35,hv=Te.FALSE1=49,fv=Te.FALSE2=50,dv=Te.FALSE3=51,pv=Te.FALSE4=52,gv=Te.NULL1=65,mv=Te.NULL2=66,yv=Te.NULL3=67,Dv=Te.NUMBER1=81,_p=Te.NUMBER3=83,Fr=Te.STRING1=97,Ev=Te.STRING2=98,bv=Te.STRING3=99,wY=Te.STRING4=100,vY=Te.STRING5=101,wv=Te.STRING6=102,Gn=Te.VALUE=113,Ap=Te.KEY=114,Zc=Te.OBJECT=129,Jc=Te.ARRAY=130,_Y=92,AY=47,SY=8,CY=12,FY=10,$Y=13,RY=9,D1=64*1024;function Qc(r){return Buffer.alloc?Buffer.alloc(r):new Buffer(r)}function el(r){return Buffer.from?Buffer.from(r):new Buffer(r)}function Bs(){this.tState=Qs,this.value=void 0,this.string=void 0,this.stringBuffer=Qc(D1),this.stringBufferOffset=0,this.unicode=void 0,this.highSurrogate=void 0,this.key=void 0,this.mode=void 0,this.stack=[],this.state=Gn,this.bytes_remaining=0,this.bytes_in_sequence=0,this.temp_buffs={2:Qc(2),3:Qc(3),4:Qc(4)},this.offset=-1}Bs.toknam=function(r){for(var e=Object.keys(Te),t=0,s=e.length;t<s;t++){var n=e[t];if(Te[n]===r)return n}return r&&"0x"+r.toString(16)};var Er=Bs.prototype;Er.onError=function(r){throw r};Er.charError=function(r,e){this.tState=u$,this.onError(new Error("Unexpected "+JSON.stringify(String.fromCharCode(r[e]))+" at position "+e+" in state "+Bs.toknam(this.tState)))};Er.appendStringChar=function(r){this.stringBufferOffset>=D1&&(this.string+=this.stringBuffer.toString("utf8"),this.stringBufferOffset=0),this.stringBuffer[this.stringBufferOffset++]=r};Er.appendStringBuf=function(r,e,t){var s=r.length;typeof e=="number"&&(typeof t=="number"?t<0?s=r.length-e+t:s=t-e:s=r.length-e),s<0&&(s=0),this.stringBufferOffset+s>D1&&(this.string+=this.stringBuffer.toString("utf8",0,this.stringBufferOffset),this.stringBufferOffset=0),r.copy(this.stringBuffer,this.stringBufferOffset,e,t),this.stringBufferOffset+=s};Er.write=function(r){typeof r=="string"&&(r=el(r));for(var e,t=0,s=r.length;t<s;t++)if(this.tState===Qs){if(e=r[t],this.offset++,e===123)this.onToken(r$,"{");else if(e===125)this.onToken(bl,"}");else if(e===91)this.onToken(i$,"[");else if(e===93)this.onToken(bg,"]");else if(e===58)this.onToken(wl,":");else if(e===44)this.onToken(Ll,",");else if(e===116)this.tState=uv;else if(e===102)this.tState=hv;else if(e===110)this.tState=gv;else if(e===34)this.string="",this.stringBufferOffset=0,this.tState=Fr;else if(e===45)this.string="-",this.tState=Dv;else if(e>=48&&e<64)this.string=String.fromCharCode(e),this.tState=_p;else if(!(e===32||e===9||e===10||e===13))return this.charError(r,t)}else if(this.tState===Fr)if(e=r[t],this.bytes_remaining>0){for(var n=0;n<this.bytes_remaining;n++)this.temp_buffs[this.bytes_in_sequence][this.bytes_in_sequence-this.bytes_remaining+n]=r[n];this.appendStringBuf(this.temp_buffs[this.bytes_in_sequence]),this.bytes_in_sequence=this.bytes_remaining=0,t=t+n-1}else if(this.bytes_remaining===0&&e>=128){if(e<=193||e>244)return this.onError(new Error("Invalid UTF-8 character at position "+t+" in state "+Bs.toknam(this.tState)));if(e>=194&&e<=223&&(this.bytes_in_sequence=2),e>=224&&e<=239&&(this.bytes_in_sequence=3),e>=240&&e<=244&&(this.bytes_in_sequence=4),this.bytes_in_sequence+t>r.length){for(var o=0;o<=r.length-1-t;o++)this.temp_buffs[this.bytes_in_sequence][o]=r[t+o];this.bytes_remaining=t+this.bytes_in_sequence-r.length,t=r.length-1}else this.appendStringBuf(r,t,t+this.bytes_in_sequence),t=t+this.bytes_in_sequence-1}else if(e===34)this.tState=Qs,this.string+=this.stringBuffer.toString("utf8",0,this.stringBufferOffset),this.stringBufferOffset=0,this.onToken(kl,this.string),this.offset+=Buffer.byteLength(this.string,"utf8")+1,this.string=void 0;else if(e===92)this.tState=Ev;else if(e>=32)this.appendStringChar(e);else return this.charError(r,t);else if(this.tState===Ev)if(e=r[t],e===34)this.appendStringChar(e),this.tState=Fr;else if(e===92)this.appendStringChar(_Y),this.tState=Fr;else if(e===47)this.appendStringChar(AY),this.tState=Fr;else if(e===98)this.appendStringChar(SY),this.tState=Fr;else if(e===102)this.appendStringChar(CY),this.tState=Fr;else if(e===110)this.appendStringChar(FY),this.tState=Fr;else if(e===114)this.appendStringChar($Y),this.tState=Fr;else if(e===116)this.appendStringChar(RY),this.tState=Fr;else if(e===117)this.unicode="",this.tState=bv;else return this.charError(r,t);else if(this.tState===bv||this.tState===wY||this.tState===vY||this.tState===wv)if(e=r[t],e>=48&&e<64||e>64&&e<=70||e>96&&e<=102){if(this.unicode+=String.fromCharCode(e),this.tState++===wv){var a=parseInt(this.unicode,16);this.unicode=void 0,this.highSurrogate!==void 0&&a>=56320&&a<57344?(this.appendStringBuf(el(String.fromCharCode(this.highSurrogate,a))),this.highSurrogate=void 0):this.highSurrogate===void 0&&a>=55296&&a<56320?this.highSurrogate=a:(this.highSurrogate!==void 0&&(this.appendStringBuf(el(String.fromCharCode(this.highSurrogate))),this.highSurrogate=void 0),this.appendStringBuf(el(String.fromCharCode(a)))),this.tState=Fr}}else return this.charError(r,t);else if(this.tState===Dv||this.tState===_p)switch(e=r[t],e){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 46:case 101:case 69:case 43:case 45:this.string+=String.fromCharCode(e),this.tState=_p;break;default:this.tState=Qs;var u=this.numberReviver(this.string);if(u)return u;this.offset+=this.string.length-1,this.string=void 0,t--;break}else if(this.tState===uv)if(r[t]===114)this.tState=cv;else return this.charError(r,t);else if(this.tState===cv)if(r[t]===117)this.tState=lv;else return this.charError(r,t);else if(this.tState===lv)if(r[t]===101)this.tState=Qs,this.onToken(s$,!0),this.offset+=3;else return this.charError(r,t);else if(this.tState===hv)if(r[t]===97)this.tState=fv;else return this.charError(r,t);else if(this.tState===fv)if(r[t]===108)this.tState=dv;else return this.charError(r,t);else if(this.tState===dv)if(r[t]===115)this.tState=pv;else return this.charError(r,t);else if(this.tState===pv)if(r[t]===101)this.tState=Qs,this.onToken(n$,!1),this.offset+=4;else return this.charError(r,t);else if(this.tState===gv)if(r[t]===117)this.tState=mv;else return this.charError(r,t);else if(this.tState===mv)if(r[t]===108)this.tState=yv;else return this.charError(r,t);else if(this.tState===yv)if(r[t]===108)this.tState=Qs,this.onToken(o$,null),this.offset+=3;else return this.charError(r,t)};Er.onToken=function(r,e){};Er.parseError=function(r,e){this.tState=u$,this.onError(new Error("Unexpected "+Bs.toknam(r)+(e?"("+JSON.stringify(e)+")":"")+" in state "+Bs.toknam(this.state)))};Er.push=function(){this.stack.push({value:this.value,key:this.key,mode:this.mode})};Er.pop=function(){var r=this.value,e=this.stack.pop();this.value=e.value,this.key=e.key,this.mode=e.mode,this.emit(r),this.mode||(this.state=Gn)};Er.emit=function(r){this.mode&&(this.state=Ll),this.onValue(r)};Er.onValue=function(r){};Er.onToken=function(r,e){if(this.state===Gn)if(r===kl||r===a$||r===s$||r===n$||r===o$)this.value&&(this.value[this.key]=e),this.emit(e);else if(r===r$)this.push(),this.value?this.value=this.value[this.key]={}:this.value={},this.key=void 0,this.state=Ap,this.mode=Zc;else if(r===i$)this.push(),this.value?this.value=this.value[this.key]=[]:this.value=[],this.key=0,this.mode=Jc,this.state=Gn;else if(r===bl)if(this.mode===Zc)this.pop();else return this.parseError(r,e);else if(r===bg)if(this.mode===Jc)this.pop();else return this.parseError(r,e);else return this.parseError(r,e);else if(this.state===Ap)if(r===kl)this.key=e,this.state=wl;else if(r===bl)this.pop();else return this.parseError(r,e);else if(this.state===wl)if(r===wl)this.state=Gn;else return this.parseError(r,e);else if(this.state===Ll)if(r===Ll)this.mode===Jc?(this.key++,this.state=Gn):this.mode===Zc&&(this.state=Ap);else if(r===bg&&this.mode===Jc||r===bl&&this.mode===Zc)this.pop();else return this.parseError(r,e);else return this.parseError(r,e)};Er.numberReviver=function(r){var e=Number(r);if(isNaN(e))return this.charError(buffer,i);r.match(/[0-9]+/)==r&&e.toString()!=r?this.onToken(kl,r):this.onToken(a$,e)};Bs.C=Te;var xY=Bs;const OY=xY,{Minipass:TY}=oi;class vv extends Error{constructor(e,t){super(e.message),Error.captureStackTrace(this,t||this.constructor)}get name(){return"JSONStreamError"}}const _v=(r,e)=>typeof r=="string"?String(e)===r:r&&typeof r.test=="function"?r.test(e):typeof r=="boolean"||typeof r=="object"?r:typeof r=="function"?r(e):!1;class E1 extends TY{#e=0;#i=!1;#r=null;#s=null;#c=null;#a;#h;#o=null;#n=null;constructor(e){super({...e,objectMode:!0});const t=this.#h=new OY;t.onValue=s=>this.#d(s),this.#a=t.onToken,t.onToken=(s,n)=>this.#y(s,n),t.onError=s=>this.#g(s),this.#o=typeof e.path=="string"?e.path.split(".").map(s=>s==="$*"?{emitKey:!0}:s==="*"?!0:s===""?{recurse:!0}:s):Array.isArray(e.path)&&e.path.length?e.path:null,typeof e.map=="function"&&(this.#c=e.map)}#t(e,t){this.#s!==!1&&(this.#s=this.#s||{},this.#s[e]=t),this.#r!==!1&&this.#s===!1&&(this.#r=this.#r||{},this.#r[e]=t)}#g(e){const t=this.#i?this.end:this.write;return this.#i=!1,this.emit("error",new vv(e,t))}#y(e,t){const s=this.#h;if(this.#a.call(this.#h,e,t),s.stack.length===0&&this.#n){const n=this.#n;this.#o||super.write(n),this.#n=null,this.#e=0}}#d(e){const t=this.#h;if(this.#n=e,!this.#o)return;let s=0,n=0,o=!1;for(;s<this.#o.length;){const u=this.#o[s];if(n++,u&&!u.recurse){const c=n===t.stack.length?t:t.stack[n];if(!c)return;if(!_v(u,c.key)){this.#t(c.key,e);return}o=!!u.emitKey,s++}else{if(s++,s>=this.#o.length)return;const c=this.#o[s];if(!c)return;for(;;){const l=n===t.stack.length?t:t.stack[n];if(!l)return;if(_v(c,l.key)){s++,Object.isFrozen(t.stack[n])||(t.stack[n].value=null);break}else this.#t(l.key,e);n++}}}if(this.#s){const u=this.#s;this.#s=!1,this.emit("header",u)}if(n!==t.stack.length)return;this.#e++;const a=t.stack.slice(1).map(u=>u.key).concat([t.key]);if(e!=null){const u=this.#c?this.#c(e,a):e;if(u!=null){const c=o?{value:u}:u;o&&(c.key=t.key),super.write(c)}}t.value&&delete t.value[t.key];for(const u of t.stack)u.value=null}write(e,t){if(typeof e=="string")e=Buffer.from(e,t);else if(!Buffer.isBuffer(e))return this.emit("error",new TypeError("Can only parse JSON from string or buffer input"));return this.#h.write(e),this.flowing}end(e,t){this.#i=!0,e&&this.write(e,t);const s=this.#s;this.#s=null;const n=this.#r;return this.#r=null,s&&this.emit("header",s),n&&this.emit("footer",n),super.end()}static get JSONStreamError(){return vv}static parse(e,t){return new E1({path:e,map:t})}}var BY=E1;(function(r){const{HttpErrorAuthOTP:e}=XS,t=m7,s=Y7,n=bY,o=BY,a=BC,u=Px,c=qt,l=hr,{Minipass:h}=oi,d=vC,f=w=>{try{return!!new c.URL(w)}catch{return!1}};r.exports=p;function p(w,v={}){const _={...d,...v},R=f(w);let P=_.registry||d.registry;R||(P=_.registry=_.spec&&E(_.spec,_)||_.registry||P,w=`${P.trim().replace(/\/?$/g,"")}/${w.trim().replace(/^\//,"")}`,new c.URL(w));const M=_.method||"GET",j=Date.now(),N=s(w,_),G=b(w,N,_);let ie=_.body;const ne=h.isStream(ie),x=ie&&typeof ie=="object"&&typeof ie.then=="function";if(ie&&!ne&&!x&&typeof ie!="string"&&!Buffer.isBuffer(ie)?(G["content-type"]=G["content-type"]||"application/json",ie=JSON.stringify(ie)):ie&&!G["content-type"]&&(G["content-type"]="application/octet-stream"),_.gzip)if(G["content-encoding"]="gzip",ne){const q=new l.Gzip;ie.on("error",O=>q.emit("error",O)),ie=ie.pipe(q)}else x||(ie=new l.Gzip().end(ie).concat());const S=new c.URL(w);if(_.query){const q=typeof _.query=="string"?u.parse(_.query):_.query;Object.keys(q).forEach(O=>{q[O]!==void 0&&S.searchParams.set(O,q[O])}),w=c.format(S)}S.searchParams.get("write")==="true"&&M==="GET"&&(_.offline=!1,_.preferOffline=!1,_.preferOnline=!0);const $=async q=>{const O=n(w,{agent:_.agent,algorithms:_.algorithms,body:q,cache:D(_),cachePath:_.cache,ca:_.ca,cert:N.cert||_.cert,headers:G,integrity:_.integrity,key:N.key||_.key,localAddress:_.localAddress,maxSockets:_.maxSockets,memoize:_.memoize,method:M,noProxy:_.noProxy,proxy:_.httpsProxy||_.proxy,retry:_.retry?_.retry:{retries:_.fetchRetries,factor:_.fetchRetryFactor,minTimeout:_.fetchRetryMintimeout,maxTimeout:_.fetchRetryMaxtimeout},strictSSL:_.strictSSL,timeout:_.timeout||3e4}).then(L=>t({method:M,uri:w,res:L,registry:P,startTime:j,auth:N,opts:_}));return typeof _.otpPrompt=="function"?O.catch(async L=>{if(L instanceof e){let K;try{K=await _.otpPrompt()}catch{}if(!K)throw L;return p(w,{..._,otp:K})}throw L}):O};return Promise.resolve(ie).then($)}r.exports.getAuth=s,r.exports.json=g;function g(w,v){return p(w,v).then(_=>_.json())}r.exports.json.stream=m;function m(w,v,_={}){const R={...d,..._},P=o.parse(v,R.mapJSON);return p(w,R).then(M=>M.body.on("error",j=>P.emit("error",j)).pipe(P)).catch(M=>P.emit("error",M)),P}r.exports.pickRegistry=E;function E(w,v={}){w=a(w);let _=w.scope&&v[w.scope.replace(/^@?/,"@")+":registry"];return!_&&v.scope&&(_=v[v.scope.replace(/^@?/,"@")+":registry"]),_||(_=v.registry||d.registry),_}function D(w){return w.offline?"only-if-cached":w.preferOffline?"force-cache":w.preferOnline?"no-cache":"default"}function b(w,v,_){const R=Object.assign({"user-agent":_.userAgent},_.headers||{});return _.authType&&(R["npm-auth-type"]=_.authType),_.scope&&(R["npm-scope"]=_.scope),_.npmSession&&(R["npm-session"]=_.npmSession),_.npmCommand&&(R["npm-command"]=_.npmCommand),v.token?R.authorization=`Bearer ${v.token}`:v.auth&&(R.authorization=`Basic ${v.auth}`),_.otp&&(R["npm-otp"]=_.otp),R}})(KS);var IY=KS.exports;const Sp=Qe(IY),PY=Qt,Av=PY.homedir();var LY=r=>{if(typeof r!="string")throw new TypeError(`Expected a string, got ${typeof r}`);return Av?r.replace(/^~(?=$|\/|\\)/,Av):r};const c$=Qe(LY),kY="npm-check-updates",NY="17.0.4",MY="Tomas Junnonen <tomas1@gmail.com>",jY="Apache-2.0",UY=["Raine Revere (https://github.com/raineorshine)","Imamuzzaki Abu Salam <imamuzzaki@gmail.com>"],HY="Find newer versions of dependencies than what your package.json allows",GY=["dependencies","npm","package.json","update","upgrade","versions"],WY={node:"^18.18.0 || >=20.0.0",npm:">=8.12.1"},zY="build/index.js",qY="build/index.d.ts",VY={build:"rimraf build && npm run build:options && vite build","build:options":"vite-node src/scripts/build-options.ts","build:analyze":"rimraf build && npm run build:options && ANALYZER=true vite build",lint:"cross-env FORCE_COLOR=1 npm-run-all --parallel --aggregate-output lint:*","lint:lockfile":"lockfile-lint","lint:markdown":'markdownlint "**/*.md" --ignore "**/node_modules/**/*.md" --ignore build --config .markdownlint.js',"lint:src":"eslint --cache --cache-location node_modules/.cache/.eslintcache --ignore-path .gitignore --report-unused-disable-directives .",prepare:"src/scripts/install-hooks",prepublishOnly:"npm run build",prettier:"prettier . --check",test:"npm run test:unit && npm run test:e2e","test:bun":"test/bun-install.sh && mocha test/bun","test:unit":"mocha test test/package-managers/*","test:e2e":"./test/e2e.sh",ncu:"node build/cli.js"},YY={"npm-check-updates":"build/cli.js",ncu:"build/cli.js"},KY={type:"git",url:"git+https://github.com/raineorshine/npm-check-updates.git"},XY="https://github.com/raineorshine/npm-check-updates",ZY={url:"https://github.com/raineorshine/npm-check-updates/issues"},JY={ip:"2.0.1",jsonparse:"https://github.com/ARitz-Cracker/jsonparse/tree/patch-1","@yarnpkg/parsers":"2.6.0"},QY={"@trivago/prettier-plugin-sort-imports":"^4.3.0","@types/chai":"^4.3.16","@types/chai-as-promised":"^7.1.8","@types/chai-string":"^1.4.5","@types/cli-table":"^0.3.4","@types/hosted-git-info":"^3.0.5","@types/ini":"^4.1.1","@types/js-yaml":"^4.0.9","@types/json-parse-helpfulerror":"^1.0.3","@types/jsonlines":"^0.1.5","@types/lodash":"^4.17.7","@types/mocha":"^10.0.7","@types/node":"^22.0.0","@types/npm-registry-fetch":"^8.0.7","@types/parse-github-url":"^1.0.3","@types/picomatch":"^3.0.0","@types/progress":"^2.0.7","@types/prompts":"^2.4.9","@types/remote-git-tags":"^4.0.2","@types/semver":"^7.5.8","@types/semver-utils":"^1.1.3","@types/sinon":"^17.0.3","@types/update-notifier":"^6.0.8","@typescript-eslint/eslint-plugin":"^7.18.0","@typescript-eslint/parser":"^7.18.0",camelcase:"^6.3.0",chai:"^4.3.10","chai-as-promised":"^7.1.2","chai-string":"^1.5.0",chalk:"^5.3.0","cli-table3":"^0.6.5",commander:"^12.1.0","cross-env":"^7.0.3",dequal:"^2.0.3",eslint:"^8.57.0","eslint-config-prettier":"^9.1.0","eslint-config-raine":"^0.5.0","eslint-config-standard":"^17.1.0","eslint-plugin-import":"^2.29.1","eslint-plugin-jsdoc":"^48.10.2","eslint-plugin-n":"^16.6.2","eslint-plugin-promise":"^6.6.0","fast-glob":"^3.3.2","fast-memoize":"^2.5.2","find-up":"5.0.0","fp-and-or":"^1.0.2","hosted-git-info":"^7.0.2",ini:"^4.1.3","js-yaml":"^4.1.0","json-parse-helpfulerror":"^1.0.3",jsonlines:"^0.1.1","lockfile-lint":"^4.14.0",lodash:"^4.17.21","markdownlint-cli":"^0.41.0",mocha:"^10.7.0","npm-registry-fetch":"^17.1.0","npm-run-all":"^4.1.5","p-map":"^4.0.0","parse-github-url":"^1.0.3",picomatch:"^4.0.2",prettier:"^3.3.3",progress:"^2.0.3","prompts-ncu":"^3.0.0","rc-config-loader":"^4.1.3","remote-git-tags":"^3.0.0",rfdc:"^1.4.1",rimraf:"^6.0.1","rollup-plugin-node-externals":"^7.1.2",semver:"^7.6.3","semver-utils":"^1.1.4",should:"^13.2.3",sinon:"^18.0.0","source-map-support":"^0.5.21","spawn-please":"^3.0.0","strip-ansi":"^7.1.0","strip-json-comments":"^5.0.1","ts-node":"^10.9.2",typescript:"^5.5.4","typescript-json-schema":"^0.64.0",untildify:"^4.0.0","update-notifier":"^7.2.0",verdaccio:"^5.32.0",vite:"^5.3.5","vite-bundle-analyzer":"^0.10.3","vite-node":"^2.0.5","vite-plugin-dts":"^3.9.1",yarn:"^1.22.22"},eK=["build","!**/test/**"],tK={"check-leaks":!0,extension:["test.ts"],require:["source-map-support/register","ts-node/register"],timeout:6e4,"trace-deprecation":!0,"trace-warnings":!0,use_strict:!0},wg={name:kY,version:NY,author:MY,license:jY,contributors:UY,description:HY,keywords:GY,engines:WY,main:zY,types:qY,scripts:VY,bin:YY,repository:KY,homepage:XY,bugs:ZY,overrides:JY,devDependencies:QY,files:eK,"lockfile-lint":{"allowed-schemes":["https:","git+ssh:"],"allowed-hosts":["npm","github.com"],"empty-hostname":!1,type:"npm ",path:"package-lock.json"},mocha:tK};var l$={exports:{}},b1={exports:{}};class rK{constructor(e){this.value=e,this.next=void 0}}let iK=class{constructor(){this.clear()}enqueue(e){const t=new rK(e);this._head?(this._tail.next=t,this._tail=t):(this._head=t,this._tail=t),this._size++}dequeue(){const e=this._head;if(e)return this._head=this._head.next,this._size--,e.value}clear(){this._head=void 0,this._tail=void 0,this._size=0}get size(){return this._size}*[Symbol.iterator](){let e=this._head;for(;e;)yield e.value,e=e.next}};var sK=iK;const nK=sK,oK=r=>{if(!((Number.isInteger(r)||r===1/0)&&r>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up");const e=new nK;let t=0;const s=()=>{t--,e.size>0&&e.dequeue()()},n=async(u,c,...l)=>{t++;const h=(async()=>u(...l))();c(h);try{await h}catch{}s()},o=(u,c,...l)=>{e.enqueue(n.bind(null,u,c,...l)),(async()=>(await Promise.resolve(),t<r&&e.size>0&&e.dequeue()()))()},a=(u,...c)=>new Promise(l=>{o(u,l,...c)});return Object.defineProperties(a,{activeCount:{get:()=>t},pendingCount:{get:()=>e.size},clearQueue:{value:()=>{e.clear()}}}),a};var aK=oK;const Sv=aK;class h$ extends Error{constructor(e){super(),this.value=e}}const uK=async(r,e)=>e(await r),cK=async r=>{const e=await Promise.all(r);if(e[1]===!0)throw new h$(e[0]);return!1},lK=async(r,e,t)=>{t={concurrency:1/0,preserveOrder:!0,...t};const s=Sv(t.concurrency),n=[...r].map(a=>[a,s(uK,a,e)]),o=Sv(t.preserveOrder?1:1/0);try{await Promise.all(n.map(a=>o(cK,a)))}catch(a){if(a instanceof h$)return a.value;throw a}};var hK=lK;const f$=de,Nl=lt,{promisify:d$}=rs,fK=hK,dK=d$(Nl.stat),pK=d$(Nl.lstat),p$={directory:"isDirectory",file:"isFile"};function g$({type:r}){if(!(r in p$))throw new Error(`Invalid type specified: ${r}`)}const m$=(r,e)=>r===void 0||e[p$[r]]();b1.exports=async(r,e)=>{e={cwd:process.cwd(),type:"file",allowSymlinks:!0,...e},g$(e);const t=e.allowSymlinks?dK:pK;return fK(r,async s=>{try{const n=await t(f$.resolve(e.cwd,s));return m$(e.type,n)}catch{return!1}},e)};b1.exports.sync=(r,e)=>{e={cwd:process.cwd(),allowSymlinks:!0,type:"file",...e},g$(e);const t=e.allowSymlinks?Nl.statSync:Nl.lstatSync;for(const s of r)try{const n=t(f$.resolve(e.cwd,s));if(m$(e.type,n))return s}catch{}};var gK=b1.exports,w1={exports:{}};const y$=lt,{promisify:mK}=rs,yK=mK(y$.access);w1.exports=async r=>{try{return await yK(r),!0}catch{return!1}};w1.exports.sync=r=>{try{return y$.accessSync(r),!0}catch{return!1}};var DK=w1.exports;(function(r){const e=de,t=gK,s=DK,n=Symbol("findUp.stop");r.exports=async(o,a={})=>{let u=e.resolve(a.cwd||"");const{root:c}=e.parse(u),l=[].concat(o),h=async d=>{if(typeof o!="function")return t(l,d);const f=await o(d.cwd);return typeof f=="string"?t([f],d):f};for(;;){const d=await h({...a,cwd:u});if(d===n)return;if(d)return e.resolve(u,d);if(u===c)return;u=e.dirname(u)}},r.exports.sync=(o,a={})=>{let u=e.resolve(a.cwd||"");const{root:c}=e.parse(u),l=[].concat(o),h=d=>{if(typeof o!="function")return t.sync(l,d);const f=o(d.cwd);return typeof f=="string"?t.sync([f],d):f};for(;;){const d=h({...a,cwd:u});if(d===n)return;if(d)return e.resolve(u,d);if(u===c)return;u=e.dirname(u)}},r.exports.exists=s,r.exports.sync.exists=s.sync,r.exports.stop=n})(l$);var EK=l$.exports;const Ml=Qe(EK);class Lh{constructor(e,t,s){this.__specs=e||{},this.__opts=t||{},this.__providers=Cv(s.filter(n=>n!=null&&typeof n=="object")),this.__isFiggyPudding=!0}get(e){return D$(this,e)}toJSON(){const e={};return this.forEach((t,s)=>{e[s]=t}),e}forEach(e,t=this){for(let[s,n]of this.entries())e.call(t,n,s,this)}*entries(e){for(let s of Object.keys(this.__specs))yield[s,this.get(s)];const t=e||this.__opts.other;if(t){const s=new Set;for(let n of this.__providers){const o=n.entries?n.entries(t):wK(n);for(let[a,u]of o)t(a)&&!s.has(a)&&(s.add(a),yield[a,u])}}}concat(...e){return new Proxy(new Lh(this.__specs,this.__opts,Cv(this.__providers).concat(e)),E$)}}function D$(r,e,t){let s=r.__specs[e];s||(s={});let n;for(let o of r.__providers)if(n=bK(e,o),n!==void 0)break;return n===void 0&&s.default!==void 0?typeof s.default=="function"?s.default(r):s.default:n}function bK(r,e){let t;return e.__isFiggyPudding?t=D$(e,r):t=e[r],t}const E$={get(r,e){return typeof e=="symbol"||e.slice(0,2)==="__"||e in Lh.prototype?r[e]:r.get(e)}};function b$(r,e){function t(...s){return new Proxy(new Lh(r,e,s),E$)}return t}function Cv(r){const e=[];return r.forEach(t=>e.unshift(t)),e}function wK(r){return Object.keys(r).map(e=>[e,r[e]])}const Fv=b$({},{other(){return!0}}),vK=b$({cache:{default:de.join(process.env.HOME||Qt.homedir(),".npm")},configNames:{default:["npmrc",".npmrc"]},envPrefix:{default:/^npm_config_/i},cwd:{default:()=>process.cwd()},globalconfig:{default:()=>de.join(AK(),"etc","npmrc")},userconfig:{default:de.join(process.env.HOME||Qt.homedir(),".npmrc")}});function _K(r,e){const t=vK(e),s={};Object.keys(process.env).forEach(f=>{if(!f.match(t.envPrefix))return;const p=f.toLowerCase().replace(t.envPrefix,"").replace(/(?!^)_/g,"-");s[p]=process.env[f]});const n=Fv(r),o=t.userconfig||n.userconfig||s.userconfig,a=o&&Cp(o),u=t.globalconfig||n.globalconfig||s.globalconfig,c=u&&Cp(u),l=Ml.sync(t.configNames,{cwd:t.cwd});let h={};l&&l!==o&&(h=Cp(l));const d=Fv(t,c,a,h,s,n);return d.cache?d.concat({cache:de.resolve(n.cache||s.cache?t.cwd:h.cache?de.dirname(l):a.cache?de.dirname(o):c.cache?de.dirname(u):de.dirname(o),d.cache)}):d}function Cp(r){let e;try{e=lt.readFileSync(r,"utf8")}catch(t){if(t.code==="ENOENT")return"";throw t}return xm.parse(e)}function AK(){if(process.env.PREFIX)return process.env.PREFIX;if(process.platform==="win32")return de.dirname(process.execPath);{let r=de.dirname(de.dirname(process.execPath));return process.env.DESTDIR&&(r=de.join(process.env.DESTDIR,r)),r}}function SK(r,e){return e.deprecated||!r.deprecated}function CK(r,e){return e.pre?!0:!r.version||!nu(r.version)}function w$(r,e){if(!e)return!0;const t=pt.minVersion(e)?.version;if(!t)return!0;const s=r?.engines?.node;return!s||pt.satisfies(t,s)}function FK(r,e){return e?Object.values(e).every(t=>t[r.name]===void 0||pt.satisfies(r.version,t[r.name])):!0}function Au(r){const e=[t=>SK(t,r),t=>CK(t,r),r.enginesNode?t=>w$(t,r.nodeEngineVersion):null,r.peerDependencies?t=>FK(t,r.peerDependencies):null];return t=>e.every(s=>s?s(t):!0)}const $K=new Set(["-","||","&&","<","<=",">",">="]),RK=r=>ei(r).some(t=>$K.has(t.operator||"")),v$=r=>r&&(!pt.validRange(r)||Em(r)),kh=async(r,e,t,s={},n)=>{const o="application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*",a="application/json",u=Sp.pickRegistry(r,s),c={"user-agent":s.userAgent||`npm-check-updates/${wg.version} node/${process.version}`,"ncu-version":wg.version,"ncu-pkg-id":`registry:${r}`,accept:s.fullMetadata?a:o,...s.headers},l=new URL(encodeURIComponent(r),u.endsWith("/")?u:`${u}/`);n&&(l.pathname+=`/${n}`);const h={...s,headers:c,spec:r};try{if(s.fullMetadata)return Sp.json(l.href,h);{t=t||"latest";const d=Sp.json.stream(l.href,"$*",h),f={name:r};for await(const{key:p,value:g}of d)if(e.includes(p)&&(f[p]=g,Object.keys(f).length===e.length+1))break;return f}}catch(d){if(d.code!=="E404"||s.fullMetadata)throw d;return kh(r,e,t,{opts:s,fullMetadata:!0})}},v1=(r,e)=>{const t={cafile:u=>{if(!u)return;const c=lt.readFileSync(de.resolve(e||"",c$(u)),"utf8"),l="-----END CERTIFICATE-----";return{ca:c.split(l).filter(d=>!!d.trim()).map(d=>`${d.trimStart()}${l}`)}},maxsockets:"maxSockets","strict-ssl":"strictSSL"},s={all:"boolean",allowsameversion:"boolean",audit:"boolean",binlinks:"boolean",color:"boolean",commithooks:"boolean",description:"boolean",dev:"boolean",diffignoreallspace:"boolean",diffnameonly:"boolean",diffnoprefix:"boolean",difftext:"boolean",dryrun:"boolean",enginestrict:"boolean",force:"boolean",foregroundscripts:"boolean",formatpackagelock:"boolean",fund:"boolean",gittagversion:"boolean",global:"boolean",globalstyle:"boolean",ifpresent:"boolean",ignorescripts:"boolean",includestaged:"boolean",includeworkspaceroot:"boolean",installlinks:"boolean",json:"boolean",legacybundling:"boolean",legacypeerdeps:"boolean",link:"boolean",long:"boolean",offline:"boolean",omitlockfileregistryresolved:"boolean",packagelock:"boolean",packagelockonly:"boolean",parseable:"boolean",preferoffline:"boolean",preferonline:"boolean",progress:"boolean",readonly:"boolean",rebuildbundle:"boolean",save:"boolean",savebundle:"boolean",savedev:"boolean",saveexact:"boolean",saveoptional:"boolean",savepeer:"boolean",saveprod:"boolean",shrinkwrap:"boolean",signgitcommit:"boolean",signgittag:"boolean",strictpeerdeps:"boolean",strictssl:"boolean",timing:"boolean",unicode:"boolean",updatenotifier:"boolean",usage:"boolean",version:"boolean",versions:"boolean",workspacesupdate:"boolean",diffunified:"number",fetchretries:"number",fetchretryfactor:"number",fetchretrymaxtimeout:"number",fetchretrymintimeout:"number",fetchtimeout:"number",logsmax:"number",maxsockets:"number",searchlimit:"number",searchstaleness:"number",ssopollfrequency:"number",timeout:"number"},n=u=>!!u&&u!=="false"&&u!=="0",o=u=>parseInt(u)||0;return qe(r,(u,c)=>{const l=typeof c!="string"?c:s[u.replace(/-/g,"").toLowerCase()]==="boolean"?n(c):s[u.replace(/-/g,"").toLowerCase()]==="number"?o(c):c.replace(/\${([^}]+)}/,(d,f)=>process.env[f]),{[u]:h}=t;return typeof h=="string"?{[h]:l}:typeof h=="function"?{...h(l.toString())}:{[u.match(/^[a-z]/i)?hL(u):u]:l}})},vg=mo(r=>{let e;if(r)try{e=xm.parse(lt.readFileSync(r,"utf-8"))}catch(t){if(t.code==="ENOENT")return null;throw t}else e={..._K(null,{userconfig:process.env.npm_config_userconfig||process.env.NPM_CONFIG_USERCONFIG}).toJSON(),cache:!1};return v1(e,r)}),_1=vg();function _$(r,e){let t;try{t=JSON.parse(r)}catch{throw new Error(`Expected JSON from "${e.command}".${e.packageName?` There could be problems with the ${e.packageName} package.`:""} ${r?"Instead received: "+r:"Received empty response."}`)}return t}async function Nh(r,e,t,s={},n){const o=await kh(r,["versions"],null,{...n,..._1,fullMetadata:!0,...s.registry?{registry:s.registry,silent:!0}:null});if(o.versions){const a=Object.keys(o.versions),u=pt.minSatisfying(a,e),c=pt.maxSatisfying(a,t);if(u&&c&&o.versions[u]._npmUser&&o.versions[c]._npmUser){const l=o.versions[u]._npmUser?.name,h=o.versions[c]._npmUser?.name;return l!==h}}return!1}const ya=r=>!!(r&&(r.name||r.engines||r.version||r.versions)),A$=r=>(e,t,s,n)=>{const o=typeof r=="function"?r(n)?.[e]:typeof r=="string"||ya(r)?r:r[e],a=ya(o)?o.version:o;if(!a)throw new Error(`fetchUpgradedPackument is mocked, but no mock version was supplied for ${e}. Make sure that all dependencies are mocked. `);const u=ya(o)&&o.time?.[a]||new Date().toISOString(),c={name:e,"dist-tags":{[n.distTag||"latest"]:a},engines:{node:""},time:{[a]:u},version:a,versions:{},...ya(o)?o:null},{versions:l,...h}=c;return Promise.resolve({...c,versions:{...ya(o)&&o.versions||{[a]:h}}})},xK=mo(({npmConfigLocal:r,npmConfigUser:e,npmConfigWorkspaceProject:t},s)=>{const n=s.packageFile?de.join(s.packageFile,"../.npmrc"):null,o=s.packageFile?vg(n||void 0):null,a=s.cwd?de.join(s.cwd,".npmrc"):null,u=s.cwd?vg(a):null;if(t&&Object.keys(t).length>0){ge(s,`
404
+ */return new vp.URL(r.url).hostname!==o.hostname&&(r.headers.delete("authorization"),r.headers.delete("cookie")),(e.status===303||r.method==="POST"&&[301,302].includes(e.status))&&(s.method="GET",s.body=null,r.headers.delete("content-length")),s.headers={},r.headers.forEach((u,c)=>{s.headers[c]=u}),s.counter=++r.counter,{request:new uY(vp.format(o),s),options:s}},e$=async(r,e)=>{const t=lY.storable(r,e)?await av(r,e):await hY(r,e);if(!["GET","HEAD"].includes(r.method)&&t.status>=200&&t.status<=399&&await av.invalidate(r,e),!fY(r,t,e))return t;const s=dY(r,t,e);return e$(s.request,s.options)};var pY=e$;const{FetchError:gY,Headers:mY,Request:t$,Response:yY}=uu,DY=J7,EY=pY,El=(r,e)=>{const t=DY(e),s=new t$(r,t);return EY(s,t)};El.defaults=(r,e={},t=El)=>{typeof r=="object"&&(e=r,r=null);const s=(n,o={})=>{const a=n||r,u={...e,...o,headers:{...e.headers,...o.headers}};return t(a,u)};return s.defaults=(n,o={})=>El.defaults(n,o,s),s};Eo.exports=El;Eo.exports.FetchError=gY;Eo.exports.Headers=mY;Eo.exports.Request=t$;Eo.exports.Response=yY;var bY=Eo.exports,Te={},r$=Te.LEFT_BRACE=1,bl=Te.RIGHT_BRACE=2,i$=Te.LEFT_BRACKET=3,bg=Te.RIGHT_BRACKET=4,wl=Te.COLON=5,Ll=Te.COMMA=6,s$=Te.TRUE=7,n$=Te.FALSE=8,o$=Te.NULL=9,kl=Te.STRING=10,a$=Te.NUMBER=11,Qs=Te.START=17,u$=Te.STOP=18,uv=Te.TRUE1=33,cv=Te.TRUE2=34,lv=Te.TRUE3=35,hv=Te.FALSE1=49,fv=Te.FALSE2=50,dv=Te.FALSE3=51,pv=Te.FALSE4=52,gv=Te.NULL1=65,mv=Te.NULL2=66,yv=Te.NULL3=67,Dv=Te.NUMBER1=81,_p=Te.NUMBER3=83,Fr=Te.STRING1=97,Ev=Te.STRING2=98,bv=Te.STRING3=99,wY=Te.STRING4=100,vY=Te.STRING5=101,wv=Te.STRING6=102,Gn=Te.VALUE=113,Ap=Te.KEY=114,Zc=Te.OBJECT=129,Jc=Te.ARRAY=130,_Y=92,AY=47,SY=8,CY=12,FY=10,$Y=13,RY=9,D1=64*1024;function Qc(r){return Buffer.alloc?Buffer.alloc(r):new Buffer(r)}function el(r){return Buffer.from?Buffer.from(r):new Buffer(r)}function Bs(){this.tState=Qs,this.value=void 0,this.string=void 0,this.stringBuffer=Qc(D1),this.stringBufferOffset=0,this.unicode=void 0,this.highSurrogate=void 0,this.key=void 0,this.mode=void 0,this.stack=[],this.state=Gn,this.bytes_remaining=0,this.bytes_in_sequence=0,this.temp_buffs={2:Qc(2),3:Qc(3),4:Qc(4)},this.offset=-1}Bs.toknam=function(r){for(var e=Object.keys(Te),t=0,s=e.length;t<s;t++){var n=e[t];if(Te[n]===r)return n}return r&&"0x"+r.toString(16)};var Er=Bs.prototype;Er.onError=function(r){throw r};Er.charError=function(r,e){this.tState=u$,this.onError(new Error("Unexpected "+JSON.stringify(String.fromCharCode(r[e]))+" at position "+e+" in state "+Bs.toknam(this.tState)))};Er.appendStringChar=function(r){this.stringBufferOffset>=D1&&(this.string+=this.stringBuffer.toString("utf8"),this.stringBufferOffset=0),this.stringBuffer[this.stringBufferOffset++]=r};Er.appendStringBuf=function(r,e,t){var s=r.length;typeof e=="number"&&(typeof t=="number"?t<0?s=r.length-e+t:s=t-e:s=r.length-e),s<0&&(s=0),this.stringBufferOffset+s>D1&&(this.string+=this.stringBuffer.toString("utf8",0,this.stringBufferOffset),this.stringBufferOffset=0),r.copy(this.stringBuffer,this.stringBufferOffset,e,t),this.stringBufferOffset+=s};Er.write=function(r){typeof r=="string"&&(r=el(r));for(var e,t=0,s=r.length;t<s;t++)if(this.tState===Qs){if(e=r[t],this.offset++,e===123)this.onToken(r$,"{");else if(e===125)this.onToken(bl,"}");else if(e===91)this.onToken(i$,"[");else if(e===93)this.onToken(bg,"]");else if(e===58)this.onToken(wl,":");else if(e===44)this.onToken(Ll,",");else if(e===116)this.tState=uv;else if(e===102)this.tState=hv;else if(e===110)this.tState=gv;else if(e===34)this.string="",this.stringBufferOffset=0,this.tState=Fr;else if(e===45)this.string="-",this.tState=Dv;else if(e>=48&&e<64)this.string=String.fromCharCode(e),this.tState=_p;else if(!(e===32||e===9||e===10||e===13))return this.charError(r,t)}else if(this.tState===Fr)if(e=r[t],this.bytes_remaining>0){for(var n=0;n<this.bytes_remaining;n++)this.temp_buffs[this.bytes_in_sequence][this.bytes_in_sequence-this.bytes_remaining+n]=r[n];this.appendStringBuf(this.temp_buffs[this.bytes_in_sequence]),this.bytes_in_sequence=this.bytes_remaining=0,t=t+n-1}else if(this.bytes_remaining===0&&e>=128){if(e<=193||e>244)return this.onError(new Error("Invalid UTF-8 character at position "+t+" in state "+Bs.toknam(this.tState)));if(e>=194&&e<=223&&(this.bytes_in_sequence=2),e>=224&&e<=239&&(this.bytes_in_sequence=3),e>=240&&e<=244&&(this.bytes_in_sequence=4),this.bytes_in_sequence+t>r.length){for(var o=0;o<=r.length-1-t;o++)this.temp_buffs[this.bytes_in_sequence][o]=r[t+o];this.bytes_remaining=t+this.bytes_in_sequence-r.length,t=r.length-1}else this.appendStringBuf(r,t,t+this.bytes_in_sequence),t=t+this.bytes_in_sequence-1}else if(e===34)this.tState=Qs,this.string+=this.stringBuffer.toString("utf8",0,this.stringBufferOffset),this.stringBufferOffset=0,this.onToken(kl,this.string),this.offset+=Buffer.byteLength(this.string,"utf8")+1,this.string=void 0;else if(e===92)this.tState=Ev;else if(e>=32)this.appendStringChar(e);else return this.charError(r,t);else if(this.tState===Ev)if(e=r[t],e===34)this.appendStringChar(e),this.tState=Fr;else if(e===92)this.appendStringChar(_Y),this.tState=Fr;else if(e===47)this.appendStringChar(AY),this.tState=Fr;else if(e===98)this.appendStringChar(SY),this.tState=Fr;else if(e===102)this.appendStringChar(CY),this.tState=Fr;else if(e===110)this.appendStringChar(FY),this.tState=Fr;else if(e===114)this.appendStringChar($Y),this.tState=Fr;else if(e===116)this.appendStringChar(RY),this.tState=Fr;else if(e===117)this.unicode="",this.tState=bv;else return this.charError(r,t);else if(this.tState===bv||this.tState===wY||this.tState===vY||this.tState===wv)if(e=r[t],e>=48&&e<64||e>64&&e<=70||e>96&&e<=102){if(this.unicode+=String.fromCharCode(e),this.tState++===wv){var a=parseInt(this.unicode,16);this.unicode=void 0,this.highSurrogate!==void 0&&a>=56320&&a<57344?(this.appendStringBuf(el(String.fromCharCode(this.highSurrogate,a))),this.highSurrogate=void 0):this.highSurrogate===void 0&&a>=55296&&a<56320?this.highSurrogate=a:(this.highSurrogate!==void 0&&(this.appendStringBuf(el(String.fromCharCode(this.highSurrogate))),this.highSurrogate=void 0),this.appendStringBuf(el(String.fromCharCode(a)))),this.tState=Fr}}else return this.charError(r,t);else if(this.tState===Dv||this.tState===_p)switch(e=r[t],e){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 46:case 101:case 69:case 43:case 45:this.string+=String.fromCharCode(e),this.tState=_p;break;default:this.tState=Qs;var u=this.numberReviver(this.string);if(u)return u;this.offset+=this.string.length-1,this.string=void 0,t--;break}else if(this.tState===uv)if(r[t]===114)this.tState=cv;else return this.charError(r,t);else if(this.tState===cv)if(r[t]===117)this.tState=lv;else return this.charError(r,t);else if(this.tState===lv)if(r[t]===101)this.tState=Qs,this.onToken(s$,!0),this.offset+=3;else return this.charError(r,t);else if(this.tState===hv)if(r[t]===97)this.tState=fv;else return this.charError(r,t);else if(this.tState===fv)if(r[t]===108)this.tState=dv;else return this.charError(r,t);else if(this.tState===dv)if(r[t]===115)this.tState=pv;else return this.charError(r,t);else if(this.tState===pv)if(r[t]===101)this.tState=Qs,this.onToken(n$,!1),this.offset+=4;else return this.charError(r,t);else if(this.tState===gv)if(r[t]===117)this.tState=mv;else return this.charError(r,t);else if(this.tState===mv)if(r[t]===108)this.tState=yv;else return this.charError(r,t);else if(this.tState===yv)if(r[t]===108)this.tState=Qs,this.onToken(o$,null),this.offset+=3;else return this.charError(r,t)};Er.onToken=function(r,e){};Er.parseError=function(r,e){this.tState=u$,this.onError(new Error("Unexpected "+Bs.toknam(r)+(e?"("+JSON.stringify(e)+")":"")+" in state "+Bs.toknam(this.state)))};Er.push=function(){this.stack.push({value:this.value,key:this.key,mode:this.mode})};Er.pop=function(){var r=this.value,e=this.stack.pop();this.value=e.value,this.key=e.key,this.mode=e.mode,this.emit(r),this.mode||(this.state=Gn)};Er.emit=function(r){this.mode&&(this.state=Ll),this.onValue(r)};Er.onValue=function(r){};Er.onToken=function(r,e){if(this.state===Gn)if(r===kl||r===a$||r===s$||r===n$||r===o$)this.value&&(this.value[this.key]=e),this.emit(e);else if(r===r$)this.push(),this.value?this.value=this.value[this.key]={}:this.value={},this.key=void 0,this.state=Ap,this.mode=Zc;else if(r===i$)this.push(),this.value?this.value=this.value[this.key]=[]:this.value=[],this.key=0,this.mode=Jc,this.state=Gn;else if(r===bl)if(this.mode===Zc)this.pop();else return this.parseError(r,e);else if(r===bg)if(this.mode===Jc)this.pop();else return this.parseError(r,e);else return this.parseError(r,e);else if(this.state===Ap)if(r===kl)this.key=e,this.state=wl;else if(r===bl)this.pop();else return this.parseError(r,e);else if(this.state===wl)if(r===wl)this.state=Gn;else return this.parseError(r,e);else if(this.state===Ll)if(r===Ll)this.mode===Jc?(this.key++,this.state=Gn):this.mode===Zc&&(this.state=Ap);else if(r===bg&&this.mode===Jc||r===bl&&this.mode===Zc)this.pop();else return this.parseError(r,e);else return this.parseError(r,e)};Er.numberReviver=function(r){var e=Number(r);if(isNaN(e))return this.charError(buffer,i);r.match(/[0-9]+/)==r&&e.toString()!=r?this.onToken(kl,r):this.onToken(a$,e)};Bs.C=Te;var xY=Bs;const OY=xY,{Minipass:TY}=oi;class vv extends Error{constructor(e,t){super(e.message),Error.captureStackTrace(this,t||this.constructor)}get name(){return"JSONStreamError"}}const _v=(r,e)=>typeof r=="string"?String(e)===r:r&&typeof r.test=="function"?r.test(e):typeof r=="boolean"||typeof r=="object"?r:typeof r=="function"?r(e):!1;class E1 extends TY{#e=0;#i=!1;#r=null;#s=null;#c=null;#a;#h;#o=null;#n=null;constructor(e){super({...e,objectMode:!0});const t=this.#h=new OY;t.onValue=s=>this.#d(s),this.#a=t.onToken,t.onToken=(s,n)=>this.#y(s,n),t.onError=s=>this.#g(s),this.#o=typeof e.path=="string"?e.path.split(".").map(s=>s==="$*"?{emitKey:!0}:s==="*"?!0:s===""?{recurse:!0}:s):Array.isArray(e.path)&&e.path.length?e.path:null,typeof e.map=="function"&&(this.#c=e.map)}#t(e,t){this.#s!==!1&&(this.#s=this.#s||{},this.#s[e]=t),this.#r!==!1&&this.#s===!1&&(this.#r=this.#r||{},this.#r[e]=t)}#g(e){const t=this.#i?this.end:this.write;return this.#i=!1,this.emit("error",new vv(e,t))}#y(e,t){const s=this.#h;if(this.#a.call(this.#h,e,t),s.stack.length===0&&this.#n){const n=this.#n;this.#o||super.write(n),this.#n=null,this.#e=0}}#d(e){const t=this.#h;if(this.#n=e,!this.#o)return;let s=0,n=0,o=!1;for(;s<this.#o.length;){const u=this.#o[s];if(n++,u&&!u.recurse){const c=n===t.stack.length?t:t.stack[n];if(!c)return;if(!_v(u,c.key)){this.#t(c.key,e);return}o=!!u.emitKey,s++}else{if(s++,s>=this.#o.length)return;const c=this.#o[s];if(!c)return;for(;;){const l=n===t.stack.length?t:t.stack[n];if(!l)return;if(_v(c,l.key)){s++,Object.isFrozen(t.stack[n])||(t.stack[n].value=null);break}else this.#t(l.key,e);n++}}}if(this.#s){const u=this.#s;this.#s=!1,this.emit("header",u)}if(n!==t.stack.length)return;this.#e++;const a=t.stack.slice(1).map(u=>u.key).concat([t.key]);if(e!=null){const u=this.#c?this.#c(e,a):e;if(u!=null){const c=o?{value:u}:u;o&&(c.key=t.key),super.write(c)}}t.value&&delete t.value[t.key];for(const u of t.stack)u.value=null}write(e,t){if(typeof e=="string")e=Buffer.from(e,t);else if(!Buffer.isBuffer(e))return this.emit("error",new TypeError("Can only parse JSON from string or buffer input"));return this.#h.write(e),this.flowing}end(e,t){this.#i=!0,e&&this.write(e,t);const s=this.#s;this.#s=null;const n=this.#r;return this.#r=null,s&&this.emit("header",s),n&&this.emit("footer",n),super.end()}static get JSONStreamError(){return vv}static parse(e,t){return new E1({path:e,map:t})}}var BY=E1;(function(r){const{HttpErrorAuthOTP:e}=XS,t=m7,s=Y7,n=bY,o=BY,a=BC,u=Px,c=qt,l=hr,{Minipass:h}=oi,d=vC,f=w=>{try{return!!new c.URL(w)}catch{return!1}};r.exports=p;function p(w,v={}){const _={...d,...v},R=f(w);let P=_.registry||d.registry;R||(P=_.registry=_.spec&&E(_.spec,_)||_.registry||P,w=`${P.trim().replace(/\/?$/g,"")}/${w.trim().replace(/^\//,"")}`,new c.URL(w));const M=_.method||"GET",j=Date.now(),N=s(w,_),G=b(w,N,_);let ie=_.body;const ne=h.isStream(ie),x=ie&&typeof ie=="object"&&typeof ie.then=="function";if(ie&&!ne&&!x&&typeof ie!="string"&&!Buffer.isBuffer(ie)?(G["content-type"]=G["content-type"]||"application/json",ie=JSON.stringify(ie)):ie&&!G["content-type"]&&(G["content-type"]="application/octet-stream"),_.gzip)if(G["content-encoding"]="gzip",ne){const q=new l.Gzip;ie.on("error",O=>q.emit("error",O)),ie=ie.pipe(q)}else x||(ie=new l.Gzip().end(ie).concat());const S=new c.URL(w);if(_.query){const q=typeof _.query=="string"?u.parse(_.query):_.query;Object.keys(q).forEach(O=>{q[O]!==void 0&&S.searchParams.set(O,q[O])}),w=c.format(S)}S.searchParams.get("write")==="true"&&M==="GET"&&(_.offline=!1,_.preferOffline=!1,_.preferOnline=!0);const $=async q=>{const O=n(w,{agent:_.agent,algorithms:_.algorithms,body:q,cache:D(_),cachePath:_.cache,ca:_.ca,cert:N.cert||_.cert,headers:G,integrity:_.integrity,key:N.key||_.key,localAddress:_.localAddress,maxSockets:_.maxSockets,memoize:_.memoize,method:M,noProxy:_.noProxy,proxy:_.httpsProxy||_.proxy,retry:_.retry?_.retry:{retries:_.fetchRetries,factor:_.fetchRetryFactor,minTimeout:_.fetchRetryMintimeout,maxTimeout:_.fetchRetryMaxtimeout},strictSSL:_.strictSSL,timeout:_.timeout||3e4}).then(L=>t({method:M,uri:w,res:L,registry:P,startTime:j,auth:N,opts:_}));return typeof _.otpPrompt=="function"?O.catch(async L=>{if(L instanceof e){let K;try{K=await _.otpPrompt()}catch{}if(!K)throw L;return p(w,{..._,otp:K})}throw L}):O};return Promise.resolve(ie).then($)}r.exports.getAuth=s,r.exports.json=g;function g(w,v){return p(w,v).then(_=>_.json())}r.exports.json.stream=m;function m(w,v,_={}){const R={...d,..._},P=o.parse(v,R.mapJSON);return p(w,R).then(M=>M.body.on("error",j=>P.emit("error",j)).pipe(P)).catch(M=>P.emit("error",M)),P}r.exports.pickRegistry=E;function E(w,v={}){w=a(w);let _=w.scope&&v[w.scope.replace(/^@?/,"@")+":registry"];return!_&&v.scope&&(_=v[v.scope.replace(/^@?/,"@")+":registry"]),_||(_=v.registry||d.registry),_}function D(w){return w.offline?"only-if-cached":w.preferOffline?"force-cache":w.preferOnline?"no-cache":"default"}function b(w,v,_){const R=Object.assign({"user-agent":_.userAgent},_.headers||{});return _.authType&&(R["npm-auth-type"]=_.authType),_.scope&&(R["npm-scope"]=_.scope),_.npmSession&&(R["npm-session"]=_.npmSession),_.npmCommand&&(R["npm-command"]=_.npmCommand),v.token?R.authorization=`Bearer ${v.token}`:v.auth&&(R.authorization=`Basic ${v.auth}`),_.otp&&(R["npm-otp"]=_.otp),R}})(KS);var IY=KS.exports;const Sp=Qe(IY),PY=Qt,Av=PY.homedir();var LY=r=>{if(typeof r!="string")throw new TypeError(`Expected a string, got ${typeof r}`);return Av?r.replace(/^~(?=$|\/|\\)/,Av):r};const c$=Qe(LY),kY="npm-check-updates",NY="17.0.5",MY="Tomas Junnonen <tomas1@gmail.com>",jY="Apache-2.0",UY=["Raine Revere (https://github.com/raineorshine)","Imamuzzaki Abu Salam <imamuzzaki@gmail.com>"],HY="Find newer versions of dependencies than what your package.json allows",GY=["dependencies","npm","package.json","update","upgrade","versions"],WY={node:"^18.18.0 || >=20.0.0",npm:">=8.12.1"},zY="build/index.js",qY="build/index.d.ts",VY={build:"rimraf build && npm run build:options && vite build","build:options":"vite-node src/scripts/build-options.ts","build:analyze":"rimraf build && npm run build:options && ANALYZER=true vite build",lint:"cross-env FORCE_COLOR=1 npm-run-all --parallel --aggregate-output lint:*","lint:lockfile":"lockfile-lint","lint:markdown":'markdownlint "**/*.md" --ignore "**/node_modules/**/*.md" --ignore build --config .markdownlint.js',"lint:src":"eslint --cache --cache-location node_modules/.cache/.eslintcache --ignore-path .gitignore --report-unused-disable-directives .",prepare:"src/scripts/install-hooks",prepublishOnly:"npm run build",prettier:"prettier . --check",test:"npm run test:unit && npm run test:e2e","test:bun":"test/bun-install.sh && mocha test/bun","test:unit":"mocha test test/package-managers/*","test:e2e":"./test/e2e.sh",ncu:"node build/cli.js"},YY={"npm-check-updates":"build/cli.js",ncu:"build/cli.js"},KY={type:"git",url:"git+https://github.com/raineorshine/npm-check-updates.git"},XY="https://github.com/raineorshine/npm-check-updates",ZY={url:"https://github.com/raineorshine/npm-check-updates/issues"},JY={ip:"2.0.1",jsonparse:"https://github.com/ARitz-Cracker/jsonparse/tree/patch-1","@yarnpkg/parsers":"2.6.0"},QY={"@trivago/prettier-plugin-sort-imports":"^4.3.0","@types/chai":"^4.3.16","@types/chai-as-promised":"^7.1.8","@types/chai-string":"^1.4.5","@types/cli-table":"^0.3.4","@types/hosted-git-info":"^3.0.5","@types/ini":"^4.1.1","@types/js-yaml":"^4.0.9","@types/json-parse-helpfulerror":"^1.0.3","@types/jsonlines":"^0.1.5","@types/lodash":"^4.17.7","@types/mocha":"^10.0.7","@types/node":"^22.0.0","@types/npm-registry-fetch":"^8.0.7","@types/parse-github-url":"^1.0.3","@types/picomatch":"^3.0.0","@types/progress":"^2.0.7","@types/prompts":"^2.4.9","@types/remote-git-tags":"^4.0.2","@types/semver":"^7.5.8","@types/semver-utils":"^1.1.3","@types/sinon":"^17.0.3","@types/update-notifier":"^6.0.8","@typescript-eslint/eslint-plugin":"^7.18.0","@typescript-eslint/parser":"^7.18.0",camelcase:"^6.3.0",chai:"^4.3.10","chai-as-promised":"^7.1.2","chai-string":"^1.5.0",chalk:"^5.3.0","cli-table3":"^0.6.5",commander:"^12.1.0","cross-env":"^7.0.3",dequal:"^2.0.3",eslint:"^8.57.0","eslint-config-prettier":"^9.1.0","eslint-config-raine":"^0.5.0","eslint-config-standard":"^17.1.0","eslint-plugin-import":"^2.29.1","eslint-plugin-jsdoc":"^48.10.2","eslint-plugin-n":"^16.6.2","eslint-plugin-promise":"^6.6.0","fast-glob":"^3.3.2","fast-memoize":"^2.5.2","find-up":"5.0.0","fp-and-or":"^1.0.2","hosted-git-info":"^7.0.2",ini:"^4.1.3","js-yaml":"^4.1.0","json-parse-helpfulerror":"^1.0.3",jsonlines:"^0.1.1","lockfile-lint":"^4.14.0",lodash:"^4.17.21","markdownlint-cli":"^0.41.0",mocha:"^10.7.0","npm-registry-fetch":"^17.1.0","npm-run-all":"^4.1.5","p-map":"^4.0.0","parse-github-url":"^1.0.3",picomatch:"^4.0.2",prettier:"^3.3.3",progress:"^2.0.3","prompts-ncu":"^3.0.0","rc-config-loader":"^4.1.3","remote-git-tags":"^3.0.0",rfdc:"^1.4.1",rimraf:"^6.0.1","rollup-plugin-node-externals":"^7.1.2",semver:"^7.6.3","semver-utils":"^1.1.4",should:"^13.2.3",sinon:"^18.0.0","source-map-support":"^0.5.21","spawn-please":"^3.0.0","strip-ansi":"^7.1.0","strip-json-comments":"^5.0.1","ts-node":"^10.9.2",typescript:"^5.5.4","typescript-json-schema":"^0.64.0",untildify:"^4.0.0","update-notifier":"^7.2.0",verdaccio:"^5.32.0",vite:"^5.3.5","vite-bundle-analyzer":"^0.10.3","vite-node":"^2.0.5","vite-plugin-dts":"^3.9.1",yarn:"^1.22.22"},eK=["build","!**/test/**"],tK={"check-leaks":!0,extension:["test.ts"],require:["source-map-support/register","ts-node/register"],timeout:6e4,"trace-deprecation":!0,"trace-warnings":!0,use_strict:!0},wg={name:kY,version:NY,author:MY,license:jY,contributors:UY,description:HY,keywords:GY,engines:WY,main:zY,types:qY,scripts:VY,bin:YY,repository:KY,homepage:XY,bugs:ZY,overrides:JY,devDependencies:QY,files:eK,"lockfile-lint":{"allowed-schemes":["https:","git+ssh:"],"allowed-hosts":["npm","github.com"],"empty-hostname":!1,type:"npm ",path:"package-lock.json"},mocha:tK};var l$={exports:{}},b1={exports:{}};class rK{constructor(e){this.value=e,this.next=void 0}}let iK=class{constructor(){this.clear()}enqueue(e){const t=new rK(e);this._head?(this._tail.next=t,this._tail=t):(this._head=t,this._tail=t),this._size++}dequeue(){const e=this._head;if(e)return this._head=this._head.next,this._size--,e.value}clear(){this._head=void 0,this._tail=void 0,this._size=0}get size(){return this._size}*[Symbol.iterator](){let e=this._head;for(;e;)yield e.value,e=e.next}};var sK=iK;const nK=sK,oK=r=>{if(!((Number.isInteger(r)||r===1/0)&&r>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up");const e=new nK;let t=0;const s=()=>{t--,e.size>0&&e.dequeue()()},n=async(u,c,...l)=>{t++;const h=(async()=>u(...l))();c(h);try{await h}catch{}s()},o=(u,c,...l)=>{e.enqueue(n.bind(null,u,c,...l)),(async()=>(await Promise.resolve(),t<r&&e.size>0&&e.dequeue()()))()},a=(u,...c)=>new Promise(l=>{o(u,l,...c)});return Object.defineProperties(a,{activeCount:{get:()=>t},pendingCount:{get:()=>e.size},clearQueue:{value:()=>{e.clear()}}}),a};var aK=oK;const Sv=aK;class h$ extends Error{constructor(e){super(),this.value=e}}const uK=async(r,e)=>e(await r),cK=async r=>{const e=await Promise.all(r);if(e[1]===!0)throw new h$(e[0]);return!1},lK=async(r,e,t)=>{t={concurrency:1/0,preserveOrder:!0,...t};const s=Sv(t.concurrency),n=[...r].map(a=>[a,s(uK,a,e)]),o=Sv(t.preserveOrder?1:1/0);try{await Promise.all(n.map(a=>o(cK,a)))}catch(a){if(a instanceof h$)return a.value;throw a}};var hK=lK;const f$=de,Nl=lt,{promisify:d$}=rs,fK=hK,dK=d$(Nl.stat),pK=d$(Nl.lstat),p$={directory:"isDirectory",file:"isFile"};function g$({type:r}){if(!(r in p$))throw new Error(`Invalid type specified: ${r}`)}const m$=(r,e)=>r===void 0||e[p$[r]]();b1.exports=async(r,e)=>{e={cwd:process.cwd(),type:"file",allowSymlinks:!0,...e},g$(e);const t=e.allowSymlinks?dK:pK;return fK(r,async s=>{try{const n=await t(f$.resolve(e.cwd,s));return m$(e.type,n)}catch{return!1}},e)};b1.exports.sync=(r,e)=>{e={cwd:process.cwd(),allowSymlinks:!0,type:"file",...e},g$(e);const t=e.allowSymlinks?Nl.statSync:Nl.lstatSync;for(const s of r)try{const n=t(f$.resolve(e.cwd,s));if(m$(e.type,n))return s}catch{}};var gK=b1.exports,w1={exports:{}};const y$=lt,{promisify:mK}=rs,yK=mK(y$.access);w1.exports=async r=>{try{return await yK(r),!0}catch{return!1}};w1.exports.sync=r=>{try{return y$.accessSync(r),!0}catch{return!1}};var DK=w1.exports;(function(r){const e=de,t=gK,s=DK,n=Symbol("findUp.stop");r.exports=async(o,a={})=>{let u=e.resolve(a.cwd||"");const{root:c}=e.parse(u),l=[].concat(o),h=async d=>{if(typeof o!="function")return t(l,d);const f=await o(d.cwd);return typeof f=="string"?t([f],d):f};for(;;){const d=await h({...a,cwd:u});if(d===n)return;if(d)return e.resolve(u,d);if(u===c)return;u=e.dirname(u)}},r.exports.sync=(o,a={})=>{let u=e.resolve(a.cwd||"");const{root:c}=e.parse(u),l=[].concat(o),h=d=>{if(typeof o!="function")return t.sync(l,d);const f=o(d.cwd);return typeof f=="string"?t.sync([f],d):f};for(;;){const d=h({...a,cwd:u});if(d===n)return;if(d)return e.resolve(u,d);if(u===c)return;u=e.dirname(u)}},r.exports.exists=s,r.exports.sync.exists=s.sync,r.exports.stop=n})(l$);var EK=l$.exports;const Ml=Qe(EK);class Lh{constructor(e,t,s){this.__specs=e||{},this.__opts=t||{},this.__providers=Cv(s.filter(n=>n!=null&&typeof n=="object")),this.__isFiggyPudding=!0}get(e){return D$(this,e)}toJSON(){const e={};return this.forEach((t,s)=>{e[s]=t}),e}forEach(e,t=this){for(let[s,n]of this.entries())e.call(t,n,s,this)}*entries(e){for(let s of Object.keys(this.__specs))yield[s,this.get(s)];const t=e||this.__opts.other;if(t){const s=new Set;for(let n of this.__providers){const o=n.entries?n.entries(t):wK(n);for(let[a,u]of o)t(a)&&!s.has(a)&&(s.add(a),yield[a,u])}}}concat(...e){return new Proxy(new Lh(this.__specs,this.__opts,Cv(this.__providers).concat(e)),E$)}}function D$(r,e,t){let s=r.__specs[e];s||(s={});let n;for(let o of r.__providers)if(n=bK(e,o),n!==void 0)break;return n===void 0&&s.default!==void 0?typeof s.default=="function"?s.default(r):s.default:n}function bK(r,e){let t;return e.__isFiggyPudding?t=D$(e,r):t=e[r],t}const E$={get(r,e){return typeof e=="symbol"||e.slice(0,2)==="__"||e in Lh.prototype?r[e]:r.get(e)}};function b$(r,e){function t(...s){return new Proxy(new Lh(r,e,s),E$)}return t}function Cv(r){const e=[];return r.forEach(t=>e.unshift(t)),e}function wK(r){return Object.keys(r).map(e=>[e,r[e]])}const Fv=b$({},{other(){return!0}}),vK=b$({cache:{default:de.join(process.env.HOME||Qt.homedir(),".npm")},configNames:{default:["npmrc",".npmrc"]},envPrefix:{default:/^npm_config_/i},cwd:{default:()=>process.cwd()},globalconfig:{default:()=>de.join(AK(),"etc","npmrc")},userconfig:{default:de.join(process.env.HOME||Qt.homedir(),".npmrc")}});function _K(r,e){const t=vK(e),s={};Object.keys(process.env).forEach(f=>{if(!f.match(t.envPrefix))return;const p=f.toLowerCase().replace(t.envPrefix,"").replace(/(?!^)_/g,"-");s[p]=process.env[f]});const n=Fv(r),o=t.userconfig||n.userconfig||s.userconfig,a=o&&Cp(o),u=t.globalconfig||n.globalconfig||s.globalconfig,c=u&&Cp(u),l=Ml.sync(t.configNames,{cwd:t.cwd});let h={};l&&l!==o&&(h=Cp(l));const d=Fv(t,c,a,h,s,n);return d.cache?d.concat({cache:de.resolve(n.cache||s.cache?t.cwd:h.cache?de.dirname(l):a.cache?de.dirname(o):c.cache?de.dirname(u):de.dirname(o),d.cache)}):d}function Cp(r){let e;try{e=lt.readFileSync(r,"utf8")}catch(t){if(t.code==="ENOENT")return"";throw t}return xm.parse(e)}function AK(){if(process.env.PREFIX)return process.env.PREFIX;if(process.platform==="win32")return de.dirname(process.execPath);{let r=de.dirname(de.dirname(process.execPath));return process.env.DESTDIR&&(r=de.join(process.env.DESTDIR,r)),r}}function SK(r,e){return e.deprecated||!r.deprecated}function CK(r,e){return e.pre?!0:!r.version||!nu(r.version)}function w$(r,e){if(!e)return!0;const t=pt.minVersion(e)?.version;if(!t)return!0;const s=r?.engines?.node;return!s||pt.satisfies(t,s)}function FK(r,e){return e?Object.values(e).every(t=>t[r.name]===void 0||pt.satisfies(r.version,t[r.name])):!0}function Au(r){const e=[t=>SK(t,r),t=>CK(t,r),r.enginesNode?t=>w$(t,r.nodeEngineVersion):null,r.peerDependencies?t=>FK(t,r.peerDependencies):null];return t=>e.every(s=>s?s(t):!0)}const $K=new Set(["-","||","&&","<","<=",">",">="]),RK=r=>ei(r).some(t=>$K.has(t.operator||"")),v$=r=>r&&(!pt.validRange(r)||Em(r)),kh=async(r,e,t,s={},n)=>{const o="application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*",a="application/json",u=Sp.pickRegistry(r,s),c={"user-agent":s.userAgent||`npm-check-updates/${wg.version} node/${process.version}`,"ncu-version":wg.version,"ncu-pkg-id":`registry:${r}`,accept:s.fullMetadata?a:o,...s.headers},l=new URL(encodeURIComponent(r),u.endsWith("/")?u:`${u}/`);n&&(l.pathname+=`/${n}`);const h={...s,headers:c,spec:r};try{if(s.fullMetadata)return Sp.json(l.href,h);{t=t||"latest";const d=Sp.json.stream(l.href,"$*",h),f={name:r};for await(const{key:p,value:g}of d)if(e.includes(p)&&(f[p]=g,Object.keys(f).length===e.length+1))break;return f}}catch(d){if(d.code!=="E404"||s.fullMetadata)throw d;return kh(r,e,t,{...s,fullMetadata:!0},n)}},v1=(r,e)=>{const t={cafile:u=>{if(!u)return;const c=lt.readFileSync(de.resolve(e||"",c$(u)),"utf8"),l="-----END CERTIFICATE-----";return{ca:c.split(l).filter(d=>!!d.trim()).map(d=>`${d.trimStart()}${l}`)}},maxsockets:"maxSockets","strict-ssl":"strictSSL"},s={all:"boolean",allowsameversion:"boolean",audit:"boolean",binlinks:"boolean",color:"boolean",commithooks:"boolean",description:"boolean",dev:"boolean",diffignoreallspace:"boolean",diffnameonly:"boolean",diffnoprefix:"boolean",difftext:"boolean",dryrun:"boolean",enginestrict:"boolean",force:"boolean",foregroundscripts:"boolean",formatpackagelock:"boolean",fund:"boolean",gittagversion:"boolean",global:"boolean",globalstyle:"boolean",ifpresent:"boolean",ignorescripts:"boolean",includestaged:"boolean",includeworkspaceroot:"boolean",installlinks:"boolean",json:"boolean",legacybundling:"boolean",legacypeerdeps:"boolean",link:"boolean",long:"boolean",offline:"boolean",omitlockfileregistryresolved:"boolean",packagelock:"boolean",packagelockonly:"boolean",parseable:"boolean",preferoffline:"boolean",preferonline:"boolean",progress:"boolean",readonly:"boolean",rebuildbundle:"boolean",save:"boolean",savebundle:"boolean",savedev:"boolean",saveexact:"boolean",saveoptional:"boolean",savepeer:"boolean",saveprod:"boolean",shrinkwrap:"boolean",signgitcommit:"boolean",signgittag:"boolean",strictpeerdeps:"boolean",strictssl:"boolean",timing:"boolean",unicode:"boolean",updatenotifier:"boolean",usage:"boolean",version:"boolean",versions:"boolean",workspacesupdate:"boolean",diffunified:"number",fetchretries:"number",fetchretryfactor:"number",fetchretrymaxtimeout:"number",fetchretrymintimeout:"number",fetchtimeout:"number",logsmax:"number",maxsockets:"number",searchlimit:"number",searchstaleness:"number",ssopollfrequency:"number",timeout:"number"},n=u=>!!u&&u!=="false"&&u!=="0",o=u=>parseInt(u)||0;return qe(r,(u,c)=>{const l=typeof c!="string"?c:s[u.replace(/-/g,"").toLowerCase()]==="boolean"?n(c):s[u.replace(/-/g,"").toLowerCase()]==="number"?o(c):c.replace(/\${([^}]+)}/,(d,f)=>process.env[f]),{[u]:h}=t;return typeof h=="string"?{[h]:l}:typeof h=="function"?{...h(l.toString())}:{[u.match(/^[a-z]/i)?hL(u):u]:l}})},vg=mo(r=>{let e;if(r)try{e=xm.parse(lt.readFileSync(r,"utf-8"))}catch(t){if(t.code==="ENOENT")return null;throw t}else e={..._K(null,{userconfig:process.env.npm_config_userconfig||process.env.NPM_CONFIG_USERCONFIG}).toJSON(),cache:!1};return v1(e,r)}),_1=vg();function _$(r,e){let t;try{t=JSON.parse(r)}catch{throw new Error(`Expected JSON from "${e.command}".${e.packageName?` There could be problems with the ${e.packageName} package.`:""} ${r?"Instead received: "+r:"Received empty response."}`)}return t}async function Nh(r,e,t,s={},n){const o=await kh(r,["versions"],null,{...n,..._1,fullMetadata:!0,...s.registry?{registry:s.registry,silent:!0}:null});if(o.versions){const a=Object.keys(o.versions),u=pt.minSatisfying(a,e),c=pt.maxSatisfying(a,t);if(u&&c&&o.versions[u]._npmUser&&o.versions[c]._npmUser){const l=o.versions[u]._npmUser?.name,h=o.versions[c]._npmUser?.name;return l!==h}}return!1}const ya=r=>!!(r&&(r.name||r.engines||r.version||r.versions)),A$=r=>(e,t,s,n)=>{const o=typeof r=="function"?r(n)?.[e]:typeof r=="string"||ya(r)?r:r[e],a=ya(o)?o.version:o;if(!a)throw new Error(`fetchUpgradedPackument is mocked, but no mock version was supplied for ${e}. Make sure that all dependencies are mocked. `);const u=ya(o)&&o.time?.[a]||new Date().toISOString(),c={name:e,"dist-tags":{[n.distTag||"latest"]:a},engines:{node:""},time:{[a]:u},version:a,versions:{},...ya(o)?o:null},{versions:l,...h}=c;return Promise.resolve({...c,versions:{...ya(o)&&o.versions||{[a]:h}}})},xK=mo(({npmConfigLocal:r,npmConfigUser:e,npmConfigWorkspaceProject:t},s)=>{const n=s.packageFile?de.join(s.packageFile,"../.npmrc"):null,o=s.packageFile?vg(n||void 0):null,a=s.cwd?de.join(s.cwd,".npmrc"):null,u=s.cwd?vg(a):null;if(t&&Object.keys(t).length>0){ge(s,`
405
405
  npm config (workspace project):`,"verbose");const{cache:h,...d}=t;bs(s,d,"verbose")}if(e&&Object.keys(e).length>0){ge(s,`
406
406
  npm config (user):`,"verbose");const{cache:h,...d}=e;bs(s,d,"verbose")}if(r&&Object.keys(r).length>0){ge(s,`
407
407
  npm config (local override):`,"verbose");const{cache:h,...d}=r;bs(s,d,"verbose")}if(o&&Object.keys(o).length>0){ge(s,`