@goldstack/utils-sh
Advanced tools
Comparing version 0.1.34 to 0.1.35
@@ -24,2 +24,3 @@ import sh from 'shelljs'; | ||
}) => Promise<void>; | ||
export declare const tempDir: () => string; | ||
declare const exec: (cmd: string, params?: ExecParams | undefined) => string; | ||
@@ -26,0 +27,0 @@ declare const read: (path: string) => string; |
@@ -61,3 +61,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.cd = exports.sh = exports.write = exports.read = exports.pwd = exports.exec = exports.unzip = exports.zip = exports.mkdir = exports.rm = exports.rmSafe = exports.cp = exports.copy = void 0; | ||
exports.cd = exports.sh = exports.write = exports.read = exports.pwd = exports.exec = exports.tempDir = exports.unzip = exports.zip = exports.mkdir = exports.rm = exports.rmSafe = exports.cp = exports.copy = void 0; | ||
var shelljs_1 = __importStar(require("shelljs")); | ||
@@ -249,2 +249,8 @@ exports.sh = shelljs_1.default; | ||
}); }; | ||
exports.tempDir = function () { | ||
if (process.env.GOLDSTACK_WORKDIR) { | ||
return process.env.GOLDSTACK_WORKDIR; | ||
} | ||
return './goldstackLocal/'; | ||
}; | ||
var exec = function (cmd, params) { | ||
@@ -251,0 +257,0 @@ var res = shelljs_1.default.exec(cmd, { silent: params === null || params === void 0 ? void 0 : params.silent }); |
{ | ||
"name": "@goldstack/utils-sh", | ||
"version": "0.1.34", | ||
"version": "0.1.35", | ||
"license": "MIT", | ||
@@ -22,3 +22,3 @@ "author": "Max Rohde", | ||
"dependencies": { | ||
"@goldstack/utils-log": "0.1.35", | ||
"@goldstack/utils-log": "0.1.36", | ||
"archiver": "^5.0.0", | ||
@@ -25,0 +25,0 @@ "extract-zip": "^2.0.1", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
27653
405
2
5
+ Added@goldstack/utils-log@0.1.36(transitive)
- Removed@goldstack/utils-log@0.1.35(transitive)
Updated@goldstack/utils-log@0.1.36