ac-awssecrets 2.3.1 → 2.3.2

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/index.js +2 -1
  3. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ <a name="2.3.2"></a>
2
+
3
+ ## [2.3.2](https://github.com/admiralcloud/ac-awssecrets/compare/v2.3.1..v2.3.2) (2024-08-17 11:07:03)
4
+
5
+
6
+ ### Bug Fix
7
+
8
+ * **App:** Add option to throw error | MP | [ad5cac4088a0f6c921843662d600e6afdb5231c0](https://github.com/admiralcloud/ac-awssecrets/commit/ad5cac4088a0f6c921843662d600e6afdb5231c0)
9
+ Errors from AWS are caught and logged. With the new throwError option you can throw the error.
10
+ Related issues: [undefined/undefined#master](undefined/browse/master)
1
11
  <a name="2.3.1"></a>
2
12
 
3
13
  ## [2.3.1](https://github.com/admiralcloud/ac-awssecrets/compare/v2.3.0..v2.3.1) (2024-08-17 10:57:27)
package/index.js CHANGED
@@ -79,7 +79,7 @@ const awsSecrets = () => {
79
79
 
80
80
 
81
81
 
82
- const loadSecretParameters = async({ secretParameters = [], config = {}, testMode = 0, debug = false, region = 'eu-central-1' } = {}) => {
82
+ const loadSecretParameters = async({ secretParameters = [], config = {}, testMode = 0, debug = false, throwError = false, region = 'eu-central-1' } = {}) => {
83
83
  const environment = config?.environment || process.env.NODE_ENV || 'development'
84
84
 
85
85
  const awsConfig = {
@@ -120,6 +120,7 @@ const awsSecrets = () => {
120
120
  }
121
121
  catch (e) {
122
122
  console.error('%s | %s | %s', functionName, parameterName, e?.message)
123
+ if (throwError) throw e
123
124
  }
124
125
  }
125
126
 
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "author": "Mark Poepping (https://www.admiralcloud.com)",
4
4
  "license": "MIT",
5
5
  "repository": "admiralcloud/ac-awssecrets",
6
- "version": "2.3.1",
6
+ "version": "2.3.2",
7
7
  "dependencies": {
8
8
  "@aws-sdk/client-secrets-manager": "^3.632.0",
9
9
  "@aws-sdk/client-ssm": "^3.632.0"