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

@aws-sdk/credential-provider-env

Package Overview
Dependencies
Maintainers
5
Versions
169
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 1.0.0-gamma.8 to 1.0.0-rc.1

11

CHANGELOG.md

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

# [1.0.0-rc.1](https://github.com/aws/aws-sdk-js-v3/compare/v1.0.0-gamma.11...v1.0.0-rc.1) (2020-10-19)
### Features
* ready for release candidate ([#1578](https://github.com/aws/aws-sdk-js-v3/issues/1578)) ([519f66c](https://github.com/aws/aws-sdk-js-v3/commit/519f66c6388b91d0bd750a511e6d1af56196835e))
# [1.0.0-gamma.8](https://github.com/aws/aws-sdk-js-v3/compare/@aws-sdk/credential-provider-env@1.0.0-gamma.7...@aws-sdk/credential-provider-env@1.0.0-gamma.8) (2020-10-07)

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

16

dist/cjs/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.fromEnv = exports.ENV_EXPIRATION = exports.ENV_SESSION = exports.ENV_SECRET = exports.ENV_KEY = void 0;
var property_provider_1 = require("@aws-sdk/property-provider");
const property_provider_1 = require("@aws-sdk/property-provider");
exports.ENV_KEY = "AWS_ACCESS_KEY_ID";

@@ -15,10 +15,10 @@ exports.ENV_SECRET = "AWS_SECRET_ACCESS_KEY";

function fromEnv() {
return function () {
var accessKeyId = process.env[exports.ENV_KEY];
var secretAccessKey = process.env[exports.ENV_SECRET];
var expiry = process.env[exports.ENV_EXPIRATION];
return () => {
const accessKeyId = process.env[exports.ENV_KEY];
const secretAccessKey = process.env[exports.ENV_SECRET];
const expiry = process.env[exports.ENV_EXPIRATION];
if (accessKeyId && secretAccessKey) {
return Promise.resolve({
accessKeyId: accessKeyId,
secretAccessKey: secretAccessKey,
accessKeyId,
secretAccessKey,
sessionToken: process.env[exports.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U9OXSxcbiAgICAgICAgZXhwaXJhdGlvbjogZXhwaXJ5ID8gbmV3IERhdGUoZXhwaXJ5KSA6IHVuZGVmaW5lZCxcbiAgICAgIH0pO1xuICAgIH1cblxuICAgIHJldHVybiBQcm9taXNlLnJlamVjdChuZXcgUHJvdmlkZXJFcnJvcihcIlVuYWJsZSB0byBmaW5kIGVudmlyb25tZW50IHZhcmlhYmxlIGNyZWRlbnRpYWxzLlwiKSk7XG4gIH07XG59XG4iXX0=
{
"name": "@aws-sdk/credential-provider-env",
"version": "1.0.0-gamma.8",
"version": "1.0.0-rc.1",
"description": "AWS credential provider that sources credentials from known environment variables",

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

"dependencies": {
"@aws-sdk/property-provider": "1.0.0-gamma.8",
"@aws-sdk/types": "1.0.0-gamma.7",
"@aws-sdk/property-provider": "1.0.0-rc.1",
"@aws-sdk/types": "1.0.0-rc.1",
"tslib": "^1.8.0"

@@ -36,3 +36,6 @@ },

},
"types": "./dist/cjs/index.d.ts"
"types": "./dist/cjs/index.d.ts",
"engines": {
"node": ">= 10.0.0"
}
}
{
"compilerOptions": {
"declaration": true,
"strict": true,
"sourceMap": false,
"lib": ["es5", "es2015.promise", "es2015.collection"],
"rootDir": "./src",
"outDir": "./dist/cjs",
"importHelpers": true,
"noEmitHelpers": true,
"inlineSourceMap": true,
"inlineSources": true,
"baseUrl": "."

@@ -14,0 +6,0 @@ },

{
"compilerOptions": {
"declaration": true,
"strict": true,
"sourceMap": false,
"lib": ["es5", "es2015.promise", "es2015.collection"],
"rootDir": "./src",
"outDir": "./dist/es",
"importHelpers": true,
"noEmitHelpers": true,
"inlineSourceMap": true,
"inlineSources": true,
"baseUrl": "."

@@ -14,0 +7,0 @@ },

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