@middy/rds-signer 7.1.0 → 7.1.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.
package/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  <div align="center">
2
- <h1>Middy rds-signer middleware</h1>
2
+ <h1>Middy `rds-signer` middleware</h1>
3
3
  <img alt="Middy logo" src="https://raw.githubusercontent.com/middyjs/middy/main/docs/img/middy-logo.svg"/>
4
4
  <p><strong>RDS Signer middleware for the middy framework, the stylish Node.js middleware engine for AWS Lambda</strong></p>
5
5
  <p>
package/index.d.ts CHANGED
@@ -5,6 +5,9 @@ import type middy from "@middy/core";
5
5
  import type { Options as MiddyOptions } from "@middy/util";
6
6
  import type { Context as LambdaContext } from "aws-lambda";
7
7
 
8
+ export type ParamType<T> = string & { __returnType?: T };
9
+ export declare function rdsSignerParam<T>(name: string): ParamType<T>;
10
+
8
11
  export type RdsSignerOptions<AwsSigner = Signer> = Omit<
9
12
  MiddyOptions<AwsSigner, SignerConfig>,
10
13
  "fetchData"
package/index.js CHANGED
@@ -35,7 +35,7 @@ const rdsSignerMiddleware = (opts = {}) => {
35
35
  values[internalKey] = client
36
36
  .getAuthToken()
37
37
  .then((token) => {
38
- // Catch Missing token, this usually means their is something wrong with the credentials
38
+ // Catch Missing token, this usually means there is something wrong with the credentials
39
39
  if (!token.includes("X-Amz-Security-Token=")) {
40
40
  throw new Error("X-Amz-Security-Token Missing", {
41
41
  cause: { package: "@middy/rds-signer" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@middy/rds-signer",
3
- "version": "7.1.0",
3
+ "version": "7.1.2",
4
4
  "description": "RDS (Relational Database Service) credentials middleware for the middy framework",
5
5
  "type": "module",
6
6
  "engines": {
@@ -74,9 +74,13 @@
74
74
  },
75
75
  "devDependencies": {
76
76
  "@aws-sdk/rds-signer": "^3.0.0",
77
- "@types/aws-lambda": "^8.10.101",
77
+ "@middy/core": "7.1.2",
78
+ "@types/aws-lambda": "^8.0.0",
78
79
  "@types/node": "^22.0.0",
79
80
  "aws-xray-sdk": "^3.3.3"
80
81
  },
82
+ "dependencies": {
83
+ "@middy/util": "7.1.2"
84
+ },
81
85
  "gitHead": "7a6c0fbb8ab71d6a2171e678697de9f237568431"
82
86
  }