@neoskop/dockerfile.js
Advanced tools
Comparing version 0.2.2 to 0.2.3-rc.0
@@ -7,3 +7,4 @@ import { Variable } from "./variable"; | ||
protected readonly cmd = "ENV"; | ||
constructor(name: string, defaultValue: string); | ||
} | ||
export declare function env(...args: ConstructorParameters<typeof Env>): Env; |
@@ -8,4 +8,4 @@ "use strict"; | ||
class Env extends variable_1.Variable { | ||
constructor() { | ||
super(...arguments); | ||
constructor(name, defaultValue) { | ||
super(name, defaultValue); | ||
this.cmd = 'ENV'; | ||
@@ -19,2 +19,2 @@ } | ||
exports.env = env; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW52LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2xpYi9jb21tYW5kcy9lbnYudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSx5Q0FBc0M7QUFFdEM7O0dBRUc7QUFDSCxNQUFhLEdBQUksU0FBUSxtQkFBUTtJQUFqQzs7UUFDdUIsUUFBRyxHQUFHLEtBQUssQ0FBQztJQUNuQyxDQUFDO0NBQUE7QUFGRCxrQkFFQztBQUVELFNBQWdCLEdBQUcsQ0FBQyxHQUFHLElBQXdDO0lBQzNELE9BQU8sSUFBSSxHQUFHLENBQUMsR0FBRyxJQUFJLENBQUMsQ0FBQztBQUM1QixDQUFDO0FBRkQsa0JBRUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBWYXJpYWJsZSB9IGZyb20gXCIuL3ZhcmlhYmxlXCI7XG5cbi8qKlxuICogQHNlZSBodHRwczovL2RvY3MuZG9ja2VyLmNvbS9lbmdpbmUvcmVmZXJlbmNlL2J1aWxkZXIvI2VudlxuICovXG5leHBvcnQgY2xhc3MgRW52IGV4dGVuZHMgVmFyaWFibGUge1xuICAgIHByb3RlY3RlZCByZWFkb25seSBjbWQgPSAnRU5WJztcbn1cblxuZXhwb3J0IGZ1bmN0a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cbmV4cG9ydCBmdW5jdGlvbiBlbnYoLi4uYXJncyA6IENvbnN0cnVjdG9yUGFyYW1ldGVyczx0eXBlb2YgRW52Pikge1xuICAgIHJldHVybiBuZXcgRW52KC4uLmFyZ3MpO1xufSJdfQ== |
@@ -13,3 +13,3 @@ "use strict"; | ||
let cmd = `${this.cmd} ${this.name}`; | ||
if (this.defaultValue) { | ||
if (null != this.defaultValue) { | ||
cmd += `=${JSON.stringify(this.defaultValue)}`; | ||
@@ -21,2 +21,2 @@ } | ||
exports.Variable = Variable; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFyaWFibGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvbGliL2NvbW1hbmRzL3ZhcmlhYmxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBRUEsTUFBc0IsUUFBUTtJQUcxQixZQUE0QixJQUFhLEVBQ2IsWUFBcUI7UUFEckIsU0FBSSxHQUFKLElBQUksQ0FBUztRQUNiLGlCQUFZLEdBQVosWUFBWSxDQUFTO0lBQUcsQ0FBQztJQUVyRCxRQUFRO1FBQ0osT0FBTyxNQUFNLElBQUksQ0FBQyxJQUFJLEdBQUcsQ0FBQztJQUM5QixDQUFDO0lBRUQsZUFBZTtRQUNYLElBQUksR0FBRyxHQUFHLEdBQUcsSUFBSSxDQUFDLEdBQUcsSUFBSSxJQUFJLENBQUMsSUFBSSxFQUFFLENBQUM7UUFFckMsSUFBRyxJQUFJLENBQUMsWUFBWSxFQUFFO1lBQ2xCLEdBQUcsSUFBSSxJQUFJLElBQUksQ0FBQyxTQUFTLENBQUMsSUFBSSxDQUFDLFlBQVksQ0FBQyxFQUFFLENBQUM7U0FDbEQ7UUFFRCxPQUFPLEdBQUcsQ0FBQztJQUNmLENBQUM7Q0FDSjtBQW5CRCw0QkFtQkMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge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XJuIGNtZDtcbiAgICB9XG59Il19 |
{ | ||
"name": "@neoskop/dockerfile.js", | ||
"version": "0.2.2", | ||
"version": "0.2.3-rc.0", | ||
"description": "Write configurable, scriptable, reusable dockerfiles in Typescript or plain Javascript.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
84901
926