Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@wix/cli

Package Overview
Dependencies
Maintainers
0
Versions
110
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wix/cli - npm Package Compare versions

Comparing version 1.1.51 to 1.1.52

build/chunk-4BTCJXQC.js

8

build/index.js
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-7INB74CI.js";import{a as Dr}from"./chunk-XOWZQRGH.js";import"./chunk-KPKBCH3A.js";import{a as v,b as rr,c as tr}from"./chunk-W3WL2B3H.js";import{a as Z,b as Pr}from"./chunk-522L5OXR.js";import"./chunk-U37RKZCU.js";import{g as Y,i as Q}from"./chunk-JQMLRPCS.js";import{b as z,e as G,f as B,g as X}from"./chunk-QF6TSJYM.js";import"./chunk-BQHRJORL.js";import{a as W,v as K}from"./chunk-SEHFPYSE.js";import"./chunk-GZENQUN7.js";import"./chunk-K656WQZA.js";import{c as Mr}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{d as D,e as U,g as H,h as j,i as R,j as V}from"./chunk-GP3K4JBG.js";import{b as J,c as N}from"./chunk-62WSEYFO.js";import{a as I,b as $,c as q}from"./chunk-CUZEHDNU.js";import{a as Fr,c as C,e as E}from"./chunk-XALHWW5N.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 zr=Pr();ar.exports=r=>typeof r=="string"?r.replace(zr(),""):r});var F=T((Mt,sr)=>{"use strict";p();var Jr=cr(),Nr=Dr();sr.exports=function(r){return Nr(Jr(r))}});var pr=T((Dt,x)=>{"use strict";p();var l=F();function b(r,t){return Array.apply(null,{length:t+1}).join(r).slice(0,t)}function Gr(r,t,o){r=r??"",r=String(r);var e=t-l(r);return e<=0?r:r+b(o||" ",e)}function Br(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 b(o||" ",a)+r+b(o||" ",s)}function Kr(r,t,o){r=r??"",r=String(r);var e=t-l(r);return e<=0?r:b(o||" ",e)+r}function Xr(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 Yr(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 Qr(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=Gr;x.exports.padCenter=Br;x.exports.padLeft=Kr;x.exports.splitIntoLines=Xr;x.exports.splitLongWords=Yr;x.exports.truncateString=Qr});var lr=T((Ht,dr)=>{"use strict";p();var M=F(),k=pr(),Zr=k.padRight,rt=k.padCenter,tt=k.padLeft,mr=k.splitIntoLines,et=k.splitLongWords,nt=k.truncateString,ur=function(t){return t.toUpperCase()},ot=function(t,o,e){return t},it=Object.freeze({maxWidth:1/0,minWidth:0,columnSplitter:" ",truncate:!1,truncateMarker:"\u2026",preserveNewLines:!1,paddingChr:" ",showHeaders:!0,headingTransform:ur,dataTransform:ot});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({},it,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=pt(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]=et(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];st(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=at(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 nt(i,e)}).join(t.spacing)};function at(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(tt(h,d.width,e)):d.align==="center"||d.align==="centre"?s[c].push(rt(h,d.width,e)):s[c].push(Zr(h,d.width,e))})},i=0;i<f;i++)m(i);return s})}function fr(){return Object.assign?Object.assign.apply(Object,arguments):ct.apply(void 0,arguments)}function ct(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 st(r,t,o){o=o||r.length,o=o-t.length;var e=r.lastIndexOf(t);return e!==-1&&e===o}function pt(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 Ur}from"node:process";import{join as Hr}from"node:path";var or=O(Fr(),1);var Vr=I.object({deprecated:I.string().optional()});async function ir(r){let t=null;try{let{version:o,name:e}=_,a=B({filePath:G(Hr(__dirname,".."),H)}),s=await a.get();t=$r(s),t||(t={...await qr({packageName:e,packageVersion:o})},await a.set(t))}catch(o){let e=new C({code:E.FailedToCheckDeprecatedStatus(),cause:o});r.reportError(e),z(R(Ur()),e)}if(t?.deprecated)throw new C({code:E.DeprecatedVersion({currentVersion:_.version})})}function $r(r){return(0,or.match)(r,{Exists:({data:t})=>{let o=Vr.safeParse(t);return o.success?o.data:null},NotExists:()=>null})}async function qr({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:")}
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-CIS5W66F.js"),{LoginCommand:f}=await import("./LoginCommand-3HPXSPXY.js"),{renderCommand:m}=await import("./render-command-QET4UNDW.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-CIS5W66F.js"),{WhoamiCommand:s}=await import("./WhoamiCommand-5DMVQUBJ.js"),{renderCommand:f}=await import("./render-command-QET4UNDW.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-CIS5W66F.js"),{LogoutCommand:s}=await import("./LogoutCommand-BDH3FYZO.js"),{renderCommand:f}=await import("./render-command-QET4UNDW.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-AFQDLVDX.js"),{CliError:e,CliErrorCode:a}=await import("./src-7P3E3KRD.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(Mr(),1);import{cwd as mt}from"node:process";import{createRequire as ft}from"node:module";import{join as ut}from"node:path";import{pathToFileURL as dt}from"node:url";var kr=ft(ut(mt(),"dummy.js"));async function Sr(){try{let r=kr.resolve("@wix/cli-app");return lt(),await import(dt(r).href)}catch(r){if(r instanceof Error&&"code"in r&&r.code==="MODULE_NOT_FOUND")return null;throw r}}function lt(){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 gt}from"node:process";p();var ht=I.object({uiVersion:I.unknown()}).passthrough();async function Ar(r){let t=await J(j(r)),o=ht.safeParse(t);if(o.success)return o.data;throw new C({code:E.InvalidConfigSchemaError({configPath:U,zodError:o.error})})}function Tr(r){return N(j(r))}async function Rr(r){if(!await Tr(r))return null;let o=await Ar(r);return gt.WIX_CLI_SITE_V2==="true"&&!Object.hasOwn(o,"uiVersion")?import("./src-XHN4LXC2.js"):import("./src-BDIASQJX.js")}async function br({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 Rr(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 jr=r=>r.parent?`${jr(r.parent)} ${r.name()}`.trim():r.name();function Wr(r,{errorReporter:t}){r.hook("preAction",(o,e)=>{let a=jr(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:R(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 br({biLogger:t,errorReporter:S,projectFolder:P});Wr(o,{errorReporter:S}),await o.parseAsync()}catch(r){Et({error:r})}
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})}
//# sourceMappingURL=index.js.map
{
"name": "@wix/cli",
"description": "CLI tool for building Wix sites and applications",
"version": "1.1.51",
"version": "1.1.52",
"bin": {

@@ -28,2 +28,3 @@ "wix": "bin/wix.cjs"

"@wix/cli-site": "0.0.0",
"@wix/cli-site-live": "0.0.0",
"@wix/cli-site-old": "0.0.0",

@@ -91,3 +92,3 @@ "@wix/cli-telemetry": "0.0.0",

},
"falconPackageHash": "65f38b3c7fe1df5c53a4cc02df89cf7c619319a81c6e8ce17361ac44"
"falconPackageHash": "5e72bd0676ea3f3d547dcbbacac01a6e4854c6b5c49fd71617095fe4"
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc