@aws-sdk/middleware-sdk-rds 3.972.64 → 3.972.66

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/dist-cjs/index.js CHANGED
@@ -17,8 +17,9 @@ function crossRegionPresignedUrlMiddleware(options) {
17
17
  const { input } = args;
18
18
  const region = await options.region();
19
19
  const sourceIdKey = Object.keys(sourceIdToCommandKeyMap).filter((sourceKeyId) => input.hasOwnProperty(sourceKeyId))[0];
20
- if (!sourceIdKey)
20
+ if (!sourceIdKey) {
21
21
  return next(args);
22
+ }
22
23
  const command = sourceIdToCommandKeyMap[sourceIdKey];
23
24
  if (!input.PreSignedUrl && isARN(input[sourceIdKey]) && region !== getEndpointFromARN(input[sourceIdKey])) {
24
25
  const sourceRegion = getEndpointFromARN(input[sourceIdKey]);
@@ -79,8 +80,9 @@ const getCrossRegionPresignedUrlPlugin = (config) => ({
79
80
  },
80
81
  });
81
82
  function isARN(id) {
82
- if (!id)
83
+ if (!id) {
83
84
  return false;
85
+ }
84
86
  return regARN.test(id);
85
87
  }
86
88
  function getEndpointFromARN(arn) {
package/dist-es/index.js CHANGED
@@ -16,8 +16,9 @@ export function crossRegionPresignedUrlMiddleware(options) {
16
16
  const { input } = args;
17
17
  const region = await options.region();
18
18
  const sourceIdKey = Object.keys(sourceIdToCommandKeyMap).filter((sourceKeyId) => input.hasOwnProperty(sourceKeyId))[0];
19
- if (!sourceIdKey)
19
+ if (!sourceIdKey) {
20
20
  return next(args);
21
+ }
21
22
  const command = sourceIdToCommandKeyMap[sourceIdKey];
22
23
  if (!input.PreSignedUrl && isARN(input[sourceIdKey]) && region !== getEndpointFromARN(input[sourceIdKey])) {
23
24
  const sourceRegion = getEndpointFromARN(input[sourceIdKey]);
@@ -78,8 +79,9 @@ export const getCrossRegionPresignedUrlPlugin = (config) => ({
78
79
  },
79
80
  });
80
81
  function isARN(id) {
81
- if (!id)
82
+ if (!id) {
82
83
  return false;
84
+ }
83
85
  return regARN.test(id);
84
86
  }
85
87
  function getEndpointFromARN(arn) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-sdk-rds",
3
- "version": "3.972.64",
3
+ "version": "3.972.66",
4
4
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages-internal/middleware-sdk-rds",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -40,9 +40,9 @@
40
40
  "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts"
41
41
  },
42
42
  "dependencies": {
43
- "@aws-sdk/core": "^3.978.5",
43
+ "@aws-sdk/core": "^3.978.7",
44
44
  "@aws-sdk/types": "^3.975.0",
45
- "@smithy/core": "^3.36.1",
45
+ "@smithy/core": "^3.37.0",
46
46
  "@smithy/signature-v4": "^5.7.4",
47
47
  "@smithy/types": "^4.19.0",
48
48
  "tslib": "^2.6.2"