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

entry

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

entry - npm Package Compare versions

Comparing version 0.3.3 to 0.3.4

20

lib/index.js

@@ -26,2 +26,20 @@ var Gateway = require('./gateway'),

// xml2js.parseString() with callback was giving 'unspecified "error" event'
// so we returned to the old emitter-style interface
var parseXML = function(str, cb) {
var returned = 0;
var done = function(err, res) {
if (returned++) return;
cb(err, res);
}
var parser = new xml2js.Parser({ explicitArray: false });
parser.addListener('error', done);
parser.addListener('end', function(result) { done(null, result) });
parser.parseString(str);
}
var parseResponse = function(str) {

@@ -42,3 +60,3 @@ var obj = {};

xml2js.parseString(xml, { explicitArray: false }, function(err, res) {
parseXML(xml, function(err, res) {
if (err) return cb(err);

@@ -45,0 +63,0 @@

2

package.json
{
"name": "entry",
"version": "0.3.3",
"version": "0.3.4",
"description": "UPnP library that works.",

@@ -5,0 +5,0 @@ "main": "./lib",

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