@node-in-layers/aws 1.1.3 → 1.1.5

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.
@@ -29,6 +29,35 @@ declare const create: (context: FeaturesContext<Config, AwsConfigServicesLayer,
29
29
  }> | undefined;
30
30
  getFunctionWrapLogLevel?: ((layerName: string, functionName?: string | undefined) => import("@node-in-layers/core/types.js").LogLevelNames) | undefined;
31
31
  ignoreLayerFunctions?: Record<string, boolean | Record<string, boolean | Record<string, boolean>>> | undefined;
32
+ otel?: Readonly<{
33
+ serviceName?: string | undefined;
34
+ version?: string | undefined;
35
+ trace?: Readonly<{
36
+ enabled?: boolean | undefined;
37
+ exporter?: Readonly<{
38
+ endpoint?: string | undefined;
39
+ headers?: Record<string, string> | undefined;
40
+ }> | undefined;
41
+ }> | undefined;
42
+ logs?: Readonly<{
43
+ enabled?: boolean | undefined;
44
+ exporter?: Readonly<{
45
+ endpoint?: string | undefined;
46
+ headers?: Record<string, string> | undefined;
47
+ }> | undefined;
48
+ }> | undefined;
49
+ metrics?: Readonly<{
50
+ enabled?: boolean | undefined;
51
+ exporter?: Readonly<{
52
+ endpoint?: string | undefined;
53
+ headers?: Record<string, string> | undefined;
54
+ }> | undefined;
55
+ }> | undefined;
56
+ exporter?: Readonly<{
57
+ endpoint?: string | undefined;
58
+ headers?: Record<string, string> | undefined;
59
+ }> | undefined;
60
+ }> | undefined;
32
61
  };
33
62
  layerOrder: readonly import("@node-in-layers/core/types.js").LayerDescription[];
34
63
  apps: readonly Readonly<{
@@ -126,6 +155,35 @@ declare const create: (context: FeaturesContext<Config, AwsConfigServicesLayer,
126
155
  }> | undefined;
127
156
  getFunctionWrapLogLevel?: ((layerName: string, functionName?: string | undefined) => import("@node-in-layers/core/types.js").LogLevelNames) | undefined;
128
157
  ignoreLayerFunctions?: Record<string, boolean | Record<string, boolean | Record<string, boolean>>> | undefined;
158
+ otel?: Readonly<{
159
+ serviceName?: string | undefined;
160
+ version?: string | undefined;
161
+ trace?: Readonly<{
162
+ enabled?: boolean | undefined;
163
+ exporter?: Readonly<{
164
+ endpoint?: string | undefined;
165
+ headers?: Record<string, string> | undefined;
166
+ }> | undefined;
167
+ }> | undefined;
168
+ logs?: Readonly<{
169
+ enabled?: boolean | undefined;
170
+ exporter?: Readonly<{
171
+ endpoint?: string | undefined;
172
+ headers?: Record<string, string> | undefined;
173
+ }> | undefined;
174
+ }> | undefined;
175
+ metrics?: Readonly<{
176
+ enabled?: boolean | undefined;
177
+ exporter?: Readonly<{
178
+ endpoint?: string | undefined;
179
+ headers?: Record<string, string> | undefined;
180
+ }> | undefined;
181
+ }> | undefined;
182
+ exporter?: Readonly<{
183
+ endpoint?: string | undefined;
184
+ headers?: Record<string, string> | undefined;
185
+ }> | undefined;
186
+ }> | undefined;
129
187
  };
130
188
  layerOrder: readonly import("@node-in-layers/core/types.js").LayerDescription[];
131
189
  apps: readonly Readonly<{
package/config/types.d.ts CHANGED
@@ -1,13 +1,14 @@
1
- type AwsConfigServices = Readonly<object>;
1
+ import { AwsNamespace } from '../types.js';
2
+ type AwsConfigServices = Readonly<{
3
+ readSecretsInSecretsManager: (keys: string[]) => Promise<Record<string, string>>;
4
+ readParameters: (keys: string[]) => Promise<Record<string, string>>;
5
+ }>;
2
6
  type AwsConfigServicesLayer = Readonly<{
3
- 'aws-config/aws-config': AwsConfigServices;
7
+ [AwsNamespace.config]: AwsConfigServices;
4
8
  }>;
5
9
  type AwsConfigFeatures = Readonly<object>;
6
10
  type AwsConfigFeaturesLayer = Readonly<{
7
- 'aws-config/aws-config': AwsConfigFeatures;
8
- }>;
9
- type AwsConfigNamespace = Readonly<{
10
- root: '@node-in-layers/aws-config';
11
+ [AwsNamespace.config]: AwsConfigFeatures;
11
12
  }>;
12
13
  /**
13
14
  * The key that defines an aws entry
@@ -39,4 +40,4 @@ type SecretsToReplace = AwsEntriesToReplace<AwsEntryType.secretsManager>;
39
40
  * All the parameter store entries to replace
40
41
  */
41
42
  type ParameterStoreToReplace = AwsEntriesToReplace<AwsEntryType.parameterStore>;
42
- export { AwsConfigServices, AwsConfigServicesLayer, AwsConfigFeatures, AwsConfigFeaturesLayer, AwsConfigNamespace, AwsEntriesToReplace, AwsEntryKey, AwsEntryType, ParameterStoreToReplace, SecretsToReplace, };
43
+ export { AwsConfigServices, AwsConfigServicesLayer, AwsConfigFeatures, AwsConfigFeaturesLayer, AwsEntriesToReplace, AwsEntryKey, AwsEntryType, ParameterStoreToReplace, SecretsToReplace, };
package/config/types.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { AwsNamespace } from '../types.js';
1
2
  /**
2
3
  * The key that defines an aws entry
3
4
  */
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/config/types.ts"],"names":[],"mappings":"AAgBA;;GAEG;AACH,MAAM,WAAW,GAAG,MAAM,CAAA;AAE1B;;GAEG;AACH,IAAK,YAGJ;AAHD,WAAK,YAAY;IACf,iDAAiC,CAAA;IACjC,iDAAiC,CAAA;AACnC,CAAC,EAHI,YAAY,KAAZ,YAAY,QAGhB;AA2BD,OAAO,EAOL,WAAW,EACX,YAAY,GAGb,CAAA"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/config/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAmB1C;;GAEG;AACH,MAAM,WAAW,GAAG,MAAM,CAAA;AAE1B;;GAEG;AACH,IAAK,YAGJ;AAHD,WAAK,YAAY;IACf,iDAAiC,CAAA;IACjC,iDAAiC,CAAA;AACnC,CAAC,EAHI,YAAY,KAAZ,YAAY,QAGhB;AA2BD,OAAO,EAML,WAAW,EACX,YAAY,GAGb,CAAA"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@node-in-layers/aws",
3
3
  "type": "module",
4
- "version": "1.1.3",
4
+ "version": "1.1.5",
5
5
  "description": "A Node In Layers Package for handling AWS.",
6
6
  "main": "index.js",
7
7
  "scripts": {
@@ -48,11 +48,23 @@
48
48
  },
49
49
  "author": "Mike Cornwell",
50
50
  "license": "GPLV3",
51
+ "overrides": {
52
+ "fast-xml-parser": ">=5.3.6",
53
+ "external-editor": {
54
+ "tmp": ">=0.2.4"
55
+ },
56
+ "commitizen": {
57
+ "lodash": ">=4.17.23"
58
+ },
59
+ "mocha": {
60
+ "diff": ">=8.0.3"
61
+ }
62
+ },
51
63
  "devDependencies": {
52
64
  "@cucumber/cucumber": "^12.6.0",
53
- "@eslint/compat": "^1.2.0",
54
- "@eslint/eslintrc": "^3.1.0",
55
- "@eslint/js": "^9.12.0",
65
+ "@eslint/compat": "^1.4.1",
66
+ "@eslint/eslintrc": "^3.3.3",
67
+ "@eslint/js": "^9.39.2",
56
68
  "@types/chai-as-promised": "^8.0.1",
57
69
  "@types/json-stringify-safe": "^5.0.3",
58
70
  "@types/lodash": "^4.17.13",
@@ -60,44 +72,46 @@
60
72
  "@types/node": "^22.9.0",
61
73
  "@types/proxyquire": "^1.3.31",
62
74
  "@types/sinon": "^17.0.3",
63
- "@typescript-eslint/eslint-plugin": "8.13.0",
64
- "@typescript-eslint/parser": "8.13.0",
75
+ "@typescript-eslint/eslint-plugin": "^8.56.0",
76
+ "@typescript-eslint/parser": "^8.56.0",
65
77
  "argparse": "^2.0.1",
66
78
  "c8": "^10.1.3",
67
79
  "chai": "^4.2.0",
68
80
  "chai-as-promised": "^7.1.1",
69
81
  "cz-conventional-changelog": "^3.3.0",
70
- "eslint": "9.14.0",
71
- "eslint-config-prettier": "^9.1.0",
72
- "eslint-import-resolver-typescript": "^3.6.3",
73
- "eslint-plugin-functional": "~7.1.0",
74
- "eslint-plugin-import": "^2.31.0",
82
+ "eslint": "^9.39.2",
83
+ "eslint-config-prettier": "^10.1.8",
84
+ "eslint-import-resolver-typescript": "^4.4.4",
85
+ "eslint-plugin-functional": "^9.0.2",
86
+ "eslint-plugin-import": "^2.32.0",
75
87
  "esprima": "^4.0.1",
76
88
  "globals": "^15.12.0",
77
89
  "handlebars": "^4.7.8",
90
+ "inquirer": "^13.2.5",
78
91
  "js-yaml": "^4.1.0",
79
92
  "mocha": "^11.0.1",
80
93
  "nodemon": "^3.1.7",
81
94
  "prettier": "^3.3.3",
82
95
  "proxyquire": "^2.1.3",
83
- "sinon": "^19.0.2",
96
+ "sinon": "^21.0.1",
84
97
  "sinon-chai": "^3.5.0",
85
98
  "source-map-support": "^0.5.21",
99
+ "tmp": "^0.2.5",
86
100
  "ts-mocha": "^11.1.0",
87
101
  "ts-node": "^10.9.2",
88
102
  "tsx": "^4.19.3",
89
103
  "typescript": "5.3.3"
90
104
  },
91
105
  "dependencies": {
92
- "@aws-sdk/client-dynamodb": "^3.758.0",
93
- "@aws-sdk/client-ecs": "^3.758.0",
94
- "@aws-sdk/client-s3": "^3.758.0",
95
- "@aws-sdk/client-secrets-manager": "^3.758.0",
96
- "@aws-sdk/client-sqs": "^3.758.0",
97
- "@aws-sdk/client-ssm": "^3.759.0",
98
- "@aws-sdk/lib-dynamodb": "^3.758.0",
106
+ "@aws-sdk/client-dynamodb": "^3.992.0",
107
+ "@aws-sdk/client-ecs": "^3.992.0",
108
+ "@aws-sdk/client-s3": "^3.992.0",
109
+ "@aws-sdk/client-secrets-manager": "^3.992.0",
110
+ "@aws-sdk/client-sqs": "^3.992.0",
111
+ "@aws-sdk/client-ssm": "^3.992.0",
112
+ "@aws-sdk/lib-dynamodb": "^3.992.0",
99
113
  "@node-in-layers/core": "^1.12.5",
100
- "lodash": "^4.17.21",
114
+ "lodash": "^4.17.23",
101
115
  "modern-async": "^2.0.4"
102
116
  }
103
117
  }
package/types.d.ts CHANGED
@@ -36,7 +36,7 @@ export declare enum AwsService {
36
36
  export type AwsServices = Readonly<{
37
37
  aws3: Partial<Aws3>;
38
38
  }>;
39
- export type AwsServicesContext = Readonly<{
39
+ export type AwsServicesLayer = Readonly<{
40
40
  [AwsNamespace.root]: AwsServices;
41
41
  }>;
42
42
  export type Aws3PartialConfig = Readonly<{