@dsmrt/axiom-aws-sdk 0.2.1 → 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 +12 -0
- package/README.md +3 -3
- package/dist/index.d.mts +12 -12
- package/dist/index.d.ts +12 -12
- package/dist/index.js +3 -3
- package/package.json +17 -20
- package/tsconfig.json +10 -10
- package/vitest.config.mts +14 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @dsmrt/axiom-aws-sdk
|
|
2
2
|
|
|
3
|
+
## 1.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- d767a0e: Making loadConfig return a promise; adding typescript config support and better esm/mjs/mts support; better docs
|
|
8
|
+
|
|
9
|
+
## 0.2.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- f4c9e19: fix: remove debug and fix testing
|
|
14
|
+
|
|
3
15
|
## 0.2.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<img alt="Axiom logo" src="../images/axiom-light-mode.svg">
|
|
5
5
|
</picture>
|
|
6
6
|
|
|
7
|
-
# Axiom - AWS SDK
|
|
7
|
+
# Axiom - AWS SDK
|
|
8
8
|
|
|
9
9
|
> An AWS focused config manager
|
|
10
10
|
|
|
@@ -40,7 +40,7 @@ npm install @dsmrt/axiom-aws-sdk
|
|
|
40
40
|
- "ssm:GetParameters"
|
|
41
41
|
- "ssm:GetParametersByPath"
|
|
42
42
|
Resource: !Sub 'arn:aws:ssm:*:*:parameter/${PARAMETER_PATH}/*'
|
|
43
|
-
# OR
|
|
43
|
+
# OR
|
|
44
44
|
Resources:
|
|
45
45
|
LambdaPolicies:
|
|
46
46
|
Type: AWS::IAM::Policy
|
|
@@ -83,5 +83,5 @@ npm install @dsmrt/axiom-aws-sdk
|
|
|
83
83
|
## Acknowledgements
|
|
84
84
|
|
|
85
85
|
- [Nate Iler](https://github.com/nateiler)
|
|
86
|
+
- [Go Mondo](https://www.go-mondo.com)
|
|
86
87
|
- [Flipbox Digital](https://www.flipboxdigital.com)
|
|
87
|
-
- [Go Mondo](https://www.flipboxdigital.com)
|
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/dist/index.js
CHANGED
|
@@ -18,15 +18,15 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
|
|
20
20
|
// src/index.ts
|
|
21
|
-
var
|
|
22
|
-
__export(
|
|
21
|
+
var index_exports = {};
|
|
22
|
+
__export(index_exports, {
|
|
23
23
|
ParameterCollection: () => ParameterCollection,
|
|
24
24
|
extractParamValue: () => extractParamValue,
|
|
25
25
|
getParameters: () => getParameters,
|
|
26
26
|
getParametersByPath: () => getParametersByPath,
|
|
27
27
|
ssmClient: () => ssmClient
|
|
28
28
|
});
|
|
29
|
-
module.exports = __toCommonJS(
|
|
29
|
+
module.exports = __toCommonJS(index_exports);
|
|
30
30
|
|
|
31
31
|
// src/ssm-parameters.ts
|
|
32
32
|
var import_client_ssm = require("@aws-sdk/client-ssm");
|
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,29 +24,26 @@
|
|
|
24
24
|
},
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@
|
|
28
|
-
"@
|
|
29
|
-
"@
|
|
30
|
-
"@
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"typescript": "^5.2.2",
|
|
36
|
-
"@vitest/coverage-v8": "^1.2.1",
|
|
37
|
-
"vitest": "^1.2.1"
|
|
27
|
+
"@biomejs/biome": "^2.3.8",
|
|
28
|
+
"@changesets/cli": "^2.27.11",
|
|
29
|
+
"@types/node": "^22.12.0",
|
|
30
|
+
"@vitest/coverage-v8": "^4.0.0",
|
|
31
|
+
"ts-node": "^10.9.2",
|
|
32
|
+
"tsup": "^8.3.5",
|
|
33
|
+
"typescript": "^5.7.2",
|
|
34
|
+
"vitest": "^4.0.0"
|
|
38
35
|
},
|
|
39
36
|
"dependencies": {
|
|
40
|
-
"@aws-sdk/client-ssm": "^3.
|
|
41
|
-
"@aws-sdk/client-sts": "^3.
|
|
42
|
-
"@aws-sdk/credential-providers": "^3.
|
|
43
|
-
"@aws-sdk/types": "^3.
|
|
37
|
+
"@aws-sdk/client-ssm": "^3.716.0",
|
|
38
|
+
"@aws-sdk/client-sts": "^3.716.0",
|
|
39
|
+
"@aws-sdk/credential-providers": "^3.716.0",
|
|
40
|
+
"@aws-sdk/types": "^3.714.0"
|
|
44
41
|
},
|
|
45
42
|
"scripts": {
|
|
46
|
-
"lint": "
|
|
47
|
-
"lint:fix": "
|
|
48
|
-
"test": "vitest run --coverage
|
|
49
|
-
"watch": "vitest watch --coverage
|
|
43
|
+
"lint": "biome lint",
|
|
44
|
+
"lint:fix": "biome lint --fix",
|
|
45
|
+
"test": "vitest run --coverage",
|
|
46
|
+
"watch": "vitest watch --coverage",
|
|
50
47
|
"build": "tsup --entry ./src/bin/axiom.ts --entry ./src/index.ts --format cjs,esm --dts --clean",
|
|
51
48
|
"release": "pnpm run build && pnpm changeset publish"
|
|
52
49
|
}
|
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
|
}
|
|
@@ -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
|
+
});
|