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
112
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.27 to 1.1.28

build/chunk-4CTW4J7Y.js

6

build/index.js
import { createRequire as _createRequire } from 'node:module';
const require = _createRequire(import.meta.url);
import{a as Et}from"./chunk-KRD4NQZH.js";import{a as A}from"./chunk-VSPN2ZXN.js";import{a as ye}from"./chunk-XOWZQRGH.js";import{a as y,b as T,c as xt}from"./chunk-NTARZZL7.js";import{a as bt,b as $e}from"./chunk-JX732GNO.js";import{d as xe}from"./chunk-PHGH4LDZ.js";import{g as vt,i as At}from"./chunk-3WQNPY64.js";import{b as gt,d as _t,e as Ct,f as Ot}from"./chunk-QGHWTH6K.js";import{a as B,v as wt}from"./chunk-MRE37V3O.js";import"./chunk-4YVTD2GL.js";import"./chunk-Z2UWNMEU.js";import{c as V}from"./chunk-ZBJRW65P.js";import"./chunk-H5MPJJNF.js";import"./chunk-QKSFLQP6.js";import"./chunk-TVPGNQRX.js";import"./chunk-YXF3QNRI.js";import{d as mt,h as ht,i as L,j as pt}from"./chunk-3HZG7P7U.js";import"./chunk-7DMKGLEA.js";import{a as G,b as dt,c as ft}from"./chunk-F3ER5SNJ.js";import{a as Ee,c as D,e as j}from"./chunk-6VECURLZ.js";import{a as P,c as w,e as S,g as __dirname,i as m}from"./chunk-UO4ZAUJK.js";var W=w(K=>{"use strict";m();var R=class extends Error{constructor(t,e,n){super(n),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=e,this.exitCode=t,this.nestedError=void 0}},J=class extends R{constructor(t){super(1,"commander.invalidArgument",t),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};K.CommanderError=R;K.InvalidArgumentError=J});var q=w(Y=>{"use strict";m();var{InvalidArgumentError:Ie}=W(),z=class{constructor(t,e){switch(this.description=e||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,t[0]){case"<":this.required=!0,this._name=t.slice(1,-1);break;case"[":this.required=!1,this._name=t.slice(1,-1);break;default:this.required=!0,this._name=t;break}this._name.length>3&&this._name.slice(-3)==="..."&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_concatValue(t,e){return e===this.defaultValue||!Array.isArray(e)?[t]:e.concat(t)}default(t,e){return this.defaultValue=t,this.defaultValueDescription=e,this}argParser(t){return this.parseArg=t,this}choices(t){return this.argChoices=t.slice(),this.parseArg=(e,n)=>{if(!this.argChoices.includes(e))throw new Ie(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(e,n):e},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function Fe(o){let t=o.name()+(o.variadic===!0?"...":"");return o.required?"<"+t+">":"["+t+"]"}Y.Argument=z;Y.humanReadableArgName=Fe});var X=w(St=>{"use strict";m();var{humanReadableArgName:Pe}=q(),Q=class{constructor(){this.helpWidth=void 0,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}visibleCommands(t){let e=t.commands.filter(i=>!i._hidden),n=t._getHelpCommand();return n&&!n._hidden&&e.push(n),this.sortSubcommands&&e.sort((i,r)=>i.name().localeCompare(r.name())),e}compareOptions(t,e){let n=i=>i.short?i.short.replace(/^-/,""):i.long.replace(/^--/,"");return n(t).localeCompare(n(e))}visibleOptions(t){let e=t.options.filter(i=>!i.hidden),n=t._getHelpOption();if(n&&!n.hidden){let i=n.short&&t._findOption(n.short),r=n.long&&t._findOption(n.long);!i&&!r?e.push(n):n.long&&!r?e.push(t.createOption(n.long,n.description)):n.short&&!i&&e.push(t.createOption(n.short,n.description))}return this.sortOptions&&e.sort(this.compareOptions),e}visibleGlobalOptions(t){if(!this.showGlobalOptions)return[];let e=[];for(let n=t.parent;n;n=n.parent){let i=n.options.filter(r=>!r.hidden);e.push(...i)}return this.sortOptions&&e.sort(this.compareOptions),e}visibleArguments(t){return t._argsDescription&&t.registeredArguments.forEach(e=>{e.description=e.description||t._argsDescription[e.name()]||""}),t.registeredArguments.find(e=>e.description)?t.registeredArguments:[]}subcommandTerm(t){let e=t.registeredArguments.map(n=>Pe(n)).join(" ");return t._name+(t._aliases[0]?"|"+t._aliases[0]:"")+(t.options.length?" [options]":"")+(e?" "+e:"")}optionTerm(t){return t.flags}argumentTerm(t){return t.name()}longestSubcommandTermLength(t,e){return e.visibleCommands(t).reduce((n,i)=>Math.max(n,e.subcommandTerm(i).length),0)}longestOptionTermLength(t,e){return e.visibleOptions(t).reduce((n,i)=>Math.max(n,e.optionTerm(i).length),0)}longestGlobalOptionTermLength(t,e){return e.visibleGlobalOptions(t).reduce((n,i)=>Math.max(n,e.optionTerm(i).length),0)}longestArgumentTermLength(t,e){return e.visibleArguments(t).reduce((n,i)=>Math.max(n,e.argumentTerm(i).length),0)}commandUsage(t){let e=t._name;t._aliases[0]&&(e=e+"|"+t._aliases[0]);let n="";for(let i=t.parent;i;i=i.parent)n=i.name()+" "+n;return n+e+" "+t.usage()}commandDescription(t){return t.description()}subcommandDescription(t){return t.summary()||t.description()}optionDescription(t){let e=[];return t.argChoices&&e.push(`choices: ${t.argChoices.map(n=>JSON.stringify(n)).join(", ")}`),t.defaultValue!==void 0&&(t.required||t.optional||t.isBoolean()&&typeof t.defaultValue=="boolean")&&e.push(`default: ${t.defaultValueDescription||JSON.stringify(t.defaultValue)}`),t.presetArg!==void 0&&t.optional&&e.push(`preset: ${JSON.stringify(t.presetArg)}`),t.envVar!==void 0&&e.push(`env: ${t.envVar}`),e.length>0?`${t.description} (${e.join(", ")})`:t.description}argumentDescription(t){let e=[];if(t.argChoices&&e.push(`choices: ${t.argChoices.map(n=>JSON.stringify(n)).join(", ")}`),t.defaultValue!==void 0&&e.push(`default: ${t.defaultValueDescription||JSON.stringify(t.defaultValue)}`),e.length>0){let n=`(${e.join(", ")})`;return t.description?`${t.description} ${n}`:n}return t.description}formatHelp(t,e){let n=e.padWidth(t,e),i=e.helpWidth||80,r=2,a=2;function l(d,x){if(x){let U=`${d.padEnd(n+a)}${x}`;return e.wrap(U,i-r,n+a)}return d}function s(d){return d.join(`
import{a as Et}from"./chunk-KRD4NQZH.js";import{a as A}from"./chunk-53APSXJN.js";import{a as ye}from"./chunk-XOWZQRGH.js";import{a as y,b as T,c as xt}from"./chunk-VJGSGVWC.js";import{a as bt,b as $e}from"./chunk-JX732GNO.js";import{d as xe}from"./chunk-PHGH4LDZ.js";import{g as vt,i as At}from"./chunk-LS3GDVVS.js";import{b as gt,d as _t,e as Ct,f as Ot}from"./chunk-S45KKL2L.js";import{a as B,v as wt}from"./chunk-DX4MEDQK.js";import"./chunk-4YVTD2GL.js";import"./chunk-Z2UWNMEU.js";import{c as V}from"./chunk-ZBJRW65P.js";import"./chunk-H5MPJJNF.js";import"./chunk-LU5YQXW6.js";import"./chunk-TVPGNQRX.js";import"./chunk-YXF3QNRI.js";import{d as mt,h as ht,i as L,j as pt}from"./chunk-4CTW4J7Y.js";import"./chunk-M4CYL35F.js";import{a as G,b as dt,c as ft}from"./chunk-F3ER5SNJ.js";import{a as Ee,c as D,e as j}from"./chunk-HMIWN2OZ.js";import{a as P,c as w,e as S,g as __dirname,i as m}from"./chunk-UO4ZAUJK.js";var W=w(K=>{"use strict";m();var R=class extends Error{constructor(t,e,n){super(n),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=e,this.exitCode=t,this.nestedError=void 0}},J=class extends R{constructor(t){super(1,"commander.invalidArgument",t),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};K.CommanderError=R;K.InvalidArgumentError=J});var q=w(Y=>{"use strict";m();var{InvalidArgumentError:Ie}=W(),z=class{constructor(t,e){switch(this.description=e||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,t[0]){case"<":this.required=!0,this._name=t.slice(1,-1);break;case"[":this.required=!1,this._name=t.slice(1,-1);break;default:this.required=!0,this._name=t;break}this._name.length>3&&this._name.slice(-3)==="..."&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_concatValue(t,e){return e===this.defaultValue||!Array.isArray(e)?[t]:e.concat(t)}default(t,e){return this.defaultValue=t,this.defaultValueDescription=e,this}argParser(t){return this.parseArg=t,this}choices(t){return this.argChoices=t.slice(),this.parseArg=(e,n)=>{if(!this.argChoices.includes(e))throw new Ie(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(e,n):e},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function Fe(o){let t=o.name()+(o.variadic===!0?"...":"");return o.required?"<"+t+">":"["+t+"]"}Y.Argument=z;Y.humanReadableArgName=Fe});var X=w(St=>{"use strict";m();var{humanReadableArgName:Pe}=q(),Q=class{constructor(){this.helpWidth=void 0,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}visibleCommands(t){let e=t.commands.filter(i=>!i._hidden),n=t._getHelpCommand();return n&&!n._hidden&&e.push(n),this.sortSubcommands&&e.sort((i,r)=>i.name().localeCompare(r.name())),e}compareOptions(t,e){let n=i=>i.short?i.short.replace(/^-/,""):i.long.replace(/^--/,"");return n(t).localeCompare(n(e))}visibleOptions(t){let e=t.options.filter(i=>!i.hidden),n=t._getHelpOption();if(n&&!n.hidden){let i=n.short&&t._findOption(n.short),r=n.long&&t._findOption(n.long);!i&&!r?e.push(n):n.long&&!r?e.push(t.createOption(n.long,n.description)):n.short&&!i&&e.push(t.createOption(n.short,n.description))}return this.sortOptions&&e.sort(this.compareOptions),e}visibleGlobalOptions(t){if(!this.showGlobalOptions)return[];let e=[];for(let n=t.parent;n;n=n.parent){let i=n.options.filter(r=>!r.hidden);e.push(...i)}return this.sortOptions&&e.sort(this.compareOptions),e}visibleArguments(t){return t._argsDescription&&t.registeredArguments.forEach(e=>{e.description=e.description||t._argsDescription[e.name()]||""}),t.registeredArguments.find(e=>e.description)?t.registeredArguments:[]}subcommandTerm(t){let e=t.registeredArguments.map(n=>Pe(n)).join(" ");return t._name+(t._aliases[0]?"|"+t._aliases[0]:"")+(t.options.length?" [options]":"")+(e?" "+e:"")}optionTerm(t){return t.flags}argumentTerm(t){return t.name()}longestSubcommandTermLength(t,e){return e.visibleCommands(t).reduce((n,i)=>Math.max(n,e.subcommandTerm(i).length),0)}longestOptionTermLength(t,e){return e.visibleOptions(t).reduce((n,i)=>Math.max(n,e.optionTerm(i).length),0)}longestGlobalOptionTermLength(t,e){return e.visibleGlobalOptions(t).reduce((n,i)=>Math.max(n,e.optionTerm(i).length),0)}longestArgumentTermLength(t,e){return e.visibleArguments(t).reduce((n,i)=>Math.max(n,e.argumentTerm(i).length),0)}commandUsage(t){let e=t._name;t._aliases[0]&&(e=e+"|"+t._aliases[0]);let n="";for(let i=t.parent;i;i=i.parent)n=i.name()+" "+n;return n+e+" "+t.usage()}commandDescription(t){return t.description()}subcommandDescription(t){return t.summary()||t.description()}optionDescription(t){let e=[];return t.argChoices&&e.push(`choices: ${t.argChoices.map(n=>JSON.stringify(n)).join(", ")}`),t.defaultValue!==void 0&&(t.required||t.optional||t.isBoolean()&&typeof t.defaultValue=="boolean")&&e.push(`default: ${t.defaultValueDescription||JSON.stringify(t.defaultValue)}`),t.presetArg!==void 0&&t.optional&&e.push(`preset: ${JSON.stringify(t.presetArg)}`),t.envVar!==void 0&&e.push(`env: ${t.envVar}`),e.length>0?`${t.description} (${e.join(", ")})`:t.description}argumentDescription(t){let e=[];if(t.argChoices&&e.push(`choices: ${t.argChoices.map(n=>JSON.stringify(n)).join(", ")}`),t.defaultValue!==void 0&&e.push(`default: ${t.defaultValueDescription||JSON.stringify(t.defaultValue)}`),e.length>0){let n=`(${e.join(", ")})`;return t.description?`${t.description} ${n}`:n}return t.description}formatHelp(t,e){let n=e.padWidth(t,e),i=e.helpWidth||80,r=2,a=2;function l(d,x){if(x){let U=`${d.padEnd(n+a)}${x}`;return e.wrap(U,i-r,n+a)}return d}function s(d){return d.join(`
`).replace(/^/gm," ".repeat(r))}let c=[`Usage: ${e.commandUsage(t)}`,""],u=e.commandDescription(t);u.length>0&&(c=c.concat([e.wrap(u,i,0),""]));let h=e.visibleArguments(t).map(d=>l(e.argumentTerm(d),e.argumentDescription(d)));h.length>0&&(c=c.concat(["Arguments:",s(h),""]));let p=e.visibleOptions(t).map(d=>l(e.optionTerm(d),e.optionDescription(d)));if(p.length>0&&(c=c.concat(["Options:",s(p),""])),this.showGlobalOptions){let d=e.visibleGlobalOptions(t).map(x=>l(e.optionTerm(x),e.optionDescription(x)));d.length>0&&(c=c.concat(["Global Options:",s(d),""]))}let _=e.visibleCommands(t).map(d=>l(e.subcommandTerm(d),e.subcommandDescription(d)));return _.length>0&&(c=c.concat(["Commands:",s(_),""])),c.join(`

@@ -26,5 +26,5 @@ `)}padWidth(t,e){return Math.max(e.longestOptionTermLength(t,e),e.longestGlobalOptionTermLength(t,e),e.longestSubcommandTermLength(t,e),e.longestArgumentTermLength(t,e))}wrap(t,e,n,i=40){let r=" \\f\\t\\v\xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF",a=new RegExp(`[\\n][${r}]+`);if(t.match(a))return t;let l=e-n;if(l<i)return t;let s=t.slice(0,n),c=t.slice(n).replace(`\r

`).map(function(n){return e(n,t)}).reduce(function(n,i){return n.concat(i)},[])}function en(o,t,e){o=o.trim();for(var n=[],i=o.split(" "),r="",a=E(e);r||i.length;){if(r){var l=r;r=""}else var l=i.shift();if(E(l)>t){for(var s=0,c=0,u=t-a;s<l.length;){var h=E(l.charAt(s));if(h+c>u)break;c+=h,++s}r=l.slice(s),l=l.slice(0,s),l+=e}n.push(l)}return n.join(" ")}function nn(o,t){if(o=o??"",o=String(o),t==1/0)return o;for(var e=0,n=0;e<o.length;){var i=E(o.charAt(e));if(i+n>t)break;n+=i,++e}return o.slice(0,e)}k.exports.padRight=Qe;k.exports.padCenter=Xe;k.exports.padLeft=Ze;k.exports.splitIntoLines=tn;k.exports.splitLongWords=en;k.exports.truncateString=nn});var oe=w((Ki,re)=>{"use strict";m();var lt=ut(),F=te(),rn=F.padRight,on=F.padCenter,sn=F.padLeft,ee=F.splitIntoLines,an=F.splitLongWords,cn=F.truncateString,ie=function(t){return t.toUpperCase()},un=function(t,e,n){return t},ln=Object.freeze({maxWidth:1/0,minWidth:0,columnSplitter:" ",truncate:!1,truncateMarker:"\u2026",preserveNewLines:!1,paddingChr:" ",showHeaders:!0,headingTransform:ie,dataTransform:un});re.exports=function(o){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=t.config||{};delete t.config;var n=t.maxLineWidth||1/0;n==="auto"&&(n=process.stdout.columns||1/0),delete t.maxLineWidth,t=ne({},ln,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 i=t.columns||[];o=dn(o,i),i.length||o.forEach(function(s){for(var c in s)i.indexOf(c)===-1&&i.push(c)});var r=i.reduce(function(s,c){var u=Object.create(t);return s[c]=ne(u,e[c]),s},Object.create(null));i.forEach(function(s){var c=r[s];c.name=s,c.maxWidth=Math.ceil(c.maxWidth),c.minWidth=Math.ceil(c.minWidth),c.truncate=!!c.truncate,c.align=c.align||"left"}),o=o.map(function(s){var c=Object.create(null);return i.forEach(function(u){c[u]=s[u]!=null?s[u]:"",c[u]=""+c[u],r[u].preserveNewLines?c[u]=c[u].replace(/[^\S\n]/gmi," "):c[u]=c[u].replace(/\s/gmi," ")}),c}),i.forEach(function(s){var c=r[s];o=o.map(function(u,h){var p=Object.create(c);u[s]=c.dataTransform(u[s],p,h);var _=Object.keys(p);if(_.indexOf("name")!==-1){if(c.headingTransform!==ie)return;c.headingTransform=function(d){return d}}return _.forEach(function(d){return c[d]=p[d]}),u})});var a={};t.showHeaders&&(i.forEach(function(s){var c=r[s];if(!c.showHeaders){a[s]="";return}a[s]=c.headingTransform(c.name)}),o.unshift(a)),i.forEach(function(s){var c=r[s];c.width=o.map(function(u){return u[s]}).reduce(function(u,h){return u>=c.maxWidth?u:Math.max(u,Math.min(c.maxWidth,Math.max(c.minWidth,lt(h))))},0)}),i.forEach(function(s){var c=r[s];o=o.map(function(u){return u[s]=an(u[s],c.width,c.truncateMarker),u})}),i.forEach(function(s){var c=r[s];o=o.map(function(u,h){var p=u[s];if(u[s]=ee(p,c.width),c.truncate&&u[s].length>1){u[s]=ee(p,c.width-lt(c.truncateMarker));var _=u[s][0];pn(_,c.truncateMarker)||(u[s][0]+=c.truncateMarker),u[s]=u[s].slice(0,1)}return u})}),i.forEach(function(s){var c=r[s];c.width=o.map(function(u){return u[s].reduce(function(h,p){return h>=c.maxWidth?h:Math.max(h,Math.min(c.maxWidth,Math.max(c.minWidth,lt(p))))},0)}).reduce(function(u,h){return u>=c.maxWidth?u:Math.max(u,Math.min(c.maxWidth,Math.max(c.minWidth,h)))},0)});var l=mn(o,r,i,t.paddingChr);return l.reduce(function(s,c){return s.concat(c.reduce(function(u,h){return u.concat(h.join(t.columnSplitter))},[]))},[]).map(function(s){return cn(s,n)}).join(t.spacing)};function mn(o,t,e,n){return o.map(function(i){var r=[],a=0;e.forEach(function(c){a=Math.max(a,i[c].length)});for(var l=function(u){r[u]=r[u]||[],e.forEach(function(h){var p=t[h],_=i[h][u]||"";p.align==="right"?r[u].push(sn(_,p.width,n)):p.align==="center"||p.align==="centre"?r[u].push(on(_,p.width,n)):r[u].push(rn(_,p.width,n))})},s=0;s<a;s++)l(s);return r})}function ne(){return Object.assign?Object.assign.apply(Object,arguments):hn.apply(void 0,arguments)}function hn(o,t){"use strict";if(o==null)throw new TypeError("Cannot convert first argument to object");for(var e=Object(o),n=!1,i,r=1;r<arguments.length;r++){var a=arguments[r];if(a!=null){for(var l=Object.keys(Object(a)),s=0,c=l.length;s<c;s++){var u=l[s];try{var h=Object.getOwnPropertyDescriptor(a,u);h!==void 0&&h.enumerable&&(e[u]=a[u])}catch(p){n||(n=!0,i=p)}}if(n)throw i}}return e}function pn(o,t,e){e=e||o.length,e=e-t.length;var n=o.lastIndexOf(t);return n!==-1&&n===e}function dn(o,t){if(Array.isArray(o))return o;var e=[];for(var n in o){var i={};i[t[0]||"key"]=n,i[t[1]||"value"]=o[n],e.push(i)}return e}});m();import{cwd as On}from"node:process";m();import{cwd as Se}from"node:process";import{join as ke}from"node:path";var yt=S(Ee(),1);var He=G.object({deprecated:G.string().optional()});async function $t(o){let t=null;try{let{version:e,name:n}=T,i=Ct({filePath:_t(ke(__dirname,".."),ht)}),r=await i.get();t=Ve(r),t||(t={...await Te({packageName:n,packageVersion:e})},await i.set(t))}catch(e){let n=new D({code:j.FailedToCheckDeprecatedStatus(),cause:e});o.reportError(n),gt(L(Se()),n)}if(t?.deprecated)throw new D({code:j.DeprecatedVersion({currentVersion:T.version})})}function Ve(o){return(0,yt.match)(o,{Exists:({data:t})=>{let e=He.safeParse(t);return e.success?e.data:null},NotExists:()=>null})}async function Te({packageName:o,packageVersion:t}){let e=dt(),n=bt(o,{version:t,registryUrl:e.registryUrl}),i=await At(n,{milliseconds:5e3,message:"Reached timeout while fetching Wix CLI package details"});if(i instanceof Error)throw i;return{deprecated:i?.deprecated}}m();m();var qt=S(Rt(),1),{program:Xn,createCommand:g,createArgument:Zn,createOption:ti,CommanderError:ei,InvalidArgumentError:ni,InvalidOptionArgumentError:ii,Command:Nt,Argument:Ut,Option:I,Help:ri}=qt.default;m();m();m();var Gt=(o,t)=>{let e=A();return g("dev").option("-s, --https",e("site_dev_command_def.option.https")).addOption(new I("-w, --experimental-wml","experimental export/import using WML").hideHelp()).description(e("site_dev_command_def.description")).action(async(n,i)=>{let{runCommand:r}=await import("./run-command-VQIXOXFQ.js"),{dev:a}=await import("./dev-4DK6T2RO.js");await r(i,o,t,()=>a(o,n))})};m();var Bt=(o,t)=>{let e=A();return g("install").description(e("site_install_command_def.description")).argument("[package]",e("site_install_command_def.argument.package")).option("--yarn",e("site_install_command_def.option.yarn")).option("--npm",e("site_install_command_def.option.npm")).action(async(n,i,r)=>{let{runCommand:a}=await import("./run-command-VQIXOXFQ.js"),{install:l}=await import("./install-VY5IZBQD.js");await a(r,o,t,()=>l(o,i,n))})};m();var Jt=(o,t)=>{let e=A();return g("preview").description(e("site_preview_command_def.description")).addOption(new I("--source <local|remote>",e("site_preview_command_def.option.source")).choices(["local","remote"])).action(async(n,i)=>{let{runCommand:r}=await import("./run-command-VQIXOXFQ.js"),{preview:a}=await import("./preview-7WEX2SQV.js");await r(i,o,t,()=>a(o,n))})};m();var Kt=(o,t)=>{let e=A();return g("publish").description(e("site_publish_command_def.description")).addOption(new I("--source <local|remote>",e("site_publish_command_def.option.source")).choices(["local","remote"])).option("-y, --approve-preview",e("site_publish_command_def.option.approve_preview")).option("-f, --force",e("site_publish_command_def.option.force")).action(async(n,i)=>{let{runCommand:r}=await import("./run-command-VQIXOXFQ.js"),{publish:a}=await import("./publish-NOOROLTK.js");await r(i,o,t,()=>a(o,n))})};m();var zt=(o,t)=>g("sync-types").action(async(e,n)=>{let{runCommand:i}=await import("./run-command-VQIXOXFQ.js"),{syncTypes:r}=await import("./sync-types-TEIWY6ZQ.js");await i(n,o,t,()=>r(o))});m();var Yt=(o,t)=>{let e=A();return g("uninstall").description(e("site_uninstall_command_def.description")).argument("<package>",e("site_uninstall_command_def.argument.package")).option("--yarn",e("site_uninstall_command_def.option.yarn")).option("--npm",e("site_uninstall_command_def.option.npm")).action(async(n,i,r)=>{let{runCommand:a}=await import("./run-command-VQIXOXFQ.js"),{uninstall:l}=await import("./uninstall-SFAA6JKQ.js");await a(r,o,t,()=>l(o,i,n))})};var ct=async function(t,e){return g("site").addCommand(Gt(t,e)).addCommand(Bt(t,e)).addCommand(Jt(t,e)).addCommand(Kt(t,e)).addCommand(zt(t,e),{hidden:!0}).addCommand(Yt(t,e))};m();import{EOL as $}from"node:os";var ae=S(oe(),1);m();var se="https://wix.to/YASTRGa";var ce={commandUsage(o){return`${V.bold(o.name())} ${o.usage()}`},sortSubcommands:!0,sortOptions:!0,formatHelp(o,t){let e=`${V.dim("Usage:")}
`,t.preserveNewLines=!!t.preserveNewLines,t.showHeaders=!!t.showHeaders,t.columns=t.columns||t.include;var i=t.columns||[];o=dn(o,i),i.length||o.forEach(function(s){for(var c in s)i.indexOf(c)===-1&&i.push(c)});var r=i.reduce(function(s,c){var u=Object.create(t);return s[c]=ne(u,e[c]),s},Object.create(null));i.forEach(function(s){var c=r[s];c.name=s,c.maxWidth=Math.ceil(c.maxWidth),c.minWidth=Math.ceil(c.minWidth),c.truncate=!!c.truncate,c.align=c.align||"left"}),o=o.map(function(s){var c=Object.create(null);return i.forEach(function(u){c[u]=s[u]!=null?s[u]:"",c[u]=""+c[u],r[u].preserveNewLines?c[u]=c[u].replace(/[^\S\n]/gmi," "):c[u]=c[u].replace(/\s/gmi," ")}),c}),i.forEach(function(s){var c=r[s];o=o.map(function(u,h){var p=Object.create(c);u[s]=c.dataTransform(u[s],p,h);var _=Object.keys(p);if(_.indexOf("name")!==-1){if(c.headingTransform!==ie)return;c.headingTransform=function(d){return d}}return _.forEach(function(d){return c[d]=p[d]}),u})});var a={};t.showHeaders&&(i.forEach(function(s){var c=r[s];if(!c.showHeaders){a[s]="";return}a[s]=c.headingTransform(c.name)}),o.unshift(a)),i.forEach(function(s){var c=r[s];c.width=o.map(function(u){return u[s]}).reduce(function(u,h){return u>=c.maxWidth?u:Math.max(u,Math.min(c.maxWidth,Math.max(c.minWidth,lt(h))))},0)}),i.forEach(function(s){var c=r[s];o=o.map(function(u){return u[s]=an(u[s],c.width,c.truncateMarker),u})}),i.forEach(function(s){var c=r[s];o=o.map(function(u,h){var p=u[s];if(u[s]=ee(p,c.width),c.truncate&&u[s].length>1){u[s]=ee(p,c.width-lt(c.truncateMarker));var _=u[s][0];pn(_,c.truncateMarker)||(u[s][0]+=c.truncateMarker),u[s]=u[s].slice(0,1)}return u})}),i.forEach(function(s){var c=r[s];c.width=o.map(function(u){return u[s].reduce(function(h,p){return h>=c.maxWidth?h:Math.max(h,Math.min(c.maxWidth,Math.max(c.minWidth,lt(p))))},0)}).reduce(function(u,h){return u>=c.maxWidth?u:Math.max(u,Math.min(c.maxWidth,Math.max(c.minWidth,h)))},0)});var l=mn(o,r,i,t.paddingChr);return l.reduce(function(s,c){return s.concat(c.reduce(function(u,h){return u.concat(h.join(t.columnSplitter))},[]))},[]).map(function(s){return cn(s,n)}).join(t.spacing)};function mn(o,t,e,n){return o.map(function(i){var r=[],a=0;e.forEach(function(c){a=Math.max(a,i[c].length)});for(var l=function(u){r[u]=r[u]||[],e.forEach(function(h){var p=t[h],_=i[h][u]||"";p.align==="right"?r[u].push(sn(_,p.width,n)):p.align==="center"||p.align==="centre"?r[u].push(on(_,p.width,n)):r[u].push(rn(_,p.width,n))})},s=0;s<a;s++)l(s);return r})}function ne(){return Object.assign?Object.assign.apply(Object,arguments):hn.apply(void 0,arguments)}function hn(o,t){"use strict";if(o==null)throw new TypeError("Cannot convert first argument to object");for(var e=Object(o),n=!1,i,r=1;r<arguments.length;r++){var a=arguments[r];if(a!=null){for(var l=Object.keys(Object(a)),s=0,c=l.length;s<c;s++){var u=l[s];try{var h=Object.getOwnPropertyDescriptor(a,u);h!==void 0&&h.enumerable&&(e[u]=a[u])}catch(p){n||(n=!0,i=p)}}if(n)throw i}}return e}function pn(o,t,e){e=e||o.length,e=e-t.length;var n=o.lastIndexOf(t);return n!==-1&&n===e}function dn(o,t){if(Array.isArray(o))return o;var e=[];for(var n in o){var i={};i[t[0]||"key"]=n,i[t[1]||"value"]=o[n],e.push(i)}return e}});m();import{cwd as On}from"node:process";m();import{cwd as Se}from"node:process";import{join as ke}from"node:path";var yt=S(Ee(),1);var He=G.object({deprecated:G.string().optional()});async function $t(o){let t=null;try{let{version:e,name:n}=T,i=Ct({filePath:_t(ke(__dirname,".."),ht)}),r=await i.get();t=Ve(r),t||(t={...await Te({packageName:n,packageVersion:e})},await i.set(t))}catch(e){let n=new D({code:j.FailedToCheckDeprecatedStatus(),cause:e});o.reportError(n),gt(L(Se()),n)}if(t?.deprecated)throw new D({code:j.DeprecatedVersion({currentVersion:T.version})})}function Ve(o){return(0,yt.match)(o,{Exists:({data:t})=>{let e=He.safeParse(t);return e.success?e.data:null},NotExists:()=>null})}async function Te({packageName:o,packageVersion:t}){let e=dt(),n=bt(o,{version:t,registryUrl:e.registryUrl}),i=await At(n,{milliseconds:5e3,message:"Reached timeout while fetching Wix CLI package details"});if(i instanceof Error)throw i;return{deprecated:i?.deprecated}}m();m();var qt=S(Rt(),1),{program:Xn,createCommand:g,createArgument:Zn,createOption:ti,CommanderError:ei,InvalidArgumentError:ni,InvalidOptionArgumentError:ii,Command:Nt,Argument:Ut,Option:I,Help:ri}=qt.default;m();m();m();var Gt=(o,t)=>{let e=A();return g("dev").option("-s, --https",e("site_dev_command_def.option.https")).addOption(new I("-w, --experimental-wml","experimental export/import using WML").hideHelp()).description(e("site_dev_command_def.description")).action(async(n,i)=>{let{runCommand:r}=await import("./run-command-6JZVHOCJ.js"),{dev:a}=await import("./dev-SERNOKYC.js");await r(i,o,t,()=>a(o,n))})};m();var Bt=(o,t)=>{let e=A();return g("install").description(e("site_install_command_def.description")).argument("[package]",e("site_install_command_def.argument.package")).option("--yarn",e("site_install_command_def.option.yarn")).option("--npm",e("site_install_command_def.option.npm")).action(async(n,i,r)=>{let{runCommand:a}=await import("./run-command-6JZVHOCJ.js"),{install:l}=await import("./install-BBYI2JHS.js");await a(r,o,t,()=>l(o,i,n))})};m();var Jt=(o,t)=>{let e=A();return g("preview").description(e("site_preview_command_def.description")).addOption(new I("--source <local|remote>",e("site_preview_command_def.option.source")).choices(["local","remote"])).action(async(n,i)=>{let{runCommand:r}=await import("./run-command-6JZVHOCJ.js"),{preview:a}=await import("./preview-J6KMHEC7.js");await r(i,o,t,()=>a(o,n))})};m();var Kt=(o,t)=>{let e=A();return g("publish").description(e("site_publish_command_def.description")).addOption(new I("--source <local|remote>",e("site_publish_command_def.option.source")).choices(["local","remote"])).option("-y, --approve-preview",e("site_publish_command_def.option.approve_preview")).option("-f, --force",e("site_publish_command_def.option.force")).action(async(n,i)=>{let{runCommand:r}=await import("./run-command-6JZVHOCJ.js"),{publish:a}=await import("./publish-O5KKPN6P.js");await r(i,o,t,()=>a(o,n))})};m();var zt=(o,t)=>g("sync-types").action(async(e,n)=>{let{runCommand:i}=await import("./run-command-6JZVHOCJ.js"),{syncTypes:r}=await import("./sync-types-VCPYXJKN.js");await i(n,o,t,()=>r(o))});m();var Yt=(o,t)=>{let e=A();return g("uninstall").description(e("site_uninstall_command_def.description")).argument("<package>",e("site_uninstall_command_def.argument.package")).option("--yarn",e("site_uninstall_command_def.option.yarn")).option("--npm",e("site_uninstall_command_def.option.npm")).action(async(n,i,r)=>{let{runCommand:a}=await import("./run-command-6JZVHOCJ.js"),{uninstall:l}=await import("./uninstall-VYPHO6FP.js");await a(r,o,t,()=>l(o,i,n))})};var ct=async function(t,e){return g("site").addCommand(Gt(t,e)).addCommand(Bt(t,e)).addCommand(Jt(t,e)).addCommand(Kt(t,e)).addCommand(zt(t,e),{hidden:!0}).addCommand(Yt(t,e))};m();import{EOL as $}from"node:os";var ae=S(oe(),1);m();var se="https://wix.to/YASTRGa";var ce={commandUsage(o){return`${V.bold(o.name())} ${o.usage()}`},sortSubcommands:!0,sortOptions:!0,formatHelp(o,t){let e=`${V.dim("Usage:")}
${t.commandUsage(o)}`,n=t.visibleCommands(o).map(h=>({term:h.name(),usage:h.usage(),description:t.commandDescription(h)})),i=t.visibleOptions(o).map(h=>({term:t.optionTerm(h),description:t.optionDescription(h)})),r=(0,ae.default)([...n,...i],{showHeaders:!1,columnSplitter:" "}).split($).map(h=>` ${h}`),a=r.splice(n.length),l=r,s=`${V.dim("Commands:")}${$}${l.join($)}`,c=`${V.dim("Options:")}${$}${a.join($)}`,u=`${V.dim("Learn More:")}
Learn more at ${se}${$}`;return`${[e,s,c,u].join($.repeat(2))}${$}`}};m();var le=S(B(),1);m();function H(){return wt(Et)}function ue(){let o=H();return o.t.bind(o)}var me=o=>{let t=H();return g("login").description(t.t("login_command.description")).option("--api-key <token>",t.t("login_command.option.api_key")).action(async(e,n)=>{let{apiKey:i}=e,[{getUserInfo:r},{LoginCommand:a},{renderCommand:l}]=await Promise.all([import("./src-6QYD7K7P.js"),import("./LoginCommand-LRSIZGZG.js"),import("./render-command-Y55ALYTF.js")]),s=await r();await l(n,o,le.default.createElement(a,{apiKeyToken:i,userInfo:s}))})};m();var he=S(B(),1);var pe=o=>{let t=H();return g("whoami").description(t.t("whoami_command.description")).action(async(e,n)=>{let{getUserInfo:i}=await import("./src-6QYD7K7P.js"),{WhoamiCommand:r}=await import("./WhoamiCommand-FSDPE2GG.js"),{renderCommand:a}=await import("./render-command-Y55ALYTF.js"),l=await i();await a(n,o,he.default.createElement(r,{userInfo:l}))})};m();var de=S(B(),1);var fe=o=>{let t=H();return g("logout").description(t.t("logout_command.description")).action(async(e,n)=>{let{getUserInfo:i}=await import("./src-6QYD7K7P.js"),{LogoutCommand:r}=await import("./LogoutCommand-SEXTH73Z.js"),{renderCommand:a}=await import("./render-command-Y55ALYTF.js"),l=await i();await a(n,o,de.default.createElement(r,{userInfo:l}))})};m();var ge=()=>{let o=ue();return g("telemetry").description(o("telemetry_command.description")).addArgument(new Ut("<state>","").choices(["on","off"])).action(async t=>{let{updateUserConfig:e}=await import("./src-I2I64UV6.js"),{CliError:n,CliErrorCode:i}=await import("./src-NPFD6LPI.js"),{createLogger:r}=await import("./src-O7ITG7M3.js"),a=r();try{await e({telemetry:t==="on"}),a.log(o("telemetry_command.state_updated",{state:t}))}catch(l){throw new n({code:i.FailedToUpdateTelemetryConfig(),cause:l})}})};m();var _e=S(xe(),1);import{cwd as fn}from"node:process";import{createRequire as gn}from"node:module";import{join as _n}from"node:path";import{pathToFileURL as Cn}from"node:url";var Ce=gn(_n(fn(),"dummy.js"));async function we(){try{let o=Ce.resolve("@wix/cli-app");return wn(),import(Cn(o).href)}catch(o){if(o instanceof Error&&"code"in o&&o.code==="MODULE_NOT_FOUND")return null;throw o}}function wn(){let o=Ce("@wix/cli-app/package.json").version;if((0,_e.default)(o)===null&&y!==o)throw new D({code:j.CliAppVersionMismatch({cliVersion:y,cliAppVersion:o})})}async function Oe(o,t){let e=new Nt;e.name("wix"),e.version(y,"-v, --version","Output the version number"),e.enablePositionalOptions(!0),e.helpOption("-h, --help","Display help for command"),e.addHelpCommand(!1),e.configureHelp(ce);let n=await we();return n&&e.addCommand(await n.getRootCommand({biLogger:t,errorReporter:o},y)),(await ct({biLogger:t,errorReporter:o},y)).commands.forEach(r=>{e.addCommand(r)}),e.addCommand(me({errorReporter:o,biLogger:t})).addCommand(pe({errorReporter:o,biLogger:t})).addCommand(fe({errorReporter:o,biLogger:t})).addCommand(ge()),e}m();var ve=o=>o.parent?`${ve(o.parent)} ${o.name()}`.trim():o.name();function Ae(o,{errorReporter:t}){o.hook("preAction",(e,n)=>{let i=ve(n);t.setContext("command info",{command:i,opts:n.opts(),args:n.args})})}ft();var be=On();async function vn(){let{default:o}=await import("./update-notifier-CBBXR5LL.js");o({pkg:T,updateCheckInterval:864e5,shouldNotifyInNpmScript:!0}).notify()}function An(){let{handler:o,errorReporter:t,registerToProcessErrors:e}=Ot({dsn:mt,release:T.version,debugOutputPath:L(be),userFeedbackCachePath:pt(be)});return e(),{errorHandler:o,errorReporter:t}}var{errorHandler:bn,errorReporter:M}=An();try{let o=await vt();o&&M.setUser({id:o.userId});let{biLogger:t}=await xt(M,o?.userId);await vn(),await $t(M);let e=await Oe(M,t);Ae(e,{errorReporter:M}),await e.parseAsync()}catch(o){bn({error:o})}
Learn more at ${se}${$}`;return`${[e,s,c,u].join($.repeat(2))}${$}`}};m();var le=S(B(),1);m();function H(){return wt(Et)}function ue(){let o=H();return o.t.bind(o)}var me=o=>{let t=H();return g("login").description(t.t("login_command.description")).option("--api-key <token>",t.t("login_command.option.api_key")).action(async(e,n)=>{let{apiKey:i}=e,[{getUserInfo:r},{LoginCommand:a},{renderCommand:l}]=await Promise.all([import("./src-GVQQLYNN.js"),import("./LoginCommand-MDAZ4JTB.js"),import("./render-command-QBJWPMNP.js")]),s=await r();await l(n,o,le.default.createElement(a,{apiKeyToken:i,userInfo:s}))})};m();var he=S(B(),1);var pe=o=>{let t=H();return g("whoami").description(t.t("whoami_command.description")).action(async(e,n)=>{let{getUserInfo:i}=await import("./src-GVQQLYNN.js"),{WhoamiCommand:r}=await import("./WhoamiCommand-4IE6SY4U.js"),{renderCommand:a}=await import("./render-command-QBJWPMNP.js"),l=await i();await a(n,o,he.default.createElement(r,{userInfo:l}))})};m();var de=S(B(),1);var fe=o=>{let t=H();return g("logout").description(t.t("logout_command.description")).action(async(e,n)=>{let{getUserInfo:i}=await import("./src-GVQQLYNN.js"),{LogoutCommand:r}=await import("./LogoutCommand-Y7LMDXKN.js"),{renderCommand:a}=await import("./render-command-QBJWPMNP.js"),l=await i();await a(n,o,de.default.createElement(r,{userInfo:l}))})};m();var ge=()=>{let o=ue();return g("telemetry").description(o("telemetry_command.description")).addArgument(new Ut("<state>","").choices(["on","off"])).action(async t=>{let{updateUserConfig:e}=await import("./src-ISNKLMTS.js"),{CliError:n,CliErrorCode:i}=await import("./src-B6SDHKWB.js"),{createLogger:r}=await import("./src-O7ITG7M3.js"),a=r();try{await e({telemetry:t==="on"}),a.log(o("telemetry_command.state_updated",{state:t}))}catch(l){throw new n({code:i.FailedToUpdateTelemetryConfig(),cause:l})}})};m();var _e=S(xe(),1);import{cwd as fn}from"node:process";import{createRequire as gn}from"node:module";import{join as _n}from"node:path";import{pathToFileURL as Cn}from"node:url";var Ce=gn(_n(fn(),"dummy.js"));async function we(){try{let o=Ce.resolve("@wix/cli-app");return wn(),import(Cn(o).href)}catch(o){if(o instanceof Error&&"code"in o&&o.code==="MODULE_NOT_FOUND")return null;throw o}}function wn(){let o=Ce("@wix/cli-app/package.json").version;if((0,_e.default)(o)===null&&y!==o)throw new D({code:j.CliAppVersionMismatch({cliVersion:y,cliAppVersion:o})})}async function Oe(o,t){let e=new Nt;e.name("wix"),e.version(y,"-v, --version","Output the version number"),e.enablePositionalOptions(!0),e.helpOption("-h, --help","Display help for command"),e.addHelpCommand(!1),e.configureHelp(ce);let n=await we();return n&&e.addCommand(await n.getRootCommand({biLogger:t,errorReporter:o},y)),(await ct({biLogger:t,errorReporter:o},y)).commands.forEach(r=>{e.addCommand(r)}),e.addCommand(me({errorReporter:o,biLogger:t})).addCommand(pe({errorReporter:o,biLogger:t})).addCommand(fe({errorReporter:o,biLogger:t})).addCommand(ge()),e}m();var ve=o=>o.parent?`${ve(o.parent)} ${o.name()}`.trim():o.name();function Ae(o,{errorReporter:t}){o.hook("preAction",(e,n)=>{let i=ve(n);t.setContext("command info",{command:i,opts:n.opts(),args:n.args})})}ft();var be=On();async function vn(){let{default:o}=await import("./update-notifier-CBBXR5LL.js");o({pkg:T,updateCheckInterval:864e5,shouldNotifyInNpmScript:!0}).notify()}function An(){let{handler:o,errorReporter:t,registerToProcessErrors:e}=Ot({dsn:mt,release:T.version,debugOutputPath:L(be),userFeedbackCachePath:pt(be)});return e(),{errorHandler:o,errorReporter:t}}var{errorHandler:bn,errorReporter:M}=An();try{let o=await vt();o&&M.setUser({id:o.userId});let{biLogger:t}=await xt(M,o?.userId);await vn(),await $t(M);let e=await Oe(M,t);Ae(e,{errorReporter:M}),await e.parseAsync()}catch(o){bn({error:o})}
//# sourceMappingURL=index.js.map
{
"name": "@wix/cli",
"description": "CLI tool for building Wix sites and applications",
"version": "1.1.27",
"version": "1.1.28",
"bin": {

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

},
"falconPackageHash": "a411177608e93ab2b68d476887950f9b306574bdfe34df10b221c61b"
"falconPackageHash": "bcfbde210fcfe8f5b7167c78410fa7c55b9d5897e68d39034166d544"
}
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