@dsmrt/axiom-aws-sdk 0.2.2 → 1.0.0
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 +6 -0
- package/dist/index.d.mts +12 -12
- package/dist/index.d.ts +12 -12
- package/package.json +7 -10
- package/tsconfig.json +10 -10
- package/vitest.config.mts +9 -9
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -1,15 +1,4 @@
|
|
|
1
|
-
import {
|
|
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 {
|
|
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dsmrt/axiom-aws-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
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": "^
|
|
29
|
-
"@
|
|
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": "^
|
|
34
|
+
"vitest": "^4.0.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": "
|
|
47
|
-
"lint: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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
});
|