Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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.0 to 1.4.1

5

lib/js2xml.js

@@ -42,6 +42,7 @@ var common = require('./common');

}
var key, result = '';
var key, attr, result = '';
for (key in attributes) {
if (attributes.hasOwnProperty(key)) {
result += ' ' + key + '="' + attributes[key].replace(/"/g, """) + '"';
attr = '' + attributes[key]; // ensure Number and Boolean are converted to String
result += ' ' + key + '="' + attr.replace(/"/g, '"') + '"';
}

@@ -48,0 +49,0 @@ }

2

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

@@ -5,0 +5,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