@nesalia/cli 1.0.2 → 1.0.3

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 CHANGED
@@ -1,10 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
  import { Command } from "commander";
3
3
  import { login, status, logout } from "./commands/index.js";
4
+ // Commander v13 uses -V for --version; intercept -v before parse
5
+ const args = process.argv.includes("-v")
6
+ ? process.argv.map((a) => (a === "-v" ? "-V" : a))
7
+ : process.argv;
4
8
  const program = new Command();
5
9
  program
6
10
  .name("nesalia")
7
- .version("1.0.2")
11
+ .version("1.0.3")
8
12
  .description("@nesalia/cli — Manage your account authentication");
9
13
  program
10
14
  .command("auth", { isDefault: false })
@@ -18,5 +22,5 @@ program
18
22
  .addCommand(new Command("logout")
19
23
  .description("Logout and clear credentials")
20
24
  .action(logout));
21
- program.parse(process.argv);
25
+ program.parse(args);
22
26
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE5D,MAAM,OAAO,GAAG,IAAI,OAAO,EAAE,CAAC;AAE9B,OAAO;KACJ,IAAI,CAAC,SAAS,CAAC;KACf,OAAO,CAAC,OAAO,CAAC;KAChB,WAAW,CAAC,mDAAmD,CAAC,CAAC;AAEpE,OAAO;KACJ,OAAO,CAAC,MAAM,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;KACrC,WAAW,CAAC,yBAAyB,CAAC;KACtC,UAAU,CACT,IAAI,OAAO,CAAC,OAAO,CAAC;KACjB,WAAW,CAAC,gCAAgC,CAAC;KAC7C,MAAM,CAAC,KAAK,CAAC,CACjB;KACA,UAAU,CACT,IAAI,O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KAC1C,MAAM,CAAC,MAAM,CAAC,CAClB;KACA,UAAU,CACT,IAAI,OAAO,CAAC,QAAQ,CAAC;KAClB,WAAW,CAAC,8BAA8B,CAAC;KAC3C,MAAM,CAAC,MAAM,CAAC,CAClB,CAAC;AAEJ,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nesalia/cli",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "type": "module",
5
5
  "description": "Nesalia CLI — Manage your account and organizations",
6
6
  "license": "MIT",
package/src/index.ts CHANGED
@@ -3,11 +3,16 @@
3
3
  import { Command } from "commander";
4
4
  import { login, status, logout } from "./commands/index.js";
5
5
 
6
+ // Commander v13 uses -V for --version; intercept -v before parse
7
+ const args = process.argv.includes("-v")
8
+ ? process.argv.map((a) => (a === "-v" ? "-V" : a))
9
+ : process.argv;
10
+
6
11
  const program = new Command();
7
12
 
8
13
  program
9
14
  .name("nesalia")
10
- .version("1.0.2")
15
+ .version("1.0.3")
11
16
  .description("@nesalia/cli — Manage your account authentication");
12
17
 
13
18
  program
@@ -29,4 +34,4 @@ program
29
34
  .action(logout),
30
35
  );
31
36
 
32
- program.parse(process.argv);
37
+ program.parse(args);