Socket
Socket
Sign inDemoInstall

xml-js-graphite

Package Overview
Dependencies
1
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.7.0 to 1.7.1

coverage/base.css

6

lib/js2xml.js

@@ -82,6 +82,8 @@ var helper = require('./options-helper');

attr = "" + attributes[key]; // ensure number and boolean are converted to String
// edge case, graphite uses lots of && because of conditionals
// replace & with & to avoid double sanitization
attr = attr.replace(/&/g, "&");
attr = attr.replace(/&/g, "&");
attr = attr.replace(/"/g, """);
attr = attr.replace(/</g, "&lt;");
// edge case, graphite uses lots of && because of conditionals
attr = attr.replace(/&&/g, "&amp;&amp;");
attrName =

@@ -88,0 +90,0 @@ "attributeNameFn" in options

{
"name": "xml-js-graphite",
"version": "1.7.0",
"version": "1.7.1",
"description": "A convertor between XML text and Javascript object / JSON text. Forked to add Graphite specific features.",

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

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