New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

pushover-notifications

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pushover-notifications - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

16

lib/pushover.js

@@ -39,11 +39,22 @@ var https = require( 'https' ),

self.updateSounds();
}, 7200000 );
}, 86400000 );
};
Pushover.prototype.errors = function( d ) {
if ( typeof d === 'string' ) {
d = JSON.parse( d );
}
if ( d.errors ) {
throw new Error( d.errors[0] );
}
}
Pushover.prototype.updateSounds = function() {
var self = this, data = '';
var surl = 'https://api.pushover.net/1/sounds.json';
var surl = 'https://api.pushover.net/1/sounds.json?token=' + self.token;
var req = https.request( url.parse( surl ) , function( res ) {
res.on( 'end', function() {
var j = JSON.parse( data );
self.errors( data );
self.sounds = j.sounds;

@@ -98,2 +109,3 @@ });

res.on( 'end', function() {
self.errors( data );
if ( fn ) {

@@ -100,0 +112,0 @@ fn.call( null, err, data );

2

package.json

@@ -5,3 +5,3 @@ {

"description": "Pushover API for node.js",
"version": "0.1.3",
"version": "0.1.4",
"homepage": "http://github.com/qbit/node-pushover",

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

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