@naarang/ccc 2.0.0-alpha.8 → 2.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -15,7 +15,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
15
15
|
`;for(var U=0;U<H;U+=2){L+=K.WHITE_ALL;for(var V=0;V<H;V++)if(Z[U][V]===X&&Z[U+1][V]===X)L+=K.WHITE_ALL;else if(Z[U][V]===X&&Z[U+1][V]===J)L+=K.WHITE_BLACK;else if(Z[U][V]===J&&Z[U+1][V]===X)L+=K.BLACK_WHITE;else L+=K.BLACK_ALL;L+=K.WHITE_ALL+`
|
|
16
16
|
`}if(!Y)L+=G}else{var N=E9(z5).times(E.getModuleCount()+3);L+=N+`
|
|
17
17
|
`,E.modules.forEach(function(z){L+=z5,L+=z.map(xh).join(""),L+=z5+`
|
|
18
|
-
`}),L+=N}if(A)A(L);else console.log(L)},setErrorLevel:function(_){this.error=CW[_]||this.error}}});import{readFileSync as M9}from"fs";import{join as V9}from"path";function G1(){return"2.0.0-
|
|
18
|
+
`}),L+=N}if(A)A(L);else console.log(L)},setErrorLevel:function(_){this.error=CW[_]||this.error}}});import{readFileSync as M9}from"fs";import{join as V9}from"path";function G1(){return"2.0.0-beta.1"}function k5(_){let[T,A]=_.split("-"),E=(T||"0.0.0").split(".").map(Number);return{major:E[0]||0,minor:E[1]||0,patch:E[2]||0,preRelease:A||null}}function XT(_){let T=k5(_);if(!T.preRelease)return"stable";if(T.preRelease.startsWith("alpha"))return"alpha";return"beta"}function f5(_,T){try{let A=k5(_),E=k5(T);if(A.major>E.major)return!1;if(A.major<E.major)return!1;if(E.preRelease&&!A.preRelease)return!1;if(!E.preRelease&&A.preRelease)return!1;if(E.preRelease&&A.preRelease){if(A.minor<E.minor)return!1;if(A.minor===E.minor&&A.patch===E.patch)return A.preRelease>E.preRelease;if(A.minor>E.minor||A.patch>E.patch)return!0;return!1}if(A.minor>E.minor)return!0;if(A.minor<E.minor)return!1;if(A.patch>E.patch)return!0;return!1}catch(A){return!1}}import{parseArgs as PN}from"util";var jN={debug:{type:"boolean",short:"d",default:!1,description:"Enable debug logging"},"mqtt-port":{type:"string",default:"8884",description:"MQTT broker port"},"terminal-port":{type:"string",default:"3001",description:"Terminal server port"},"router-port":{type:"string",default:"8883",description:"Router port"},username:{type:"string",description:"MQTT broker username (optional)"},password:{type:"string",description:"MQTT broker password (optional)"},"ngrok-token":{type:"string",description:"ngrok authentication token (optional)"},"ngrok-domain":{type:"string",description:"ngrok static domain (optional, paid plan)"},"no-auto-update":{type:"boolean",default:!1,description:"Disable auto-update checking"},"auto-update-check-interval":{type:"string",default:"60",description:"Auto-update check interval in minutes (default: 60)"},help:{type:"boolean",short:"h",default:!1,description:"Show help message"},version:{type:"boolean",short:"v",default:!1,description:"Show version"}};function z9(){let _=PN({options:jN,allowPositionals:!1,strict:!0});if(_.values.version)console.log(`ccc v${G1()}`),process.exit(0);if(_.values.help)xN(),process.exit(0);return{debug:_.values.debug,mqttPort:parseInt(_.values["mqtt-port"],10),terminalPort:parseInt(_.values["terminal-port"],10),routerPort:parseInt(_.values["router-port"],10),username:_.values.username,password:_.values.password,ngrokToken:_.values["ngrok-token"],ngrokDomain:_.values["ngrok-domain"],autoUpdate:!_.values["no-auto-update"],autoUpdateCheckInterval:parseInt(_.values["auto-update-check-interval"],10)}}function xN(){console.log(`
|
|
19
19
|
Backend v2 - Clean modular architecture
|
|
20
20
|
|
|
21
21
|
Usage:
|