xmlbuilder
Advanced tools
Comparing version 2.4.0 to 2.4.1
@@ -42,10 +42,10 @@ // Generated by CoffeeScript 1.6.3 | ||
XMLBuilder.prototype.end = function(options) { | ||
return toString(options); | ||
return this.toString(options); | ||
}; | ||
XMLBuilder.prototype.toString = function(options) { | ||
var indent, newline, pretty, r; | ||
var indent, newline, pretty, r, _ref, _ref1; | ||
pretty = (options != null ? options.pretty : void 0) || false; | ||
indent = (options != null ? options.indent : void 0) || ' '; | ||
newline = (options != null ? options.newline : void 0) || '\n'; | ||
indent = (_ref = options != null ? options.indent : void 0) != null ? _ref : ' '; | ||
newline = (_ref1 = options != null ? options.newline : void 0) != null ? _ref1 : '\n'; | ||
r = ''; | ||
@@ -52,0 +52,0 @@ if (this.xmldec != null) { |
@@ -27,6 +27,6 @@ // Generated by CoffeeScript 1.6.3 | ||
XMLCData.prototype.toString = function(options, level) { | ||
var indent, newline, pretty, r, space; | ||
var indent, newline, pretty, r, space, _ref, _ref1; | ||
pretty = (options != null ? options.pretty : void 0) || false; | ||
indent = (options != null ? options.indent : void 0) || ' '; | ||
newline = (options != null ? options.newline : void 0) || '\n'; | ||
indent = (_ref = options != null ? options.indent : void 0) != null ? _ref : ' '; | ||
newline = (_ref1 = options != null ? options.newline : void 0) != null ? _ref1 : '\n'; | ||
level || (level = 0); | ||
@@ -33,0 +33,0 @@ space = new Array(level + 1).join(indent); |
@@ -27,6 +27,6 @@ // Generated by CoffeeScript 1.6.3 | ||
XMLComment.prototype.toString = function(options, level) { | ||
var indent, newline, pretty, r, space; | ||
var indent, newline, pretty, r, space, _ref, _ref1; | ||
pretty = (options != null ? options.pretty : void 0) || false; | ||
indent = (options != null ? options.indent : void 0) || ' '; | ||
newline = (options != null ? options.newline : void 0) || '\n'; | ||
indent = (_ref = options != null ? options.indent : void 0) != null ? _ref : ' '; | ||
newline = (_ref1 = options != null ? options.newline : void 0) != null ? _ref1 : '\n'; | ||
level || (level = 0); | ||
@@ -33,0 +33,0 @@ space = new Array(level + 1).join(indent); |
@@ -41,6 +41,6 @@ // Generated by CoffeeScript 1.6.3 | ||
XMLDeclaration.prototype.toString = function(options, level) { | ||
var indent, newline, pretty, r, space; | ||
var indent, newline, pretty, r, space, _ref, _ref1; | ||
pretty = (options != null ? options.pretty : void 0) || false; | ||
indent = (options != null ? options.indent : void 0) || ' '; | ||
newline = (options != null ? options.newline : void 0) || '\n'; | ||
indent = (_ref = options != null ? options.indent : void 0) != null ? _ref : ' '; | ||
newline = (_ref1 = options != null ? options.newline : void 0) != null ? _ref1 : '\n'; | ||
level || (level = 0); | ||
@@ -47,0 +47,0 @@ space = new Array(level + 1).join(indent); |
@@ -106,6 +106,6 @@ // Generated by CoffeeScript 1.6.3 | ||
XMLDocType.prototype.toString = function(options, level) { | ||
var child, indent, newline, pretty, r, space, _i, _len, _ref; | ||
var child, indent, newline, pretty, r, space, _i, _len, _ref, _ref1, _ref2; | ||
pretty = (options != null ? options.pretty : void 0) || false; | ||
indent = (options != null ? options.indent : void 0) || ' '; | ||
newline = (options != null ? options.newline : void 0) || '\n'; | ||
indent = (_ref = options != null ? options.indent : void 0) != null ? _ref : ' '; | ||
newline = (_ref1 = options != null ? options.newline : void 0) != null ? _ref1 : '\n'; | ||
level || (level = 0); | ||
@@ -128,5 +128,5 @@ space = new Array(level + 1).join(indent); | ||
} | ||
_ref = this.children; | ||
for (_i = 0, _len = _ref.length; _i < _len; _i++) { | ||
child = _ref[_i]; | ||
_ref2 = this.children; | ||
for (_i = 0, _len = _ref2.length; _i < _len; _i++) { | ||
child = _ref2[_i]; | ||
r += child.toString(options, level + 1); | ||
@@ -133,0 +133,0 @@ } |
@@ -43,6 +43,6 @@ // Generated by CoffeeScript 1.6.3 | ||
XMLDTDAttList.prototype.toString = function(options, level) { | ||
var indent, newline, pretty, r, space; | ||
var indent, newline, pretty, r, space, _ref, _ref1; | ||
pretty = (options != null ? options.pretty : void 0) || false; | ||
indent = (options != null ? options.indent : void 0) || ' '; | ||
newline = (options != null ? options.newline : void 0) || '\n'; | ||
indent = (_ref = options != null ? options.indent : void 0) != null ? _ref : ' '; | ||
newline = (_ref1 = options != null ? options.newline : void 0) != null ? _ref1 : '\n'; | ||
level || (level = 0); | ||
@@ -49,0 +49,0 @@ space = new Array(level + 1).join(indent); |
@@ -30,6 +30,6 @@ // Generated by CoffeeScript 1.6.3 | ||
XMLDTDElement.prototype.toString = function(options, level) { | ||
var indent, newline, pretty, r, space; | ||
var indent, newline, pretty, r, space, _ref, _ref1; | ||
pretty = (options != null ? options.pretty : void 0) || false; | ||
indent = (options != null ? options.indent : void 0) || ' '; | ||
newline = (options != null ? options.newline : void 0) || '\n'; | ||
indent = (_ref = options != null ? options.indent : void 0) != null ? _ref : ' '; | ||
newline = (_ref1 = options != null ? options.newline : void 0) != null ? _ref1 : '\n'; | ||
level || (level = 0); | ||
@@ -36,0 +36,0 @@ space = new Array(level + 1).join(indent); |
@@ -49,6 +49,6 @@ // Generated by CoffeeScript 1.6.3 | ||
XMLDTDEntity.prototype.toString = function(options, level) { | ||
var indent, newline, pretty, r, space; | ||
var indent, newline, pretty, r, space, _ref, _ref1; | ||
pretty = (options != null ? options.pretty : void 0) || false; | ||
indent = (options != null ? options.indent : void 0) || ' '; | ||
newline = (options != null ? options.newline : void 0) || '\n'; | ||
indent = (_ref = options != null ? options.indent : void 0) != null ? _ref : ' '; | ||
newline = (_ref1 = options != null ? options.newline : void 0) != null ? _ref1 : '\n'; | ||
level || (level = 0); | ||
@@ -55,0 +55,0 @@ space = new Array(level + 1).join(indent); |
@@ -30,6 +30,6 @@ // Generated by CoffeeScript 1.6.3 | ||
XMLDTDNotation.prototype.toString = function(options, level) { | ||
var indent, newline, pretty, r, space; | ||
var indent, newline, pretty, r, space, _ref, _ref1; | ||
pretty = (options != null ? options.pretty : void 0) || false; | ||
indent = (options != null ? options.indent : void 0) || ' '; | ||
newline = (options != null ? options.newline : void 0) || '\n'; | ||
indent = (_ref = options != null ? options.indent : void 0) != null ? _ref : ' '; | ||
newline = (_ref1 = options != null ? options.newline : void 0) != null ? _ref1 : '\n'; | ||
level || (level = 0); | ||
@@ -36,0 +36,0 @@ space = new Array(level + 1).join(indent); |
@@ -133,12 +133,12 @@ // Generated by CoffeeScript 1.6.3 | ||
XMLElement.prototype.toString = function(options, level) { | ||
var att, child, indent, instruction, name, newline, pretty, r, space, _i, _j, _len, _len1, _ref, _ref1, _ref2; | ||
var att, child, indent, instruction, name, newline, pretty, r, space, _i, _j, _len, _len1, _ref, _ref1, _ref2, _ref3, _ref4; | ||
pretty = (options != null ? options.pretty : void 0) || false; | ||
indent = (options != null ? options.indent : void 0) || ' '; | ||
newline = (options != null ? options.newline : void 0) || '\n'; | ||
indent = (_ref = options != null ? options.indent : void 0) != null ? _ref : ' '; | ||
newline = (_ref1 = options != null ? options.newline : void 0) != null ? _ref1 : '\n'; | ||
level || (level = 0); | ||
space = new Array(level + 1).join(indent); | ||
r = ''; | ||
_ref = this.instructions; | ||
for (_i = 0, _len = _ref.length; _i < _len; _i++) { | ||
instruction = _ref[_i]; | ||
_ref2 = this.instructions; | ||
for (_i = 0, _len = _ref2.length; _i < _len; _i++) { | ||
instruction = _ref2[_i]; | ||
r += instruction.toString(options, level + 1); | ||
@@ -150,6 +150,6 @@ } | ||
r += '<' + this.name; | ||
_ref1 = this.attributes; | ||
for (name in _ref1) { | ||
if (!__hasProp.call(_ref1, name)) continue; | ||
att = _ref1[name]; | ||
_ref3 = this.attributes; | ||
for (name in _ref3) { | ||
if (!__hasProp.call(_ref3, name)) continue; | ||
att = _ref3[name]; | ||
r += att.toString(options); | ||
@@ -172,5 +172,5 @@ } | ||
} | ||
_ref2 = this.children; | ||
for (_j = 0, _len1 = _ref2.length; _j < _len1; _j++) { | ||
child = _ref2[_j]; | ||
_ref4 = this.children; | ||
for (_j = 0, _len1 = _ref4.length; _j < _len1; _j++) { | ||
child = _ref4[_j]; | ||
r += child.toString(options, level + 1); | ||
@@ -177,0 +177,0 @@ } |
@@ -24,6 +24,6 @@ // Generated by CoffeeScript 1.6.3 | ||
XMLProcessingInstruction.prototype.toString = function(options, level) { | ||
var indent, newline, pretty, r, space; | ||
var indent, newline, pretty, r, space, _ref, _ref1; | ||
pretty = (options != null ? options.pretty : void 0) || false; | ||
indent = (options != null ? options.indent : void 0) || ' '; | ||
newline = (options != null ? options.newline : void 0) || '\n'; | ||
indent = (_ref = options != null ? options.indent : void 0) != null ? _ref : ' '; | ||
newline = (_ref1 = options != null ? options.newline : void 0) != null ? _ref1 : '\n'; | ||
level || (level = 0); | ||
@@ -30,0 +30,0 @@ space = new Array(level + 1).join(indent); |
@@ -27,6 +27,6 @@ // Generated by CoffeeScript 1.6.3 | ||
XMLRaw.prototype.toString = function(options, level) { | ||
var indent, newline, pretty, r, space; | ||
var indent, newline, pretty, r, space, _ref, _ref1; | ||
pretty = (options != null ? options.pretty : void 0) || false; | ||
indent = (options != null ? options.indent : void 0) || ' '; | ||
newline = (options != null ? options.newline : void 0) || '\n'; | ||
indent = (_ref = options != null ? options.indent : void 0) != null ? _ref : ' '; | ||
newline = (_ref1 = options != null ? options.newline : void 0) != null ? _ref1 : '\n'; | ||
level || (level = 0); | ||
@@ -33,0 +33,0 @@ space = new Array(level + 1).join(indent); |
@@ -28,6 +28,6 @@ // Generated by CoffeeScript 1.6.3 | ||
XMLText.prototype.toString = function(options, level) { | ||
var indent, newline, pretty, r, space; | ||
var indent, newline, pretty, r, space, _ref, _ref1; | ||
pretty = (options != null ? options.pretty : void 0) || false; | ||
indent = (options != null ? options.indent : void 0) || ' '; | ||
newline = (options != null ? options.newline : void 0) || '\n'; | ||
indent = (_ref = options != null ? options.indent : void 0) != null ? _ref : ' '; | ||
newline = (_ref1 = options != null ? options.newline : void 0) != null ? _ref1 : '\n'; | ||
level || (level = 0); | ||
@@ -34,0 +34,0 @@ space = new Array(level + 1).join(indent); |
{ | ||
"name": "xmlbuilder", | ||
"version": "2.4.0", | ||
"version": "2.4.1", | ||
"keywords": [ | ||
@@ -5,0 +5,0 @@ "xml", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
52471