Socket
Socket
Sign inDemoInstall

add-custom-resource

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

add-custom-resource - npm Package Compare versions

Comparing version 3.1.3 to 3.1.4

10

lib/get-source-code-lines.js

@@ -43,6 +43,10 @@ 'use strict';

const { code, exports } = result;
if (exports.find(r => r === 'handler')) {
const sourceCode = code.toString().replace(/[\r\n]+/g, '\n');
return sourceCode.split('\n').map(line => escapeJson(line));
return code
.toString()
.replace(/[\r\n/]+/g, '\n')
.split('\n')
.map(line => escapeJson(line.replace(/^[\t\s]+/g, '')))
.filter(line => line);
}

@@ -49,0 +53,0 @@

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

ZipFile: {
'Fn::Join': [' ', sourceCodeLines]
'Fn::Join': ['\n', sourceCodeLines]
}

@@ -23,0 +23,0 @@ },

{
"name": "add-custom-resource",
"version": "3.1.3",
"version": "3.1.4",
"description": "A helper library to add custom resources to a CloudFormation template",

@@ -5,0 +5,0 @@ "main": "add-custom-resource.js",

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