New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

run-script-cli

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

run-script-cli - npm Package Compare versions

Comparing version
0.0.12
to
0.0.13
+9
-6
dist/ni.cjs

@@ -37,10 +37,12 @@ 'use strict';

if (agent.name === "bun") {
index.oe(index.$.bold(index.$.green(`bun add ${scriptValue}
const cmd = scriptValue ? `bun add ${scriptValue}` : "bun install";
index.oe(index.$.bold(index.$.green(`${cmd}
`)));
await index.execaCommand(`bun add ${scriptValue}`, { stdio: "inherit", cwd });
await index.execaCommand(`${cmd}`, { stdio: "inherit", cwd });
}
if (agent.name === "pnpm") {
index.oe(index.$.bold(index.$.green(`pnpm add ${scriptValue}
const cmd = scriptValue ? `pnpm add ${scriptValue}` : "pnpm install";
index.oe(index.$.bold(index.$.green(`${cmd}
`)));
await index.execaCommand(`pnpm add ${scriptValue}`, { stdio: "inherit", cwd });
await index.execaCommand(`${cmd}`, { stdio: "inherit", cwd });
}

@@ -53,5 +55,6 @@ if (agent.name === "npm") {

if (agent.name === "yarn") {
index.oe(index.$.bold(index.$.green(`yarn add ${scriptValue}
const cmd = scriptValue ? `yarn add ${scriptValue}` : "yarn install";
index.oe(index.$.bold(index.$.green(`${cmd}
`)));
await index.execaCommand(`yarn add ${scriptValue}`, { stdio: "inherit", cwd });
await index.execaCommand(`${cmd}`, { stdio: "inherit", cwd });
}

@@ -58,0 +61,0 @@ } catch {

@@ -31,10 +31,12 @@ import process from 'node:process';

if (agent.name === "bun") {
oe($.bold($.green(`bun add ${scriptValue}
const cmd = scriptValue ? `bun add ${scriptValue}` : "bun install";
oe($.bold($.green(`${cmd}
`)));
await execaCommand(`bun add ${scriptValue}`, { stdio: "inherit", cwd });
await execaCommand(`${cmd}`, { stdio: "inherit", cwd });
}
if (agent.name === "pnpm") {
oe($.bold($.green(`pnpm add ${scriptValue}
const cmd = scriptValue ? `pnpm add ${scriptValue}` : "pnpm install";
oe($.bold($.green(`${cmd}
`)));
await execaCommand(`pnpm add ${scriptValue}`, { stdio: "inherit", cwd });
await execaCommand(`${cmd}`, { stdio: "inherit", cwd });
}

@@ -47,5 +49,6 @@ if (agent.name === "npm") {

if (agent.name === "yarn") {
oe($.bold($.green(`yarn add ${scriptValue}
const cmd = scriptValue ? `yarn add ${scriptValue}` : "yarn install";
oe($.bold($.green(`${cmd}
`)));
await execaCommand(`yarn add ${scriptValue}`, { stdio: "inherit", cwd });
await execaCommand(`${cmd}`, { stdio: "inherit", cwd });
}

@@ -52,0 +55,0 @@ } catch {

+1
-1
{
"name": "run-script-cli",
"version": "0.0.12",
"version": "0.0.13",
"license": "MIT",

@@ -5,0 +5,0 @@ "main": "./dist/index.cjs",