@dsmrt/axiom-cli 0.2.3 → 0.3.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/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @dsmrt/axiom-cli
2
2
 
3
+ ## 0.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - f4c9e19: fix: remove debug and fix testing
8
+ - Updated dependencies [f4c9e19]
9
+ - @dsmrt/axiom-aws-sdk@0.2.2
10
+ - @dsmrt/axiom-config@0.2.3
11
+
12
+ ## 0.3.0
13
+
14
+ ### Minor Changes
15
+
16
+ - 9d383de: Updating the cli config command to print json
17
+
3
18
  ## 0.2.3
4
19
 
5
20
  ### Patch Changes
package/README.md CHANGED
@@ -26,12 +26,12 @@ npm install @dsmrt/axiom-cli
26
26
  - View rendered configs
27
27
  - Manage SSM Parameters
28
28
 
29
- ```
29
+ ```bash
30
30
  axiom --help
31
31
  ```
32
32
 
33
33
  ## Acknowledgements
34
34
 
35
35
  - [Nate Iler](https://github.com/nateiler)
36
+ - [Go Mondo](https://www.go-mondo.com)
36
37
  - [Flipbox Digital](https://www.flipboxdigital.com)
37
- - [Go Mondo](https://www.flipboxdigital.com)
package/dist/bin/axiom.js CHANGED
@@ -38,7 +38,7 @@ var Config = class {
38
38
  return args;
39
39
  };
40
40
  handler = async (args) => {
41
- console.log(await this.loadConfig(args));
41
+ console.log(JSON.stringify(await this.loadConfig(args)));
42
42
  };
43
43
  loadConfig = async (args) => {
44
44
  return (0, import_axiom_config.loadConfig)(args);
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import "../chunk-FKMXG4JE.mjs";
2
+ import "../chunk-QT654PKF.mjs";
@@ -13,7 +13,7 @@ var Config = class {
13
13
  return args;
14
14
  };
15
15
  handler = async (args) => {
16
- console.log(await this.loadConfig(args));
16
+ console.log(JSON.stringify(await this.loadConfig(args)));
17
17
  };
18
18
  loadConfig = async (args) => {
19
19
  return loadConfig(args);
@@ -385,10 +385,10 @@ USAGE:
385
385
  ).demandCommand(1, "").alias("h", "help").argv;
386
386
 
387
387
  export {
388
- Config,
389
- ParamsCommand,
390
388
  commonOptions,
391
389
  awsOptions,
390
+ Config,
391
+ ParamsCommand,
392
392
  GetCommand,
393
393
  SetCommand,
394
394
  DeleteCommand
package/dist/index.js CHANGED
@@ -28,8 +28,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
29
 
30
30
  // src/index.ts
31
- var src_exports = {};
32
- __export(src_exports, {
31
+ var index_exports = {};
32
+ __export(index_exports, {
33
33
  Config: () => Config,
34
34
  DeleteCommand: () => DeleteCommand,
35
35
  GetCommand: () => GetCommand,
@@ -38,7 +38,7 @@ __export(src_exports, {
38
38
  awsOptions: () => awsOptions,
39
39
  commonOptions: () => commonOptions
40
40
  });
41
- module.exports = __toCommonJS(src_exports);
41
+ module.exports = __toCommonJS(index_exports);
42
42
 
43
43
  // src/cache.ts
44
44
  var import_os = __toESM(require("os"));
@@ -130,7 +130,7 @@ var Config = class {
130
130
  return args;
131
131
  };
132
132
  handler = async (args) => {
133
- console.log(await this.loadConfig(args));
133
+ console.log(JSON.stringify(await this.loadConfig(args)));
134
134
  };
135
135
  loadConfig = async (args) => {
136
136
  return (0, import_axiom_config.loadConfig)(args);
package/dist/index.mjs CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  SetCommand,
7
7
  awsOptions,
8
8
  commonOptions
9
- } from "./chunk-FKMXG4JE.mjs";
9
+ } from "./chunk-QT654PKF.mjs";
10
10
  export {
11
11
  Config,
12
12
  DeleteCommand,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dsmrt/axiom-cli",
3
- "version": "0.2.3",
3
+ "version": "0.3.1",
4
4
  "description": "axiom cli for managing configs including secrets",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -28,31 +28,31 @@
28
28
  },
29
29
  "license": "MIT",
30
30
  "devDependencies": {
31
- "@changesets/cli": "^2.27.1",
32
- "@types/inquirer": "^8.0.0",
33
- "@types/node": "^20.9.0",
34
- "@types/yargs": "^17.0.31",
35
- "@typescript-eslint/eslint-plugin": "^6.12.0",
36
- "@typescript-eslint/parser": "^6.12.0",
37
- "aws-sdk-client-mock": "^3.0.0",
38
- "eslint": "^8.54.0",
39
- "prettier": "^3.1.0",
40
- "ts-node": "^10.9.1",
41
- "tsup": "^8.0.1",
42
- "typescript": "^5.2.2",
43
- "@vitest/coverage-v8": "^1.2.1",
44
- "vitest": "^1.2.1"
31
+ "@changesets/cli": "^2.27.11",
32
+ "@types/inquirer": "^8.2.10",
33
+ "@types/node": "^20.17.10",
34
+ "@types/yargs": "^17.0.33",
35
+ "@typescript-eslint/eslint-plugin": "^6.21.0",
36
+ "@typescript-eslint/parser": "^6.21.0",
37
+ "@vitest/coverage-v8": "^1.6.0",
38
+ "aws-sdk-client-mock": "^3.1.0",
39
+ "eslint": "^8.57.1",
40
+ "prettier": "^3.4.2",
41
+ "ts-node": "^10.9.2",
42
+ "tsup": "^8.3.5",
43
+ "typescript": "^5.7.2",
44
+ "vitest": "^1.6.0"
45
45
  },
46
46
  "dependencies": {
47
- "@aws-sdk/client-ssm": "^3.451.0",
48
- "@aws-sdk/client-sts": "^3.454.0",
49
- "@aws-sdk/credential-providers": "^3.454.0",
50
- "@aws-sdk/types": "^3.451.0",
47
+ "@aws-sdk/client-ssm": "^3.716.0",
48
+ "@aws-sdk/client-sts": "^3.716.0",
49
+ "@aws-sdk/credential-providers": "^3.716.0",
50
+ "@aws-sdk/types": "^3.714.0",
51
51
  "chalk": "^4.1.2",
52
- "inquirer": "^8.0.0",
52
+ "inquirer": "^8.2.6",
53
53
  "yargs": "^17.7.2",
54
- "@dsmrt/axiom-aws-sdk": "^0.2.1",
55
- "@dsmrt/axiom-config": "^0.2.2"
54
+ "@dsmrt/axiom-aws-sdk": "^0.2.2",
55
+ "@dsmrt/axiom-config": "^0.2.3"
56
56
  },
57
57
  "scripts": {
58
58
  "lint": "eslint ./src/ ./src/aws ./src/bin --ext .ts",
@@ -0,0 +1,14 @@
1
+ // vitest.config.ts
2
+ import { defineConfig } from "vitest/config";
3
+
4
+ export default defineConfig({
5
+ test: {
6
+ include: ["src/**/*.test.ts"],
7
+ coverage: {
8
+ provider: "v8",
9
+ all: true,
10
+ exclude: ["lib/**/*", "src/__mocks__/**/*"],
11
+ reporter: ["text-summary", "json-summary"],
12
+ },
13
+ },
14
+ });