@mahameru/cli 0.0.32 → 0.0.33

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.
Files changed (2) hide show
  1. package/cli.js +5 -5
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -3,7 +3,7 @@
3
3
  * ┌────────────────────────────────────────────┐
4
4
  * │ │
5
5
  * │ ▲ MahameruJS - CLI │
6
- * │ Version: 0.0.32
6
+ * │ Version: 0.0.33
7
7
  * │ Built: 2026 │
8
8
  * │ │
9
9
  * │ Copyright (c) Bintan <hello@bintvn.co> │
@@ -691,9 +691,9 @@ r.readFile)(n.PM_CONFIG_FILE_PATH,"utf-8"),d=JSON.parse(i)
691
691
  ;if(d.cert&&!await c(d.cert))throw new Error("SSL Certificate file not found")
692
692
  ;if(d.key&&!await c(d.key))throw new Error("SSL key file not found")
693
693
  ;for(const e of d.logins)if(e.role!==s.LoginRole.ADMIN&&e.role!==s.LoginRole.USER)throw new Error(`Invalid role ${e.role} for login ${e.username}`)
694
- ;if(d.host=e,d.port=await(0,a.freePortFinder)(t),o&&d.cert!==o){
695
- if(!await c(o))throw new Error("SSL Certificate file not found");d.cert=o}if(l&&d.key!==l){
696
- if(!await c(l))throw new Error("SSL key file not found");d.key=l}return await(0,
694
+ ;if(d.host=e,d.port=await(0,a.freePortFinder)(t),d.cert!==o){
695
+ if(o&&!await c(o))throw new Error("SSL Certificate file not found");d.cert=o}if(d.key!==l){
696
+ if(l&&!await c(l))throw new Error("SSL key file not found");d.key=l}return await(0,
697
697
  r.writeFile)(n.PM_CONFIG_FILE_PATH,JSON.stringify(d,null,2)),d}
698
698
  if(o&&!await c(o))throw new Error("SSL Certificate file not found")
699
699
  ;if(l&&!await c(l))throw new Error("SSL key file not found");const d={host:e,port:await(0,a.freePortFinder)(t),cert:o,
@@ -741,5 +741,5 @@ e.exports=require("node:child_process")},139(e){e.exports=require("node:cluster"
741
741
  },1455(e){e.exports=require("node:fs/promises")},7067(e){e.exports=require("node:http")},4708(e){
742
742
  e.exports=require("node:https")},8995(e){e.exports=require("node:module")},7030(e){e.exports=require("node:net")},
743
743
  8161(e){e.exports=require("node:os")},6760(e){e.exports=require("node:path")},6928(e){e.exports=require("path")},
744
- 8330(e){e.exports={version:"0.0.32"}}};const t={};(function o(r){const n=t[r];if(void 0!==n)return n.exports
744
+ 8330(e){e.exports={version:"0.0.33"}}};const t={};(function o(r){const n=t[r];if(void 0!==n)return n.exports
745
745
  ;const s=t[r]={exports:{}};return e[r].call(s.exports,s,s.exports,o),s.exports})(8625)})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mahameru/cli",
3
- "version": "0.0.32",
3
+ "version": "0.0.33",
4
4
  "description": "MahameruJS CLI Utility - The command-line interface for running and building Mahameru-based applications",
5
5
  "bin": {
6
6
  "mahameru": "./cli.js"