@middy/rds-signer 4.6.0 → 4.6.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/index.cjs +1 -0
  2. package/index.js +1 -0
  3. package/package.json +4 -4
package/index.cjs CHANGED
@@ -34,6 +34,7 @@ const rdsSignerMiddleware = (opts = {})=>{
34
34
  ...options.fetchData[internalKey]
35
35
  });
36
36
  values[internalKey] = client.getAuthToken().then((token)=>{
37
+ // Catch Missing token, this usually means their is something wrong with the credentials
37
38
  if (!token.includes('X-Amz-Security-Token=')) {
38
39
  throw new Error('[rds-signer] X-Amz-Security-Token Missing');
39
40
  }
package/index.js CHANGED
@@ -24,6 +24,7 @@ const rdsSignerMiddleware = (opts = {})=>{
24
24
  ...options.fetchData[internalKey]
25
25
  });
26
26
  values[internalKey] = client.getAuthToken().then((token)=>{
27
+ // Catch Missing token, this usually means their is something wrong with the credentials
27
28
  if (!token.includes('X-Amz-Security-Token=')) {
28
29
  throw new Error('[rds-signer] X-Amz-Security-Token Missing');
29
30
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@middy/rds-signer",
3
- "version": "4.6.0",
3
+ "version": "4.6.2",
4
4
  "description": "RDS (Relational Database Service) credentials middleware for the middy framework",
5
5
  "type": "module",
6
6
  "engines": {
@@ -66,13 +66,13 @@
66
66
  "url": "https://github.com/sponsors/willfarrell"
67
67
  },
68
68
  "dependencies": {
69
- "@middy/util": "4.6.0"
69
+ "@middy/util": "4.6.2"
70
70
  },
71
71
  "devDependencies": {
72
72
  "@aws-sdk/rds-signer": "^3.0.0",
73
- "@middy/core": "4.6.0",
73
+ "@middy/core": "4.6.2",
74
74
  "@types/node": "^20.0.0",
75
75
  "aws-xray-sdk": "^3.3.3"
76
76
  },
77
- "gitHead": "34e52521a81a224e3d97de6171604c49e676f0d4"
77
+ "gitHead": "8b03a01abf5a9c08231ec5ced775e87f8be8f67d"
78
78
  }