Comparing version 1.1.44 to 1.1.45
import { createRequire as _createRequire } from 'node:module'; | ||
const require = _createRequire(import.meta.url); | ||
import{a as Et}from"./chunk-KRD4NQZH.js";import{a as y,b as T,c as xt}from"./chunk-ANPGHE24.js";import{a as A}from"./chunk-WY4PNXSL.js";import{a as ye}from"./chunk-XOWZQRGH.js";import"./chunk-6WLGSATJ.js";import{a as bt,b as $e}from"./chunk-522L5OXR.js";import"./chunk-U37RKZCU.js";import{g as vt,i as At}from"./chunk-G55TTMWE.js";import{b as gt,e as _t,f as Ct,g as Ot}from"./chunk-PAIXCGVA.js";import{a as B,v as wt}from"./chunk-FGMHBV72.js";import"./chunk-CNRVJIPG.js";import"./chunk-SYHT5LTW.js";import"./chunk-K656WQZA.js";import{c as xe}from"./chunk-TVMTOQUC.js";import"./chunk-F67LDVCV.js";import{c as V}from"./chunk-ZBJRW65P.js";import"./chunk-J3IJS26Z.js";import"./chunk-CJ3JTOGS.js";import{d as mt,h as ht,i as L,j as pt}from"./chunk-64BT6U7B.js";import"./chunk-ZGQTJ77P.js";import{a as G,b as dt,c as ft}from"./chunk-NWTFQJ5S.js";import{a as Ee,c as D,e as j}from"./chunk-XB57BXPK.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 y,b as T,c as xt}from"./chunk-F7PP74XB.js";import{a as A}from"./chunk-HYMGR3RL.js";import{a as ye}from"./chunk-XOWZQRGH.js";import"./chunk-4Y2R5QID.js";import{a as bt,b as $e}from"./chunk-522L5OXR.js";import"./chunk-U37RKZCU.js";import{g as vt,i as At}from"./chunk-LI2OYXRM.js";import{b as gt,e as _t,f as Ct,g as Ot}from"./chunk-UDD4OHCT.js";import{a as B,v as wt}from"./chunk-X5FGKR74.js";import"./chunk-CNRVJIPG.js";import"./chunk-SYHT5LTW.js";import"./chunk-K656WQZA.js";import{c as xe}from"./chunk-TVMTOQUC.js";import"./chunk-F67LDVCV.js";import{c as V}from"./chunk-ZBJRW65P.js";import"./chunk-J3IJS26Z.js";import"./chunk-CJ3JTOGS.js";import{d as mt,h as ht,i as L,j as pt}from"./chunk-T7C26E3I.js";import"./chunk-NRX52J22.js";import{a as G,b as dt,c as ft}from"./chunk-CUZEHDNU.js";import{a as Ee,c as D,e as j}from"./chunk-AQJFGMCV.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-GNB45EMQ.js"),{dev:a}=await import("./dev-TUFLYMKF.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-GNB45EMQ.js"),{install:l}=await import("./install-YEMFIUP5.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-GNB45EMQ.js"),{preview:a}=await import("./preview-VQZYPOVH.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-GNB45EMQ.js"),{publish:a}=await import("./publish-CK7HEF4E.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-GNB45EMQ.js"),{syncTypes:r}=await import("./sync-types-DRU4GIWT.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-GNB45EMQ.js"),{uninstall:l}=await import("./uninstall-S4LM37YV.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-VVLPCPAA.js"),{dev:a}=await import("./dev-UTUJUJOU.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-VVLPCPAA.js"),{install:l}=await import("./install-JAJXVRCS.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-VVLPCPAA.js"),{preview:a}=await import("./preview-7TNN4CID.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-VVLPCPAA.js"),{publish:a}=await import("./publish-OPLHKLGT.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-VVLPCPAA.js"),{syncTypes:r}=await import("./sync-types-SCIS2C6G.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-VVLPCPAA.js"),{uninstall:l}=await import("./uninstall-XXDICDQ3.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}=await import("./src-S6J3ZUBK.js"),{LoginCommand:a}=await import("./LoginCommand-YGOTR5PT.js"),{renderCommand:l}=await import("./render-command-PYYKSQIR.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-S6J3ZUBK.js"),{WhoamiCommand:r}=await import("./WhoamiCommand-ZDSABBMG.js"),{renderCommand:a}=await import("./render-command-PYYKSQIR.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-S6J3ZUBK.js"),{LogoutCommand:r}=await import("./LogoutCommand-SQMPWE2Z.js"),{renderCommand:a}=await import("./render-command-PYYKSQIR.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-CCWGRSX4.js"),{CliError:n,CliErrorCode:i}=await import("./src-MRLKTCAZ.js"),{createLogger:r}=await import("./src-ZUXRDORN.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(),await 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-LCY3CRNY.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}=await import("./src-H4I2HRVN.js"),{LoginCommand:a}=await import("./LoginCommand-76EGX52P.js"),{renderCommand:l}=await import("./render-command-RMLVUEMM.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-H4I2HRVN.js"),{WhoamiCommand:r}=await import("./WhoamiCommand-W7GLY3WG.js"),{renderCommand:a}=await import("./render-command-RMLVUEMM.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-H4I2HRVN.js"),{LogoutCommand:r}=await import("./LogoutCommand-TOCECSGL.js"),{renderCommand:a}=await import("./render-command-RMLVUEMM.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-YMGQ6GZL.js"),{CliError:n,CliErrorCode:i}=await import("./src-CZRQVWWJ.js"),{createLogger:r}=await import("./src-ZUXRDORN.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(),await 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-LCY3CRNY.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.44", | ||
"version": "1.1.45", | ||
"bin": { | ||
@@ -71,3 +71,3 @@ "wix": "bin/wix.cjs" | ||
"build": "run -T tsup", | ||
"build:watch": "run build --watch", | ||
"build:watch": "run -T build:watch --filter='@wix/cli'", | ||
"test": "yarn workspace @wix/cli-core-spec run test", | ||
@@ -89,3 +89,3 @@ "test:watch": "yarn workspace @wix/cli-core-spec run test:watch", | ||
}, | ||
"falconPackageHash": "de86f2bf6f2c6f0ac028db5c11aa95c2b48895986d9efeb2e5f921f3" | ||
"falconPackageHash": "5a01d8f3c24a5628c28acb36ab73096b25c7d5e1e9441bebcba0efbd" | ||
} |
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
17751274
15958
9