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

serverless-pseudo-parameters

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

serverless-pseudo-parameters - npm Package Compare versions

Comparing version 1.4.2 to 1.5.0

.travis.yml

11

lib/index.js

@@ -15,3 +15,3 @@ 'use strict';

const resources = this.serverless.service.provider.compiledCloudFormationTemplate.Resources;
const template = this.serverless.service.provider.compiledCloudFormationTemplate;
const skipRegionReplace = this.skipRegionReplace;

@@ -26,10 +26,9 @@ const consoleLog = this.serverless.cli.consoleLog;

// loop through all resources, and check all (string) properties for any #{AWS::}
// loop through the entire template, and check all (string) properties for any #{AWS::}
// reference. If found, replace the value with an Fn::Sub reference
Object.keys(resources).forEach(identifier => {
if ("Properties" in resources[identifier]) {
replaceChildNodes(resources[identifier].Properties, identifier)
}
Object.keys(template).forEach(identifier => {
replaceChildNodes(template[identifier], identifier)
});
function isDict(v) {

@@ -36,0 +35,0 @@ return typeof v === 'object' && v !== null && !(v instanceof Array) && !(v instanceof Date);

{
"name": "serverless-pseudo-parameters",
"version": "1.4.2",
"devDependencies": {},
"version": "1.5.0",
"devDependencies": {
"jest": "^22.4.2"
},
"license": "MIT",

@@ -10,4 +12,8 @@ "repository": {

},
"scripts": {
"test": "jest",
"test:watch": "jest --watch"
},
"main": "lib/index.js",
"dependencies": {}
}
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