Socket
Socket
Sign inDemoInstall

grunt-run

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-run - npm Package Compare versions

Comparing version 0.2.3 to 0.2.4

2

package.json
{
"name": "grunt-run",
"description": "Invite external commands into your grunt process with three tasks `run`, `wait` and `stop`.",
"version": "0.2.3",
"version": "0.2.4",
"homepage": "https://github.com/spenceralger/grunt-run",

@@ -6,0 +6,0 @@ "author": {

@@ -64,3 +64,4 @@ /*

if (getPid(name)) {
var pid = getPid(name);
if (pid && _.find(runningProcs, { pid: pid })) {
grunt.log.warn(name + ' is already running');

@@ -147,2 +148,3 @@ return;

}
clearPid(name);
grunt.log.debug('Process ' + name + ' closed.');

@@ -180,12 +182,13 @@ });

'(only works for tasks that use wait:false)', function () {
var pid = this.data._pid;
var name = this.target;
var proc = _.find(runningProcs, { pid: pid });
clearPid(name);
if (proc) {
proc.kill();
clearPid(name);
grunt.log.ok(name + ' stopped');
} else {
grunt.log.warn(this.target + ' (' + pid + ') is already stopped.');
}
grunt.log.ok(name + ' already stopped');
}
});

@@ -192,0 +195,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc