@aws-sdk/middleware-sdk-rds 3.758.0 → 3.775.0
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 +7 -9
- package/package.json +7 -7
package/dist-cjs/index.js
CHANGED
|
@@ -19,13 +19,13 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
19
19
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
20
|
|
|
21
21
|
// src/index.ts
|
|
22
|
-
var
|
|
23
|
-
__export(
|
|
22
|
+
var index_exports = {};
|
|
23
|
+
__export(index_exports, {
|
|
24
24
|
crossRegionPresignedUrlMiddleware: () => crossRegionPresignedUrlMiddleware,
|
|
25
25
|
crossRegionPresignedUrlMiddlewareOptions: () => crossRegionPresignedUrlMiddlewareOptions,
|
|
26
26
|
getCrossRegionPresignedUrlPlugin: () => getCrossRegionPresignedUrlPlugin
|
|
27
27
|
});
|
|
28
|
-
module.exports = __toCommonJS(
|
|
28
|
+
module.exports = __toCommonJS(index_exports);
|
|
29
29
|
var import_util_format_url = require("@aws-sdk/util-format-url");
|
|
30
30
|
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
31
31
|
var import_protocol_http = require("@smithy/protocol-http");
|
|
@@ -47,8 +47,7 @@ function crossRegionPresignedUrlMiddleware(options) {
|
|
|
47
47
|
const sourceIdKey = Object.keys(sourceIdToCommandKeyMap).filter(
|
|
48
48
|
(sourceKeyId) => input.hasOwnProperty(sourceKeyId)
|
|
49
49
|
)[0];
|
|
50
|
-
if (!sourceIdKey)
|
|
51
|
-
return next(args);
|
|
50
|
+
if (!sourceIdKey) return next(args);
|
|
52
51
|
const command = sourceIdToCommandKeyMap[sourceIdKey];
|
|
53
52
|
if (!input.PreSignedUrl && isARN(input[sourceIdKey]) && region !== getEndpointFromARN(input[sourceIdKey])) {
|
|
54
53
|
const sourceRegion = getEndpointFromARN(input[sourceIdKey]);
|
|
@@ -104,13 +103,12 @@ var crossRegionPresignedUrlMiddlewareOptions = {
|
|
|
104
103
|
toMiddleware: "endpointV2Middleware"
|
|
105
104
|
};
|
|
106
105
|
var getCrossRegionPresignedUrlPlugin = /* @__PURE__ */ __name((config) => ({
|
|
107
|
-
applyToStack: (clientStack) => {
|
|
106
|
+
applyToStack: /* @__PURE__ */ __name((clientStack) => {
|
|
108
107
|
clientStack.addRelativeTo(crossRegionPresignedUrlMiddleware(config), crossRegionPresignedUrlMiddlewareOptions);
|
|
109
|
-
}
|
|
108
|
+
}, "applyToStack")
|
|
110
109
|
}), "getCrossRegionPresignedUrlPlugin");
|
|
111
110
|
function isARN(id) {
|
|
112
|
-
if (!id)
|
|
113
|
-
return false;
|
|
111
|
+
if (!id) return false;
|
|
114
112
|
return regARN.test(id);
|
|
115
113
|
}
|
|
116
114
|
__name(isARN, "isARN");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-sdk-rds",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.775.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline middleware-sdk-rds",
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@aws-sdk/types": "3.
|
|
27
|
-
"@aws-sdk/util-format-url": "3.
|
|
28
|
-
"@smithy/middleware-endpoint": "^4.0
|
|
29
|
-
"@smithy/protocol-http": "^5.0
|
|
30
|
-
"@smithy/signature-v4": "^5.0.
|
|
31
|
-
"@smithy/types": "^4.
|
|
26
|
+
"@aws-sdk/types": "3.775.0",
|
|
27
|
+
"@aws-sdk/util-format-url": "3.775.0",
|
|
28
|
+
"@smithy/middleware-endpoint": "^4.1.0",
|
|
29
|
+
"@smithy/protocol-http": "^5.1.0",
|
|
30
|
+
"@smithy/signature-v4": "^5.0.2",
|
|
31
|
+
"@smithy/types": "^4.2.0",
|
|
32
32
|
"tslib": "^2.6.2"
|
|
33
33
|
},
|
|
34
34
|
"engines": {
|