xmlbuilder
Advanced tools
Comparing version 2.6.4 to 2.6.5
// Generated by CoffeeScript 1.9.1 | ||
(function() { | ||
var XMLDTDElement, create, isArray; | ||
var XMLDTDElement, create; | ||
create = require('lodash/object/create'); | ||
isArray = require('lodash/lang/isArray'); | ||
module.exports = XMLDTDElement = (function() { | ||
@@ -18,3 +16,3 @@ function XMLDTDElement(parent, name, value) { | ||
} | ||
if (isArray(value)) { | ||
if (Array.isArray(value)) { | ||
value = '(' + value.join(',') + ')'; | ||
@@ -21,0 +19,0 @@ } |
// Generated by CoffeeScript 1.9.1 | ||
(function() { | ||
var XMLAttribute, XMLElement, XMLNode, XMLProcessingInstruction, create, every, isArray, isFunction, isObject, | ||
var XMLAttribute, XMLElement, XMLNode, XMLProcessingInstruction, create, every, isFunction, isObject, | ||
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, | ||
@@ -11,4 +11,2 @@ hasProp = {}.hasOwnProperty; | ||
isArray = require('lodash/lang/isArray'); | ||
isFunction = require('lodash/lang/isFunction'); | ||
@@ -98,3 +96,3 @@ | ||
name = name.valueOf(); | ||
if (isArray(name)) { | ||
if (Array.isArray(name)) { | ||
for (i = 0, len = name.length; i < len; i++) { | ||
@@ -118,3 +116,3 @@ attName = name[i]; | ||
} | ||
if (isArray(target)) { | ||
if (Array.isArray(target)) { | ||
for (i = 0, len = target.length; i < len; i++) { | ||
@@ -152,3 +150,3 @@ insTarget = target[i]; | ||
instruction = ref3[i]; | ||
r += instruction.toString(options, level + 1); | ||
r += instruction.toString(options, level); | ||
} | ||
@@ -155,0 +153,0 @@ if (pretty) { |
// Generated by CoffeeScript 1.9.1 | ||
(function() { | ||
var XMLCData, XMLComment, XMLDeclaration, XMLDocType, XMLElement, XMLNode, XMLRaw, XMLText, isArray, isEmpty, isFunction, isObject, | ||
var XMLCData, XMLComment, XMLDeclaration, XMLDocType, XMLElement, XMLNode, XMLRaw, XMLText, isEmpty, isFunction, isObject, | ||
hasProp = {}.hasOwnProperty; | ||
@@ -8,4 +8,2 @@ | ||
isArray = require('lodash/lang/isArray'); | ||
isFunction = require('lodash/lang/isFunction'); | ||
@@ -62,3 +60,3 @@ | ||
} | ||
if (isArray(name)) { | ||
if (Array.isArray(name)) { | ||
for (j = 0, len = name.length; j < len; j++) { | ||
@@ -85,3 +83,3 @@ item = name[j]; | ||
} else if (isObject(val)) { | ||
if (!this.options.ignoreDecorators && this.stringify.convertListKey && key.indexOf(this.stringify.convertListKey) === 0 && isArray(val)) { | ||
if (!this.options.ignoreDecorators && this.stringify.convertListKey && key.indexOf(this.stringify.convertListKey) === 0 && Array.isArray(val)) { | ||
lastChild = this.element(val); | ||
@@ -88,0 +86,0 @@ } else { |
{ | ||
"name": "xmlbuilder", | ||
"version": "2.6.4", | ||
"version": "2.6.5", | ||
"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
53836
1367