@aws-sdk/middleware-sdk-rds 3.972.34 → 3.972.36

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 (2) hide show
  1. package/dist-cjs/index.js +8 -10
  2. package/package.json +6 -6
package/dist-cjs/index.js CHANGED
@@ -1,9 +1,7 @@
1
- 'use strict';
2
-
3
- var util = require('@aws-sdk/core/util');
4
- var endpoints = require('@smithy/core/endpoints');
5
- var protocols = require('@smithy/core/protocols');
6
- var signatureV4 = require('@smithy/signature-v4');
1
+ const { formatUrl } = require("@aws-sdk/core/util");
2
+ const { toEndpointV1 } = require("@smithy/core/endpoints");
3
+ const { HttpRequest } = require("@smithy/core/protocols");
4
+ const { SignatureV4 } = require("@smithy/signature-v4");
7
5
 
8
6
  const regARN = /arn:[\w+=/,.@-]+:[\w+=/,.@-]+:([\w+=/,.@-]*)?:[0-9]+:[\w+=/,.@-]+(:[\w+=/,.@-]+)?(:[\w+=/,.@-]+)?/;
9
7
  const sourceIdToCommandKeyMap = {
@@ -29,10 +27,10 @@ function crossRegionPresignedUrlMiddleware(options) {
29
27
  resolvedEndpoint = await options.endpoint();
30
28
  }
31
29
  else {
32
- resolvedEndpoint = endpoints.toEndpointV1(context.endpointV2);
30
+ resolvedEndpoint = toEndpointV1(context.endpointV2);
33
31
  }
34
32
  resolvedEndpoint.hostname = `rds.${sourceRegion}.amazonaws.com`;
35
- const request = new protocols.HttpRequest({
33
+ const request = new HttpRequest({
36
34
  ...resolvedEndpoint,
37
35
  protocol: "https",
38
36
  headers: {
@@ -46,7 +44,7 @@ function crossRegionPresignedUrlMiddleware(options) {
46
44
  [sourceIdKey]: input[sourceIdKey],
47
45
  },
48
46
  });
49
- const signer = new signatureV4.SignatureV4({
47
+ const signer = new SignatureV4({
50
48
  credentials: options.credentials,
51
49
  region: sourceRegion,
52
50
  service: "rds",
@@ -60,7 +58,7 @@ function crossRegionPresignedUrlMiddleware(options) {
60
58
  ...args,
61
59
  input: {
62
60
  ...args.input,
63
- PreSignedUrl: util.formatUrl(presignedRequest),
61
+ PreSignedUrl: formatUrl(presignedRequest),
64
62
  },
65
63
  };
66
64
  }
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-sdk-rds",
3
- "version": "3.972.34",
3
+ "version": "3.972.36",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
6
6
  "build:cjs": "node ../../scripts/compilation/inline",
7
- "build:es": "tsc -p tsconfig.es.json",
7
+ "build:es": "premove dist-es && tsc -p tsconfig.es.json",
8
8
  "build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
9
- "build:types": "tsc -p tsconfig.types.json",
9
+ "build:types": "premove dist-types && tsc -p tsconfig.types.json",
10
10
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
11
- "clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
11
+ "clean": "premove dist-cjs dist-es dist-types",
12
12
  "test": "yarn g:vitest run",
13
13
  "test:watch": "yarn g:vitest watch",
14
14
  "test:integration": "yarn g:vitest run -c vitest.config.integ.mts",
@@ -24,8 +24,8 @@
24
24
  },
25
25
  "license": "Apache-2.0",
26
26
  "dependencies": {
27
- "@aws-sdk/core": "^3.974.20",
28
- "@aws-sdk/types": "^3.973.12",
27
+ "@aws-sdk/core": "^3.974.22",
28
+ "@aws-sdk/types": "^3.973.13",
29
29
  "@smithy/core": "^3.24.6",
30
30
  "@smithy/signature-v4": "^5.4.6",
31
31
  "@smithy/types": "^4.14.3",