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

lambda-serverless-api

Package Overview
Dependencies
Maintainers
1
Versions
396
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lambda-serverless-api - npm Package Compare versions

Comparing version 1.9.1 to 1.9.2

12

lib/util/yaml.js

@@ -12,8 +12,12 @@ const fs = require("fs");

// replace yaml variables with defaults
entry = entry.replace(/\${[a-zA-Z0-9]+?:[a-zA-Z0-9]+?, ["']([a-zA-Z0-9]+)["']}/g, "$1");
entry = entry.replace(/\${[a-zA-Z0-9]+?:[a-zA-Z0-9]+?, ["']([a-zA-Z0-9]+?)["']}/g, "$1");
// load referenced yaml file
const match = /^\${file\(([^(){}$]+?)\)(?::([a-zA-Z0-9]*?))?}$/g.exec(entry);
const match = /^\${file\(([^(){}$]+?)\)(?::([a-zA-Z0-9.]+?))?}$/g.exec(entry);
if (match) {
const loaded = yaml.safeLoad(fs.readFileSync(path.join(dir, match[1]), 'utf8'));
entry = loadRecursive(dir, get(loaded, match[2], loaded));
const filePath = path.join(dir, match[1]);
const loaded = yaml.safeLoad(fs.readFileSync(filePath, 'utf8'));
entry = loadRecursive(
path.dirname(filePath),
get(loaded, match[2], loaded)
);
}

@@ -20,0 +24,0 @@ }

@@ -23,3 +23,3 @@ {

},
"version": "1.9.1",
"version": "1.9.2",
"scripts": {

@@ -26,0 +26,0 @@ "test": "grunt gardener",

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