@aws-sdk/rds-signer 3.1074.0 → 3.1076.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
CHANGED
|
@@ -1,7 +1,26 @@
|
|
|
1
1
|
const { formatUrl } = require("@aws-sdk/core/util");
|
|
2
2
|
const { HttpRequest } = require("@smithy/core/protocols");
|
|
3
3
|
const { SignatureV4 } = require("@smithy/signature-v4");
|
|
4
|
-
const {
|
|
4
|
+
const { fromNodeProviderChain } = require("@aws-sdk/credential-providers");
|
|
5
|
+
const { loadConfig, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS } = require("@smithy/core/config");
|
|
6
|
+
const { Hash } = require("@smithy/core/serde");
|
|
7
|
+
|
|
8
|
+
const getRuntimeConfig = (config) => {
|
|
9
|
+
return {
|
|
10
|
+
runtime: "node",
|
|
11
|
+
...config,
|
|
12
|
+
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
13
|
+
credentials: config?.credentials ??
|
|
14
|
+
fromNodeProviderChain({
|
|
15
|
+
profile: config.profile,
|
|
16
|
+
}),
|
|
17
|
+
region: config?.region ??
|
|
18
|
+
loadConfig(NODE_REGION_CONFIG_OPTIONS, {
|
|
19
|
+
...NODE_REGION_CONFIG_FILE_OPTIONS,
|
|
20
|
+
profile: config.profile,
|
|
21
|
+
}),
|
|
22
|
+
};
|
|
23
|
+
};
|
|
5
24
|
|
|
6
25
|
const MINUTE_MS = 60_000;
|
|
7
26
|
class Signer {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/rds-signer",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1076.0",
|
|
4
4
|
"description": "RDS utility for generating a password that can be used for IAM authentication to an RDS DB.",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -31,15 +31,15 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
33
33
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
34
|
-
"@aws-sdk/core": "^3.974.
|
|
35
|
-
"@aws-sdk/credential-providers": "3.
|
|
36
|
-
"@smithy/core": "^3.
|
|
37
|
-
"@smithy/signature-v4": "^5.
|
|
38
|
-
"@smithy/types": "^4.
|
|
34
|
+
"@aws-sdk/core": "^3.974.24",
|
|
35
|
+
"@aws-sdk/credential-providers": "3.1076.0",
|
|
36
|
+
"@smithy/core": "^3.27.0",
|
|
37
|
+
"@smithy/signature-v4": "^5.5.3",
|
|
38
|
+
"@smithy/types": "^4.15.0",
|
|
39
39
|
"tslib": "^2.6.2"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@aws-sdk/types": "^3.973.
|
|
42
|
+
"@aws-sdk/types": "^3.973.14",
|
|
43
43
|
"@types/node": "^20.14.8",
|
|
44
44
|
"concurrently": "7.0.0",
|
|
45
45
|
"downlevel-dts": "0.10.1",
|
|
@@ -60,8 +60,7 @@
|
|
|
60
60
|
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
|
|
61
61
|
},
|
|
62
62
|
"react-native": {
|
|
63
|
-
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
|
|
64
|
-
"./dist-cjs/runtimeConfig": "./dist-cjs/runtimeConfig.native"
|
|
63
|
+
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
|
|
65
64
|
},
|
|
66
65
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/rds-signer",
|
|
67
66
|
"repository": {
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
const { Sha256 } = require("@aws-crypto/sha256-browser");
|
|
2
|
-
const { invalidProvider } = require("@smithy/core/client");
|
|
3
|
-
exports.getRuntimeConfig = (config) => {
|
|
4
|
-
return {
|
|
5
|
-
runtime: "browser",
|
|
6
|
-
...config,
|
|
7
|
-
sha256: config?.sha256 ?? Sha256,
|
|
8
|
-
credentials: config?.credentials ?? invalidProvider("Credential is missing"),
|
|
9
|
-
region: config?.region ?? invalidProvider("Region is missing"),
|
|
10
|
-
};
|
|
11
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
const { fromNodeProviderChain } = require("@aws-sdk/credential-providers");
|
|
2
|
-
const { loadConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } = require("@smithy/core/config");
|
|
3
|
-
const { Hash } = require("@smithy/core/serde");
|
|
4
|
-
exports.getRuntimeConfig = (config) => {
|
|
5
|
-
return {
|
|
6
|
-
runtime: "node",
|
|
7
|
-
...config,
|
|
8
|
-
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
9
|
-
credentials: config?.credentials ??
|
|
10
|
-
fromNodeProviderChain({
|
|
11
|
-
profile: config.profile,
|
|
12
|
-
}),
|
|
13
|
-
region: config?.region ??
|
|
14
|
-
loadConfig(NODE_REGION_CONFIG_OPTIONS, {
|
|
15
|
-
...NODE_REGION_CONFIG_FILE_OPTIONS,
|
|
16
|
-
profile: config.profile,
|
|
17
|
-
}),
|
|
18
|
-
};
|
|
19
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
const { Sha256 } = require("@aws-crypto/sha256-js");
|
|
2
|
-
const { invalidProvider } = require("@smithy/core/client");
|
|
3
|
-
exports.getRuntimeConfig = (config) => {
|
|
4
|
-
return {
|
|
5
|
-
runtime: "react-native",
|
|
6
|
-
...config,
|
|
7
|
-
sha256: config?.sha256 ?? Sha256,
|
|
8
|
-
credentials: config?.credentials ?? invalidProvider("Credential is missing"),
|
|
9
|
-
region: config?.region ?? invalidProvider("Region is missing"),
|
|
10
|
-
};
|
|
11
|
-
};
|