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

validate-dockerfile

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

validate-dockerfile - npm Package Compare versions

Comparing version 1.4.7 to 1.4.8

test/Dockerfiles/Dockerfile-12

8

index.js

@@ -63,2 +63,3 @@ 'use strict';

var hasCmd = false;
var escapedNewline = false;
var currentLine = 0;

@@ -75,2 +76,9 @@ var errors = [];

var thisLineEscaped = escapedNewline;
escapedNewline = line.slice(-1) === '\\';
if (thisLineEscaped) {
return;
}
// First instruction must be FROM

@@ -77,0 +85,0 @@ if (!fromCheck) {

2

package.json
{
"name": "validate-dockerfile",
"version": "1.4.7",
"version": "1.4.8",
"description": "Validates a Dockerfile",

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

@@ -99,2 +99,10 @@ 'use strict';

));
it('should allow escaped newlines', expectsSuccess(
'RUN echo "A long time ago"\\\necho "In a galaxy far, far away"'
));
it('should allow multiple escaped newlines', expectsSuccess(
'RUN echo "It is a period of civil war. Rebel"\\\necho "spaceships, striking from a hidden"\\\necho "base, have won their first victory"\\\necho "against the evil Galactic Empire."'
));
});

@@ -101,0 +109,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