Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

@aws-sdk/credential-provider-web-identity

Package Overview
Dependencies
Maintainers
5
Versions
141
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/credential-provider-web-identity - npm Package Compare versions

Comparing version 3.664.0 to 3.667.0

7

dist-cjs/fromTokenFile.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.fromTokenFile = void 0;
const client_1 = require("@aws-sdk/core/client");
const property_provider_1 = require("@smithy/property-provider");

@@ -20,3 +21,3 @@ const fs_1 = require("fs");

}
return (0, fromWebToken_1.fromWebToken)({
const credentials = await (0, fromWebToken_1.fromWebToken)({
...init,

@@ -27,3 +28,7 @@ webIdentityToken: (0, fs_1.readFileSync)(webIdentityTokenFile, { encoding: "ascii" }),

})();
if (webIdentityTokenFile === process.env[ENV_TOKEN_FILE]) {
(0, client_1.setCredentialFeature)(credentials, "CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN", "h");
}
return credentials;
};
exports.fromTokenFile = fromTokenFile;

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

import { setCredentialFeature } from "@aws-sdk/core/client";
import { CredentialsProviderError } from "@smithy/property-provider";

@@ -17,3 +18,3 @@ import { readFileSync } from "fs";

}
return fromWebToken({
const credentials = await fromWebToken({
...init,

@@ -24,2 +25,6 @@ webIdentityToken: readFileSync(webIdentityTokenFile, { encoding: "ascii" }),

})();
if (webIdentityTokenFile === process.env[ENV_TOKEN_FILE]) {
setCredentialFeature(credentials, "CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN", "h");
}
return credentials;
};

7

package.json
{
"name": "@aws-sdk/credential-provider-web-identity",
"version": "3.664.0",
"version": "3.667.0",
"description": "AWS credential provider that calls STS assumeRole for temporary AWS credentials",

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

"dependencies": {
"@aws-sdk/types": "3.664.0",
"@aws-sdk/core": "3.667.0",
"@aws-sdk/types": "3.667.0",
"@smithy/property-provider": "^3.1.7",

@@ -50,3 +51,3 @@ "@smithy/types": "^3.5.0",

"peerDependencies": {
"@aws-sdk/client-sts": "^3.664.0"
"@aws-sdk/client-sts": "^3.667.0"
},

@@ -53,0 +54,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