@node-in-layers/aws 1.1.2 → 1.1.4

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/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/index.d.ts CHANGED
@@ -1,3 +1,5 @@
1
+ export * from './types.js';
2
+ export * from './config/types.js';
1
3
  export * from './aws/index.js';
2
4
  export * as aws from './aws/index.js';
3
5
  export * as config from './config/index.js';
package/index.js CHANGED
@@ -1,4 +1,9 @@
1
+ // Export Types
2
+ export * from './types.js';
3
+ export * from './config/types.js';
4
+ // Export default domain
1
5
  export * from './aws/index.js';
6
+ // Export named domains
2
7
  export * as aws from './aws/index.js';
3
8
  export * as config from './config/index.js';
4
9
  //# sourceMappingURL=index.js.map
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA;AAC9B,OAAO,KAAK,GAAG,MAAM,gBAAgB,CAAA;AACrC,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,eAAe;AACf,cAAc,YAAY,CAAA;AAC1B,cAAc,mBAAmB,CAAA;AAEjC,wBAAwB;AACxB,cAAc,gBAAgB,CAAA;AAE9B,uBAAuB;AACvB,OAAO,KAAK,GAAG,MAAM,gBAAgB,CAAA;AACrC,OAAO,KAAK,MAAM,MAAM,mBAAmB,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.2",
4
+ "version": "1.1.4",
5
5
  "description": "A Node In Layers Package for handling AWS.",
6
6
  "main": "index.js",
7
7
  "scripts": {
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<{