Comparing version 1.1.53 to 1.1.54
import { createRequire as _createRequire } from 'node:module'; | ||
const require = _createRequire(import.meta.url); | ||
import{a as i}from"./chunk-EY7RCO4T.js";import"./chunk-2U7VPZZN.js";import"./chunk-522L5OXR.js";import"./chunk-U37RKZCU.js";import"./chunk-TVMTOQUC.js";import"./chunk-F67LDVCV.js";import"./chunk-ZBJRW65P.js";import{i as r}from"./chunk-UO4ZAUJK.js";r();import e from"node:process";var o=new i(JSON.parse(e.argv[2]));try{setTimeout(e.exit,1e3*30);let t=await o.fetchInfo();o.config.set("lastUpdateCheck",Date.now()),t.type&&t.type!=="latest"&&o.config.set("update",t),e.exit()}catch(t){console.error(t),e.exit(1)} | ||
import{a as i}from"./chunk-GCM6E6UB.js";import"./chunk-2U7VPZZN.js";import"./chunk-522L5OXR.js";import"./chunk-U37RKZCU.js";import"./chunk-TVMTOQUC.js";import"./chunk-F67LDVCV.js";import"./chunk-ZBJRW65P.js";import{i as r}from"./chunk-UO4ZAUJK.js";r();import e from"node:process";var o=new i(JSON.parse(e.argv[2]));try{setTimeout(e.exit,1e3*30);let t=await o.fetchInfo();o.config.set("lastUpdateCheck",Date.now()),t.type&&t.type!=="latest"&&o.config.set("update",t),e.exit()}catch(t){console.error(t),e.exit(1)} | ||
//# sourceMappingURL=check.js.map |
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-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})} | ||
import{a as nr}from"./chunk-KRD4NQZH.js";import{a as g,b as _,c as Z}from"./chunk-BLU4HRZE.js";import{a as v,b as tr,c as er}from"./chunk-W3WL2B3H.js";import"./chunk-P6O6SHMD.js";import{a as Dr}from"./chunk-XOWZQRGH.js";import{a as rr,b as Ur}from"./chunk-522L5OXR.js";import"./chunk-U37RKZCU.js";import{g as $,i as q}from"./chunk-QRXJXTDM.js";import{d as J,g as G,h as N,i as B}from"./chunk-PCOHTRKC.js";import{a as R,w as z}from"./chunk-MCYLPYJV.js";import"./chunk-C4I6VFE7.js";import"./chunk-JPTOEPBL.js";import"./chunk-Z7AFBSZS.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-LJGLNQKN.js";import{d as K,e as X,g as Y,j as W,k as b,l as Q}from"./chunk-L3KGS4EW.js";import{c as V,d as H}from"./chunk-52Q35AIU.js";import{a as I,b as D,c as U}from"./chunk-ZKQ4ECXC.js";import{a as Mr,c as C,e as E}from"./chunk-CVDLBCEY.js";import{c as T,e as O,g as __dirname,i as p}from"./chunk-UO4ZAUJK.js";var Ir=T((Ee,Or)=>{"use strict";p();var Yr=Ur();Or.exports=r=>typeof r=="string"?r.replace(Yr(),""):r});var F=T((ye,Lr)=>{"use strict";p();var Qr=Ir(),Zr=Dr();Lr.exports=function(r){return Zr(Qr(r))}});var _r=T((Ie,y)=>{"use strict";p();var l=F();function j(r,t){return Array.apply(null,{length:t+1}).join(r).slice(0,t)}function rt(r,t,o){r=r??"",r=String(r);var e=t-l(r);return e<=0?r:r+j(o||" ",e)}function tt(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 et(r,t,o){r=r??"",r=String(r);var e=t-l(r);return e<=0?r:j(o||" ",e)+r}function nt(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 ot(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 it(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)}y.exports.padRight=rt;y.exports.padCenter=tt;y.exports.padLeft=et;y.exports.splitIntoLines=nt;y.exports.splitLongWords=ot;y.exports.truncateString=it});var br=T((_e,Tr)=>{"use strict";p();var M=F(),k=_r(),at=k.padRight,ct=k.padCenter,st=k.padLeft,kr=k.splitIntoLines,pt=k.splitLongWords,mt=k.truncateString,Ar=function(t){return t.toUpperCase()},ft=function(t,o,e){return t},ut=Object.freeze({maxWidth:1/0,minWidth:0,columnSplitter:" ",truncate:!1,truncateMarker:"\u2026",preserveNewLines:!1,paddingChr:" ",showHeaders:!0,headingTransform:Ar,dataTransform:ft});Tr.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=Sr({},ut,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=gt(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]=Sr(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!==Ar)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]=pt(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]=kr(d,n.width),n.truncate&&c[i].length>1){c[i]=kr(d,n.width-M(n.truncateMarker));var h=c[i][0];ht(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=dt(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 mt(i,e)}).join(t.spacing)};function dt(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(st(h,d.width,e)):d.align==="center"||d.align==="centre"?s[c].push(ct(h,d.width,e)):s[c].push(at(h,d.width,e))})},i=0;i<m;i++)f(i);return s})}function Sr(){return Object.assign?Object.assign.apply(Object,arguments):lt.apply(void 0,arguments)}function lt(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 ht(r,t,o){o=o||r.length,o=o-t.length;var e=r.lastIndexOf(t);return e!==-1&&e===o}function gt(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();var or=r=>r.parent?`${or(r.parent)} ${r.name()}`.trim():r.name();function ir(r,{errorReporter:t}){r.hook("preAction",(o,e)=>{let a=or(e);t.setContext("command info",{args:e.args,command:a,opts:e.opts()})})}p();import{join as Vr}from"node:path";import{cwd as Hr}from"node:process";var ar=O(Mr(),1);var $r=I.object({deprecated:I.string().optional()});async function cr(r){let t=null;try{let{name:o,version:e}=_,a=N({filePath:G(Vr(__dirname,".."),Y)}),s=await a.get();t=qr(s),t||(t={...await zr({packageName:o,packageVersion:e})},await a.set(t))}catch(o){let e=new C({cause:o,code:E.FailedToCheckDeprecatedStatus()});r.reportError(e),J(b(Hr()),e)}if(t?.deprecated)throw new C({cause:null,code:E.DeprecatedVersion({currentVersion:_.version})})}function qr(r){return(0,ar.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=D(),e=rr(r,{registryUrl:o.registryUrl,version:t}),a=await q(e,{message:"Reached timeout while fetching Wix CLI package details",milliseconds:5e3});if(a instanceof Error)throw a;return{deprecated:a.deprecated}}p();p();import{createRequire as Jr}from"node:module";import{join as Gr}from"node:path";import{cwd as Nr}from"node:process";import{pathToFileURL as Br}from"node:url";var sr=O(Pr(),1);var pr=Jr(Gr(Nr(),"dummy.js"));async function mr(){try{let r=pr.resolve("@wix/cli-app");return Kr(),await import(Br(r).href)}catch(r){if(r instanceof Error&&"code"in r&&r.code==="MODULE_NOT_FOUND")return null;throw r}}function Kr(){let r=pr("@wix/cli-app/package.json").version;if((0,sr.default)(r)==null&&g!==r)throw new C({cause:null,code:E.CliAppVersionMismatch({cliAppVersion:r,cliVersion:g})})}p();import{env as dr}from"node:process";p();var Xr=I.object({uiVersion:I.unknown()}).passthrough();async function fr(r){let t=await V(W(r)),o=Xr.safeParse(t);if(o.success)return o.data;throw new C({cause:o.error,code:E.InvalidConfigSchemaError({configPath:X,zodError:o.error})})}function ur(r){return H(W(r))}async function lr(r){if(!await ur(r))return null;let o=await fr(r);return dr.WIX_CLI_SITE_LIVE==="true"&&Object.hasOwn(o,"veloAppId")?import("./src-3VVCCD5E.js"):dr.WIX_CLI_SITE_V2==="true"&&!Object.hasOwn(o,"uiVersion")?import("./src-PLSNGNQQ.js"):import("./src-AFJWFYAO.js")}p();var gr=O(R(),1);p();function x(){return z(nr)}function hr(){let r=x();return r.t.bind(r)}var vr=r=>{let t=x();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-WZKHASEF.js"),{LoginCommand:m}=await import("./LoginCommand-WY6DLWSR.js"),{renderCommand:f}=await import("./render-command-O3AJM5TP.js"),i=await s();await f(e,r,gr.default.createElement(m,{apiKeyToken:a,userInfo:i}))})};p();var wr=O(R(),1);var Cr=r=>{let t=x();return v("logout").description(t.t("logout_command.description")).action(async(o,e)=>{let{getUserInfo:a}=await import("./src-WZKHASEF.js"),{LogoutCommand:s}=await import("./LogoutCommand-4XUYL32R.js"),{renderCommand:m}=await import("./render-command-O3AJM5TP.js"),f=await a();await m(e,r,wr.default.createElement(s,{userInfo:f}))})};p();var Er=()=>{let r=hr();return v("telemetry").description(r("telemetry_command.description")).addArgument(new er("<state>","").choices(["on","off"])).action(async t=>{let{updateUserConfig:o}=await import("./src-YZVHE5YE.js"),{CliError:e,CliErrorCode:a}=await import("./src-EYNG7WNS.js"),{createLogger:s}=await import("./src-ZXBFFRDK.js"),m=s();try{await o({telemetry:t==="on"}),m.log(r("telemetry_command.state_updated",{state:t}))}catch(f){throw new e({cause:f,code:a.FailedToUpdateTelemetryConfig()})}})};p();var xr=O(R(),1);var yr=r=>{let t=x();return v("whoami").description(t.t("whoami_command.description")).action(async(o,e)=>{let{getUserInfo:a}=await import("./src-WZKHASEF.js"),{WhoamiCommand:s}=await import("./WhoamiCommand-DEU5CPCY.js"),{renderCommand:m}=await import("./render-command-O3AJM5TP.js"),f=await a();await m(e,r,xr.default.createElement(s,{userInfo:f}))})};p();import{EOL as w}from"node:os";var Rr=O(br(),1);p();var jr="https://wix.to/YASTRGa";var Wr={commandUsage(r){return`${L.bold(r.name())} ${r.usage()}`},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,Rr.default)([...e,...a],{columnSplitter:" ",showHeaders:!1}).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 ${jr}${w}`;return`${[o,i,n,c].join(w.repeat(2))}${w}`},sortOptions:!0,sortSubcommands:!0};async function Fr({biLogger:r,errorReporter:t,projectFolder:o}){let e=new tr;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(Wr);let a=await mr();if(a)e.addCommand(await a.getRootCommand({biLogger:r,errorReporter:t},g));else{let s=await lr(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(vr({biLogger:r,errorReporter:t})).addCommand(yr({biLogger:r,errorReporter:t})).addCommand(Cr({biLogger:r,errorReporter:t})).addCommand(Er()),e}U();var P=vt();async function wt(){let{default:r}=await import("./update-notifier-LCY3CRNY.js");r({pkg:_,shouldNotifyInNpmScript:!0,updateCheckInterval:864e5}).notify()}function Ct(){let{errorReporter:r,handler:t,registerToProcessErrors:o}=B({debugOutputPath:b(P),dsn:K,release:_.version,userFeedbackCachePath:Q(P)});return o(),{errorHandler:t,errorReporter:r}}var{errorHandler:Et,errorReporter:S}=Ct();try{let r=await $();r&&S.setUser({id:r.userId});let{biLogger:t}=await Z(S,r?.userId);await wt(),await cr(S);let o=await Fr({biLogger:t,errorReporter:S,projectFolder:P});ir(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.53", | ||
"version": "1.1.54", | ||
"bin": { | ||
@@ -91,3 +91,3 @@ "wix": "bin/wix.cjs" | ||
}, | ||
"falconPackageHash": "f25352338e828c1dc8bf63189171f65a3692033487e636b803949607" | ||
"falconPackageHash": "f36acc9369d4dda01746abf1ed2a4f498716e2c971ca8d2fbf977ecd" | ||
} |
Sorry, the diff of this file is not supported yet
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
17830960
16090
1
1