🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

xmlobject

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xmlobject - npm Package Compare versions

Comparing version

to
0.6.5

8

index.js

@@ -161,9 +161,9 @@ var sax = require("sax");

findChildren(ns, name) {
if(name )return this.children.filter(function(c) { return name == c.nameWithoutPrefix() && c.namespace() === ns;});
return this.children.filter(function(c) { return ns == c.name });
if(name )return this.children.filter(function(c) { return typeof(c) !== 'string' && name == c.nameWithoutPrefix() && c.namespace() === ns;});
return this.children.filter(function(c) { return typeof(c) !== 'string' && ns == c.name });
}
firstChild(ns,name) {
if(name)return this.children.find(function(c) { return name == c.nameWithoutPrefix() && c.namespace() === ns;});
return this.children.find(function(c) { return ns == c.name });
if(name)return this.children.find(function(c) { return typeof(c) !== 'string' && name == c.nameWithoutPrefix() && c.namespace() === ns;});
return this.children.find(function(c) { return typeof(c) !== 'string' && ns == c.name });
}

@@ -170,0 +170,0 @@

{
"name": "xmlobject",
"version": "0.6.4",
"version": "0.6.5",
"description": "Convert javascript objects to and from xml strings.",

@@ -5,0 +5,0 @@ "main": "index.js",