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 2.6.4 to 2.6.5

6

lib/XMLDTDElement.js
// 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",

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