@aws-sdk/rds-signer 3.1076.0 → 3.1077.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 +2 -3
- package/dist-es/Signer.js +2 -1
- package/dist-es/runtimeConfig.browser.js +0 -2
- package/dist-es/runtimeConfig.js +0 -2
- package/dist-es/runtimeConfig.native.js +0 -2
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +3 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -1
- package/package.json +5 -7
package/dist-cjs/index.js
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
const { formatUrl } = require("@aws-sdk/core/util");
|
|
2
|
+
const { Sha256 } = require("@smithy/core/checksum");
|
|
2
3
|
const { HttpRequest } = require("@smithy/core/protocols");
|
|
3
4
|
const { SignatureV4 } = require("@smithy/signature-v4");
|
|
4
5
|
const { fromNodeProviderChain } = require("@aws-sdk/credential-providers");
|
|
5
6
|
const { loadConfig, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS } = require("@smithy/core/config");
|
|
6
|
-
const { Hash } = require("@smithy/core/serde");
|
|
7
7
|
|
|
8
8
|
const getRuntimeConfig = (config) => {
|
|
9
9
|
return {
|
|
10
10
|
runtime: "node",
|
|
11
11
|
...config,
|
|
12
|
-
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
13
12
|
credentials: config?.credentials ??
|
|
14
13
|
fromNodeProviderChain({
|
|
15
14
|
profile: config.profile,
|
|
@@ -39,7 +38,7 @@ class Signer {
|
|
|
39
38
|
this.hostname = runtimeConfiguration.hostname;
|
|
40
39
|
this.port = runtimeConfiguration.port;
|
|
41
40
|
this.region = runtimeConfiguration.region;
|
|
42
|
-
this.sha256 = runtimeConfiguration.sha256;
|
|
41
|
+
this.sha256 = runtimeConfiguration.sha256 ?? Sha256;
|
|
43
42
|
this.username = runtimeConfiguration.username;
|
|
44
43
|
}
|
|
45
44
|
async getAuthToken() {
|
package/dist-es/Signer.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { formatUrl } from "@aws-sdk/core/util";
|
|
2
|
+
import { Sha256 } from "@smithy/core/checksum";
|
|
2
3
|
import { HttpRequest } from "@smithy/core/protocols";
|
|
3
4
|
import { SignatureV4 } from "@smithy/signature-v4";
|
|
4
5
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
@@ -19,7 +20,7 @@ export class Signer {
|
|
|
19
20
|
this.hostname = runtimeConfiguration.hostname;
|
|
20
21
|
this.port = runtimeConfiguration.port;
|
|
21
22
|
this.region = runtimeConfiguration.region;
|
|
22
|
-
this.sha256 = runtimeConfiguration.sha256;
|
|
23
|
+
this.sha256 = runtimeConfiguration.sha256 ?? Sha256;
|
|
23
24
|
this.username = runtimeConfiguration.username;
|
|
24
25
|
}
|
|
25
26
|
async getAuthToken() {
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
2
1
|
import { invalidProvider } from "@smithy/core/client";
|
|
3
2
|
export const getRuntimeConfig = (config) => {
|
|
4
3
|
return {
|
|
5
4
|
runtime: "browser",
|
|
6
5
|
...config,
|
|
7
|
-
sha256: config?.sha256 ?? Sha256,
|
|
8
6
|
credentials: config?.credentials ?? invalidProvider("Credential is missing"),
|
|
9
7
|
region: config?.region ?? invalidProvider("Region is missing"),
|
|
10
8
|
};
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { fromNodeProviderChain } from "@aws-sdk/credential-providers";
|
|
2
2
|
import { loadConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@smithy/core/config";
|
|
3
|
-
import { Hash } from "@smithy/core/serde";
|
|
4
3
|
export const getRuntimeConfig = (config) => {
|
|
5
4
|
return {
|
|
6
5
|
runtime: "node",
|
|
7
6
|
...config,
|
|
8
|
-
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
9
7
|
credentials: config?.credentials ??
|
|
10
8
|
fromNodeProviderChain({
|
|
11
9
|
profile: config.profile,
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { Sha256 } from "@aws-crypto/sha256-js";
|
|
2
1
|
import { invalidProvider } from "@smithy/core/client";
|
|
3
2
|
export const getRuntimeConfig = (config) => {
|
|
4
3
|
return {
|
|
5
4
|
runtime: "react-native",
|
|
6
5
|
...config,
|
|
7
|
-
sha256: config?.sha256 ?? Sha256,
|
|
8
6
|
credentials: config?.credentials ?? invalidProvider("Credential is missing"),
|
|
9
7
|
region: config?.region ?? invalidProvider("Region is missing"),
|
|
10
8
|
};
|
|
@@ -3,11 +3,11 @@ import type { SignerConfig } from "./Signer";
|
|
|
3
3
|
* @internal
|
|
4
4
|
*/
|
|
5
5
|
export declare const getRuntimeConfig: (config: SignerConfig) => {
|
|
6
|
-
sha256: import("@smithy/types").HashConstructor;
|
|
7
6
|
credentials: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | import("@smithy/types").Provider<any>;
|
|
8
7
|
region: string | import("@smithy/types").Provider<any>;
|
|
9
8
|
hostname: string;
|
|
10
9
|
port: number;
|
|
10
|
+
sha256?: import("@smithy/types").ChecksumConstructor | import("@smithy/types").HashConstructor;
|
|
11
11
|
username: string;
|
|
12
12
|
profile?: string;
|
|
13
13
|
runtime: string;
|
|
@@ -3,11 +3,11 @@ import type { SignerConfig } from "./Signer";
|
|
|
3
3
|
* @internal
|
|
4
4
|
*/
|
|
5
5
|
export declare const getRuntimeConfig: (config: SignerConfig) => {
|
|
6
|
-
sha256: import("@smithy/types").HashConstructor;
|
|
7
6
|
credentials: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider;
|
|
8
7
|
region: string | import("@smithy/types").Provider<string>;
|
|
9
8
|
hostname: string;
|
|
10
9
|
port: number;
|
|
10
|
+
sha256?: import("@smithy/types").ChecksumConstructor | import("@smithy/types").HashConstructor;
|
|
11
11
|
username: string;
|
|
12
12
|
profile?: string;
|
|
13
13
|
runtime: string;
|
|
@@ -3,11 +3,11 @@ import type { SignerConfig } from "./Signer";
|
|
|
3
3
|
* @internal
|
|
4
4
|
*/
|
|
5
5
|
export declare const getRuntimeConfig: (config: SignerConfig) => {
|
|
6
|
-
sha256: import("@smithy/types").HashConstructor;
|
|
7
6
|
credentials: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | import("@smithy/types").Provider<any>;
|
|
8
7
|
region: string | import("@smithy/types").Provider<any>;
|
|
9
8
|
hostname: string;
|
|
10
9
|
port: number;
|
|
10
|
+
sha256?: import("@smithy/types").ChecksumConstructor | import("@smithy/types").HashConstructor;
|
|
11
11
|
username: string;
|
|
12
12
|
profile?: string;
|
|
13
13
|
runtime: string;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { SignerConfig } from "./Signer";
|
|
2
2
|
export declare const getRuntimeConfig: (config: SignerConfig) => {
|
|
3
|
-
sha256: import("@smithy/types").HashConstructor;
|
|
4
3
|
credentials:
|
|
5
4
|
| import("@smithy/types").AwsCredentialIdentity
|
|
6
5
|
| import("@smithy/types").AwsCredentialIdentityProvider
|
|
@@ -8,6 +7,9 @@ export declare const getRuntimeConfig: (config: SignerConfig) => {
|
|
|
8
7
|
region: string | import("@smithy/types").Provider<any>;
|
|
9
8
|
hostname: string;
|
|
10
9
|
port: number;
|
|
10
|
+
sha256?:
|
|
11
|
+
| import("@smithy/types").ChecksumConstructor
|
|
12
|
+
| import("@smithy/types").HashConstructor;
|
|
11
13
|
username: string;
|
|
12
14
|
profile?: string;
|
|
13
15
|
runtime: string;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { SignerConfig } from "./Signer";
|
|
2
2
|
export declare const getRuntimeConfig: (config: SignerConfig) => {
|
|
3
|
-
sha256: import("@smithy/types").HashConstructor;
|
|
4
3
|
credentials:
|
|
5
4
|
| import("@smithy/types").AwsCredentialIdentity
|
|
6
5
|
| import("@smithy/types").AwsCredentialIdentityProvider;
|
|
7
6
|
region: string | import("@smithy/types").Provider<string>;
|
|
8
7
|
hostname: string;
|
|
9
8
|
port: number;
|
|
9
|
+
sha256?:
|
|
10
|
+
| import("@smithy/types").ChecksumConstructor
|
|
11
|
+
| import("@smithy/types").HashConstructor;
|
|
10
12
|
username: string;
|
|
11
13
|
profile?: string;
|
|
12
14
|
runtime: string;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { SignerConfig } from "./Signer";
|
|
2
2
|
export declare const getRuntimeConfig: (config: SignerConfig) => {
|
|
3
|
-
sha256: import("@smithy/types").HashConstructor;
|
|
4
3
|
credentials:
|
|
5
4
|
| import("@smithy/types").AwsCredentialIdentity
|
|
6
5
|
| import("@smithy/types").AwsCredentialIdentityProvider
|
|
@@ -8,6 +7,9 @@ export declare const getRuntimeConfig: (config: SignerConfig) => {
|
|
|
8
7
|
region: string | import("@smithy/types").Provider<any>;
|
|
9
8
|
hostname: string;
|
|
10
9
|
port: number;
|
|
10
|
+
sha256?:
|
|
11
|
+
| import("@smithy/types").ChecksumConstructor
|
|
12
|
+
| import("@smithy/types").HashConstructor;
|
|
11
13
|
username: string;
|
|
12
14
|
profile?: string;
|
|
13
15
|
runtime: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/rds-signer",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1077.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",
|
|
@@ -29,12 +29,10 @@
|
|
|
29
29
|
},
|
|
30
30
|
"license": "Apache-2.0",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@aws-
|
|
33
|
-
"@aws-
|
|
34
|
-
"@
|
|
35
|
-
"@
|
|
36
|
-
"@smithy/core": "^3.27.0",
|
|
37
|
-
"@smithy/signature-v4": "^5.5.3",
|
|
32
|
+
"@aws-sdk/core": "^3.974.25",
|
|
33
|
+
"@aws-sdk/credential-providers": "3.1077.0",
|
|
34
|
+
"@smithy/core": "^3.28.0",
|
|
35
|
+
"@smithy/signature-v4": "^5.6.0",
|
|
38
36
|
"@smithy/types": "^4.15.0",
|
|
39
37
|
"tslib": "^2.6.2"
|
|
40
38
|
},
|