jsrepo 3.4.0 → 3.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/config.mjs +1 -1
- package/dist/api/index.mjs +1 -1
- package/dist/api/langs/index.mjs +1 -1
- package/dist/api/langs/js.mjs +1 -1
- package/dist/api/outputs.mjs +1 -1
- package/dist/api/providers.mjs +1 -1
- package/dist/api/utils.mjs +1 -1
- package/dist/bin.mjs +1 -1
- package/dist/{providers-B0OUP8f6.mjs → providers-Dblop9GF.mjs} +18 -18
- package/package.json +1 -1
package/dist/api/config.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{F as e,N as t,P as n}from"../providers-
|
|
1
|
+
import{F as e,N as t,P as n}from"../providers-Dblop9GF.mjs";import"../warnings-b5xaLWaR.mjs";export{n as OptionallyInstalledRegistryTypes,e as defineConfig,t as loadConfigSearch};
|
package/dist/api/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as e,B as t,C as n,F as r,I as i,K as a,L as o,N as s,P as c,Q as l,R as u,S as d,T as f,U as p,X as m,_ as h,a as g,b as _,c as v,d as y,f as b,g as x,i as S,l as C,m as w,n as T,o as E,p as D,s as O,st as k,t as A,u as j,v as M,x as N,y as P,z as F}from"../providers-
|
|
1
|
+
import{A as e,B as t,C as n,F as r,I as i,K as a,L as o,N as s,P as c,Q as l,R as u,S as d,T as f,U as p,X as m,_ as h,a as g,b as _,c as v,d as y,f as b,g as x,i as S,l as C,m as w,n as T,o as E,p as D,s as O,st as k,t as A,u as j,v as M,x as N,y as P,z as F}from"../providers-Dblop9GF.mjs";import{a as I,i as L,n as R,o as z,r as B,t as V}from"../warnings-b5xaLWaR.mjs";import{A as H,B as U,C as W,D as G,E as K,F as q,H as J,I as Y,L as X,M as Z,N as Q,O as $,P as ee,R as te,S as ne,T as re,V as ie,_ as ae,a as oe,b as se,c as ce,d as le,f as ue,g as de,h as fe,i as pe,j as me,k as he,l as ge,m as _e,n as ve,o as ye,p as be,r as xe,s as Se,t as Ce,u as we,v as Te,w as Ee,x as De,y as Oe,z as ke}from"../errors-C7KsbF1p.mjs";export{Ce as AlreadyInitializedError,ve as BuildError,xe as ConfigNotFoundError,pe as ConfigObjectNotFoundError,oe as CouldNotFindJsrepoImportError,i as DEFAULT_LANGS,A as DEFAULT_PROVIDERS,ye as DuplicateFileReferenceError,Se as DuplicateItemNameError,ce as FailedToLoadConfigError,ge as FileNotFoundError,we as GlobError,V as GlobPatternNoMatchWarning,le as IllegalItemNameError,ue as ImportedFileNotResolvedError,be as InvalidDependencyError,R as InvalidImportWarning,_e as InvalidJSONError,fe as InvalidKeyTypeError,de as InvalidOptionsError,ae as InvalidPluginError,Te as InvalidRegistryDependencyError,Oe as InvalidRegistryError,se as InvalidRegistryNameError,De as InvalidRegistryVersionError,ne as JsrepoError,B as LanguageNotFoundWarning,W as ManifestFetchError,y as ManifestSchema,Ee as MissingPeerDependencyError,re as ModuleNotFoundError,K as MultipleRegistriesError,G as NoFilesError,$ as NoItemsToUpdateError,he as NoListedItemsError,H as NoOutputsError,me as NoPackageJsonFoundError,Z as NoPathProvidedError,Q as NoProviderFoundError,ee as NoRegistriesError,c as OptionallyInstalledRegistryTypes,q as ProviderFetchError,Y as RegistryFileFetchError,X as RegistryItemFetchError,te as RegistryItemNotFoundError,ke as RegistryNotProvidedError,U as SelfReferenceError,ie as Unreachable,L as UnresolvableDynamicImportWarning,I as Warning,J as ZodError,j as azure,C as bitbucket,z as createWarningHandler,t as css,r as defineConfig,a as detectPackageManager,f as distributed,D as fetchAllResolvedItems,T as fetchManifest,v as fs,w as getPathsForItems,O as github,E as gitlab,F as html,g as http,k as joinAbsolute,p as js,S as jsrepo,s as loadConfigSearch,x as normalizeItemTypeForPath,h as parseWantedItems,M as prepareUpdates,m as promptAddEnvVars,l as promptInstallDependenciesByEcosystem,b as repository,P as resolveAndFetchAllItems,_ as resolveRegistries,N as resolveTree,d as resolveWantedItems,e as resolveWithRoles,u as svelte,n as updateFiles,o as vue};
|
package/dist/api/langs/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{B as e,I as t,L as n,R as r,U as i,z as a}from"../../providers-
|
|
1
|
+
import{B as e,I as t,L as n,R as r,U as i,z as a}from"../../providers-Dblop9GF.mjs";import"../../warnings-b5xaLWaR.mjs";export{t as DEFAULT_LANGS,e as css,a as html,i as js,r as svelte,n as vue};
|
package/dist/api/langs/js.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{G as e,H as t,U as n,V as r,W as i}from"../../providers-
|
|
1
|
+
import{G as e,H as t,U as n,V as r,W as i}from"../../providers-Dblop9GF.mjs";import"../../warnings-b5xaLWaR.mjs";export{r as getImports,t as installDependencies,n as js,i as resolveImports,e as transformImports};
|
package/dist/api/outputs.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{T as e,d as t,f as n}from"../providers-
|
|
1
|
+
import{T as e,d as t,f as n}from"../providers-Dblop9GF.mjs";import"../warnings-b5xaLWaR.mjs";export{t as ManifestSchema,e as distributed,n as repository};
|
package/dist/api/providers.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,c as t,i as n,l as r,n as i,o as a,s as o,t as s,u as c}from"../providers-
|
|
1
|
+
import{a as e,c as t,i as n,l as r,n as i,o as a,s as o,t as s,u as c}from"../providers-Dblop9GF.mjs";import"../warnings-b5xaLWaR.mjs";export{s as DEFAULT_PROVIDERS,c as azure,r as bitbucket,i as fetchManifest,t as fs,o as github,a as gitlab,e as http,n as jsrepo};
|
package/dist/api/utils.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as e,C as t,K as n,Q as r,S as i,X as a,_ as o,b as s,g as c,m as l,p as u,st as d,v as f,x as p,y as m}from"../providers-
|
|
1
|
+
import{A as e,C as t,K as n,Q as r,S as i,X as a,_ as o,b as s,g as c,m as l,p as u,st as d,v as f,x as p,y as m}from"../providers-Dblop9GF.mjs";import"../warnings-b5xaLWaR.mjs";export{n as detectPackageManager,u as fetchAllResolvedItems,l as getPathsForItems,d as joinAbsolute,c as normalizeItemTypeForPath,o as parseWantedItems,f as prepareUpdates,a as promptAddEnvVars,r as promptInstallDependenciesByEcosystem,m as resolveAndFetchAllItems,s as resolveRegistries,p as resolveTree,i as resolveWantedItems,e as resolveWithRoles,t as updateFiles};
|
package/dist/bin.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{i as e,n as t,r as n,t as r}from"./picocolors-DQPB0Sb5.mjs";import{$ as i,A as a,C as o,Ct as s,D as c,E as l,J as u,M as d,N as f,O as p,Q as m,S as h,St as g,V as _,X as v,Y as y,Z as b,_ as x,_t as S,at as C,b as w,bt as T,ct as E,dt as D,et as O,ft as k,g as A,gt as j,h as ee,ht as M,it as te,j as ne,k as re,lt as ie,m as ae,mt as oe,nt as se,ot as N,pt as ce,q as le,r as ue,rt as de,st as P,t as fe,tt as pe,ut as me,v as he,vt as ge,w as _e,wt as ve,xt as ye,y as be,yt as F}from"./providers-
|
|
2
|
+
import{i as e,n as t,r as n,t as r}from"./picocolors-DQPB0Sb5.mjs";import{$ as i,A as a,C as o,Ct as s,D as c,E as l,J as u,M as d,N as f,O as p,Q as m,S as h,St as g,V as _,X as v,Y as y,Z as b,_ as x,_t as S,at as C,b as w,bt as T,ct as E,dt as D,et as O,ft as k,g as A,gt as j,h as ee,ht as M,it as te,j as ne,k as re,lt as ie,m as ae,mt as oe,nt as se,ot as N,pt as ce,q as le,r as ue,rt as de,st as P,t as fe,tt as pe,ut as me,v as he,vt as ge,w as _e,wt as ve,xt as ye,y as be,yt as F}from"./providers-Dblop9GF.mjs";import{_ as xe,b as I,c as Se,f as Ce,g as L,h as R,l as we,m as z,p as B,s as Te,u as Ee,v as De,y as Oe}from"./warnings-b5xaLWaR.mjs";import{A as ke,N as Ae,O as je,P as Me,S as V,_ as Ne,a as Pe,b as Fe,g as Ie,h as H,i as Le,j as Re,r as ze,t as Be,x as Ve,y as He,z as Ue}from"./errors-C7KsbF1p.mjs";import{Command as U,Option as W,program as We}from"commander";import{watch as Ge}from"node:fs";import{Visitor as Ke,parse as qe}from"oxc-parser";import Je from"node:os";import{buffer as Ye}from"node:stream/consumers";import{createGzip as Xe}from"node:zlib";var G=ye(),K=e(r(),1);const q=S({cwd:F().transform(e=>e)}),J={yes:new W(`--yes`,`Skip the confirmation prompt.`).default(!1),noCache:new W(`--no-cache`,`Disable caching of resolved git urls.`).default(!1),verbose:new W(`--verbose`,`Include debug logs.`).default(!1),overwrite:new W(`--overwrite`,`Overwrite files without prompting.`).default(!1),expand:new W(`-E, --expand`,`Expands the diff so you see the entire file.`).default(!1),maxUnchanged:new W(`--max-unchanged <lines>`,`Maximum unchanged lines that will show without being collapsed.`).argParser(e=>Number.parseInt(e,10)).default(5),cwd:new W(`--cwd <path>`,`The current working directory.`).default(process.cwd())};function Y(e,t){return ie(e,t).match(e=>e,e=>Z(new Ie(e.zodError)))}async function X(e){try{let t=await e;return t.isErr()?Z(t.error):t.value}catch(e){e instanceof V&&Z(e),Z(new V(e instanceof Error?e.message:String(e),{suggestion:`Please try again.`}))}}function Z(e){return Ze(e)}function Ze(e){z.message(),process.env.JSREPO_TRACE===`1`?(console.trace(e),process.exit(1)):(L(K.default.red(e.toString())),process.exit(1))}async function Qe(e,t,n){if(Array.isArray(e.registry)){let r=[];for(let i of e.registry)r.push(await t(await D(i,n)));return r}else return[await t(await D(e.registry,n))]}function $e(e){return Array.isArray(e.registry)?e.registry.length>0:!0}var et=44,tt=59,nt=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,rt=new Uint8Array(64),it=new Uint8Array(128);for(let e=0;e<nt.length;e++){let t=nt.charCodeAt(e);rt[e]=t,it[t]=e}function at(e,t,n){let r=t-n;r=r<0?-r<<1|1:r<<1;do{let t=r&31;r>>>=5,r>0&&(t|=32),e.write(rt[t])}while(r>0);return t}var ot=1024*16,st=typeof TextDecoder<`u`?new TextDecoder:typeof Buffer<`u`?{decode(e){return Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString()}}:{decode(e){let t=``;for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t}},ct=class{constructor(){this.pos=0,this.out=``,this.buffer=new Uint8Array(ot)}write(e){let{buffer:t}=this;t[this.pos++]=e,this.pos===ot&&(this.out+=st.decode(t),this.pos=0)}flush(){let{buffer:e,out:t,pos:n}=this;return n>0?t+st.decode(e.subarray(0,n)):t}};function lt(e){let t=new ct,n=0,r=0,i=0,a=0;for(let o=0;o<e.length;o++){let s=e[o];if(o>0&&t.write(tt),s.length===0)continue;let c=0;for(let e=0;e<s.length;e++){let o=s[e];e>0&&t.write(et),c=at(t,o[0],c),o.length!==1&&(n=at(t,o[1],n),r=at(t,o[2],r),i=at(t,o[3],i),o.length!==4&&(a=at(t,o[4],a)))}}return t.flush()}var ut=class e{constructor(t){this.bits=t instanceof e?t.bits.slice():[]}add(e){this.bits[e>>5]|=1<<(e&31)}has(e){return!!(this.bits[e>>5]&1<<(e&31))}},dt=class e{constructor(e,t,n){this.start=e,this.end=t,this.original=n,this.intro=``,this.outro=``,this.content=n,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(e){this.outro+=e}appendRight(e){this.intro+=e}clone(){let t=new e(this.start,this.end,this.original);return t.intro=this.intro,t.outro=this.outro,t.content=this.content,t.storeName=this.storeName,t.edited=this.edited,t}contains(e){return this.start<e&&e<this.end}eachNext(e){let t=this;for(;t;)e(t),t=t.next}eachPrevious(e){let t=this;for(;t;)e(t),t=t.previous}edit(e,t,n){return this.content=e,n||(this.intro=``,this.outro=``),this.storeName=t,this.edited=!0,this}prependLeft(e){this.outro=e+this.outro}prependRight(e){this.intro=e+this.intro}reset(){this.intro=``,this.outro=``,this.edited&&=(this.content=this.original,this.storeName=!1,!1)}split(t){let n=t-this.start,r=this.original.slice(0,n),i=this.original.slice(n);this.original=r;let a=new e(t,this.end,i);return a.outro=this.outro,this.outro=``,this.end=t,this.edited?(a.edit(``,!1),this.content=``):this.content=r,a.next=this.next,a.next&&(a.next.previous=a),a.previous=this,this.next=a,a}toString(){return this.intro+this.content+this.outro}trimEnd(e){if(this.outro=this.outro.replace(e,``),this.outro.length)return!0;let t=this.content.replace(e,``);if(t.length)return t!==this.content&&(this.split(this.start+t.length).edit(``,void 0,!0),this.edited&&this.edit(t,this.storeName,!0)),!0;if(this.edit(``,void 0,!0),this.intro=this.intro.replace(e,``),this.intro.length)return!0}trimStart(e){if(this.intro=this.intro.replace(e,``),this.intro.length)return!0;let t=this.content.replace(e,``);if(t.length){if(t!==this.content){let e=this.split(this.end-t.length);this.edited&&e.edit(t,this.storeName,!0),this.edit(``,void 0,!0)}return!0}else if(this.edit(``,void 0,!0),this.outro=this.outro.replace(e,``),this.outro.length)return!0}};function ft(){return typeof globalThis<`u`&&typeof globalThis.btoa==`function`?e=>globalThis.btoa(unescape(encodeURIComponent(e))):typeof Buffer==`function`?e=>Buffer.from(e,`utf-8`).toString(`base64`):()=>{throw Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}const pt=ft();var mt=class{constructor(e){this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=lt(e.mappings),e.x_google_ignoreList!==void 0&&(this.x_google_ignoreList=e.x_google_ignoreList),e.debugId!==void 0&&(this.debugId=e.debugId)}toString(){return JSON.stringify(this)}toUrl(){return`data:application/json;charset=utf-8;base64,`+pt(this.toString())}};function ht(e){let t=e.split(`
|
|
3
3
|
`),n=t.filter(e=>/^\t+/.test(e)),r=t.filter(e=>/^ {2,}/.test(e));if(n.length===0&&r.length===0)return null;if(n.length>=r.length)return` `;let i=r.reduce((e,t)=>{let n=/^ +/.exec(t)[0].length;return Math.min(n,e)},1/0);return Array(i+1).join(` `)}function gt(e,t){let n=e.split(/[/\\]/),r=t.split(/[/\\]/);for(n.pop();n[0]===r[0];)n.shift(),r.shift();if(n.length){let e=n.length;for(;e--;)n[e]=`..`}return n.concat(r).join(`/`)}const _t=Object.prototype.toString;function vt(e){return _t.call(e)===`[object Object]`}function yt(e){let t=e.split(`
|
|
4
4
|
`),n=[];for(let e=0,r=0;e<t.length;e++)n.push(r),r+=t[e].length+1;return function(e){let t=0,r=n.length;for(;t<r;){let i=t+r>>1;e<n[i]?r=i:t=i+1}let i=t-1;return{line:i,column:e-n[i]}}}const bt=/\w/;var xt=class{constructor(e){this.hires=e,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(e,t,n,r){if(t.length){let i=t.length-1,a=t.indexOf(`
|
|
5
5
|
`,0),o=-1;for(;a>=0&&i>a;){let i=[this.generatedCodeColumn,e,n.line,n.column];r>=0&&i.push(r),this.rawSegments.push(i),this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,o=a,a=t.indexOf(`
|