Socket
Socket
Sign inDemoInstall

node-notifier

Package Overview
Dependencies
4
Maintainers
1
Versions
73
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.5 to 2.0.6

2

lib/utils.js

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

if (typeof str === 'string') {
return str.replace(/(["'$`\\])/g, '\\$1');
return str.replace(/(["$`\\])/g, '\\$1');
} else {

@@ -11,0 +11,0 @@ return str;

{
"name": "node-notifier",
"version": "2.0.5",
"version": "2.0.6",
"description": "A Node.js module for sending notifications on mac, windows and linux",

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

@@ -86,3 +86,3 @@ var Notify = require('../').NotifySend

it('should escape message input', function (done) {
var expected = [ '"Node Notification:"', '"some \\"mess\\`age\\`\\""' ];
var expected = [ '"Node Notification:"', '"some \\"me\'ss\\`age\\`\\""' ];

@@ -99,3 +99,3 @@ utils.command = function (notifier, argsList, callback) {

notifier.notify({
message: 'some "mess`age`"'
message: 'some "me\'ss`age`"'
}, function (err) {

@@ -102,0 +102,0 @@ should.not.exist(err);

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc