Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

npm-start

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

npm-start - npm Package Compare versions

Comparing version
1.2.2
to
1.2.3
+12
-16
npm-start.sh

@@ -28,2 +28,7 @@ #!/bin/bash

on_proxy_exit () {
kill $PID
wait $PID
}
print_header () {

@@ -64,21 +69,12 @@ printf "\n> $npm_package_name@$npm_package_version $1 $PWD\n> $2\n\n"

run () {
load_package
run_prestart && run_start && run_poststart
}
on_proxy_exit () {
kill $PID
wait $PID
}
# if we are pid=1 we need to support to work with graceful restarts
# this is mostly an docker issue
if [ "$$" = "1" ]; then
# always fork to get rid of weird "terminated" message
# also this gives us docker support since we don't run as pid=1
if [ "$npm_start_fork" = "" ]; then
trap on_proxy_exit SIGTERM
$0 &
npm_start_fork=true $0 &
PID=$!
wait
wait $PID
else
run
load_package
run_prestart && run_start && run_poststart
fi
{
"name": "npm-start",
"version": "1.2.2",
"version": "1.2.3",
"description": "'npm start' written in bash that propagates kill to subprocesses",

@@ -5,0 +5,0 @@ "repository": {