Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-notifier

Package Overview
Dependencies
Maintainers
1
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-notifier - npm Package Compare versions

Comparing version 1.0.0-beta to 1.0.0-beta2

11

lib/utils.js

@@ -5,5 +5,8 @@ var child_process = require('child_process')

var escapeShell = function(cmd) {
return cmd.replace(/(["\s'$`\\])/g,'\\$1');
};
module.exports.command = function (notifier, options, cb) {
var notifyApp = exec(notifier + ' ' + options.join(' '), function (error, stdout, stderr) {
var notifyApp = exec(escapeShell(notifier) + ' ' + options.join(' '), function (error, stdout, stderr) {
if (error !== null) {

@@ -14,3 +17,3 @@ return cb(error);

cb(stderr, stdout);
});
});

@@ -50,3 +53,3 @@ return notifyApp;

else if (line === "(null)") {
line = null;
line = null;
}

@@ -72,3 +75,3 @@ else if (!!parseInt(line, 10)) {

// Check for single line.
// Check for single line.
if (lines.length === 1 && lines[0].substring(0,1) === '*') {

@@ -75,0 +78,0 @@ var msg = lines[0].substring(1).trim();

{
"name": "node-notifier",
"version": "1.0.0-beta",
"version": "1.0.0-beta2",
"description": "A Node.js wrapper for the terminal-notifier application",

@@ -5,0 +5,0 @@ "main": "index.js",

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