@dsmrt/axiom-aws-sdk 0.2.2 → 1.0.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,17 @@
1
1
  # @dsmrt/axiom-aws-sdk
2
2
 
3
+ ## 1.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 31ae74a: fix(ci): move --provenance into changeset-publish script to avoid pnpm arg-passthrough bug
8
+
9
+ ## 1.0.0
10
+
11
+ ### Major Changes
12
+
13
+ - d767a0e: Making loadConfig return a promise; adding typescript config support and better esm/mjs/mts support; better docs
14
+
3
15
  ## 0.2.2
4
16
 
5
17
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -1,15 +1,4 @@
1
- import { SSMClient, Parameter } from '@aws-sdk/client-ssm';
2
-
3
- declare const ssmClient: SSMClient;
4
- declare const getParametersByPath: (path: string, parameters?: Parameter[], nextToken?: string, client?: SSMClient) => Promise<Parameter[]>;
5
- declare const getParameters: (names: string[], client?: SSMClient) => Promise<Parameter[]>;
6
- /**
7
- * Extract a single parameter from an array of params (typically from params by path)
8
- *
9
- * @param name
10
- * @param params
11
- */
12
- declare const extractParamValue: (path: string, name: string, params: Parameter[]) => string;
1
+ import { Parameter, SSMClient } from '@aws-sdk/client-ssm';
13
2
 
14
3
  type Params = {
15
4
  [key: string]: Parameter;
@@ -26,4 +15,15 @@ declare class ParameterCollection<TParams extends Params> {
26
15
  private loadParameters;
27
16
  }
28
17
 
18
+ declare const ssmClient: SSMClient;
19
+ declare const getParametersByPath: (path: string, parameters?: Parameter[], nextToken?: string, client?: SSMClient) => Promise<Parameter[]>;
20
+ declare const getParameters: (names: string[], client?: SSMClient) => Promise<Parameter[]>;
21
+ /**
22
+ * Extract a single parameter from an array of params (typically from params by path)
23
+ *
24
+ * @param name
25
+ * @param params
26
+ */
27
+ declare const extractParamValue: (path: string, name: string, params: Parameter[]) => string;
28
+
29
29
  export { ParameterCollection, type Params, extractParamValue, getParameters, getParametersByPath, ssmClient };
package/dist/index.d.ts CHANGED
@@ -1,15 +1,4 @@
1
- import { SSMClient, Parameter } from '@aws-sdk/client-ssm';
2
-
3
- declare const ssmClient: SSMClient;
4
- declare const getParametersByPath: (path: string, parameters?: Parameter[], nextToken?: string, client?: SSMClient) => Promise<Parameter[]>;
5
- declare const getParameters: (names: string[], client?: SSMClient) => Promise<Parameter[]>;
6
- /**
7
- * Extract a single parameter from an array of params (typically from params by path)
8
- *
9
- * @param name
10
- * @param params
11
- */
12
- declare const extractParamValue: (path: string, name: string, params: Parameter[]) => string;
1
+ import { Parameter, SSMClient } from '@aws-sdk/client-ssm';
13
2
 
14
3
  type Params = {
15
4
  [key: string]: Parameter;
@@ -26,4 +15,15 @@ declare class ParameterCollection<TParams extends Params> {
26
15
  private loadParameters;
27
16
  }
28
17
 
18
+ declare const ssmClient: SSMClient;
19
+ declare const getParametersByPath: (path: string, parameters?: Parameter[], nextToken?: string, client?: SSMClient) => Promise<Parameter[]>;
20
+ declare const getParameters: (names: string[], client?: SSMClient) => Promise<Parameter[]>;
21
+ /**
22
+ * Extract a single parameter from an array of params (typically from params by path)
23
+ *
24
+ * @param name
25
+ * @param params
26
+ */
27
+ declare const extractParamValue: (path: string, name: string, params: Parameter[]) => string;
28
+
29
29
  export { ParameterCollection, type Params, extractParamValue, getParameters, getParametersByPath, ssmClient };
package/dist/index.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  // src/ssm-parameters.ts
2
2
  import {
3
- SSMClient,
4
3
  GetParametersByPathCommand,
5
- GetParametersCommand
4
+ GetParametersCommand,
5
+ SSMClient
6
6
  } from "@aws-sdk/client-ssm";
7
7
  var ssmClient = new SSMClient({});
8
8
  var getParametersByPath = async (path, parameters, nextToken, client) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dsmrt/axiom-aws-sdk",
3
- "version": "0.2.2",
3
+ "version": "1.0.1",
4
4
  "description": "AWS sdk library for working with axiom cli",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -24,17 +24,14 @@
24
24
  },
25
25
  "license": "MIT",
26
26
  "devDependencies": {
27
+ "@biomejs/biome": "^2.3.8",
27
28
  "@changesets/cli": "^2.27.11",
28
- "@types/node": "^20.17.10",
29
- "@typescript-eslint/eslint-plugin": "^6.21.0",
30
- "@typescript-eslint/parser": "^6.21.0",
31
- "@vitest/coverage-v8": "^1.6.0",
32
- "eslint": "^8.57.1",
33
- "prettier": "^3.4.2",
29
+ "@types/node": "^22.12.0",
30
+ "@vitest/coverage-v8": "^4.0.0",
34
31
  "ts-node": "^10.9.2",
35
32
  "tsup": "^8.3.5",
36
33
  "typescript": "^5.7.2",
37
- "vitest": "^1.6.0"
34
+ "vitest": "^4.1.0"
38
35
  },
39
36
  "dependencies": {
40
37
  "@aws-sdk/client-ssm": "^3.716.0",
@@ -43,8 +40,8 @@
43
40
  "@aws-sdk/types": "^3.714.0"
44
41
  },
45
42
  "scripts": {
46
- "lint": "eslint ./src/ --ext .ts",
47
- "lint:fix": "eslint ./src/ --ext .ts --fix",
43
+ "lint": "biome lint",
44
+ "lint:fix": "biome lint --fix",
48
45
  "test": "vitest run --coverage",
49
46
  "watch": "vitest watch --coverage",
50
47
  "build": "tsup --entry ./src/bin/axiom.ts --entry ./src/index.ts --format cjs,esm --dts --clean",
package/tsconfig.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
- "compilerOptions": {
3
- "target": "es2022",
4
- "module": "commonjs",
5
- "esModuleInterop": true,
6
- "forceConsistentCasingInFileNames": true,
7
- "strict": true,
8
- "skipLibCheck": true,
9
- "noEmit": true
10
- },
11
- "include": ["src/index.ts"]
2
+ "compilerOptions": {
3
+ "target": "es2022",
4
+ "module": "commonjs",
5
+ "esModuleInterop": true,
6
+ "forceConsistentCasingInFileNames": true,
7
+ "strict": true,
8
+ "skipLibCheck": true,
9
+ "noEmit": true
10
+ },
11
+ "include": ["src/index.ts"]
12
12
  }
package/vitest.config.mts CHANGED
@@ -2,13 +2,13 @@
2
2
  import { defineConfig } from "vitest/config";
3
3
 
4
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
- },
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
14
  });