Socket
Socket
Sign inDemoInstall

xmlbuilder

Package Overview
Dependencies
Maintainers
1
Versions
98
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xmlbuilder - npm Package Compare versions

Comparing version 0.2.2 to 0.3.0

1

lib/XMLBuilder.js

@@ -15,2 +15,3 @@ (function() {

XMLBuilder.__super__.constructor.call(this, null, '', {}, '');
this.isDoc = true;
}

@@ -17,0 +18,0 @@ __extends(XMLBuilder, XMLFragment);

@@ -6,2 +6,3 @@ (function() {

function XMLFragment(parent, name, attributes, text) {
this.isDoc = false;
this.isRoot = false;

@@ -198,2 +199,13 @@ this.parent = parent;

};
XMLFragment.prototype.document = function() {
var child;
if (this.isDoc) {
return this;
}
child = this.parent;
while (!child.isDoc) {
child = child.parent;
}
return child;
};
XMLFragment.prototype.prev = function() {

@@ -335,2 +347,5 @@ var i;

};
XMLFragment.prototype.doc = function() {
return this.document();
};
XMLFragment.prototype.e = function(name, attributes, text) {

@@ -337,0 +352,0 @@ return this.element(name, attributes, text);

2

package.json
{
"name": "xmlbuilder",
"version": "0.2.2",
"version": "0.3.0",
"keywords": "xml xmlbuilder",

@@ -5,0 +5,0 @@ "homepage": "http://github.com/oozcitak/xmlbuilder-js",

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