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

@aws-sdk/credential-provider-ini

Package Overview
Dependencies
Maintainers
7
Versions
362
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/credential-provider-ini - npm Package Compare versions

Comparing version 3.18.0 to 3.19.0

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

# [3.19.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.18.0...v3.19.0) (2021-06-24)
### Features
* **credential-provider-node:** throw cannot load credential error from credentail chain ([#2408](https://github.com/aws/aws-sdk-js-v3/issues/2408)) ([5e0a46a](https://github.com/aws/aws-sdk-js-v3/commit/5e0a46a9f4a35cdb200f7eccef09fb4c6ad76e9c))
# [3.18.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.17.0...v3.18.0) (2021-06-04)

@@ -8,0 +19,0 @@

12

dist/cjs/index.js

@@ -71,6 +71,6 @@ "use strict";

if (!options.roleAssumer) {
throw new property_provider_1.ProviderError(`Profile ${profileName} requires a role to be assumed, but no` + ` role assumption callback was provided.`, false);
throw new property_provider_1.CredentialsProviderError(`Profile ${profileName} requires a role to be assumed, but no` + ` role assumption callback was provided.`, false);
}
if (source_profile && source_profile in visitedProfiles) {
throw new property_provider_1.ProviderError(`Detected a cycle attempting to resolve credentials for profile` +
throw new property_provider_1.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile` +
` ${exports.getMasterProfileName(options)}. Profiles visited: ` +

@@ -88,3 +88,3 @@ Object.keys(visitedProfiles).join(", "), false);

if (!options.mfaCodeProvider) {
throw new property_provider_1.ProviderError(`Profile ${profileName} requires multi-factor authentication,` + ` but no MFA code callback was provided.`, false);
throw new property_provider_1.CredentialsProviderError(`Profile ${profileName} requires multi-factor authentication,` + ` but no MFA code callback was provided.`, false);
}

@@ -111,3 +111,3 @@ params.SerialNumber = mfa_serial;

// `source_profile` key).
throw new property_provider_1.ProviderError(`Profile ${profileName} could not be found or parsed in shared` + ` credentials file.`);
throw new property_provider_1.CredentialsProviderError(`Profile ${profileName} could not be found or parsed in shared` + ` credentials file.`);
};

@@ -131,3 +131,3 @@ /**

else {
throw new property_provider_1.ProviderError(`Unsupported credential source in profile ${profileName}. Got ${credentialSource}, ` +
throw new property_provider_1.CredentialsProviderError(`Unsupported credential source in profile ${profileName}. Got ${credentialSource}, ` +
`expected EcsContainer or Ec2InstanceMetadata or Environment.`);

@@ -147,2 +147,2 @@ }

})();
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsOEVBQTJEO0FBQzNELGdGQUFnRztBQUNoRyxnR0FBMkc7QUFDM0csa0VBQTJEO0FBQzNELDRFQU15QztBQUd6QyxNQUFNLGVBQWUsR0FBRyxTQUFTLENBQUM7QUFDckIsUUFBQSxXQUFXLEdBQUcsYUFBYSxDQUFDO0FBc0Z6QyxNQUFNLG9CQUFvQixHQUFHLENBQUMsR0FBUSxFQUE2QixFQUFFLENBQ25FLE9BQU8sQ0FBQyxHQUFHLENBQUM7SUFDWixPQUFPLEdBQUcsS0FBSyxRQUFRO0lBQ3ZCLE9BQU8sR0FBRyxDQUFDLGlCQUFpQixLQUFLLFFBQVE7SUFDekMsT0FBTyxHQUFHLENBQUMscUJBQXFCLEtBQUssUUFBUTtJQUM3QyxDQUFDLFdBQVcsRUFBRSxRQUFRLENBQUMsQ0FBQyxPQUFPLENBQUMsT0FBTyxHQUFHLENBQUMsaUJBQWlCLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQztBQVFyRSxNQUFNLG9CQUFvQixHQUFHLENBQUMsR0FBUSxFQUE2QixFQUFFLENBQ25FLE9BQU8sQ0FBQyxHQUFHLENBQUM7SUFDWixPQUFPLEd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JHtjcmVkZW50aWFsU291cmNlfSwgYCArXG4gICAgICAgIGBleHBlY3RlZCBFY3NDb250YWluZXIgb3IgRWMySW5zdGFuY2VNZXRhZGF0YSBvciBFbnZpcm9ubWVudC5gXG4gICAgKTtcbiAgfVxufTtcblxuY29uc3QgcmVzb2x2ZVN0YXRpY0NyZWRlbnRpYWxzID0gKHByb2ZpbGU6IFN0YXRpY0NyZWRzUHJvZmlsZSk6IFByb21pc2U8Q3JlZGVudGlhbHM+ID0+XG4gIFByb21pc2UucmVzb2x2ZSh7XG4gICAgYWNjZXNzS2V5SWQ6IHByb2ZpbGUuYXdzX2FjY2Vzc19rZXlfaWQsXG4gICAgc2VjcmV0QWNjZXNzS2V5OiBwcm9maWxlLmF3c19zZWNyZXRfYWNjZXNzX2tleSxcbiAgICBzZXNzaW9uVG9rZW46IHByb2ZpbGUuYXdzX3Nlc3Npb25fdG9rZW4sXG4gIH0pO1xuXG5jb25zdCByZXNvbHZlV2ViSWRlbnRpdHlDcmVkZW50aWFscyA9IGFzeW5jIChwcm9maWxlOiBXZWJJZGVudGl0eVByb2ZpbGUsIG9wdGlvbnM6IEZyb21JbmlJbml0KTogUHJvbWlzZTxDcmVkZW50aWFscz4gPT5cbiAgZnJvbVRva2VuRmlsZSh7XG4gICAgd2ViSWRlbnRpdHlUb2tlbkZpbGU6IHByb2ZpbGUud2ViX2lkZW50aXR5X3Rva2VuX2ZpbGUsXG4gICAgcm9sZUFybjogcHJvZmlsZS5yb2xlX2FybixcbiAgICByb2xlU2Vzc2lvbk5hbWU6IHByb2ZpbGUucm9sZV9zZXNzaW9uX25hbWUsXG4gICAgcm9sZUFzc3VtZXJXaXRoV2ViSWRlbnRpdHk6IG9wdGlvbnMucm9sZUFzc3VtZXJXaXRoV2ViSWRlbnRpdHksXG4gIH0pKCk7XG4iXX0=

@@ -5,3 +5,3 @@ import { __assign, __awaiter, __generator } from "tslib";

import { fromTokenFile } from "@aws-sdk/credential-provider-web-identity";
import { ProviderError } from "@aws-sdk/property-provider";
import { CredentialsProviderError } from "@aws-sdk/property-provider";
import { loadSharedConfigFiles, } from "@aws-sdk/shared-ini-file-loader";

@@ -99,6 +99,6 @@ var DEFAULT_PROFILE = "default";

if (!options.roleAssumer) {
throw new ProviderError("Profile " + profileName + " requires a role to be assumed, but no" + " role assumption callback was provided.", false);
throw new CredentialsProviderError("Profile " + profileName + " requires a role to be assumed, but no" + " role assumption callback was provided.", false);
}
if (source_profile && source_profile in visitedProfiles) {
throw new ProviderError("Detected a cycle attempting to resolve credentials for profile" +
throw new CredentialsProviderError("Detected a cycle attempting to resolve credentials for profile" +
(" " + getMasterProfileName(options) + ". Profiles visited: ") +

@@ -113,3 +113,3 @@ Object.keys(visitedProfiles).join(", "), false);

if (!options.mfaCodeProvider) {
throw new ProviderError("Profile " + profileName + " requires multi-factor authentication," + " but no MFA code callback was provided.", false);
throw new CredentialsProviderError("Profile " + profileName + " requires multi-factor authentication," + " but no MFA code callback was provided.", false);
}

@@ -142,3 +142,3 @@ params.SerialNumber = mfa_serial;

// `source_profile` key).
throw new ProviderError("Profile " + profileName + " could not be found or parsed in shared" + " credentials file.");
throw new CredentialsProviderError("Profile " + profileName + " could not be found or parsed in shared" + " credentials file.");
}

@@ -165,3 +165,3 @@ });

else {
throw new ProviderError("Unsupported credential source in profile " + profileName + ". Got " + credentialSource + ", " +
throw new CredentialsProviderError("Unsupported credential source in profile " + profileName + ". Got " + credentialSource + ", " +
"expected EcsContainer or Ec2InstanceMetadata or Environment.");

@@ -187,2 +187,2 @@ }

}); };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxPQUFPLEVBQUUsTUFBTSxrQ0FBa0MsQ0FBQztBQUMzRCxPQUFPLEVBQUUscUJB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ZW5GaWxlOiBwcm9maWxlLndlYl9pZGVudGl0eV90b2tlbl9maWxlLFxuICAgIHJvbGVBcm46IHByb2ZpbGUucm9sZV9hcm4sXG4gICAgcm9sZVNlc3Npb25OYW1lOiBwcm9maWxlLnJvbGVfc2Vzc2lvbl9uYW1lLFxuICAgIHJvbGVBc3N1bWVyV2l0aFdlYklkZW50aXR5OiBvcHRpb25zLnJvbGVBc3N1bWVyV2l0aFdlYklkZW50aXR5LFxuICB9KSgpO1xuIl19
{
"name": "@aws-sdk/credential-provider-ini",
"version": "3.18.0",
"version": "3.19.0",
"description": "AWS credential provider that sources credentials from ~/.aws/credentials and ~/.aws/config",

@@ -24,6 +24,6 @@ "main": "./dist/cjs/index.js",

"dependencies": {
"@aws-sdk/credential-provider-env": "3.18.0",
"@aws-sdk/credential-provider-imds": "3.18.0",
"@aws-sdk/credential-provider-web-identity": "3.18.0",
"@aws-sdk/property-provider": "3.18.0",
"@aws-sdk/credential-provider-env": "3.19.0",
"@aws-sdk/credential-provider-imds": "3.19.0",
"@aws-sdk/credential-provider-web-identity": "3.19.0",
"@aws-sdk/property-provider": "3.19.0",
"@aws-sdk/shared-ini-file-loader": "3.18.0",

@@ -30,0 +30,0 @@ "@aws-sdk/types": "3.18.0",

import { fromEnv } from "@aws-sdk/credential-provider-env";
import { fromContainerMetadata, fromInstanceMetadata } from "@aws-sdk/credential-provider-imds";
import { AssumeRoleWithWebIdentityParams, fromTokenFile } from "@aws-sdk/credential-provider-web-identity";
import { ProviderError } from "@aws-sdk/property-provider";
import { CredentialsProviderError } from "@aws-sdk/property-provider";
import {

@@ -206,3 +206,3 @@ loadSharedConfigFiles,

if (!options.roleAssumer) {
throw new ProviderError(
throw new CredentialsProviderError(
`Profile ${profileName} requires a role to be assumed, but no` + ` role assumption callback was provided.`,

@@ -214,3 +214,3 @@ false

if (source_profile && source_profile in visitedProfiles) {
throw new ProviderError(
throw new CredentialsProviderError(
`Detected a cycle attempting to resolve credentials for profile` +

@@ -233,3 +233,3 @@ ` ${getMasterProfileName(options)}. Profiles visited: ` +

if (!options.mfaCodeProvider) {
throw new ProviderError(
throw new CredentialsProviderError(
`Profile ${profileName} requires multi-factor authentication,` + ` but no MFA code callback was provided.`,

@@ -263,3 +263,5 @@ false

// `source_profile` key).
throw new ProviderError(`Profile ${profileName} could not be found or parsed in shared` + ` credentials file.`);
throw new CredentialsProviderError(
`Profile ${profileName} could not be found or parsed in shared` + ` credentials file.`
);
};

@@ -283,3 +285,3 @@

} else {
throw new ProviderError(
throw new CredentialsProviderError(
`Unsupported credential source in profile ${profileName}. Got ${credentialSource}, ` +

@@ -286,0 +288,0 @@ `expected EcsContainer or Ec2InstanceMetadata or Environment.`

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