New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@aws-sdk/token-providers

Package Overview
Dependencies
Maintainers
0
Versions
200
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/token-providers - npm Package Compare versions

Comparing version 3.709.0 to 3.713.0

15

dist-cjs/index.js

@@ -106,5 +106,14 @@ "use strict";

var lastRefreshAttemptTime = /* @__PURE__ */ new Date(0);
var fromSso = /* @__PURE__ */ __name((init = {}) => async () => {
var _a;
(_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/token-providers - fromSso");
var fromSso = /* @__PURE__ */ __name((_init = {}) => async (awsIdentityProperties) => {
var _a, _b, _c;
const init = {
..._init,
...((_a = awsIdentityProperties == null ? void 0 : awsIdentityProperties.callerClientConfig) == null ? void 0 : _a.region) ? {
parentClientConfig: {
region: (_b = awsIdentityProperties == null ? void 0 : awsIdentityProperties.callerClientConfig) == null ? void 0 : _b.region,
..._init.parentClientConfig
}
} : {}
};
(_c = init.logger) == null ? void 0 : _c.debug("@aws-sdk/token-providers - fromSso");
const profiles = await (0, import_shared_ini_file_loader.parseKnownFiles)(init);

@@ -111,0 +120,0 @@ const profileName = (0, import_shared_ini_file_loader.getProfileName)(init);

13

dist-es/fromSso.js

@@ -9,3 +9,14 @@ import { TokenProviderError } from "@smithy/property-provider";

const lastRefreshAttemptTime = new Date(0);
export const fromSso = (init = {}) => async () => {
export const fromSso = (_init = {}) => async (awsIdentityProperties) => {
const init = {
..._init,
...(awsIdentityProperties?.callerClientConfig?.region
? {
parentClientConfig: {
region: awsIdentityProperties?.callerClientConfig?.region,
..._init.parentClientConfig,
},
}
: {}),
};
init.logger?.debug("@aws-sdk/token-providers - fromSso");

@@ -12,0 +23,0 @@ const profiles = await parseKnownFiles(init);

@@ -1,2 +0,2 @@

import { CredentialProviderOptions, TokenIdentityProvider } from "@aws-sdk/types";
import { CredentialProviderOptions, RuntimeConfigIdentityProvider, TokenIdentity } from "@aws-sdk/types";
import { SourceProfileInit } from "@smithy/shared-ini-file-loader";

@@ -12,2 +12,2 @@ export interface FromSsoInit extends SourceProfileInit, CredentialProviderOptions {

*/
export declare const fromSso: (init?: FromSsoInit) => TokenIdentityProvider;
export declare const fromSso: (_init?: FromSsoInit) => RuntimeConfigIdentityProvider<TokenIdentity>;
import {
CredentialProviderOptions,
TokenIdentityProvider,
RuntimeConfigIdentityProvider,
TokenIdentity,
} from "@aws-sdk/types";

@@ -11,2 +12,4 @@ import { SourceProfileInit } from "@smithy/shared-ini-file-loader";

}
export declare const fromSso: (init?: FromSsoInit) => TokenIdentityProvider;
export declare const fromSso: (
_init?: FromSsoInit
) => RuntimeConfigIdentityProvider<TokenIdentity>;
{
"name": "@aws-sdk/token-providers",
"version": "3.709.0",
"version": "3.713.0",
"description": "A collection of token providers",

@@ -30,3 +30,3 @@ "main": "./dist-cjs/index.js",

"dependencies": {
"@aws-sdk/types": "3.709.0",
"@aws-sdk/types": "3.713.0",
"@smithy/property-provider": "^3.1.11",

@@ -46,3 +46,3 @@ "@smithy/shared-ini-file-loader": "^3.1.12",

"peerDependencies": {
"@aws-sdk/client-sso-oidc": "^3.709.0"
"@aws-sdk/client-sso-oidc": "^3.713.0"
},

@@ -49,0 +49,0 @@ "types": "./dist-types/index.d.ts",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc