Socket
Socket
Sign inDemoInstall

xml-js

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xml-js - npm Package Compare versions

Comparing version 1.4.1 to 1.4.2

3

lib/xml2js.js

@@ -25,2 +25,3 @@ var sax = require('sax');

common.ensureFlagExists('sanitize', options);
common.ensureFlagExists('captureSpacesBetweenElements', options);
common.ensureKeyExists('declaration', options);

@@ -195,3 +196,3 @@ common.ensureKeyExists('instruction', options);

}
if (!text.trim()) {
if (!text.trim() && !options.captureSpacesBetweenElements) {
return;

@@ -198,0 +199,0 @@ }

{
"name": "xml-js",
"version": "1.4.1",
"version": "1.4.2",
"description": "A convertor between XML text and Javascript object / JSON text.",

@@ -72,20 +72,20 @@ "repository": {

"dependencies": {
"sax": "^1.2.1"
"sax": "^1.2.4"
},
"devDependencies": {
"biased-opener": "^0.2.8",
"browser-sync": "^2.18.12",
"browser-sync": "^2.18.13",
"cash-cat": "^0.2.0",
"codacy-coverage": "^2.0.2",
"codeclimate-test-reporter": "^0.4.0",
"codacy-coverage": "^2.0.3",
"codeclimate-test-reporter": "^0.5.0",
"coveralls": "^2.13.1",
"cross-env": "^5.0.0",
"globify": "^2.0.0",
"cross-env": "^5.0.5",
"globify": "^2.1.0",
"istanbul": "^0.4.5",
"jasmine": "^2.6.0",
"nodemon": "^1.11.0",
"npm-run-all": "^4.0.1",
"typescript": "^2.3.3",
"jasmine": "^2.8.0",
"nodemon": "^1.12.0",
"npm-run-all": "^4.1.1",
"typescript": "^2.5.2",
"watch": "^1.0.1"
}
}

@@ -52,2 +52,3 @@ export interface ElementCompact {

instructionHasAttributes?: boolean
captureSpacesBetweenElements?: boolean
}

@@ -54,0 +55,0 @@

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