jsrepo 3.8.0 → 3.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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-Dc3L9h_M.mjs → providers-lyYy80j9.mjs} +24 -24
- 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-lyYy80j9.mjs";import"../warnings-DFbHh8ba.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,E as r,F as i,I as a,K as o,L as s,N as c,P as l,Q as u,R as d,S as f,T as p,U as m,X as h,_ as g,a as _,b as v,c as y,d as b,f as x,g as S,i as C,l as w,m as T,n as E,o as D,p as O,s as k,st as A,t as j,u as M,v as N,x as P,y as F,z as I}from"../providers-
|
|
1
|
+
import{A as e,B as t,C as n,E as r,F as i,I as a,K as o,L as s,N as c,P as l,Q as u,R as d,S as f,T as p,U as m,X as h,_ as g,a as _,b as v,c as y,d as b,f as x,g as S,i as C,l as w,m as T,n as E,o as D,p as O,s as k,st as A,t as j,u as M,v as N,x as P,y as F,z as I}from"../providers-lyYy80j9.mjs";import{a as L,i as R,n as z,o as B,r as V,t as H}from"../warnings-DFbHh8ba.mjs";import{A as U,B as W,C as G,D as K,E as q,F as J,H as Y,I as X,L as Z,M as Q,N as $,O as ee,P as te,R as ne,S as re,T as ie,V as ae,_ as oe,a as se,b as ce,c as le,d as ue,f as de,g as fe,h as pe,i as me,j as he,k as ge,l as _e,m as ve,n as ye,o as be,p as xe,r as Se,s as Ce,t as we,u as Te,v as Ee,w as De,x as Oe,y as ke,z as Ae}from"../errors-ZO96VU6k.mjs";export{we as AlreadyInitializedError,ye as BuildError,Se as ConfigNotFoundError,me as ConfigObjectNotFoundError,se as CouldNotFindJsrepoImportError,a as DEFAULT_LANGS,j as DEFAULT_PROVIDERS,be as DuplicateFileReferenceError,Ce as DuplicateItemNameError,le as FailedToLoadConfigError,_e as FileNotFoundError,Te as GlobError,H as GlobPatternNoMatchWarning,ue as IllegalItemNameError,de as ImportedFileNotResolvedError,xe as InvalidDependencyError,z as InvalidImportWarning,ve as InvalidJSONError,pe as InvalidKeyTypeError,fe as InvalidOptionsError,oe as InvalidPluginError,Ee as InvalidRegistryDependencyError,ke as InvalidRegistryError,ce as InvalidRegistryNameError,Oe as InvalidRegistryVersionError,re as JsrepoError,V as LanguageNotFoundWarning,G as ManifestFetchError,b as ManifestSchema,De as MissingPeerDependencyError,ie as ModuleNotFoundError,q as MultipleRegistriesError,K as NoFilesError,ee as NoItemsToUpdateError,ge as NoListedItemsError,U as NoOutputsError,he as NoPackageJsonFoundError,Q as NoPathProvidedError,$ as NoProviderFoundError,te as NoRegistriesError,l as OptionallyInstalledRegistryTypes,J as ProviderFetchError,X as RegistryFileFetchError,Z as RegistryItemFetchError,ne as RegistryItemNotFoundError,Ae as RegistryNotProvidedError,W as SelfReferenceError,ae as Unreachable,R as UnresolvableDynamicImportWarning,L as Warning,Y as ZodError,M as azure,w as bitbucket,B as createWarningHandler,t as css,i as defineConfig,o as detectPackageManager,p as distributed,O as fetchAllResolvedItems,E as fetchManifest,y as fs,T as getPathsForItems,k as github,D as gitlab,I as html,_ as http,A as joinAbsolute,m as js,C as jsrepo,c as loadConfigSearch,S as normalizeItemTypeForPath,g as parseWantedItems,N as prepareUpdates,h as promptAddEnvVars,u as promptInstallDependenciesByEcosystem,x as repository,F as resolveAndFetchAllItems,v as resolveRegistries,P as resolveTree,f as resolveWantedItems,e as resolveWithRoles,r as stringify,d as svelte,n as updateFiles,s 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-lyYy80j9.mjs";import"../../warnings-DFbHh8ba.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-lyYy80j9.mjs";import"../../warnings-DFbHh8ba.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-lyYy80j9.mjs";import"../warnings-DFbHh8ba.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-lyYy80j9.mjs";import"../warnings-DFbHh8ba.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,E as n,K as r,Q as i,S as a,X as o,_ as s,b as c,g as l,m as u,p as d,st as f,v as p,x as m,y as h}from"../providers-
|
|
1
|
+
import{A as e,C as t,E as n,K as r,Q as i,S as a,X as o,_ as s,b as c,g as l,m as u,p as d,st as f,v as p,x as m,y as h}from"../providers-lyYy80j9.mjs";import"../warnings-DFbHh8ba.mjs";export{r as detectPackageManager,d as fetchAllResolvedItems,u as getPathsForItems,f as joinAbsolute,l as normalizeItemTypeForPath,s as parseWantedItems,p as prepareUpdates,o as promptAddEnvVars,i as promptInstallDependenciesByEcosystem,h as resolveAndFetchAllItems,c as resolveRegistries,m as resolveTree,a as resolveWantedItems,e as resolveWithRoles,n as stringify,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,Tt as _,V as v,X as y,Y as b,Z as x,_ as S,_t as C,at as w,b as T,bt as E,ct as D,dt as O,et as k,ft as A,g as j,gt as M,h as ee,ht as N,it as te,j as ne,k as re,lt as ie,m as ae,mt as oe,nt as se,ot as P,pt as ce,q as le,r as ue,rt as de,st as F,t as fe,tt as pe,ut as me,v as he,vt as ge,w as _e,wt as ve,xt as I,y as ye,yt as L}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,Tt as _,V as v,X as y,Y as b,Z as x,_ as S,_t as C,at as w,b as T,bt as E,ct as D,dt as O,et as k,ft as A,g as j,gt as M,h as ee,ht as N,it as te,j as ne,k as re,lt as ie,m as ae,mt as oe,nt as se,ot as P,pt as ce,q as le,r as ue,rt as de,st as F,t as fe,tt as pe,ut as me,v as he,vt as ge,w as _e,wt as ve,xt as I,y as ye,yt as L}from"./providers-lyYy80j9.mjs";import{_ as be,b as R,c as xe,d as Se,g as Ce,h as we,l as z,m as Te,p as B,s as Ee,u as V,v as De,y as Oe}from"./warnings-DFbHh8ba.mjs";import{A as ke,N as Ae,O as je,P as Me,S as H,_ as Ne,a as Pe,b as Fe,g as Ie,h as Le,i as Re,j as ze,r as Be,t as Ve,x as He,y as Ue,z as We}from"./errors-ZO96VU6k.mjs";import{Command as U,Option as W,program as Ge}from"commander";import{watch as Ke}from"node:fs";import{Visitor as qe,parse as Je}from"oxc-parser";import Ye from"node:os";import{buffer as Xe}from"node:stream/consumers";import{createGzip as Ze}from"node:zlib";var G=g(),K=e(r(),1);const q=C({cwd:L().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 H&&Z(e),Z(new H(e instanceof Error?e.message:String(e),{suggestion:`Please try again.`}))}}function Z(e){return Qe(e)}function Qe(e){B.message(),process.env.JSREPO_TRACE===`1`?(console.trace(e),process.exit(1)):(V(K.default.red(e.toString())),process.exit(1))}async function $e(e,t,n){if(Array.isArray(e.registry)){let r=[];for(let i of e.registry)r.push(await t(await O(i,n)));return r}else return[await t(await O(e.registry,n))]}function et(e){return Array.isArray(e.registry)?e.registry.length>0:!0}var tt=44,nt=59,rt=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,it=new Uint8Array(64),at=new Uint8Array(128);for(let e=0;e<rt.length;e++){let t=rt.charCodeAt(e);it[e]=t,at[t]=e}function ot(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(it[t])}while(r>0);return t}var st=1024*16,ct=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}},lt=class{constructor(){this.pos=0,this.out=``,this.buffer=new Uint8Array(st)}write(e){let{buffer:t}=this;t[this.pos++]=e,this.pos===st&&(this.out+=ct.decode(t),this.pos=0)}flush(){let{buffer:e,out:t,pos:n}=this;return n>0?t+ct.decode(e.subarray(0,n)):t}};function ut(e){let t=new lt,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(nt),s.length===0)continue;let c=0;for(let e=0;e<s.length;e++){let o=s[e];e>0&&t.write(tt),c=ot(t,o[0],c),o.length!==1&&(n=ot(t,o[1],n),r=ot(t,o[2],r),i=ot(t,o[3],i),o.length!==4&&(a=ot(t,o[4],a)))}}return t.flush()}var dt=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))}},ft=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 pt(){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 mt=pt();var ht=class{constructor(e){this.version=3,this.file=e.file,this.sources=e.sources,this.sourcesContent=e.sourcesContent,this.names=e.names,this.mappings=ut(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,`+mt(this.toString())}};function gt(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 _t(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 vt=Object.prototype.toString;function yt(e){return vt.call(e)===`[object Object]`}function bt(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 xt=/\w/;var St=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(`
|