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

@aws-sdk/credential-provider-process

Package Overview
Dependencies
Maintainers
5
Versions
191
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 3.713.0 to 3.714.0

10

dist-cjs/index.js

@@ -99,7 +99,13 @@ "use strict";

// src/fromProcess.ts
var fromProcess = /* @__PURE__ */ __name((init = {}) => async () => {
var fromProcess = /* @__PURE__ */ __name((init = {}) => async ({ callerClientConfig } = {}) => {
var _a;
(_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-process - fromProcess");
const profiles = await (0, import_shared_ini_file_loader.parseKnownFiles)(init);
return resolveProcessCredentials((0, import_shared_ini_file_loader.getProfileName)(init), profiles, init.logger);
return resolveProcessCredentials(
(0, import_shared_ini_file_loader.getProfileName)({
profile: init.profile ?? (callerClientConfig == null ? void 0 : callerClientConfig.profile)
}),
profiles,
init.logger
);
}, "fromProcess");

@@ -106,0 +112,0 @@ // Annotate the CommonJS export names for ESM import in node:

6

dist-es/fromProcess.js
import { getProfileName, parseKnownFiles } from "@smithy/shared-ini-file-loader";
import { resolveProcessCredentials } from "./resolveProcessCredentials";
export const fromProcess = (init = {}) => async () => {
export const fromProcess = (init = {}) => async ({ callerClientConfig } = {}) => {
init.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");
const profiles = await parseKnownFiles(init);
return resolveProcessCredentials(getProfileName(init), profiles, init.logger);
return resolveProcessCredentials(getProfileName({
profile: init.profile ?? callerClientConfig?.profile,
}), profiles, init.logger);
};

@@ -1,4 +0,3 @@

import type { CredentialProviderOptions } from "@aws-sdk/types";
import type { CredentialProviderOptions, RuntimeConfigAwsCredentialIdentityProvider } from "@aws-sdk/types";
import { SourceProfileInit } from "@smithy/shared-ini-file-loader";
import { AwsCredentialIdentityProvider } from "@smithy/types";
/**

@@ -15,2 +14,2 @@ * @internal

*/
export declare const fromProcess: (init?: FromProcessInit) => AwsCredentialIdentityProvider;
export declare const fromProcess: (init?: FromProcessInit) => RuntimeConfigAwsCredentialIdentityProvider;

@@ -1,4 +0,6 @@

import { CredentialProviderOptions } from "@aws-sdk/types";
import {
CredentialProviderOptions,
RuntimeConfigAwsCredentialIdentityProvider,
} from "@aws-sdk/types";
import { SourceProfileInit } from "@smithy/shared-ini-file-loader";
import { AwsCredentialIdentityProvider } from "@smithy/types";
export interface FromProcessInit

@@ -9,2 +11,2 @@ extends SourceProfileInit,

init?: FromProcessInit
) => AwsCredentialIdentityProvider;
) => RuntimeConfigAwsCredentialIdentityProvider;
{
"name": "@aws-sdk/credential-provider-process",
"version": "3.713.0",
"version": "3.714.0",
"description": "AWS credential provider that sources credential_process from ~/.aws/credentials and ~/.aws/config",

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

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

@@ -32,0 +32,0 @@ "@smithy/shared-ini-file-loader": "^3.1.12",

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