@aws-sdk/dsql-signer 3.996.0 → 3.997.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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
|
-
const
|
|
4
|
+
const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
|
|
5
5
|
const config_resolver_1 = require("@smithy/config-resolver");
|
|
6
6
|
const hash_node_1 = require("@smithy/hash-node");
|
|
7
7
|
const node_config_provider_1 = require("@smithy/node-config-provider");
|
|
@@ -9,7 +9,7 @@ const getRuntimeConfig = (config) => {
|
|
|
9
9
|
return {
|
|
10
10
|
runtime: "node",
|
|
11
11
|
sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
|
|
12
|
-
credentials: config?.credentials ?? (0,
|
|
12
|
+
credentials: config?.credentials ?? (0, credential_provider_node_1.defaultProvider)(),
|
|
13
13
|
region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
14
14
|
...config,
|
|
15
15
|
};
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defaultProvider } from "@aws-sdk/credential-provider-node";
|
|
2
2
|
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@smithy/config-resolver";
|
|
3
3
|
import { Hash } from "@smithy/hash-node";
|
|
4
4
|
import { loadConfig } from "@smithy/node-config-provider";
|
|
@@ -6,7 +6,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
6
6
|
return {
|
|
7
7
|
runtime: "node",
|
|
8
8
|
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
9
|
-
credentials: config?.credentials ??
|
|
9
|
+
credentials: config?.credentials ?? defaultProvider(),
|
|
10
10
|
region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
11
11
|
...config,
|
|
12
12
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Hash } from "@smithy/hash-node";
|
|
2
|
-
import { DsqlSignerConfig } from "./Signer";
|
|
2
|
+
import type { DsqlSignerConfig } from "./Signer";
|
|
3
3
|
/**
|
|
4
4
|
* @internal
|
|
5
5
|
*/
|
|
6
6
|
export declare const getRuntimeConfig: (config: DsqlSignerConfig) => {
|
|
7
|
-
credentials: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider;
|
|
7
|
+
credentials: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | import("@aws-sdk/credential-provider-node/dist-types/runtime/memoize-chain").MemoizedRuntimeConfigAwsCredentialIdentityProvider;
|
|
8
8
|
hostname: string;
|
|
9
9
|
region: string | import("@smithy/types").Provider<string>;
|
|
10
10
|
sha256: import("@smithy/types").ChecksumConstructor | (new (secret?: import("@smithy/types").SourceData | undefined) => Hash);
|
|
@@ -3,7 +3,8 @@ import { DsqlSignerConfig } from "./Signer";
|
|
|
3
3
|
export declare const getRuntimeConfig: (config: DsqlSignerConfig) => {
|
|
4
4
|
credentials:
|
|
5
5
|
| import("@smithy/types").AwsCredentialIdentity
|
|
6
|
-
| import("@smithy/types").AwsCredentialIdentityProvider
|
|
6
|
+
| import("@smithy/types").AwsCredentialIdentityProvider
|
|
7
|
+
| import("@aws-sdk/credential-provider-node/dist-types/runtime/memoize-chain").MemoizedRuntimeConfigAwsCredentialIdentityProvider;
|
|
7
8
|
hostname: string;
|
|
8
9
|
region: string | import("@smithy/types").Provider<string>;
|
|
9
10
|
sha256:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/dsql-signer",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.997.0",
|
|
4
4
|
"description": "Dsql utility for generating a password token that can be used for IAM authentication to a Dsql Database.",
|
|
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/credential-
|
|
35
|
-
"@aws-sdk/util-format-url": "^3.972.
|
|
36
|
-
"@smithy/config-resolver": "^4.4.
|
|
37
|
-
"@smithy/hash-node": "^4.2.
|
|
38
|
-
"@smithy/invalid-dependency": "^4.2.
|
|
39
|
-
"@smithy/node-config-provider": "^4.3.
|
|
40
|
-
"@smithy/protocol-http": "^5.3.
|
|
41
|
-
"@smithy/signature-v4": "^5.3.
|
|
42
|
-
"@smithy/types": "^4.12.
|
|
34
|
+
"@aws-sdk/credential-provider-node": "^3.972.12",
|
|
35
|
+
"@aws-sdk/util-format-url": "^3.972.4",
|
|
36
|
+
"@smithy/config-resolver": "^4.4.7",
|
|
37
|
+
"@smithy/hash-node": "^4.2.9",
|
|
38
|
+
"@smithy/invalid-dependency": "^4.2.9",
|
|
39
|
+
"@smithy/node-config-provider": "^4.3.9",
|
|
40
|
+
"@smithy/protocol-http": "^5.3.9",
|
|
41
|
+
"@smithy/signature-v4": "^5.3.9",
|
|
42
|
+
"@smithy/types": "^4.12.1",
|
|
43
43
|
"tslib": "^2.6.2"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|