@aws-sdk/client-sts
Advanced tools
Comparing version 3.435.0 to 3.436.0
@@ -7,2 +7,3 @@ "use strict"; | ||
const defaultStsRoleAssumers_1 = require("./defaultStsRoleAssumers"); | ||
const core_1 = require("@aws-sdk/core"); | ||
const credential_provider_node_1 = require("@aws-sdk/credential-provider-node"); | ||
@@ -26,2 +27,3 @@ const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node"); | ||
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config); | ||
(0, core_1.emitWarningIfUnsupportedVersion)(process.version); | ||
return { | ||
@@ -28,0 +30,0 @@ ...clientSharedValues, |
@@ -9,15 +9,17 @@ "use strict"; | ||
const endpointResolver_1 = require("./endpoint/endpointResolver"); | ||
const getRuntimeConfig = (config) => ({ | ||
apiVersion: "2011-06-15", | ||
base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64, | ||
base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64, | ||
disableHostPrefix: config?.disableHostPrefix ?? false, | ||
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver, | ||
extensions: config?.extensions ?? [], | ||
logger: config?.logger ?? new smithy_client_1.NoOpLogger(), | ||
serviceId: config?.serviceId ?? "STS", | ||
urlParser: config?.urlParser ?? url_parser_1.parseUrl, | ||
utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8, | ||
utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8, | ||
}); | ||
const getRuntimeConfig = (config) => { | ||
return { | ||
apiVersion: "2011-06-15", | ||
base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64, | ||
base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64, | ||
disableHostPrefix: config?.disableHostPrefix ?? false, | ||
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver, | ||
extensions: config?.extensions ?? [], | ||
logger: config?.logger ?? new smithy_client_1.NoOpLogger(), | ||
serviceId: config?.serviceId ?? "STS", | ||
urlParser: config?.urlParser ?? url_parser_1.parseUrl, | ||
utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8, | ||
utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8, | ||
}; | ||
}; | ||
exports.getRuntimeConfig = getRuntimeConfig; |
import packageInfo from "../package.json"; | ||
import { decorateDefaultCredentialProvider } from "./defaultStsRoleAssumers"; | ||
import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; | ||
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; | ||
@@ -21,2 +22,3 @@ import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; | ||
const clientSharedValues = getSharedRuntimeConfig(config); | ||
awsCheckVersion(process.version); | ||
return { | ||
@@ -23,0 +25,0 @@ ...clientSharedValues, |
@@ -6,14 +6,16 @@ import { NoOpLogger } from "@smithy/smithy-client"; | ||
import { defaultEndpointResolver } from "./endpoint/endpointResolver"; | ||
export const getRuntimeConfig = (config) => ({ | ||
apiVersion: "2011-06-15", | ||
base64Decoder: config?.base64Decoder ?? fromBase64, | ||
base64Encoder: config?.base64Encoder ?? toBase64, | ||
disableHostPrefix: config?.disableHostPrefix ?? false, | ||
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, | ||
extensions: config?.extensions ?? [], | ||
logger: config?.logger ?? new NoOpLogger(), | ||
serviceId: config?.serviceId ?? "STS", | ||
urlParser: config?.urlParser ?? parseUrl, | ||
utf8Decoder: config?.utf8Decoder ?? fromUtf8, | ||
utf8Encoder: config?.utf8Encoder ?? toUtf8, | ||
}); | ||
export const getRuntimeConfig = (config) => { | ||
return { | ||
apiVersion: "2011-06-15", | ||
base64Decoder: config?.base64Decoder ?? fromBase64, | ||
base64Encoder: config?.base64Encoder ?? toBase64, | ||
disableHostPrefix: config?.disableHostPrefix ?? false, | ||
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, | ||
extensions: config?.extensions ?? [], | ||
logger: config?.logger ?? new NoOpLogger(), | ||
serviceId: config?.serviceId ?? "STS", | ||
urlParser: config?.urlParser ?? parseUrl, | ||
utf8Decoder: config?.utf8Decoder ?? fromUtf8, | ||
utf8Encoder: config?.utf8Encoder ?? toUtf8, | ||
}; | ||
}; |
{ | ||
"name": "@aws-sdk/client-sts", | ||
"description": "AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native", | ||
"version": "3.435.0", | ||
"version": "3.436.0", | ||
"scripts": { | ||
@@ -26,3 +26,4 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", | ||
"@aws-crypto/sha256-js": "3.0.0", | ||
"@aws-sdk/credential-provider-node": "3.435.0", | ||
"@aws-sdk/core": "3.436.0", | ||
"@aws-sdk/credential-provider-node": "3.436.0", | ||
"@aws-sdk/middleware-host-header": "3.433.0", | ||
@@ -29,0 +30,0 @@ "@aws-sdk/middleware-logger": "3.433.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
454441
8756
39
+ Added@aws-sdk/core@3.436.0
+ Added@aws-sdk/client-sso@3.436.0(transitive)
+ Added@aws-sdk/core@3.436.0(transitive)
+ Added@aws-sdk/credential-provider-ini@3.436.0(transitive)
+ Added@aws-sdk/credential-provider-node@3.436.0(transitive)
+ Added@aws-sdk/credential-provider-sso@3.436.0(transitive)
- Removed@aws-sdk/client-sso@3.435.0(transitive)
- Removed@aws-sdk/credential-provider-ini@3.435.0(transitive)
- Removed@aws-sdk/credential-provider-node@3.435.0(transitive)
- Removed@aws-sdk/credential-provider-sso@3.435.0(transitive)