@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 +8 -7
- package/config/types.js +1 -0
- package/config/types.js.map +1 -1
- package/index.d.ts +2 -0
- package/index.js +5 -0
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/types.d.ts +1 -1
package/config/types.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
7
|
+
[AwsNamespace.config]: AwsConfigServices;
|
|
4
8
|
}>;
|
|
5
9
|
type AwsConfigFeatures = Readonly<object>;
|
|
6
10
|
type AwsConfigFeaturesLayer = Readonly<{
|
|
7
|
-
|
|
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,
|
|
43
|
+
export { AwsConfigServices, AwsConfigServicesLayer, AwsConfigFeatures, AwsConfigFeaturesLayer, AwsEntriesToReplace, AwsEntryKey, AwsEntryType, ParameterStoreToReplace, SecretsToReplace, };
|
package/config/types.js
CHANGED
package/config/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/config/types.ts"],"names":[],"mappings":"
|
|
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
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;
|
|
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
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
|
|
39
|
+
export type AwsServicesLayer = Readonly<{
|
|
40
40
|
[AwsNamespace.root]: AwsServices;
|
|
41
41
|
}>;
|
|
42
42
|
export type Aws3PartialConfig = Readonly<{
|