@aws-sdk/rds-signer 3.835.0 → 3.840.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.
@@ -8,6 +8,7 @@ const node_config_provider_1 = require("@smithy/node-config-provider");
8
8
  const getRuntimeConfig = (config) => {
9
9
  return {
10
10
  runtime: "node",
11
+ ...config,
11
12
  sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
12
13
  credentials: config?.credentials ??
13
14
  (0, credential_providers_1.fromNodeProviderChain)({
@@ -18,7 +19,6 @@ const getRuntimeConfig = (config) => {
18
19
  ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS,
19
20
  profile: config.profile,
20
21
  }),
21
- ...config,
22
22
  };
23
23
  };
24
24
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -6,10 +6,10 @@ const invalid_dependency_1 = require("@smithy/invalid-dependency");
6
6
  const getRuntimeConfig = (config) => {
7
7
  return {
8
8
  runtime: "react-native",
9
- sha256: config?.sha256 ?? sha256_js_1.Sha256,
10
- credentials: (0, invalid_dependency_1.invalidProvider)("Credential is missing"),
11
- region: (0, invalid_dependency_1.invalidProvider)("Region is missing"),
12
9
  ...config,
10
+ sha256: config?.sha256 ?? sha256_js_1.Sha256,
11
+ credentials: config?.credentials ?? (0, invalid_dependency_1.invalidProvider)("Credential is missing"),
12
+ region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
13
13
  };
14
14
  };
15
15
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -3,9 +3,9 @@ import { invalidProvider } from "@smithy/invalid-dependency";
3
3
  export const getRuntimeConfig = (config) => {
4
4
  return {
5
5
  runtime: "browser",
6
- sha256: config?.sha256 ?? Sha256,
7
- credentials: invalidProvider("Credential is missing"),
8
- region: invalidProvider("Region is missing"),
9
6
  ...config,
7
+ sha256: config?.sha256 ?? Sha256,
8
+ credentials: config?.credentials ?? invalidProvider("Credential is missing"),
9
+ region: config?.region ?? invalidProvider("Region is missing"),
10
10
  };
11
11
  };
@@ -5,6 +5,7 @@ import { loadConfig } from "@smithy/node-config-provider";
5
5
  export const getRuntimeConfig = (config) => {
6
6
  return {
7
7
  runtime: "node",
8
+ ...config,
8
9
  sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
9
10
  credentials: config?.credentials ??
10
11
  fromNodeProviderChain({
@@ -15,6 +16,5 @@ export const getRuntimeConfig = (config) => {
15
16
  ...NODE_REGION_CONFIG_FILE_OPTIONS,
16
17
  profile: config.profile,
17
18
  }),
18
- ...config,
19
19
  };
20
20
  };
@@ -3,9 +3,9 @@ import { invalidProvider } from "@smithy/invalid-dependency";
3
3
  export const getRuntimeConfig = (config) => {
4
4
  return {
5
5
  runtime: "react-native",
6
- sha256: config?.sha256 ?? Sha256,
7
- credentials: invalidProvider("Credential is missing"),
8
- region: invalidProvider("Region is missing"),
9
6
  ...config,
7
+ sha256: config?.sha256 ?? Sha256,
8
+ credentials: config?.credentials ?? invalidProvider("Credential is missing"),
9
+ region: config?.region ?? invalidProvider("Region is missing"),
10
10
  };
11
11
  };
@@ -1,13 +1,13 @@
1
- import { SignerConfig } from "./Signer";
1
+ import type { SignerConfig } from "./Signer";
2
2
  /**
3
3
  * @internal
4
4
  */
5
5
  export declare const getRuntimeConfig: (config: SignerConfig) => {
6
+ sha256: import("@smithy/types").HashConstructor;
6
7
  credentials: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | import("@smithy/types").Provider<any>;
8
+ region: string | import("@smithy/types").Provider<any>;
7
9
  hostname: string;
8
10
  port: number;
9
- region: string | import("@smithy/types").Provider<any>;
10
- sha256: import("@smithy/types").HashConstructor;
11
11
  username: string;
12
12
  profile?: string;
13
13
  runtime: string;
@@ -1,13 +1,13 @@
1
- import { SignerConfig } from "./Signer";
1
+ import type { SignerConfig } from "./Signer";
2
2
  /**
3
3
  * @internal
4
4
  */
5
5
  export declare const getRuntimeConfig: (config: SignerConfig) => {
6
+ sha256: import("@smithy/types").HashConstructor;
6
7
  credentials: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider;
8
+ region: string | import("@smithy/types").Provider<string>;
7
9
  hostname: string;
8
10
  port: number;
9
- region: string | import("@smithy/types").Provider<string>;
10
- sha256: import("@smithy/types").HashConstructor;
11
11
  username: string;
12
12
  profile?: string;
13
13
  runtime: string;
@@ -1,13 +1,13 @@
1
- import { SignerConfig } from "./Signer";
1
+ import type { SignerConfig } from "./Signer";
2
2
  /**
3
3
  * @internal
4
4
  */
5
5
  export declare const getRuntimeConfig: (config: SignerConfig) => {
6
+ sha256: import("@smithy/types").HashConstructor;
6
7
  credentials: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | import("@smithy/types").Provider<any>;
8
+ region: string | import("@smithy/types").Provider<any>;
7
9
  hostname: string;
8
10
  port: number;
9
- region: string | import("@smithy/types").Provider<any>;
10
- sha256: import("@smithy/types").HashConstructor;
11
11
  username: string;
12
12
  profile?: string;
13
13
  runtime: string;
@@ -1,13 +1,13 @@
1
1
  import { SignerConfig } from "./Signer";
2
2
  export declare const getRuntimeConfig: (config: SignerConfig) => {
3
+ sha256: import("@smithy/types").HashConstructor;
3
4
  credentials:
4
5
  | import("@smithy/types").AwsCredentialIdentity
5
6
  | import("@smithy/types").AwsCredentialIdentityProvider
6
7
  | import("@smithy/types").Provider<any>;
8
+ region: string | import("@smithy/types").Provider<any>;
7
9
  hostname: string;
8
10
  port: number;
9
- region: string | import("@smithy/types").Provider<any>;
10
- sha256: import("@smithy/types").HashConstructor;
11
11
  username: string;
12
12
  profile?: string;
13
13
  runtime: string;
@@ -1,12 +1,12 @@
1
1
  import { SignerConfig } from "./Signer";
2
2
  export declare const getRuntimeConfig: (config: SignerConfig) => {
3
+ sha256: import("@smithy/types").HashConstructor;
3
4
  credentials:
4
5
  | import("@smithy/types").AwsCredentialIdentity
5
6
  | import("@smithy/types").AwsCredentialIdentityProvider;
7
+ region: string | import("@smithy/types").Provider<string>;
6
8
  hostname: string;
7
9
  port: number;
8
- region: string | import("@smithy/types").Provider<string>;
9
- sha256: import("@smithy/types").HashConstructor;
10
10
  username: string;
11
11
  profile?: string;
12
12
  runtime: string;
@@ -1,13 +1,13 @@
1
1
  import { SignerConfig } from "./Signer";
2
2
  export declare const getRuntimeConfig: (config: SignerConfig) => {
3
+ sha256: import("@smithy/types").HashConstructor;
3
4
  credentials:
4
5
  | import("@smithy/types").AwsCredentialIdentity
5
6
  | import("@smithy/types").AwsCredentialIdentityProvider
6
7
  | import("@smithy/types").Provider<any>;
8
+ region: string | import("@smithy/types").Provider<any>;
7
9
  hostname: string;
8
10
  port: number;
9
- region: string | import("@smithy/types").Provider<any>;
10
- sha256: import("@smithy/types").HashConstructor;
11
11
  username: string;
12
12
  profile?: string;
13
13
  runtime: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/rds-signer",
3
- "version": "3.835.0",
3
+ "version": "3.840.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",
@@ -28,8 +28,8 @@
28
28
  "dependencies": {
29
29
  "@aws-crypto/sha256-browser": "5.2.0",
30
30
  "@aws-crypto/sha256-js": "5.2.0",
31
- "@aws-sdk/credential-providers": "3.835.0",
32
- "@aws-sdk/util-format-url": "3.821.0",
31
+ "@aws-sdk/credential-providers": "3.840.0",
32
+ "@aws-sdk/util-format-url": "3.840.0",
33
33
  "@smithy/config-resolver": "^4.1.4",
34
34
  "@smithy/hash-node": "^4.0.4",
35
35
  "@smithy/invalid-dependency": "^4.0.4",
@@ -40,7 +40,7 @@
40
40
  "tslib": "^2.6.2"
41
41
  },
42
42
  "devDependencies": {
43
- "@aws-sdk/types": "3.821.0",
43
+ "@aws-sdk/types": "3.840.0",
44
44
  "@types/node": "^18.19.69",
45
45
  "concurrently": "7.0.0",
46
46
  "downlevel-dts": "0.10.1",