@shipstatic/ship 0.1.4 → 0.1.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/dist/browser-files-E7BV45ED.js +2 -0
- package/dist/browser-files-ENFXWWBQ.browser.js +2 -0
- package/dist/chunk-6BOABYS2.browser.js +2 -0
- package/dist/chunk-6BOABYS2.browser.js.map +1 -0
- package/dist/{chunk-GO2GMAFT.js → chunk-6S6AGFLG.js} +2 -2
- package/dist/chunk-VW3YZH4P.js +2 -0
- package/dist/chunk-VW3YZH4P.js.map +1 -0
- package/dist/{chunk-4VJL7GMP.browser.js → chunk-X5GSJTFQ.browser.js} +2 -2
- package/dist/cli.cjs +2 -2
- package/dist/cli.cjs.map +1 -1
- package/dist/index.browser.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/{path-6I7MXXVI.js → path-3A23JUQ3.js} +2 -2
- package/dist/{path-3OU57R5J.browser.js → path-LXKBQBOH.browser.js} +2 -2
- package/package.json +1 -1
- package/dist/browser-files-4HSSOKZU.js +0 -2
- package/dist/browser-files-YFSJYLHP.browser.js +0 -2
- package/dist/chunk-OJ6FY5CZ.js +0 -2
- package/dist/chunk-OJ6FY5CZ.js.map +0 -1
- package/dist/chunk-Z566D7DF.browser.js +0 -2
- package/dist/chunk-Z566D7DF.browser.js.map +0 -1
- /package/dist/{browser-files-4HSSOKZU.js.map → browser-files-E7BV45ED.js.map} +0 -0
- /package/dist/{browser-files-YFSJYLHP.browser.js.map → browser-files-ENFXWWBQ.browser.js.map} +0 -0
- /package/dist/{chunk-GO2GMAFT.js.map → chunk-6S6AGFLG.js.map} +0 -0
- /package/dist/{chunk-4VJL7GMP.browser.js.map → chunk-X5GSJTFQ.browser.js.map} +0 -0
- /package/dist/{path-3OU57R5J.browser.js.map → path-3A23JUQ3.js.map} +0 -0
- /package/dist/{path-6I7MXXVI.js.map → path-LXKBQBOH.browser.js.map} +0 -0
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as fe,b as y,c as M,d as j,e as U,f as ue}from"./chunk-GO2GMAFT.js";import{a as me,b as B,c as k,d as p}from"./chunk-OJ6FY5CZ.js";import{z as v}from"zod";import{cosmiconfigSync as ye}from"cosmiconfig";var b={};B(b,Se);import*as Se from"@shipstatic/types";var S="https://api.shipstatic.com";var H="ship",he=v.object({apiUrl:v.string().url().optional(),apiKey:v.string().optional()}).strict();function q(i){try{return he.parse(i)}catch(e){if(e instanceof v.ZodError){let t=e.issues[0],o=t.path.length>0?` at ${t.path.join(".")}`:"";throw b.ShipError.config(`Configuration validation failed${o}: ${t.message}`)}throw b.ShipError.config("Configuration validation failed")}}function de(){try{let e=ye(H,{searchPlaces:[`.${H}rc`,"package.json"]}).search();if(e&&!e.isEmpty&&e.config)return q(e.config)}catch(i){if(i instanceof b.ShipError)throw i}return{}}function G(){if(y()!=="node")return{};let i={apiUrl:process.env.SHIP_API_URL,apiKey:process.env.SHIP_API_KEY},e=de(),t={apiUrl:i.apiUrl??e.apiUrl,apiKey:i.apiKey??e.apiKey};return q(t)}function V(i={},e={}){let t={apiUrl:i.apiUrl||e.apiUrl||S,apiKey:i.apiKey!==void 0?i.apiKey:e.apiKey};return t.apiKey!==void 0?{apiUrl:t.apiUrl,apiKey:t.apiKey}:{apiUrl:t.apiUrl}}function J(i={},e){let t={...i};return t.onProgress===void 0&&e.onProgress!==void 0&&(t.onProgress=e.onProgress),t.onProgressStats===void 0&&e.onProgressStats!==void 0&&(t.onProgressStats=e.onProgressStats),t.maxConcurrency===void 0&&e.maxConcurrentDeploys!==void 0&&(t.maxConcurrency=e.maxConcurrentDeploys),t.timeout===void 0&&e.timeout!==void 0&&(t.timeout=e.timeout),t.apiKey===void 0&&e.apiKey!==void 0&&(t.apiKey=e.apiKey),t.apiUrl===void 0&&e.apiUrl!==void 0&&(t.apiUrl=e.apiUrl),t}import*as T from"mime-types";import{ShipError as u}from"@shipstatic/types";var R="/deployments",ge="/ping",E="/aliases",Pe="/config",we="/account";function Fe(i){return typeof i=="string"?T.lookup(i)||"application/octet-stream":T.lookup(i.name)||i.type||"application/octet-stream"}async function be(i){let e=[];for await(let t of i)e.push(t);return e}var r,W,L,h,Y,X,Z,Q,N,I,O=class{constructor(e){k(this,r);this.apiUrl=e.apiUrl||S,this.apiKey=e.apiKey??""}async ping(){return(await p(this,r,h).call(this,`${this.apiUrl}${ge}`,{method:"GET"},"Ping"))?.success||!1}async getConfig(){return await p(this,r,h).call(this,`${this.apiUrl}${Pe}`,{method:"GET"},"Config")}async deploy(e,t={}){p(this,r,Y).call(this,e);let{apiUrl:o=this.apiUrl,signal:s}=t;try{let{requestBody:n,requestHeaders:a}=await p(this,r,X).call(this,e),g={method:"POST",body:n,headers:a,signal:s||null},m=await p(this,r,L).call(this,`${o}${R}`,g,"Deploy");return m.ok||await p(this,r,N).call(this,m,"Deploy"),await m.json()}catch(n){throw n instanceof u?n:(p(this,r,I).call(this,n,"Deploy"),u.business("An unexpected error occurred and was not handled."))}}async listDeployments(){return await p(this,r,h).call(this,`${this.apiUrl}${R}`,{method:"GET"},"List Deployments")}async getDeployment(e){return await p(this,r,h).call(this,`${this.apiUrl}${R}/${e}`,{method:"GET"},"Get Deployment")}async removeDeployment(e){await p(this,r,h).call(this,`${this.apiUrl}${R}/${e}`,{method:"DELETE"},"Remove Deployment")}async setAlias(e,t){return await p(this,r,h).call(this,`${this.apiUrl}${E}/${encodeURIComponent(e)}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({deploymentId:t})},"Set Alias")}async getAlias(e){return await p(this,r,h).call(this,`${this.apiUrl}${E}/${encodeURIComponent(e)}`,{method:"GET"},"Get Alias")}async listAliases(){return await p(this,r,h).call(this,`${this.apiUrl}${E}`,{method:"GET"},"List Aliases")}async removeAlias(e){await p(this,r,h).call(this,`${this.apiUrl}${E}/${encodeURIComponent(e)}`,{method:"DELETE"},"Remove Alias")}async getAccount(){return await p(this,r,h).call(this,`${this.apiUrl}${we}`,{method:"GET"},"Get Account")}async createApiKey(){return await p(this,r,h).call(this,`${this.apiUrl}/key`,{method:"POST"},"Create API Key")}};r=new WeakSet,W=function(e={}){let t={...e};return this.apiKey&&(t.Authorization=`Bearer ${this.apiKey}`),t},L=async function(e,t={},o){let s=p(this,r,W).call(this,t.headers),n={...t,headers:s,credentials:y()==="browser"?"include":"same-origin"};try{return await fetch(e,n)}catch(a){throw p(this,r,I).call(this,a,o),a}},h=async function(e,t={},o){try{let s=await p(this,r,L).call(this,e,t,o);return s.ok||await p(this,r,N).call(this,s,o),s.headers.get("Content-Length")==="0"||s.status===204?void 0:await s.json()}catch(s){throw s instanceof u||p(this,r,I).call(this,s,o),s}},Y=function(e){if(!e.length)throw u.business("No files to deploy.");for(let t of e)if(!t.md5)throw u.file(`MD5 checksum missing for file: ${t.path}`,t.path)},X=async function(e){let t,o={};if(y()==="browser")t=p(this,r,Z).call(this,e);else if(y()==="node"){let{body:s,headers:n}=await p(this,r,Q).call(this,e);t=s,o=n}else throw u.business("Unknown or unsupported execution environment");return{requestBody:t,requestHeaders:o}},Z=function(e){let t=new FormData,o=[];for(let s=0;s<e.length;s++){let n=e[s],a;if(n.content instanceof File||n.content instanceof Blob)a=n.content;else throw u.file(`Unsupported file.content type for browser FormData: ${n.path}`,n.path);let g=Fe(a instanceof File?a:n.path),m=new File([a],n.path,{type:g});t.append("files[]",m),o.push(n.md5)}return t.append("checksums",JSON.stringify(o)),t},Q=async function(e){let{FormData:t,File:o}=await import("formdata-node"),{FormDataEncoder:s}=await import("form-data-encoder"),n=await import("path"),a=new t,g=[];for(let F=0;F<e.length;F++){let c=e[F],D=T.lookup(c.path)||"application/octet-stream",$;if(Buffer.isBuffer(c.content))$=new o([c.content],n.basename(c.path),{type:D});else if(typeof Blob<"u"&&c.content instanceof Blob)$=new o([c.content],n.basename(c.path),{type:D});else throw u.file(`Unsupported file.content type for Node.js FormData: ${c.path}`,c.path);let ce=c.path.startsWith("/")?c.path:"/"+c.path;a.append("files[]",$,ce),g.push(c.md5)}a.append("checksums",JSON.stringify(g));let m=new s(a),l=await be(m.encode()),f=Buffer.concat(l.map(F=>Buffer.from(F))),C={"Content-Type":m.contentType,"Content-Length":Buffer.byteLength(f).toString()};return{body:f,headers:C}},N=async function(e,t){let o={};try{let s=e.headers.get("content-type");s&&s.includes("application/json")?o=await e.json():o={message:await e.text()}}catch{o={message:"Failed to parse error response"}}if(o.error||o.code||o.message){let s=o.message||o.error||`${t} failed due to API error`;throw u.api(s,e.status,o.code,o)}throw u.api(`${t} failed due to API error`,e.status,void 0,o)},I=function(e,t){throw e.name==="AbortError"?u.cancelled(`${t} operation was cancelled.`):e instanceof TypeError&&e.message.includes("fetch")?u.network(`${t} failed due to network error: ${e.message}`,e):e instanceof u?e:u.business(`An unexpected error occurred during ${t}: ${e.message||"Unknown error"}`)};import{ShipError as De}from"@shipstatic/types";import{ShipError as Ce}from"@shipstatic/types";var K=null;function ee(i){K=i}function x(){if(K===null)throw Ce.config("Platform configuration not initialized. The SDK must fetch configuration from the API before performing operations.");return K}import{ShipError as d}from"@shipstatic/types";import{ShipError as A}from"@shipstatic/types";import*as w from"fs";import*as P from"path";function ie(i){let e=[];try{let t=w.readdirSync(i);for(let o of t){let s=P.join(i,o),n=w.statSync(s);if(n.isDirectory()){let a=ie(s);e.push(...a)}else n.isFile()&&e.push(s)}}catch(t){console.error(`Error reading directory ${i}:`,t)}return e}async function te(i,e={}){let t=P.resolve(i),s=(()=>{let l=w.statSync(t);return l.isFile()?[t]:l.isDirectory()?ie(t):[]})().filter(l=>{let f=P.basename(l);return j([f]).length>0}),n;e.basePath?n=e.basePath:e.stripCommonPrefix?w.statSync(t).isDirectory()?n=t:n=P.dirname(t):w.statSync(t).isDirectory()?n=t:n=P.dirname(t);let a=[],g=0;for(let l of s)try{let f=w.statSync(l);if(f.size===0){console.warn(`Skipping empty file: ${l}`);continue}let C=x();if(f.size>C.maxFileSize)throw A.business(`File ${l} is too large. Maximum allowed size is ${C.maxFileSize/(1024*1024)}MB.`);if(g+=f.size,g>C.maxTotalSize)throw A.business(`Total deploy size is too large. Maximum allowed is ${C.maxTotalSize/(1024*1024)}MB.`);let F=w.readFileSync(l),{md5:c}=await M(F),D=P.relative(n,l).replace(/\\/g,"/");a.push({path:D,content:F,size:F.length,md5:c})}catch(f){if(f instanceof A&&f.isClientError&&f.isClientError())throw f;console.error(`Could not process file ${l}:`,f)}let m=x();if(a.length>m.maxFilesCount)throw A.business(`Too many files to deploy. Maximum allowed is ${m.maxFilesCount} files.`);return a}async function z(i,e={}){if(y()!=="node")throw A.business("processFilesForNode can only be called in a Node.js environment.");if(i.length>1){let t=[];for(let o of i){let s=await te(o,e);t.push(...s)}return t}return await te(i[0],e)}function oe(i,e={}){let t=x();if(!e.skipEmptyCheck&&i.length===0)throw d.business("No files to deploy.");if(i.length>t.maxFilesCount)throw d.business(`Too many files to deploy. Maximum allowed is ${t.maxFilesCount}.`);let o=0;for(let s of i){if(s.size>t.maxFileSize)throw d.business(`File ${s.name} is too large. Maximum allowed size is ${t.maxFileSize/(1024*1024)}MB.`);o+=s.size}if(o>t.maxTotalSize)throw d.business(`Total deploy size is too large. Maximum allowed is ${t.maxTotalSize/(1024*1024)}MB.`)}function se(i){return oe(i,{skipEmptyCheck:!0}),i.forEach(e=>{e.path&&(e.path=e.path.replace(/\\/g,"/"))}),i}async function xe(i,e={}){if(!Array.isArray(i)||!i.every(s=>typeof s=="string"))throw d.business("Invalid input type for Node.js environment. Expected string[] file paths.");if(i.length===0)throw d.business("No files to deploy.");let t={};if(e.stripCommonPrefix!==void 0&&(t.stripCommonPrefix=e.stripCommonPrefix,e.stripCommonPrefix)){let s=me("path"),n=typeof process<"u"?process.cwd():"/",a=i.map(l=>s.resolve(n,l)),{findCommonParent:g}=await import("./path-6I7MXXVI.js"),m=g(a);m&&(t.basePath=m)}let o=await z(i,t);return se(o)}async function Ae(i,e={}){let t;if(i instanceof HTMLInputElement){if(!i.files)throw d.business("No files selected in HTMLInputElement");t=Array.from(i.files)}else if(typeof i=="object"&&i!==null&&typeof i.length=="number"&&typeof i.item=="function")t=Array.from(i);else if(Array.isArray(i)){if(i.length>0&&typeof i[0]=="string")throw d.business("Invalid input type for browser environment. Expected File[], FileList, or HTMLInputElement.");t=i}else throw d.business("Invalid input type for browser environment. Expected File[], FileList, or HTMLInputElement.");t=t.filter(n=>n.size===0?(console.warn(`Skipping empty file: ${n.name}`),!1):!0),oe(t);let o={};if(e.stripCommonPrefix!==void 0&&(o.stripCommonPrefix=e.stripCommonPrefix,e.stripCommonPrefix)){let{findBrowserCommonParentDirectory:n}=await import("./browser-files-4HSSOKZU.js"),a=n(i instanceof HTMLInputElement?i.files:i);a&&(o.basePath=a)}let s=await U(t,o);return se(s)}async function ne(i,e={}){let t=y();if(t==="node"){if(!Array.isArray(i)||!i.every(o=>typeof o=="string"))throw d.business("Invalid input type for Node.js environment. Expected string[] file paths.");return xe(i,e)}else if(t==="browser"){if(!(i instanceof HTMLInputElement||Array.isArray(i)||typeof FileList<"u"&&i instanceof FileList))throw d.business("In browser, input must be FileList, File[], or HTMLInputElement.");return Ae(i,e)}else throw d.business("Unsupported execution environment.")}function re(i,e,t){return{create:async(o,s={})=>{e&&await e();let n=t?J(s,t):s,a=await ne(o,n);return await i.deploy(a,n)},list:async()=>i.listDeployments(),remove:async o=>{await i.removeDeployment(o)},get:async o=>i.getDeployment(o)}}function ae(i){return{set:async(e,t)=>i.setAlias(e,t),get:async e=>i.getAlias(e),list:async()=>i.listAliases(),remove:async e=>{await i.removeAlias(e)}}}function pe(i){return{get:async()=>i.getAccount()}}function le(i){return{create:async()=>i.createApiKey()}}import{ShipError as ut,ShipErrorType as yt}from"@shipstatic/types";var _=class{constructor(e={}){this.configInitialized=!1;if(this.clientOptions=e,this.environment=y(),this.environment!=="node"&&this.environment!=="browser")throw De.business("Unsupported execution environment.");let t=G(),o=V(e,t);this.http=new O({...e,...o})}async initializeConfig(){if(this.configInitialized)return;let e=await this.http.getConfig();ee(e),this.configInitialized=!0}async ping(){return this.http.ping()}get deployments(){return this._deployments||(this._deployments=re(this.http,()=>this.initializeConfig(),this.clientOptions)),this._deployments}get aliases(){return this._aliases||(this._aliases=ae(this.http)),this._aliases}get account(){return this._account||(this._account=pe(this.http)),this._account}get keys(){return this._keys||(this._keys=le(this.http)),this._keys}async deploy(e,t){return this.deployments.create(e,t)}},ct=_;export{_ as Ship,ut as ShipError,yt as ShipErrorType,fe as __setTestEnvironment,ct as default,ue as findBrowserCommonParentDirectory,U as processFilesForBrowser,z as processFilesForNode};
|
|
1
|
+
import{a as fe,b as y,c as M,d as j,e as U,f as ue}from"./chunk-6S6AGFLG.js";import{a as me,b as B,c as k,d as p}from"./chunk-VW3YZH4P.js";import{z as v}from"zod";import{cosmiconfigSync as ye}from"cosmiconfig";var b={};B(b,Se);import*as Se from"@shipstatic/types";var S="https://api.shipstatic.com";var H="ship",he=v.object({apiUrl:v.string().url().optional(),apiKey:v.string().optional()}).strict();function q(i){try{return he.parse(i)}catch(e){if(e instanceof v.ZodError){let t=e.issues[0],o=t.path.length>0?` at ${t.path.join(".")}`:"";throw b.ShipError.config(`Configuration validation failed${o}: ${t.message}`)}throw b.ShipError.config("Configuration validation failed")}}function de(){try{let e=ye(H,{searchPlaces:[`.${H}rc`,"package.json"]}).search();if(e&&!e.isEmpty&&e.config)return q(e.config)}catch(i){if(i instanceof b.ShipError)throw i}return{}}function G(){if(y()!=="node")return{};let i={apiUrl:process.env.SHIP_API_URL,apiKey:process.env.SHIP_API_KEY},e=de(),t={apiUrl:i.apiUrl??e.apiUrl,apiKey:i.apiKey??e.apiKey};return q(t)}function V(i={},e={}){let t={apiUrl:i.apiUrl||e.apiUrl||S,apiKey:i.apiKey!==void 0?i.apiKey:e.apiKey};return t.apiKey!==void 0?{apiUrl:t.apiUrl,apiKey:t.apiKey}:{apiUrl:t.apiUrl}}function J(i={},e){let t={...i};return t.onProgress===void 0&&e.onProgress!==void 0&&(t.onProgress=e.onProgress),t.onProgressStats===void 0&&e.onProgressStats!==void 0&&(t.onProgressStats=e.onProgressStats),t.maxConcurrency===void 0&&e.maxConcurrentDeploys!==void 0&&(t.maxConcurrency=e.maxConcurrentDeploys),t.timeout===void 0&&e.timeout!==void 0&&(t.timeout=e.timeout),t.apiKey===void 0&&e.apiKey!==void 0&&(t.apiKey=e.apiKey),t.apiUrl===void 0&&e.apiUrl!==void 0&&(t.apiUrl=e.apiUrl),t}import*as T from"mime-types";import{ShipError as u}from"@shipstatic/types";var R="/deployments",ge="/ping",E="/aliases",Pe="/config",we="/account";function Fe(i){return typeof i=="string"?T.lookup(i)||"application/octet-stream":T.lookup(i.name)||i.type||"application/octet-stream"}async function be(i){let e=[];for await(let t of i)e.push(t);return e}var r,W,L,h,Y,X,Z,Q,N,I,O=class{constructor(e){k(this,r);this.apiUrl=e.apiUrl||S,this.apiKey=e.apiKey??""}async ping(){return(await p(this,r,h).call(this,`${this.apiUrl}${ge}`,{method:"GET"},"Ping"))?.success||!1}async getConfig(){return await p(this,r,h).call(this,`${this.apiUrl}${Pe}`,{method:"GET"},"Config")}async deploy(e,t={}){p(this,r,Y).call(this,e);let{apiUrl:o=this.apiUrl,signal:s}=t;try{let{requestBody:n,requestHeaders:a}=await p(this,r,X).call(this,e),g={method:"POST",body:n,headers:a,signal:s||null},m=await p(this,r,L).call(this,`${o}${R}`,g,"Deploy");return m.ok||await p(this,r,N).call(this,m,"Deploy"),await m.json()}catch(n){throw n instanceof u?n:(p(this,r,I).call(this,n,"Deploy"),u.business("An unexpected error occurred and was not handled."))}}async listDeployments(){return await p(this,r,h).call(this,`${this.apiUrl}${R}`,{method:"GET"},"List Deployments")}async getDeployment(e){return await p(this,r,h).call(this,`${this.apiUrl}${R}/${e}`,{method:"GET"},"Get Deployment")}async removeDeployment(e){await p(this,r,h).call(this,`${this.apiUrl}${R}/${e}`,{method:"DELETE"},"Remove Deployment")}async setAlias(e,t){return await p(this,r,h).call(this,`${this.apiUrl}${E}/${encodeURIComponent(e)}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({deploymentId:t})},"Set Alias")}async getAlias(e){return await p(this,r,h).call(this,`${this.apiUrl}${E}/${encodeURIComponent(e)}`,{method:"GET"},"Get Alias")}async listAliases(){return await p(this,r,h).call(this,`${this.apiUrl}${E}`,{method:"GET"},"List Aliases")}async removeAlias(e){await p(this,r,h).call(this,`${this.apiUrl}${E}/${encodeURIComponent(e)}`,{method:"DELETE"},"Remove Alias")}async getAccount(){return await p(this,r,h).call(this,`${this.apiUrl}${we}`,{method:"GET"},"Get Account")}async createApiKey(){return await p(this,r,h).call(this,`${this.apiUrl}/key`,{method:"POST"},"Create API Key")}};r=new WeakSet,W=function(e={}){let t={...e};return this.apiKey&&(t.Authorization=`Bearer ${this.apiKey}`),t},L=async function(e,t={},o){let s=p(this,r,W).call(this,t.headers),n={...t,headers:s,credentials:y()==="browser"?"include":"same-origin"};try{return await fetch(e,n)}catch(a){throw p(this,r,I).call(this,a,o),a}},h=async function(e,t={},o){try{let s=await p(this,r,L).call(this,e,t,o);return s.ok||await p(this,r,N).call(this,s,o),s.headers.get("Content-Length")==="0"||s.status===204?void 0:await s.json()}catch(s){throw s instanceof u||p(this,r,I).call(this,s,o),s}},Y=function(e){if(!e.length)throw u.business("No files to deploy.");for(let t of e)if(!t.md5)throw u.file(`MD5 checksum missing for file: ${t.path}`,t.path)},X=async function(e){let t,o={};if(y()==="browser")t=p(this,r,Z).call(this,e);else if(y()==="node"){let{body:s,headers:n}=await p(this,r,Q).call(this,e);t=s,o=n}else throw u.business("Unknown or unsupported execution environment");return{requestBody:t,requestHeaders:o}},Z=function(e){let t=new FormData,o=[];for(let s=0;s<e.length;s++){let n=e[s],a;if(n.content instanceof File||n.content instanceof Blob)a=n.content;else throw u.file(`Unsupported file.content type for browser FormData: ${n.path}`,n.path);let g=Fe(a instanceof File?a:n.path),m=new File([a],n.path,{type:g});t.append("files[]",m),o.push(n.md5)}return t.append("checksums",JSON.stringify(o)),t},Q=async function(e){let{FormData:t,File:o}=await import("formdata-node"),{FormDataEncoder:s}=await import("form-data-encoder"),n=await import("path"),a=new t,g=[];for(let F=0;F<e.length;F++){let c=e[F],D=T.lookup(c.path)||"application/octet-stream",$;if(Buffer.isBuffer(c.content))$=new o([c.content],n.basename(c.path),{type:D});else if(typeof Blob<"u"&&c.content instanceof Blob)$=new o([c.content],n.basename(c.path),{type:D});else throw u.file(`Unsupported file.content type for Node.js FormData: ${c.path}`,c.path);let ce=c.path.startsWith("/")?c.path:"/"+c.path;a.append("files[]",$,ce),g.push(c.md5)}a.append("checksums",JSON.stringify(g));let m=new s(a),l=await be(m.encode()),f=Buffer.concat(l.map(F=>Buffer.from(F))),C={"Content-Type":m.contentType,"Content-Length":Buffer.byteLength(f).toString()};return{body:f,headers:C}},N=async function(e,t){let o={};try{let s=e.headers.get("content-type");s&&s.includes("application/json")?o=await e.json():o={message:await e.text()}}catch{o={message:"Failed to parse error response"}}if(o.error||o.code||o.message){let s=o.message||o.error||`${t} failed due to API error`;throw u.api(s,e.status,o.code,o)}throw u.api(`${t} failed due to API error`,e.status,void 0,o)},I=function(e,t){throw e.name==="AbortError"?u.cancelled(`${t} operation was cancelled.`):e instanceof TypeError&&e.message.includes("fetch")?u.network(`${t} failed due to network error: ${e.message}`,e):e instanceof u?e:u.business(`An unexpected error occurred during ${t}: ${e.message||"Unknown error"}`)};import{ShipError as De}from"@shipstatic/types";import{ShipError as Ce}from"@shipstatic/types";var K=null;function ee(i){K=i}function x(){if(K===null)throw Ce.config("Platform configuration not initialized. The SDK must fetch configuration from the API before performing operations.");return K}import{ShipError as d}from"@shipstatic/types";import{ShipError as A}from"@shipstatic/types";import*as w from"fs";import*as P from"path";function ie(i){let e=[];try{let t=w.readdirSync(i);for(let o of t){let s=P.join(i,o),n=w.statSync(s);if(n.isDirectory()){let a=ie(s);e.push(...a)}else n.isFile()&&e.push(s)}}catch(t){console.error(`Error reading directory ${i}:`,t)}return e}async function te(i,e={}){let t=P.resolve(i),s=(()=>{let l=w.statSync(t);return l.isFile()?[t]:l.isDirectory()?ie(t):[]})().filter(l=>{let f=P.basename(l);return j([f]).length>0}),n;e.basePath?n=e.basePath:e.stripCommonPrefix?w.statSync(t).isDirectory()?n=t:n=P.dirname(t):w.statSync(t).isDirectory()?n=t:n=P.dirname(t);let a=[],g=0;for(let l of s)try{let f=w.statSync(l);if(f.size===0){console.warn(`Skipping empty file: ${l}`);continue}let C=x();if(f.size>C.maxFileSize)throw A.business(`File ${l} is too large. Maximum allowed size is ${C.maxFileSize/(1024*1024)}MB.`);if(g+=f.size,g>C.maxTotalSize)throw A.business(`Total deploy size is too large. Maximum allowed is ${C.maxTotalSize/(1024*1024)}MB.`);let F=w.readFileSync(l),{md5:c}=await M(F),D=P.relative(n,l).replace(/\\/g,"/");a.push({path:D,content:F,size:F.length,md5:c})}catch(f){if(f instanceof A&&f.isClientError&&f.isClientError())throw f;console.error(`Could not process file ${l}:`,f)}let m=x();if(a.length>m.maxFilesCount)throw A.business(`Too many files to deploy. Maximum allowed is ${m.maxFilesCount} files.`);return a}async function z(i,e={}){if(y()!=="node")throw A.business("processFilesForNode can only be called in a Node.js environment.");if(i.length>1){let t=[];for(let o of i){let s=await te(o,e);t.push(...s)}return t}return await te(i[0],e)}function oe(i,e={}){let t=x();if(!e.skipEmptyCheck&&i.length===0)throw d.business("No files to deploy.");if(i.length>t.maxFilesCount)throw d.business(`Too many files to deploy. Maximum allowed is ${t.maxFilesCount}.`);let o=0;for(let s of i){if(s.size>t.maxFileSize)throw d.business(`File ${s.name} is too large. Maximum allowed size is ${t.maxFileSize/(1024*1024)}MB.`);o+=s.size}if(o>t.maxTotalSize)throw d.business(`Total deploy size is too large. Maximum allowed is ${t.maxTotalSize/(1024*1024)}MB.`)}function se(i){return oe(i,{skipEmptyCheck:!0}),i.forEach(e=>{e.path&&(e.path=e.path.replace(/\\/g,"/"))}),i}async function xe(i,e={}){if(!Array.isArray(i)||!i.every(s=>typeof s=="string"))throw d.business("Invalid input type for Node.js environment. Expected string[] file paths.");if(i.length===0)throw d.business("No files to deploy.");let t={};if(e.stripCommonPrefix!==void 0&&(t.stripCommonPrefix=e.stripCommonPrefix,e.stripCommonPrefix)){let s=me("path"),n=typeof process<"u"?process.cwd():"/",a=i.map(l=>s.resolve(n,l)),{findCommonParent:g}=await import("./path-3A23JUQ3.js"),m=g(a);m&&(t.basePath=m)}let o=await z(i,t);return se(o)}async function Ae(i,e={}){let t;if(i instanceof HTMLInputElement){if(!i.files)throw d.business("No files selected in HTMLInputElement");t=Array.from(i.files)}else if(typeof i=="object"&&i!==null&&typeof i.length=="number"&&typeof i.item=="function")t=Array.from(i);else if(Array.isArray(i)){if(i.length>0&&typeof i[0]=="string")throw d.business("Invalid input type for browser environment. Expected File[], FileList, or HTMLInputElement.");t=i}else throw d.business("Invalid input type for browser environment. Expected File[], FileList, or HTMLInputElement.");t=t.filter(n=>n.size===0?(console.warn(`Skipping empty file: ${n.name}`),!1):!0),oe(t);let o={};if(e.stripCommonPrefix!==void 0&&(o.stripCommonPrefix=e.stripCommonPrefix,e.stripCommonPrefix)){let{findBrowserCommonParentDirectory:n}=await import("./browser-files-E7BV45ED.js"),a=n(i instanceof HTMLInputElement?i.files:i);a&&(o.basePath=a)}let s=await U(t,o);return se(s)}async function ne(i,e={}){let t=y();if(t==="node"){if(!Array.isArray(i)||!i.every(o=>typeof o=="string"))throw d.business("Invalid input type for Node.js environment. Expected string[] file paths.");return xe(i,e)}else if(t==="browser"){if(!(i instanceof HTMLInputElement||Array.isArray(i)||typeof FileList<"u"&&i instanceof FileList))throw d.business("In browser, input must be FileList, File[], or HTMLInputElement.");return Ae(i,e)}else throw d.business("Unsupported execution environment.")}function re(i,e,t){return{create:async(o,s={})=>{e&&await e();let n=t?J(s,t):s,a=await ne(o,n);return await i.deploy(a,n)},list:async()=>i.listDeployments(),remove:async o=>{await i.removeDeployment(o)},get:async o=>i.getDeployment(o)}}function ae(i){return{set:async(e,t)=>i.setAlias(e,t),get:async e=>i.getAlias(e),list:async()=>i.listAliases(),remove:async e=>{await i.removeAlias(e)}}}function pe(i){return{get:async()=>i.getAccount()}}function le(i){return{create:async()=>i.createApiKey()}}import{ShipError as ut,ShipErrorType as yt}from"@shipstatic/types";var _=class{constructor(e={}){this.configInitialized=!1;if(this.clientOptions=e,this.environment=y(),this.environment!=="node"&&this.environment!=="browser")throw De.business("Unsupported execution environment.");let t=G(),o=V(e,t);this.http=new O({...e,...o})}async initializeConfig(){if(this.configInitialized)return;let e=await this.http.getConfig();ee(e),this.configInitialized=!0}async ping(){return this.http.ping()}get deployments(){return this._deployments||(this._deployments=re(this.http,()=>this.initializeConfig(),this.clientOptions)),this._deployments}get aliases(){return this._aliases||(this._aliases=ae(this.http)),this._aliases}get account(){return this._account||(this._account=pe(this.http)),this._account}get keys(){return this._keys||(this._keys=le(this.http)),this._keys}async deploy(e,t){return this.deployments.create(e,t)}},ct=_;export{_ as Ship,ut as ShipError,yt as ShipErrorType,fe as __setTestEnvironment,ct as default,ue as findBrowserCommonParentDirectory,U as processFilesForBrowser,z as processFilesForNode};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{e as a,f as b,g as c,h as d,i as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=path-
|
|
1
|
+
import{e as a,f as b,g as c,h as d,i as e}from"./chunk-VW3YZH4P.js";export{e as ensureRelativePath,b as findCommonParent,a as findCommonParentDirectory,c as normalizeSlashes,d as normalizeWebPath};
|
|
2
|
+
//# sourceMappingURL=path-3A23JUQ3.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c,d,e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=path-
|
|
1
|
+
import{a,b,c,d,e}from"./chunk-6BOABYS2.browser.js";import"./chunk-KBFFWP3K.browser.js";export{e as ensureRelativePath,b as findCommonParent,a as findCommonParentDirectory,c as normalizeSlashes,d as normalizeWebPath};
|
|
2
|
+
//# sourceMappingURL=path-LXKBQBOH.browser.js.map
|
package/package.json
CHANGED
package/dist/chunk-OJ6FY5CZ.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var x=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var P=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var h=n=>{throw TypeError(n)};var g=(n=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(n,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):n)(function(n){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+n+'" is not supported')});var a=(n,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let e of P(t))!p.call(n,e)&&e!==r&&x(n,e,{get:()=>t[e],enumerable:!(i=m(t,e))||i.enumerable});return n},b=(n,t,r)=>(a(n,t,"default"),r&&a(r,t,"default"));var y=(n,t,r)=>t.has(n)||h("Cannot "+r);var S=(n,t,r)=>t.has(n)?h("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(n):t.set(n,r);var q=(n,t,r)=>(y(n,t,"access private method"),r);function d(n,t){if(!n||!Array.isArray(n)||n.length===0)return"";let r=n.filter(o=>o&&typeof o=="string"&&o.includes(t));if(r.length===0)return"";if(r.length===1){let o=r[0],c=o.lastIndexOf(t);return c>-1?o.substring(0,c):""}let i=[...r].sort(),e=i[0],l=i[i.length-1],s=0;for(;s<e.length&&s<l.length&&e[s]===l[s];)s++;let u=e.substring(0,s);if(u.endsWith(t))return u.slice(0,-1);let f=u.lastIndexOf(t);return f>-1?u.substring(0,f):""}function z(n){if(typeof g>"u")return d(n,"/");let t=g("path");return d(n,t.sep)}function A(n){return n.replace(/\\/g,"/")}function I(n){return n.replace(/\\/g,"/").replace(/^\/+/,"")}function C(n){return I(n)}export{g as a,b,S as c,q as d,d as e,z as f,A as g,I as h,C as i};
|
|
2
|
-
//# sourceMappingURL=chunk-OJ6FY5CZ.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/lib/path.ts"],"sourcesContent":["/**\n * @file Path helper utilities that work in both browser and Node.js environments.\n * Provides environment-agnostic path manipulation functions.\n */\n\n/**\n * Finds the common parent directory from an array of paths.\n * This function is the single shared implementation to be used by both browser and Node.js environments.\n * \n * @param paths - Array of paths to analyze for common parent directory.\n * @param separator - Path separator character (e.g., '/' for browser, path.sep for Node.js).\n * @returns The common parent directory path, or an empty string if none is found.\n */\nexport function findCommonParentDirectory(paths: string[], separator: string): string {\n // Validate input\n if (!paths || !Array.isArray(paths) || paths.length === 0) {\n return '';\n }\n \n // Filter out empty paths and paths without separators\n const validPaths = paths.filter(p => p && typeof p === 'string' && p.includes(separator));\n \n if (validPaths.length === 0) {\n return '';\n }\n\n // Special case for single path: return the directory containing this path\n if (validPaths.length === 1) {\n const path = validPaths[0];\n const lastSepIndex = path.lastIndexOf(separator);\n if (lastSepIndex > -1) {\n // Return the directory part without the file name\n return path.substring(0, lastSepIndex);\n }\n return ''; // No directory part found\n }\n\n // Sort paths alphabetically to easily find the common prefix\n const sortedPaths = [...validPaths].sort();\n const firstPath = sortedPaths[0];\n const lastPath = sortedPaths[sortedPaths.length - 1];\n \n // Find the length of the common prefix\n let i = 0;\n while (i < firstPath.length && i < lastPath.length && firstPath[i] === lastPath[i]) {\n i++;\n }\n\n const commonPrefix = firstPath.substring(0, i);\n\n // The prefix must be a directory. If it doesn't end with a separator,\n // find the last separator to get the parent directory.\n if (commonPrefix.endsWith(separator)) {\n // It's a full directory path that matches, so return it without the trailing slash\n return commonPrefix.slice(0, -1);\n }\n\n const lastSepIndex = commonPrefix.lastIndexOf(separator);\n if (lastSepIndex > -1) {\n return commonPrefix.substring(0, lastSepIndex);\n }\n\n return ''; // No common directory\n}\n\n/**\n * Simple helper to find common parent of absolute paths using the system path separator.\n * More declarative wrapper around findCommonParentDirectory for Node.js usage.\n * @param absolutePaths - Array of absolute file paths\n * @returns Common parent directory path or empty string if none found\n */\nexport function findCommonParent(absolutePaths: string[]): string {\n if (typeof require === 'undefined') {\n // Browser environment - use forward slash\n return findCommonParentDirectory(absolutePaths, '/');\n }\n \n // Node.js environment - use system separator\n const path = require('path');\n return findCommonParentDirectory(absolutePaths, path.sep);\n}\n\n\n/**\n * Converts backslashes to forward slashes for cross-platform compatibility.\n * Does not remove leading slashes (preserves absolute paths).\n * @param path - The path to normalize\n * @returns Path with forward slashes\n */\nexport function normalizeSlashes(path: string): string {\n return path.replace(/\\\\/g, '/');\n}\n\n/**\n * Normalizes a path for web usage by converting backslashes to forward slashes\n * and removing leading slashes.\n * @param path - The path to normalize\n * @returns Normalized path suitable for web deployment\n */\nexport function normalizeWebPath(path: string): string {\n return path.replace(/\\\\/g, '/').replace(/^\\/+/, '');\n}\n\n/**\n * Ensures a path is relative by normalizing it and removing any leading slashes.\n * @param path - The path to make relative\n * @returns Relative path suitable for web deployment\n */\nexport function ensureRelativePath(path: string): string {\n return normalizeWebPath(path);\n}\n"],"mappings":"i1BAaO,SAASA,EAA0BC,EAAiBC,EAA2B,CAEpF,GAAI,CAACD,GAAS,CAAC,MAAM,QAAQA,CAAK,GAAKA,EAAM,SAAW,EACtD,MAAO,GAIT,IAAME,EAAaF,EAAM,OAAOG,GAAKA,GAAK,OAAOA,GAAM,UAAYA,EAAE,SAASF,CAAS,CAAC,EAExF,GAAIC,EAAW,SAAW,EACxB,MAAO,GAIT,GAAIA,EAAW,SAAW,EAAG,CAC3B,IAAME,EAAOF,EAAW,CAAC,EACnBG,EAAeD,EAAK,YAAYH,CAAS,EAC/C,OAAII,EAAe,GAEVD,EAAK,UAAU,EAAGC,CAAY,EAEhC,EACT,CAGA,IAAMC,EAAc,CAAC,GAAGJ,CAAU,EAAE,KAAK,EACnCK,EAAYD,EAAY,CAAC,EACzBE,EAAWF,EAAYA,EAAY,OAAS,CAAC,EAG/CG,EAAI,EACR,KAAOA,EAAIF,EAAU,QAAUE,EAAID,EAAS,QAAUD,EAAUE,CAAC,IAAMD,EAASC,CAAC,GAC/EA,IAGF,IAAMC,EAAeH,EAAU,UAAU,EAAGE,CAAC,EAI7C,GAAIC,EAAa,SAAST,CAAS,EAEjC,OAAOS,EAAa,MAAM,EAAG,EAAE,EAGjC,IAAML,EAAeK,EAAa,YAAYT,CAAS,EACvD,OAAII,EAAe,GACVK,EAAa,UAAU,EAAGL,CAAY,EAGxC,EACT,CAQO,SAASM,EAAiBC,EAAiC,CAChE,GAAI,OAAOC,EAAY,IAErB,OAAOd,EAA0Ba,EAAe,GAAG,EAIrD,IAAMR,EAAO,EAAQ,MAAM,EAC3B,OAAOL,EAA0Ba,EAAeR,EAAK,GAAG,CAC1D,CASO,SAASU,EAAiBV,EAAsB,CACrD,OAAOA,EAAK,QAAQ,MAAO,GAAG,CAChC,CAQO,SAASW,EAAiBX,EAAsB,CACrD,OAAOA,EAAK,QAAQ,MAAO,GAAG,EAAE,QAAQ,OAAQ,EAAE,CACpD,CAOO,SAASY,EAAmBZ,EAAsB,CACvD,OAAOW,EAAiBX,CAAI,CAC9B","names":["findCommonParentDirectory","paths","separator","validPaths","p","path","lastSepIndex","sortedPaths","firstPath","lastPath","i","commonPrefix","findCommonParent","absolutePaths","__require","normalizeSlashes","normalizeWebPath","ensureRelativePath"]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as g}from"./chunk-KBFFWP3K.browser.js";function a(n,t){if(!n||!Array.isArray(n)||n.length===0)return"";let i=n.filter(e=>e&&typeof e=="string"&&e.includes(t));if(i.length===0)return"";if(i.length===1){let e=i[0],c=e.lastIndexOf(t);return c>-1?e.substring(0,c):""}let o=[...i].sort(),u=o[0],l=o[o.length-1],r=0;for(;r<u.length&&r<l.length&&u[r]===l[r];)r++;let s=u.substring(0,r);if(s.endsWith(t))return s.slice(0,-1);let f=s.lastIndexOf(t);return f>-1?s.substring(0,f):""}function d(n){if(typeof g>"u")return a(n,"/");let t=g("path");return a(n,t.sep)}function x(n){return n.replace(/\\/g,"/")}function h(n){return n.replace(/\\/g,"/").replace(/^\/+/,"")}function m(n){return h(n)}export{a,d as b,x as c,h as d,m as e};
|
|
2
|
-
//# sourceMappingURL=chunk-Z566D7DF.browser.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/lib/path.ts"],"sourcesContent":["/**\n * @file Path helper utilities that work in both browser and Node.js environments.\n * Provides environment-agnostic path manipulation functions.\n */\n\n/**\n * Finds the common parent directory from an array of paths.\n * This function is the single shared implementation to be used by both browser and Node.js environments.\n * \n * @param paths - Array of paths to analyze for common parent directory.\n * @param separator - Path separator character (e.g., '/' for browser, path.sep for Node.js).\n * @returns The common parent directory path, or an empty string if none is found.\n */\nexport function findCommonParentDirectory(paths: string[], separator: string): string {\n // Validate input\n if (!paths || !Array.isArray(paths) || paths.length === 0) {\n return '';\n }\n \n // Filter out empty paths and paths without separators\n const validPaths = paths.filter(p => p && typeof p === 'string' && p.includes(separator));\n \n if (validPaths.length === 0) {\n return '';\n }\n\n // Special case for single path: return the directory containing this path\n if (validPaths.length === 1) {\n const path = validPaths[0];\n const lastSepIndex = path.lastIndexOf(separator);\n if (lastSepIndex > -1) {\n // Return the directory part without the file name\n return path.substring(0, lastSepIndex);\n }\n return ''; // No directory part found\n }\n\n // Sort paths alphabetically to easily find the common prefix\n const sortedPaths = [...validPaths].sort();\n const firstPath = sortedPaths[0];\n const lastPath = sortedPaths[sortedPaths.length - 1];\n \n // Find the length of the common prefix\n let i = 0;\n while (i < firstPath.length && i < lastPath.length && firstPath[i] === lastPath[i]) {\n i++;\n }\n\n const commonPrefix = firstPath.substring(0, i);\n\n // The prefix must be a directory. If it doesn't end with a separator,\n // find the last separator to get the parent directory.\n if (commonPrefix.endsWith(separator)) {\n // It's a full directory path that matches, so return it without the trailing slash\n return commonPrefix.slice(0, -1);\n }\n\n const lastSepIndex = commonPrefix.lastIndexOf(separator);\n if (lastSepIndex > -1) {\n return commonPrefix.substring(0, lastSepIndex);\n }\n\n return ''; // No common directory\n}\n\n/**\n * Simple helper to find common parent of absolute paths using the system path separator.\n * More declarative wrapper around findCommonParentDirectory for Node.js usage.\n * @param absolutePaths - Array of absolute file paths\n * @returns Common parent directory path or empty string if none found\n */\nexport function findCommonParent(absolutePaths: string[]): string {\n if (typeof require === 'undefined') {\n // Browser environment - use forward slash\n return findCommonParentDirectory(absolutePaths, '/');\n }\n \n // Node.js environment - use system separator\n const path = require('path');\n return findCommonParentDirectory(absolutePaths, path.sep);\n}\n\n\n/**\n * Converts backslashes to forward slashes for cross-platform compatibility.\n * Does not remove leading slashes (preserves absolute paths).\n * @param path - The path to normalize\n * @returns Path with forward slashes\n */\nexport function normalizeSlashes(path: string): string {\n return path.replace(/\\\\/g, '/');\n}\n\n/**\n * Normalizes a path for web usage by converting backslashes to forward slashes\n * and removing leading slashes.\n * @param path - The path to normalize\n * @returns Normalized path suitable for web deployment\n */\nexport function normalizeWebPath(path: string): string {\n return path.replace(/\\\\/g, '/').replace(/^\\/+/, '');\n}\n\n/**\n * Ensures a path is relative by normalizing it and removing any leading slashes.\n * @param path - The path to make relative\n * @returns Relative path suitable for web deployment\n */\nexport function ensureRelativePath(path: string): string {\n return normalizeWebPath(path);\n}\n"],"mappings":"gDAaO,SAASA,EAA0BC,EAAiBC,EAA2B,CAEpF,GAAI,CAACD,GAAS,CAAC,MAAM,QAAQA,CAAK,GAAKA,EAAM,SAAW,EACtD,MAAO,GAIT,IAAME,EAAaF,EAAM,OAAOG,GAAKA,GAAK,OAAOA,GAAM,UAAYA,EAAE,SAASF,CAAS,CAAC,EAExF,GAAIC,EAAW,SAAW,EACxB,MAAO,GAIT,GAAIA,EAAW,SAAW,EAAG,CAC3B,IAAME,EAAOF,EAAW,CAAC,EACnBG,EAAeD,EAAK,YAAYH,CAAS,EAC/C,OAAII,EAAe,GAEVD,EAAK,UAAU,EAAGC,CAAY,EAEhC,EACT,CAGA,IAAMC,EAAc,CAAC,GAAGJ,CAAU,EAAE,KAAK,EACnCK,EAAYD,EAAY,CAAC,EACzBE,EAAWF,EAAYA,EAAY,OAAS,CAAC,EAG/CG,EAAI,EACR,KAAOA,EAAIF,EAAU,QAAUE,EAAID,EAAS,QAAUD,EAAUE,CAAC,IAAMD,EAASC,CAAC,GAC/EA,IAGF,IAAMC,EAAeH,EAAU,UAAU,EAAGE,CAAC,EAI7C,GAAIC,EAAa,SAAST,CAAS,EAEjC,OAAOS,EAAa,MAAM,EAAG,EAAE,EAGjC,IAAML,EAAeK,EAAa,YAAYT,CAAS,EACvD,OAAII,EAAe,GACVK,EAAa,UAAU,EAAGL,CAAY,EAGxC,EACT,CAQO,SAASM,EAAiBC,EAAiC,CAChE,GAAI,OAAOC,EAAY,IAErB,OAAOd,EAA0Ba,EAAe,GAAG,EAIrD,IAAMR,EAAO,EAAQ,MAAM,EAC3B,OAAOL,EAA0Ba,EAAeR,EAAK,GAAG,CAC1D,CASO,SAASU,EAAiBV,EAAsB,CACrD,OAAOA,EAAK,QAAQ,MAAO,GAAG,CAChC,CAQO,SAASW,EAAiBX,EAAsB,CACrD,OAAOA,EAAK,QAAQ,MAAO,GAAG,EAAE,QAAQ,OAAQ,EAAE,CACpD,CAOO,SAASY,EAAmBZ,EAAsB,CACvD,OAAOW,EAAiBX,CAAI,CAC9B","names":["findCommonParentDirectory","paths","separator","validPaths","p","path","lastSepIndex","sortedPaths","firstPath","lastPath","i","commonPrefix","findCommonParent","absolutePaths","__require","normalizeSlashes","normalizeWebPath","ensureRelativePath"]}
|
|
File without changes
|
/package/dist/{browser-files-YFSJYLHP.browser.js.map → browser-files-ENFXWWBQ.browser.js.map}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|