@essex/shellrunner
Advanced tools
Comparing version 8.0.0-alpha.11 to 8.0.0-alpha.12
@@ -7,5 +7,3 @@ /*! | ||
import { Job } from './types'; | ||
export declare function subtaskFail(text: string): void; | ||
export declare function subtaskSuccess(text: string): void; | ||
export declare function debug(text: string, ...args: any[]): void; | ||
export declare function printJob(job: Job): void; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.printJob = exports.debug = exports.subtaskSuccess = exports.subtaskFail = void 0; | ||
exports.printJob = exports.debug = void 0; | ||
/*! | ||
@@ -11,10 +11,2 @@ * Copyright (c) Microsoft. All rights reserved. | ||
const debugLog = dbg('essex:shellrunner'); | ||
function subtaskFail(text) { | ||
console.log(` ✘ ${text}`.red); | ||
} | ||
exports.subtaskFail = subtaskFail; | ||
function subtaskSuccess(text) { | ||
console.log(` ✔ ${text}`.green); | ||
} | ||
exports.subtaskSuccess = subtaskSuccess; | ||
function debug(text, | ||
@@ -21,0 +13,0 @@ // eslint-disable-next-line @typescript-eslint/no-explicit-any |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.execute = void 0; | ||
const getHoistedPath_1 = require("./getHoistedPath"); | ||
const build_util_hoister_1 = require("@essex/build-util-hoister"); | ||
/* eslint-disable-next-line @typescript-eslint/no-var-requires */ | ||
@@ -53,3 +53,3 @@ const spawn = require('cross-spawn'); | ||
const stdio = toConsole ? 'inherit' : undefined; | ||
const hoistedPath = getHoistedPath_1.getHoistedPath(); | ||
const hoistedPath = build_util_hoister_1.getHoistedPath(); | ||
return { | ||
@@ -56,0 +56,0 @@ cwd, |
@@ -11,13 +11,6 @@ "use strict"; | ||
async function single(job) { | ||
const { exec, id } = job; | ||
const { code } = await execute_1.execute(job); | ||
log.printJob(job); | ||
if (code > 0) { | ||
log.subtaskFail(`${exec}${id ? `[${id}]` : ''} failed`); | ||
} | ||
else { | ||
log.subtaskSuccess(`${exec}${id ? `[${id}]` : ''} passed`); | ||
} | ||
return { code }; | ||
} | ||
exports.single = single; |
{ | ||
"name": "@essex/shellrunner", | ||
"version": "8.0.0-alpha.11", | ||
"version": "8.0.0-alpha.12", | ||
"description": "A set of utility libraries for executing shell commands", | ||
@@ -18,2 +18,3 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@essex/build-util-hoister": "^8.0.0-alpha.12", | ||
"colors": "^1.4.0", | ||
@@ -30,3 +31,3 @@ "cross-spawn": "^7.0.3", | ||
}, | ||
"gitHead": "a75103991ed3a26f5d061a9606883055a3b22b6c" | ||
"gitHead": "97228ac100cd981fedd72f5785953674dfc8faef" | ||
} |
@@ -10,10 +10,2 @@ /*! | ||
export function subtaskFail(text: string): void { | ||
console.log(` ✘ ${text}`.red) | ||
} | ||
export function subtaskSuccess(text: string): void { | ||
console.log(` ✔ ${text}`.green) | ||
} | ||
export function debug( | ||
@@ -20,0 +12,0 @@ text: string, |
@@ -6,4 +6,4 @@ /*! | ||
import { SpawnOptions, ChildProcess } from 'child_process' | ||
import { getHoistedPath } from '@essex/build-util-hoister' | ||
import { Job, JobResult } from '../types' | ||
import { getHoistedPath } from './getHoistedPath' | ||
@@ -10,0 +10,0 @@ /* eslint-disable-next-line @typescript-eslint/no-var-requires */ |
@@ -10,11 +10,5 @@ /*! | ||
export async function single(job: Job): Promise<JobResult> { | ||
const { exec, id } = job | ||
const { code } = await execute(job) | ||
log.printJob(job) | ||
if (code > 0) { | ||
log.subtaskFail(`${exec}${id ? `[${id}]` : ''} failed`) | ||
} else { | ||
log.subtaskSuccess(`${exec}${id ? `[${id}]` : ''} passed`) | ||
} | ||
return { code } | ||
} |
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
2
15617
5
26
489
+ Added@essex/build-util-hoister@8.0.16(transitive)