Comparing version 1.1.52 to 1.1.53
import { createRequire as _createRequire } from 'node:module'; | ||
const require = _createRequire(import.meta.url); | ||
import{a as er}from"./chunk-KRD4NQZH.js";import{a as g,b as _,c as nr}from"./chunk-R5TGEMJ4.js";import{a as Ur}from"./chunk-XOWZQRGH.js";import"./chunk-JGPN7XZF.js";import{a as v,b as rr,c as tr}from"./chunk-W3WL2B3H.js";import{a as Z,b as Dr}from"./chunk-522L5OXR.js";import"./chunk-U37RKZCU.js";import{g as Y,i as Q}from"./chunk-JYYNYTCQ.js";import{b as z,e as G,f as B,g as X}from"./chunk-X3AOPEF4.js";import"./chunk-TLPEI3DE.js";import{a as W,v as K}from"./chunk-4BTCJXQC.js";import"./chunk-GZENQUN7.js";import"./chunk-K656WQZA.js";import{c as Pr}from"./chunk-TVMTOQUC.js";import"./chunk-F67LDVCV.js";import{c as L}from"./chunk-ZBJRW65P.js";import"./chunk-J3IJS26Z.js";import"./chunk-CJ3JTOGS.js";import"./chunk-K3QK4XYS.js";import{d as D,e as U,g as H,j as R,k as b,l as V}from"./chunk-WICGWF4N.js";import{b as J,c as N}from"./chunk-EE5EBGQ7.js";import{a as I,b as $,c as q}from"./chunk-CUZEHDNU.js";import{a as Mr,c as C,e as E}from"./chunk-TCTTRAWM.js";import{c as T,e as O,g as __dirname,i as p}from"./chunk-UO4ZAUJK.js";var cr=T((Wt,ar)=>{"use strict";p();var Jr=Dr();ar.exports=r=>typeof r=="string"?r.replace(Jr(),""):r});var F=T((Mt,sr)=>{"use strict";p();var Nr=cr(),Gr=Ur();sr.exports=function(r){return Gr(Nr(r))}});var pr=T((Dt,x)=>{"use strict";p();var l=F();function j(r,t){return Array.apply(null,{length:t+1}).join(r).slice(0,t)}function Br(r,t,o){r=r??"",r=String(r);var e=t-l(r);return e<=0?r:r+j(o||" ",e)}function Kr(r,t,o){r=r??"",r=String(r);var e=t-l(r);if(e<=0)return r;var a=Math.floor(e/2),s=e-a;return j(o||" ",a)+r+j(o||" ",s)}function Xr(r,t,o){r=r??"",r=String(r);var e=t-l(r);return e<=0?r:j(o||" ",e)+r}function Yr(r,t){function o(e,a){return e.trim().split(" ").reduce(function(s,f){var m=s[s.length-1];return m&&l(m.join(" "))+l(f)<a?s[s.length-1].push(f):s.push([f]),s},[]).map(function(s){return s.join(" ")})}return r.split(` | ||
`).map(function(e){return o(e,t)}).reduce(function(e,a){return e.concat(a)},[])}function Qr(r,t,o){r=r.trim();for(var e=[],a=r.split(" "),s="",f=l(o);s||a.length;){if(s){var m=s;s=""}else var m=a.shift();if(l(m)>t){for(var i=0,n=0,c=t-f;i<m.length;){var u=l(m.charAt(i));if(u+n>c)break;n+=u,++i}s=m.slice(i),m=m.slice(0,i),m+=o}e.push(m)}return e.join(" ")}function Zr(r,t){if(r=r??"",r=String(r),t==1/0)return r;for(var o=0,e=0;o<r.length;){var a=l(r.charAt(o));if(a+e>t)break;e+=a,++o}return r.slice(0,o)}x.exports.padRight=Br;x.exports.padCenter=Kr;x.exports.padLeft=Xr;x.exports.splitIntoLines=Yr;x.exports.splitLongWords=Qr;x.exports.truncateString=Zr});var lr=T((Ht,dr)=>{"use strict";p();var M=F(),k=pr(),rt=k.padRight,tt=k.padCenter,et=k.padLeft,mr=k.splitIntoLines,nt=k.splitLongWords,ot=k.truncateString,ur=function(t){return t.toUpperCase()},it=function(t,o,e){return t},at=Object.freeze({maxWidth:1/0,minWidth:0,columnSplitter:" ",truncate:!1,truncateMarker:"\u2026",preserveNewLines:!1,paddingChr:" ",showHeaders:!0,headingTransform:ur,dataTransform:it});dr.exports=function(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=t.config||{};delete t.config;var e=t.maxLineWidth||1/0;e==="auto"&&(e=process.stdout.columns||1/0),delete t.maxLineWidth,t=fr({},at,t),t.config=t.config||Object.create(null),t.spacing=t.spacing||` | ||
`,t.preserveNewLines=!!t.preserveNewLines,t.showHeaders=!!t.showHeaders,t.columns=t.columns||t.include;var a=t.columns||[];r=mt(r,a),a.length||r.forEach(function(i){for(var n in i)a.indexOf(n)===-1&&a.push(n)});var s=a.reduce(function(i,n){var c=Object.create(t);return i[n]=fr(c,o[n]),i},Object.create(null));a.forEach(function(i){var n=s[i];n.name=i,n.maxWidth=Math.ceil(n.maxWidth),n.minWidth=Math.ceil(n.minWidth),n.truncate=!!n.truncate,n.align=n.align||"left"}),r=r.map(function(i){var n=Object.create(null);return a.forEach(function(c){n[c]=i[c]!=null?i[c]:"",n[c]=""+n[c],s[c].preserveNewLines?n[c]=n[c].replace(/[^\S\n]/gmi," "):n[c]=n[c].replace(/\s/gmi," ")}),n}),a.forEach(function(i){var n=s[i];r=r.map(function(c,u){var d=Object.create(n);c[i]=n.dataTransform(c[i],d,u);var h=Object.keys(d);if(h.indexOf("name")!==-1){if(n.headingTransform!==ur)return;n.headingTransform=function(A){return A}}return h.forEach(function(A){return n[A]=d[A]}),c})});var f={};t.showHeaders&&(a.forEach(function(i){var n=s[i];if(!n.showHeaders){f[i]="";return}f[i]=n.headingTransform(n.name)}),r.unshift(f)),a.forEach(function(i){var n=s[i];n.width=r.map(function(c){return c[i]}).reduce(function(c,u){return c>=n.maxWidth?c:Math.max(c,Math.min(n.maxWidth,Math.max(n.minWidth,M(u))))},0)}),a.forEach(function(i){var n=s[i];r=r.map(function(c){return c[i]=nt(c[i],n.width,n.truncateMarker),c})}),a.forEach(function(i){var n=s[i];r=r.map(function(c,u){var d=c[i];if(c[i]=mr(d,n.width),n.truncate&&c[i].length>1){c[i]=mr(d,n.width-M(n.truncateMarker));var h=c[i][0];pt(h,n.truncateMarker)||(c[i][0]+=n.truncateMarker),c[i]=c[i].slice(0,1)}return c})}),a.forEach(function(i){var n=s[i];n.width=r.map(function(c){return c[i].reduce(function(u,d){return u>=n.maxWidth?u:Math.max(u,Math.min(n.maxWidth,Math.max(n.minWidth,M(d))))},0)}).reduce(function(c,u){return c>=n.maxWidth?c:Math.max(c,Math.min(n.maxWidth,Math.max(n.minWidth,u)))},0)});var m=ct(r,s,a,t.paddingChr);return m.reduce(function(i,n){return i.concat(n.reduce(function(c,u){return c.concat(u.join(t.columnSplitter))},[]))},[]).map(function(i){return ot(i,e)}).join(t.spacing)};function ct(r,t,o,e){return r.map(function(a){var s=[],f=0;o.forEach(function(n){f=Math.max(f,a[n].length)});for(var m=function(c){s[c]=s[c]||[],o.forEach(function(u){var d=t[u],h=a[u][c]||"";d.align==="right"?s[c].push(et(h,d.width,e)):d.align==="center"||d.align==="centre"?s[c].push(tt(h,d.width,e)):s[c].push(rt(h,d.width,e))})},i=0;i<f;i++)m(i);return s})}function fr(){return Object.assign?Object.assign.apply(Object,arguments):st.apply(void 0,arguments)}function st(r,t){"use strict";if(r==null)throw new TypeError("Cannot convert first argument to object");for(var o=Object(r),e=!1,a,s=1;s<arguments.length;s++){var f=arguments[s];if(f!=null){for(var m=Object.keys(Object(f)),i=0,n=m.length;i<n;i++){var c=m[i];try{var u=Object.getOwnPropertyDescriptor(f,c);u!==void 0&&u.enumerable&&(o[c]=f[c])}catch(d){e||(e=!0,a=d)}}if(e)throw a}}return o}function pt(r,t,o){o=o||r.length,o=o-t.length;var e=r.lastIndexOf(t);return e!==-1&&e===o}function mt(r,t){if(Array.isArray(r))return r;var o=[];for(var e in r){var a={};a[t[0]||"key"]=e,a[t[1]||"value"]=r[e],o.push(a)}return o}});p();import{cwd as vt}from"node:process";p();import{cwd as Hr}from"node:process";import{join as Vr}from"node:path";var or=O(Mr(),1);var $r=I.object({deprecated:I.string().optional()});async function ir(r){let t=null;try{let{version:o,name:e}=_,a=B({filePath:G(Vr(__dirname,".."),H)}),s=await a.get();t=qr(s),t||(t={...await zr({packageName:e,packageVersion:o})},await a.set(t))}catch(o){let e=new C({code:E.FailedToCheckDeprecatedStatus(),cause:o});r.reportError(e),z(b(Hr()),e)}if(t?.deprecated)throw new C({code:E.DeprecatedVersion({currentVersion:_.version})})}function qr(r){return(0,or.match)(r,{Exists:({data:t})=>{let o=$r.safeParse(t);return o.success?o.data:null},NotExists:()=>null})}async function zr({packageName:r,packageVersion:t}){let o=$(),e=Z(r,{version:t,registryUrl:o.registryUrl}),a=await Q(e,{milliseconds:5e3,message:"Reached timeout while fetching Wix CLI package details"});if(a instanceof Error)throw a;return{deprecated:a.deprecated}}p();p();import{EOL as w}from"node:os";var gr=O(lr(),1);p();var hr="https://wix.to/YASTRGa";var vr={commandUsage(r){return`${L.bold(r.name())} ${r.usage()}`},sortSubcommands:!0,sortOptions:!0,formatHelp(r,t){let o=`${L.dim("Usage:")} | ||
${t.commandUsage(r)}`,e=t.visibleCommands(r).map(u=>({term:u.name(),usage:u.usage(),description:t.commandDescription(u)})),a=t.visibleOptions(r).map(u=>({term:t.optionTerm(u),description:t.optionDescription(u)})),s=(0,gr.default)([...e,...a],{showHeaders:!1,columnSplitter:" "}).split(w).map(u=>` ${u}`),f=s.splice(e.length),m=s,i=`${L.dim("Commands:")}${w}${m.join(w)}`,n=`${L.dim("Options:")}${w}${f.join(w)}`,c=`${L.dim("Learn More:")} | ||
Learn more at ${hr}${w}`;return`${[o,i,n,c].join(w.repeat(2))}${w}`}};p();var Cr=O(W(),1);p();function y(){return K(er)}function wr(){let r=y();return r.t.bind(r)}var Er=r=>{let t=y();return v("login").description(t.t("login_command.description")).option("--api-key <token>",t.t("login_command.option.api_key")).action(async(o,e)=>{let{apiKey:a}=o,{getUserInfo:s}=await import("./src-7KKODZIY.js"),{LoginCommand:f}=await import("./LoginCommand-NYVD43UK.js"),{renderCommand:m}=await import("./render-command-YKD46BVP.js"),i=await s();await m(e,r,Cr.default.createElement(f,{apiKeyToken:a,userInfo:i}))})};p();var xr=O(W(),1);var yr=r=>{let t=y();return v("whoami").description(t.t("whoami_command.description")).action(async(o,e)=>{let{getUserInfo:a}=await import("./src-7KKODZIY.js"),{WhoamiCommand:s}=await import("./WhoamiCommand-HOEXUJGJ.js"),{renderCommand:f}=await import("./render-command-YKD46BVP.js"),m=await a();await f(e,r,xr.default.createElement(s,{userInfo:m}))})};p();var Or=O(W(),1);var Ir=r=>{let t=y();return v("logout").description(t.t("logout_command.description")).action(async(o,e)=>{let{getUserInfo:a}=await import("./src-7KKODZIY.js"),{LogoutCommand:s}=await import("./LogoutCommand-S6XVACQ6.js"),{renderCommand:f}=await import("./render-command-YKD46BVP.js"),m=await a();await f(e,r,Or.default.createElement(s,{userInfo:m}))})};p();var Lr=()=>{let r=wr();return v("telemetry").description(r("telemetry_command.description")).addArgument(new tr("<state>","").choices(["on","off"])).action(async t=>{let{updateUserConfig:o}=await import("./src-7O5FMLWB.js"),{CliError:e,CliErrorCode:a}=await import("./src-QPWACH3J.js"),{createLogger:s}=await import("./src-ZIMNO3M4.js"),f=s();try{await o({telemetry:t==="on"}),f.log(r("telemetry_command.state_updated",{state:t}))}catch(m){throw new e({code:a.FailedToUpdateTelemetryConfig(),cause:m})}})};p();var _r=O(Pr(),1);import{cwd as ft}from"node:process";import{createRequire as ut}from"node:module";import{join as dt}from"node:path";import{pathToFileURL as lt}from"node:url";var kr=ut(dt(ft(),"dummy.js"));async function Sr(){try{let r=kr.resolve("@wix/cli-app");return ht(),await import(lt(r).href)}catch(r){if(r instanceof Error&&"code"in r&&r.code==="MODULE_NOT_FOUND")return null;throw r}}function ht(){let r=kr("@wix/cli-app/package.json").version;if((0,_r.default)(r)===null&&g!==r)throw new C({code:E.CliAppVersionMismatch({cliVersion:g,cliAppVersion:r})})}p();import{env as br}from"node:process";p();var gt=I.object({uiVersion:I.unknown()}).passthrough();async function Ar(r){let t=await J(R(r)),o=gt.safeParse(t);if(o.success)return o.data;throw new C({code:E.InvalidConfigSchemaError({configPath:U,zodError:o.error})})}function Tr(r){return N(R(r))}async function jr(r){if(!await Tr(r))return null;let o=await Ar(r);return br.WIX_CLI_SITE_LIVE==="true"&&Object.hasOwn(o,"veloAppId")?import("./src-IFWA4LD7.js"):br.WIX_CLI_SITE_V2==="true"&&!Object.hasOwn(o,"uiVersion")?import("./src-TBIN5XRV.js"):import("./src-CJFU3UWU.js")}async function Rr({biLogger:r,errorReporter:t,projectFolder:o}){let e=new rr;e.name("wix"),e.version(g,"-v, --version","Output the version number"),e.enablePositionalOptions(!0),e.helpOption("-h, --help","Display help for command"),e.addHelpCommand(!1),e.configureHelp(vr);let a=await Sr();if(a)e.addCommand(await a.getRootCommand({biLogger:r,errorReporter:t},g));else{let s=await jr(o);s&&(await s.getRootCommand({biLogger:r,errorReporter:t},g)).commands.forEach(m=>{e.addCommand(m)})}return e.addCommand(Er({errorReporter:t,biLogger:r})).addCommand(yr({errorReporter:t,biLogger:r})).addCommand(Ir({errorReporter:t,biLogger:r})).addCommand(Lr()),e}p();var Wr=r=>r.parent?`${Wr(r.parent)} ${r.name()}`.trim():r.name();function Fr(r,{errorReporter:t}){r.hook("preAction",(o,e)=>{let a=Wr(e);t.setContext("command info",{command:a,opts:e.opts(),args:e.args})})}q();var P=vt();async function wt(){let{default:r}=await import("./update-notifier-S5PQKIDE.js");r({pkg:_,updateCheckInterval:864e5,shouldNotifyInNpmScript:!0}).notify()}function Ct(){let{handler:r,errorReporter:t,registerToProcessErrors:o}=X({dsn:D,release:_.version,debugOutputPath:b(P),userFeedbackCachePath:V(P)});return o(),{errorHandler:r,errorReporter:t}}var{errorHandler:Et,errorReporter:S}=Ct();try{let r=await Y();r&&S.setUser({id:r.userId});let{biLogger:t}=await nr(S,r?.userId);await wt(),await ir(S);let o=await Rr({biLogger:t,errorReporter:S,projectFolder:P});Fr(o,{errorReporter:S}),await o.parseAsync()}catch(r){Et({error:r})} | ||
import{a as er}from"./chunk-KRD4NQZH.js";import{a as g,b as _,c as nr}from"./chunk-IJZKXMQR.js";import{a as Ur}from"./chunk-XOWZQRGH.js";import"./chunk-GV2I3G6V.js";import{a as v,b as rr,c as tr}from"./chunk-W3WL2B3H.js";import{a as Z,b as Dr}from"./chunk-522L5OXR.js";import"./chunk-U37RKZCU.js";import{g as Y,i as Q}from"./chunk-RDCDD7PY.js";import{b as z,e as N,f as B,g as X}from"./chunk-GACCQUWO.js";import"./chunk-TLPEI3DE.js";import{a as W,w as K}from"./chunk-4QPHCHJW.js";import"./chunk-GZENQUN7.js";import"./chunk-K656WQZA.js";import{c as Pr}from"./chunk-TVMTOQUC.js";import"./chunk-F67LDVCV.js";import{c as L}from"./chunk-ZBJRW65P.js";import"./chunk-J3IJS26Z.js";import"./chunk-CJ3JTOGS.js";import"./chunk-IWNMSC26.js";import{d as D,e as U,g as V,j as R,k as b,l as H}from"./chunk-L3KGS4EW.js";import{b as J,c as G}from"./chunk-VL5SOKL4.js";import{a as I,b as $,c as q}from"./chunk-ZKQ4ECXC.js";import{a as Mr,c as C,e as E}from"./chunk-QR6CA3JS.js";import{c as T,e as O,g as __dirname,i as p}from"./chunk-UO4ZAUJK.js";var cr=T((Wt,ar)=>{"use strict";p();var Jr=Dr();ar.exports=r=>typeof r=="string"?r.replace(Jr(),""):r});var F=T((Mt,sr)=>{"use strict";p();var Gr=cr(),Nr=Ur();sr.exports=function(r){return Nr(Gr(r))}});var pr=T((Dt,x)=>{"use strict";p();var l=F();function j(r,t){return Array.apply(null,{length:t+1}).join(r).slice(0,t)}function Br(r,t,o){r=r??"",r=String(r);var e=t-l(r);return e<=0?r:r+j(o||" ",e)}function Kr(r,t,o){r=r??"",r=String(r);var e=t-l(r);if(e<=0)return r;var a=Math.floor(e/2),s=e-a;return j(o||" ",a)+r+j(o||" ",s)}function Xr(r,t,o){r=r??"",r=String(r);var e=t-l(r);return e<=0?r:j(o||" ",e)+r}function Yr(r,t){function o(e,a){return e.trim().split(" ").reduce(function(s,m){var f=s[s.length-1];return f&&l(f.join(" "))+l(m)<a?s[s.length-1].push(m):s.push([m]),s},[]).map(function(s){return s.join(" ")})}return r.split(` | ||
`).map(function(e){return o(e,t)}).reduce(function(e,a){return e.concat(a)},[])}function Qr(r,t,o){r=r.trim();for(var e=[],a=r.split(" "),s="",m=l(o);s||a.length;){if(s){var f=s;s=""}else var f=a.shift();if(l(f)>t){for(var i=0,n=0,c=t-m;i<f.length;){var u=l(f.charAt(i));if(u+n>c)break;n+=u,++i}s=f.slice(i),f=f.slice(0,i),f+=o}e.push(f)}return e.join(" ")}function Zr(r,t){if(r=r??"",r=String(r),t==1/0)return r;for(var o=0,e=0;o<r.length;){var a=l(r.charAt(o));if(a+e>t)break;e+=a,++o}return r.slice(0,o)}x.exports.padRight=Br;x.exports.padCenter=Kr;x.exports.padLeft=Xr;x.exports.splitIntoLines=Yr;x.exports.splitLongWords=Qr;x.exports.truncateString=Zr});var lr=T((Vt,dr)=>{"use strict";p();var M=F(),k=pr(),rt=k.padRight,tt=k.padCenter,et=k.padLeft,mr=k.splitIntoLines,nt=k.splitLongWords,ot=k.truncateString,ur=function(t){return t.toUpperCase()},it=function(t,o,e){return t},at=Object.freeze({maxWidth:1/0,minWidth:0,columnSplitter:" ",truncate:!1,truncateMarker:"\u2026",preserveNewLines:!1,paddingChr:" ",showHeaders:!0,headingTransform:ur,dataTransform:it});dr.exports=function(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=t.config||{};delete t.config;var e=t.maxLineWidth||1/0;e==="auto"&&(e=process.stdout.columns||1/0),delete t.maxLineWidth,t=fr({},at,t),t.config=t.config||Object.create(null),t.spacing=t.spacing||` | ||
`,t.preserveNewLines=!!t.preserveNewLines,t.showHeaders=!!t.showHeaders,t.columns=t.columns||t.include;var a=t.columns||[];r=mt(r,a),a.length||r.forEach(function(i){for(var n in i)a.indexOf(n)===-1&&a.push(n)});var s=a.reduce(function(i,n){var c=Object.create(t);return i[n]=fr(c,o[n]),i},Object.create(null));a.forEach(function(i){var n=s[i];n.name=i,n.maxWidth=Math.ceil(n.maxWidth),n.minWidth=Math.ceil(n.minWidth),n.truncate=!!n.truncate,n.align=n.align||"left"}),r=r.map(function(i){var n=Object.create(null);return a.forEach(function(c){n[c]=i[c]!=null?i[c]:"",n[c]=""+n[c],s[c].preserveNewLines?n[c]=n[c].replace(/[^\S\n]/gmi," "):n[c]=n[c].replace(/\s/gmi," ")}),n}),a.forEach(function(i){var n=s[i];r=r.map(function(c,u){var d=Object.create(n);c[i]=n.dataTransform(c[i],d,u);var h=Object.keys(d);if(h.indexOf("name")!==-1){if(n.headingTransform!==ur)return;n.headingTransform=function(A){return A}}return h.forEach(function(A){return n[A]=d[A]}),c})});var m={};t.showHeaders&&(a.forEach(function(i){var n=s[i];if(!n.showHeaders){m[i]="";return}m[i]=n.headingTransform(n.name)}),r.unshift(m)),a.forEach(function(i){var n=s[i];n.width=r.map(function(c){return c[i]}).reduce(function(c,u){return c>=n.maxWidth?c:Math.max(c,Math.min(n.maxWidth,Math.max(n.minWidth,M(u))))},0)}),a.forEach(function(i){var n=s[i];r=r.map(function(c){return c[i]=nt(c[i],n.width,n.truncateMarker),c})}),a.forEach(function(i){var n=s[i];r=r.map(function(c,u){var d=c[i];if(c[i]=mr(d,n.width),n.truncate&&c[i].length>1){c[i]=mr(d,n.width-M(n.truncateMarker));var h=c[i][0];pt(h,n.truncateMarker)||(c[i][0]+=n.truncateMarker),c[i]=c[i].slice(0,1)}return c})}),a.forEach(function(i){var n=s[i];n.width=r.map(function(c){return c[i].reduce(function(u,d){return u>=n.maxWidth?u:Math.max(u,Math.min(n.maxWidth,Math.max(n.minWidth,M(d))))},0)}).reduce(function(c,u){return c>=n.maxWidth?c:Math.max(c,Math.min(n.maxWidth,Math.max(n.minWidth,u)))},0)});var f=ct(r,s,a,t.paddingChr);return f.reduce(function(i,n){return i.concat(n.reduce(function(c,u){return c.concat(u.join(t.columnSplitter))},[]))},[]).map(function(i){return ot(i,e)}).join(t.spacing)};function ct(r,t,o,e){return r.map(function(a){var s=[],m=0;o.forEach(function(n){m=Math.max(m,a[n].length)});for(var f=function(c){s[c]=s[c]||[],o.forEach(function(u){var d=t[u],h=a[u][c]||"";d.align==="right"?s[c].push(et(h,d.width,e)):d.align==="center"||d.align==="centre"?s[c].push(tt(h,d.width,e)):s[c].push(rt(h,d.width,e))})},i=0;i<m;i++)f(i);return s})}function fr(){return Object.assign?Object.assign.apply(Object,arguments):st.apply(void 0,arguments)}function st(r,t){"use strict";if(r==null)throw new TypeError("Cannot convert first argument to object");for(var o=Object(r),e=!1,a,s=1;s<arguments.length;s++){var m=arguments[s];if(m!=null){for(var f=Object.keys(Object(m)),i=0,n=f.length;i<n;i++){var c=f[i];try{var u=Object.getOwnPropertyDescriptor(m,c);u!==void 0&&u.enumerable&&(o[c]=m[c])}catch(d){e||(e=!0,a=d)}}if(e)throw a}}return o}function pt(r,t,o){o=o||r.length,o=o-t.length;var e=r.lastIndexOf(t);return e!==-1&&e===o}function mt(r,t){if(Array.isArray(r))return r;var o=[];for(var e in r){var a={};a[t[0]||"key"]=e,a[t[1]||"value"]=r[e],o.push(a)}return o}});p();import{cwd as vt}from"node:process";p();import{cwd as Vr}from"node:process";import{join as Hr}from"node:path";var or=O(Mr(),1);var $r=I.object({deprecated:I.string().optional()});async function ir(r){let t=null;try{let{version:o,name:e}=_,a=B({filePath:N(Hr(__dirname,".."),V)}),s=await a.get();t=qr(s),t||(t={...await zr({packageName:e,packageVersion:o})},await a.set(t))}catch(o){let e=new C({code:E.FailedToCheckDeprecatedStatus(),cause:o});r.reportError(e),z(b(Vr()),e)}if(t?.deprecated)throw new C({code:E.DeprecatedVersion({currentVersion:_.version}),cause:void 0})}function qr(r){return(0,or.match)(r,{Exists:({data:t})=>{let o=$r.safeParse(t);return o.success?o.data:null},NotExists:()=>null})}async function zr({packageName:r,packageVersion:t}){let o=$(),e=Z(r,{version:t,registryUrl:o.registryUrl}),a=await Q(e,{milliseconds:5e3,message:"Reached timeout while fetching Wix CLI package details"});if(a instanceof Error)throw a;return{deprecated:a.deprecated}}p();p();import{EOL as w}from"node:os";var gr=O(lr(),1);p();var hr="https://wix.to/YASTRGa";var vr={commandUsage(r){return`${L.bold(r.name())} ${r.usage()}`},sortSubcommands:!0,sortOptions:!0,formatHelp(r,t){let o=`${L.dim("Usage:")} | ||
${t.commandUsage(r)}`,e=t.visibleCommands(r).map(u=>({term:u.name(),usage:u.usage(),description:t.commandDescription(u)})),a=t.visibleOptions(r).map(u=>({term:t.optionTerm(u),description:t.optionDescription(u)})),s=(0,gr.default)([...e,...a],{showHeaders:!1,columnSplitter:" "}).split(w).map(u=>` ${u}`),m=s.splice(e.length),f=s,i=`${L.dim("Commands:")}${w}${f.join(w)}`,n=`${L.dim("Options:")}${w}${m.join(w)}`,c=`${L.dim("Learn More:")} | ||
Learn more at ${hr}${w}`;return`${[o,i,n,c].join(w.repeat(2))}${w}`}};p();var Cr=O(W(),1);p();function y(){return K(er)}function wr(){let r=y();return r.t.bind(r)}var Er=r=>{let t=y();return v("login").description(t.t("login_command.description")).option("--api-key <token>",t.t("login_command.option.api_key")).action(async(o,e)=>{let{apiKey:a}=o,{getUserInfo:s}=await import("./src-SVG7CLZC.js"),{LoginCommand:m}=await import("./LoginCommand-RISH2J4W.js"),{renderCommand:f}=await import("./render-command-72ZACVOW.js"),i=await s();await f(e,r,Cr.default.createElement(m,{apiKeyToken:a,userInfo:i}))})};p();var xr=O(W(),1);var yr=r=>{let t=y();return v("whoami").description(t.t("whoami_command.description")).action(async(o,e)=>{let{getUserInfo:a}=await import("./src-SVG7CLZC.js"),{WhoamiCommand:s}=await import("./WhoamiCommand-NPGL3NUE.js"),{renderCommand:m}=await import("./render-command-72ZACVOW.js"),f=await a();await m(e,r,xr.default.createElement(s,{userInfo:f}))})};p();var Or=O(W(),1);var Ir=r=>{let t=y();return v("logout").description(t.t("logout_command.description")).action(async(o,e)=>{let{getUserInfo:a}=await import("./src-SVG7CLZC.js"),{LogoutCommand:s}=await import("./LogoutCommand-2IZTG5XL.js"),{renderCommand:m}=await import("./render-command-72ZACVOW.js"),f=await a();await m(e,r,Or.default.createElement(s,{userInfo:f}))})};p();var Lr=()=>{let r=wr();return v("telemetry").description(r("telemetry_command.description")).addArgument(new tr("<state>","").choices(["on","off"])).action(async t=>{let{updateUserConfig:o}=await import("./src-FS2Y3G43.js"),{CliError:e,CliErrorCode:a}=await import("./src-2Z3OBNXW.js"),{createLogger:s}=await import("./src-ZIMNO3M4.js"),m=s();try{await o({telemetry:t==="on"}),m.log(r("telemetry_command.state_updated",{state:t}))}catch(f){throw new e({code:a.FailedToUpdateTelemetryConfig(),cause:f})}})};p();var _r=O(Pr(),1);import{cwd as ft}from"node:process";import{createRequire as ut}from"node:module";import{join as dt}from"node:path";import{pathToFileURL as lt}from"node:url";var kr=ut(dt(ft(),"dummy.js"));async function Sr(){try{let r=kr.resolve("@wix/cli-app");return ht(),await import(lt(r).href)}catch(r){if(r instanceof Error&&"code"in r&&r.code==="MODULE_NOT_FOUND")return null;throw r}}function ht(){let r=kr("@wix/cli-app/package.json").version;if((0,_r.default)(r)===null&&g!==r)throw new C({code:E.CliAppVersionMismatch({cliVersion:g,cliAppVersion:r}),cause:void 0})}p();import{env as br}from"node:process";p();var gt=I.object({uiVersion:I.unknown()}).passthrough();async function Ar(r){let t=await J(R(r)),o=gt.safeParse(t);if(o.success)return o.data;throw new C({code:E.InvalidConfigSchemaError({configPath:U,zodError:o.error}),cause:o.error})}function Tr(r){return G(R(r))}async function jr(r){if(!await Tr(r))return null;let o=await Ar(r);return br.WIX_CLI_SITE_LIVE==="true"&&Object.hasOwn(o,"veloAppId")?import("./src-VO7IYGOL.js"):br.WIX_CLI_SITE_V2==="true"&&!Object.hasOwn(o,"uiVersion")?import("./src-LHL46IXF.js"):import("./src-RULULE6P.js")}async function Rr({biLogger:r,errorReporter:t,projectFolder:o}){let e=new rr;e.name("wix"),e.version(g,"-v, --version","Output the version number"),e.enablePositionalOptions(!0),e.helpOption("-h, --help","Display help for command"),e.helpCommand(!1),e.configureHelp(vr);let a=await Sr();if(a)e.addCommand(await a.getRootCommand({biLogger:r,errorReporter:t},g));else{let s=await jr(o);if(s){let m=await s.getRootCommand({biLogger:r,errorReporter:t},g);for(let f of m.commands)e.addCommand(f)}}return e.addCommand(Er({errorReporter:t,biLogger:r})).addCommand(yr({errorReporter:t,biLogger:r})).addCommand(Ir({errorReporter:t,biLogger:r})).addCommand(Lr()),e}p();var Wr=r=>r.parent?`${Wr(r.parent)} ${r.name()}`.trim():r.name();function Fr(r,{errorReporter:t}){r.hook("preAction",(o,e)=>{let a=Wr(e);t.setContext("command info",{command:a,opts:e.opts(),args:e.args})})}q();var P=vt();async function wt(){let{default:r}=await import("./update-notifier-S5PQKIDE.js");r({pkg:_,updateCheckInterval:864e5,shouldNotifyInNpmScript:!0}).notify()}function Ct(){let{handler:r,errorReporter:t,registerToProcessErrors:o}=X({dsn:D,release:_.version,debugOutputPath:b(P),userFeedbackCachePath:H(P)});return o(),{errorHandler:r,errorReporter:t}}var{errorHandler:Et,errorReporter:S}=Ct();try{let r=await Y();r&&S.setUser({id:r.userId});let{biLogger:t}=await nr(S,r?.userId);await wt(),await ir(S);let o=await Rr({biLogger:t,errorReporter:S,projectFolder:P});Fr(o,{errorReporter:S}),await o.parseAsync()}catch(r){Et({error:r})} | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@wix/cli", | ||
"description": "CLI tool for building Wix sites and applications", | ||
"version": "1.1.52", | ||
"version": "1.1.53", | ||
"bin": { | ||
@@ -91,3 +91,3 @@ "wix": "bin/wix.cjs" | ||
}, | ||
"falconPackageHash": "5e72bd0676ea3f3d547dcbbacac01a6e4854c6b5c49fd71617095fe4" | ||
"falconPackageHash": "f25352338e828c1dc8bf63189171f65a3692033487e636b803949607" | ||
} |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
17834660
159
16096