@great-arrow/cli 0.1.1 → 0.1.2

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/dist/index.js +23 -17
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,4 +1,6 @@
1
1
  #!/usr/bin/env node
2
+ import { createRequire as __createRequire } from 'node:module';
3
+ const require = __createRequire(import.meta.url);
2
4
  var __create = Object.create;
3
5
  var __defProp = Object.defineProperty;
4
6
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -12,7 +14,11 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
12
14
  throw Error('Dynamic require of "' + x + '" is not supported');
13
15
  });
14
16
  var __commonJS = (cb, mod) => function __require2() {
15
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
17
+ try {
18
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
19
+ } catch (e) {
20
+ throw mod = 0, e;
21
+ }
16
22
  };
17
23
  var __copyProps = (to, from, except, desc) => {
18
24
  if (from && typeof from === "object" || typeof from === "function") {
@@ -31,9 +37,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
31
37
  mod
32
38
  ));
33
39
 
34
- // node_modules/.pnpm/commander@13.1.0/node_modules/commander/lib/error.js
40
+ // node_modules/commander/lib/error.js
35
41
  var require_error = __commonJS({
36
- "node_modules/.pnpm/commander@13.1.0/node_modules/commander/lib/error.js"(exports) {
42
+ "node_modules/commander/lib/error.js"(exports) {
37
43
  var CommanderError2 = class extends Error {
38
44
  /**
39
45
  * Constructs the CommanderError class
@@ -66,9 +72,9 @@ var require_error = __commonJS({
66
72
  }
67
73
  });
68
74
 
69
- // node_modules/.pnpm/commander@13.1.0/node_modules/commander/lib/argument.js
75
+ // node_modules/commander/lib/argument.js
70
76
  var require_argument = __commonJS({
71
- "node_modules/.pnpm/commander@13.1.0/node_modules/commander/lib/argument.js"(exports) {
77
+ "node_modules/commander/lib/argument.js"(exports) {
72
78
  var { InvalidArgumentError: InvalidArgumentError2 } = require_error();
73
79
  var Argument2 = class {
74
80
  /**
@@ -193,9 +199,9 @@ var require_argument = __commonJS({
193
199
  }
194
200
  });
195
201
 
196
- // node_modules/.pnpm/commander@13.1.0/node_modules/commander/lib/help.js
202
+ // node_modules/commander/lib/help.js
197
203
  var require_help = __commonJS({
198
- "node_modules/.pnpm/commander@13.1.0/node_modules/commander/lib/help.js"(exports) {
204
+ "node_modules/commander/lib/help.js"(exports) {
199
205
  var { humanReadableArgName } = require_argument();
200
206
  var Help2 = class {
201
207
  constructor() {
@@ -762,9 +768,9 @@ ${itemIndentStr}`);
762
768
  }
763
769
  });
764
770
 
765
- // node_modules/.pnpm/commander@13.1.0/node_modules/commander/lib/option.js
771
+ // node_modules/commander/lib/option.js
766
772
  var require_option = __commonJS({
767
- "node_modules/.pnpm/commander@13.1.0/node_modules/commander/lib/option.js"(exports) {
773
+ "node_modules/commander/lib/option.js"(exports) {
768
774
  var { InvalidArgumentError: InvalidArgumentError2 } = require_error();
769
775
  var Option2 = class {
770
776
  /**
@@ -1063,9 +1069,9 @@ var require_option = __commonJS({
1063
1069
  }
1064
1070
  });
1065
1071
 
1066
- // node_modules/.pnpm/commander@13.1.0/node_modules/commander/lib/suggestSimilar.js
1072
+ // node_modules/commander/lib/suggestSimilar.js
1067
1073
  var require_suggestSimilar = __commonJS({
1068
- "node_modules/.pnpm/commander@13.1.0/node_modules/commander/lib/suggestSimilar.js"(exports) {
1074
+ "node_modules/commander/lib/suggestSimilar.js"(exports) {
1069
1075
  var maxDistance = 3;
1070
1076
  function editDistance(a, b) {
1071
1077
  if (Math.abs(a.length - b.length) > maxDistance)
@@ -1143,9 +1149,9 @@ var require_suggestSimilar = __commonJS({
1143
1149
  }
1144
1150
  });
1145
1151
 
1146
- // node_modules/.pnpm/commander@13.1.0/node_modules/commander/lib/command.js
1152
+ // node_modules/commander/lib/command.js
1147
1153
  var require_command = __commonJS({
1148
- "node_modules/.pnpm/commander@13.1.0/node_modules/commander/lib/command.js"(exports) {
1154
+ "node_modules/commander/lib/command.js"(exports) {
1149
1155
  var EventEmitter = __require("node:events").EventEmitter;
1150
1156
  var childProcess = __require("node:child_process");
1151
1157
  var path = __require("node:path");
@@ -3302,9 +3308,9 @@ Expecting one of '${allowedValues.join("', '")}'`);
3302
3308
  }
3303
3309
  });
3304
3310
 
3305
- // node_modules/.pnpm/commander@13.1.0/node_modules/commander/index.js
3311
+ // node_modules/commander/index.js
3306
3312
  var require_commander = __commonJS({
3307
- "node_modules/.pnpm/commander@13.1.0/node_modules/commander/index.js"(exports) {
3313
+ "node_modules/commander/index.js"(exports) {
3308
3314
  var { Argument: Argument2 } = require_argument();
3309
3315
  var { Command: Command2 } = require_command();
3310
3316
  var { CommanderError: CommanderError2, InvalidArgumentError: InvalidArgumentError2 } = require_error();
@@ -3324,7 +3330,7 @@ var require_commander = __commonJS({
3324
3330
  }
3325
3331
  });
3326
3332
 
3327
- // node_modules/.pnpm/commander@13.1.0/node_modules/commander/esm.mjs
3333
+ // node_modules/commander/esm.mjs
3328
3334
  var import_index = __toESM(require_commander(), 1);
3329
3335
  var {
3330
3336
  program,
@@ -5996,7 +6002,7 @@ if (nodeVersion < 20) {
5996
6002
  console.error(" Upgrade Node.js: https://nodejs.org/");
5997
6003
  process.exit(1);
5998
6004
  }
5999
- var VERSION = "0.1.1";
6005
+ var VERSION = "0.1.2";
6000
6006
  var program2 = new Command().name("gad").description("Great Arrow Digital CLI \u2014 terminal access to the GAD platform").version(VERSION, "-v, --version").option("--json", "Output as JSON").option("--quiet", "Suppress decorative output").option("--no-color", "Disable color output");
6001
6007
  program2.addCommand(login_default);
6002
6008
  program2.addCommand(logoutCommand);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@great-arrow/cli",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Great Arrow Digital CLI tool",
5
5
  "type": "module",
6
6
  "bin": {