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

serverless-export-env

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

serverless-export-env - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

2

package.json
{
"name": "serverless-export-env",
"version": "1.1.1",
"version": "1.1.2",
"description": "Serverless plugin to export environment variables into a .env file",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -134,9 +134,15 @@ # ⚡️ Serverless Export Env Plugin

### 1.1.2
* Fixed an issue with CloudFormation resources not being resolved properly if
the stack has more than 100 resources or exports.
### 1.1.1
* Fix issue with multiple environment variables for function (thanks to @Nevon)
* Fix issue with multiple environment variables for function (thanks to
[@Nevon](github.com/Nevon)).
### 1.1.0
* Support `Fn::Join` operation (contribution by @jonasho)
* Support `Fn::Join` operation (contribution by
[@jonasho](https://github.com/jonasho))
* Support pseudo parameters `AWS::Region`, `AWS::AccountId`, `AWS::StackId`
and `AWS::StackName`
and `AWS::StackName`.

@@ -143,0 +149,0 @@ ### 1.0.2

@@ -6,2 +6,29 @@ "use strict";

function listExports(AWS, exports, nextToken) {
exports = exports || [];
return AWS.request("CloudFormation", "listExports", { NextToken: nextToken })
.tap(response => {
exports.push.apply(exports, response.Exports);
if (response.NextToken) {
// Query next page
return listExports(AWS, exports, response.NextToken);
}
})
.return(exports);
}
function listStackResources(AWS, resources, nextToken) {
resources = resources || [];
return AWS.request("CloudFormation", "listStackResources", { StackName: AWS.naming.getStackName(), NextToken: nextToken })
.then(response => {
resources.push.apply(resources, response.StackResourceSummaries);
if (response.NextToken) {
// Query next page
return listStackResources(AWS, resources, response.NextToken);
}
})
.return(resources);
}
/**

@@ -18,8 +45,6 @@ * Resolves CloudFormation references and import variables

return BbPromise.join(
AWS.request("CloudFormation", "describeStackResources", { StackName: AWS.naming.getStackName() }),
AWS.request("CloudFormation", "listExports")
listStackResources(AWS),
listExports(AWS)
)
.spread((resultStackResources, resultExports) => {
const resources = resultStackResources.StackResources;
const exports = resultExports.Exports;
.spread((resources, exports) => {

@@ -26,0 +51,0 @@ function mapValue(value, key) {

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