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

@neoskop/dockerfile.js

Package Overview
Dependencies
Maintainers
8
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@neoskop/dockerfile.js - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1

8

lib/dockerfile.js

@@ -27,3 +27,7 @@ "use strict";

};
return this._options.preamble + this._args.map(arg => arg.toDockerCommand()).join('\n') + '\n\n' + [...this].map(stage => stage.toString(buildContext)).join('\n\n');
return [
this._options.preamble,
this._args.map(arg => arg.toDockerCommand()).join('\n'),
...this.stages().map(stage => stage.toString(buildContext))
].filter(Boolean).join('\n\n');
}

@@ -36,2 +40,2 @@ }

exports.dockerfile = dockerfile;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZG9ja2VyZmlsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9saWIvZG9ja2VyZmlsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDZDQUEwQztBQUc3QixRQUFBLGdCQUFnQixHQUFHOzs7K0JBR0QsQ0FBQTtBQVUvQixNQUFhLFVBQVcsU0FBUSx1QkFBVTtJQUl0QyxZQUFZLFVBQXVDLEVBQUU7UUFDakQsS0FBSyxFQUFFLENBQUM7UUFKRixVQUFLLEdBQVUsRUFBRSxDQUFDO1FBS3hCLElBQUksQ0FBQyxRQUFRLGlCQUNOO1lBQ0MsUUFBUSxFQUFFLHdCQUFnQjtTQUM3QixFQUNFLE9BQU8sQ0FDYixDQUFDO0lBQ04sQ0FBQztJQUlELElBQUksQ0FBQyxHQUFTLEVBQUUsR0FBRyxJQUFXO1FBQzFCLElBQUcsR0FBRyxFQUFFO1lBQ0osSUFBSSxDQUFDLEtBQUssQ0FBQyxJQUFJLENBQUMsR0FBRyxFQUFFLEdBQUcsSUFB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cmV0dXJuIHRoaXMuX2FyZ3M7XG4gICAgfVxuXG4gICAgdG9TdHJpbmcoKSB7XG4gICAgICAgIGNvbnN0IGJ1aWxkQ29udGV4dCA9IHtcbiAgICAgICAgICAgIGRvY2tlcmZpbGU6IHRoaXNcbiAgICAgICAgfTtcblxuICAgICAgICByZXR1cm4gW1xuICAgICAgICAgICAgdGhpcy5fb3B0aW9ucy5wcmVhbWJsZSxcbiAgICAgICAgICAgIHRoaXMuX2FyZ3MubWFwKGFyZyA9PiBhcmcudG9Eb2NrZXJDb21tYW5kKCkpLmpvaW4oJ1xcbicpLFxuICAgICAgICAgICAgLi4udGhpcy5zdGFnZXMoKS5tYXAoc3RhZ2UgPT4gc3RhZ2UudG9TdHJpbmcoYnVpbGRDb250ZXh0KSlcbiAgICAgICAgXS5maWx0ZXIoQm9vbGVhbikuam9pbignXFxuXFxuJylcbiAgICB9XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBkb2NrZXJmaWxlKC4uLmFyZ3MgOiBDb25zdHJ1Y3RvclBhcmFtZXRlcnM8dHlwZW9mIERvY2tlcmZpbGU+KSB7XG4gICAgcmV0dXJuIG5ldyBEb2NrZXJmaWxlKC4uLmFyZ3MpO1xufSJdfQ==
{
"name": "@neoskop/dockerfile.js",
"version": "0.5.0",
"version": "0.5.1",
"description": "Write configurable, scriptable, reusable dockerfiles in Typescript or plain Javascript.",

@@ -5,0 +5,0 @@ "keywords": [

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