Socket
Socket
Sign inDemoInstall

xml2js

Package Overview
Dependencies
71
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.4.21 to 0.4.22

8

lib/parser.js
// Generated by CoffeeScript 1.12.7
(function() {
"use strict";
var bom, defaults, events, isEmpty, processItem, processors, sax, setImmediate, util,
var bom, defaults, events, isEmpty, processItem, processors, promisify, sax, setImmediate,
bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; },

@@ -13,4 +13,2 @@ extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },

util = require('util');
bom = require('./bom');

@@ -24,2 +22,4 @@

promisify = require('util.promisify');
isEmpty = function(thing) {

@@ -340,3 +340,3 @@ return typeof thing === "object" && (thing != null) && Object.keys(thing).length === 0;

Parser.prototype.parseStringPromise = function(str) {
return util.promisify(this.parseString)(str);
return promisify(this.parseString)(str);
};

@@ -343,0 +343,0 @@

@@ -9,3 +9,3 @@ {

"homepage": "https://github.com/Leonidas-from-XIV/node-xml2js",
"version": "0.4.21",
"version": "0.4.22",
"author": "Marek Kubica <marek@xivilization.net> (https://xivilization.net)",

@@ -79,3 +79,4 @@ "contributors": [

"sax": ">=0.6.0",
"xmlbuilder": "~13.0.0"
"xmlbuilder": "~11.0.0",
"util.promisify": "~1.0.0"
},

@@ -91,5 +92,5 @@ "devDependencies": {

"engines": {
"node": ">=8.0.0"
"node": ">=4.0.0"
},
"license": "MIT"
}
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