@node-in-layers/aws 1.0.3 → 1.0.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.
package/README.md CHANGED
@@ -10,7 +10,7 @@ npm install @node-in-layers/aws
10
10
 
11
11
  ## Config
12
12
 
13
- The config app provides a globals file, that will take your configuration object, see if there are parameter store and secrets manager objects in it. If there are, it will rearch out to each of those services to find and the replace them within the config.
13
+ The config app provides the ability to have configurations inside a config file that use values from Parameter store and Secrets manager. In order to do this, the config app provides a globals file, that will take your configuration object, see if there are parameter store and secrets manager objects in it. If there are, it will reach out to each of those services to find and the replace them within the config.
14
14
 
15
15
  ### How To Use
16
16
 
@@ -13,9 +13,9 @@ import { AwsNamespace } from '../types.js';
13
13
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
14
14
  const create = (context) => {
15
15
  const readSecretsInSecretsManager = (keys) => __awaiter(void 0, void 0, void 0, function* () {
16
- const secretsManager = context[AwsNamespace.root].aws3.secretsManager.secretsManagerClient;
16
+ const secretsManager = context.services[AwsNamespace.root].aws3.secretsManager.secretsManagerClient;
17
17
  const mapped = yield asyncMap(keys, (secretId) => __awaiter(void 0, void 0, void 0, function* () {
18
- const command = new context[AwsNamespace.root].aws3.secretsManager.GetSecretValueCommand({
18
+ const command = new context.services[AwsNamespace.root].aws3.secretsManager.GetSecretValueCommand({
19
19
  SecretId: secretId,
20
20
  });
21
21
  const result = yield secretsManager.send(command);
@@ -27,9 +27,9 @@ const create = (context) => {
27
27
  });
28
28
  const readParameters = (keys) => __awaiter(void 0, void 0, void 0, function* () {
29
29
  return Promise.resolve().then(() => __awaiter(void 0, void 0, void 0, function* () {
30
- const ssm = context[AwsNamespace.root].aws3.ssm.ssmClient;
30
+ const ssm = context.services[AwsNamespace.root].aws3.ssm.ssmClient;
31
31
  const mapped = yield asyncMap(keys, (key) => __awaiter(void 0, void 0, void 0, function* () {
32
- const command = new context[AwsNamespace.root].aws3.ssm.GetParameterCommand({
32
+ const command = new context.services[AwsNamespace.root].aws3.ssm.GetParameterCommand({
33
33
  Name: key,
34
34
  });
35
35
  const result = yield ssm.send(command);
@@ -1 +1 @@
1
- {"version":3,"file":"services.js","sourceRoot":"","sources":["../../src/config/services.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,KAAK,MAAM,iBAAiB,CAAA;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAEvC,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAG1C,6DAA6D;AAC7D,MAAM,MAAM,GAAG,CAAC,OAAwB,EAAqB,EAAE;IAC7D,MAAM,2BAA2B,GAAG,CAAO,IAAc,EAAE,EAAE;QAC3D,MAAM,cAAc,GAClB,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,oBAAoB,CAAA;QACrE,MAAM,MAAM,GAAG,MAAM,QAAQ,CAC3B,IAAI,EACJ,CAAM,QAAQ,EAAC,EAAE;YACf,MAAM,OAAO,GAAG,IAAI,OAAO,CACzB,YAAY,CAAC,IAAI,CAClB,CAAC,IAAI,CAAC,cAAc,CAAC,qBAAqB,CAAC;gBAC1C,QAAQ,EAAE,QAAQ;aACnB,CAAC,CAAA;YACF,MAAM,MAAM,GAAG,MAAM,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;YACjD,OAAO,CAAC,QAAQ,EAAE,MAAM,CAAC,YAAY,CAAC,CAAA;QACxC,CAAC,CAAA,EACD,CAAC,CACF,CAAA;QACD,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE,MAAM,CAAC,EAAE,EAAE;YAC1C,OAAO,KAAK,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC,CAAA;QACtC,CAAC,EAAE,EAAE,CAAC,CAAA;IACR,CAAC,CAAA,CAAA;IAED,MAAM,cAAc,GAAG,CAAO,IAAc,EA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,YAAY,CAAC,IAAI,CAClB,CAAC,IAAI,CAAC,GAAG,CAAC,mBAAmB,CAAC;oBAC7B,IAAI,EAAE,GAAG;iBACV,CAAC,CAAA;gBACF,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;gBACtC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAA;YACtC,CAAC,CAAA,EACD,CAAC,CACF,CAAA;YACD,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE,MAAM,CAAC,EAAE,EAAE;gBAC1C,OAAO,KAAK,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC,CAAA;YACtC,CAAC,EAAE,EAAE,CAAC,CAAA;QACR,CAAC,CAAA,CAAC,CAAA;IACJ,CAAC,CAAA,CAAA;IAED,OAAO;QACL,2BAA2B;QAC3B,cAAc;KACf,CAAA;AACH,CAAC,CAAA;AACD,OAAO,EAAE,MAAM,EAAE,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.0.3",
4
+ "version": "1.0.5",
5
5
  "description": "A Node In Layers Package for handling AWS.",
6
6
  "main": "index.js",
7
7
  "scripts": {