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.4.4 to 2.4.5

40

lib/XMLDocType.js
// Generated by CoffeeScript 1.6.3
(function() {
var XMLDocType, create, isObject;
var XMLCData, XMLComment, XMLDTDAttList, XMLDTDElement, XMLDTDEntity, XMLDTDNotation, XMLDocType, XMLProcessingInstruction, create, isObject;

@@ -9,2 +9,16 @@ create = require('lodash-node/modern/objects/create');

XMLCData = require('./XMLCData');
XMLComment = require('./XMLComment');
XMLDTDAttList = require('./XMLDTDAttList');
XMLDTDEntity = require('./XMLDTDEntity');
XMLDTDElement = require('./XMLDTDElement');
XMLDTDNotation = require('./XMLDTDNotation');
XMLProcessingInstruction = require('./XMLProcessingInstruction');
module.exports = XMLDocType = (function() {

@@ -35,4 +49,3 @@ function XMLDocType(parent, pubID, sysID) {

XMLDocType.prototype.element = function(name, value) {
var XMLDTDElement, child;
XMLDTDElement = require('./XMLDTDElement');
var child;
child = new XMLDTDElement(this, name, value);

@@ -44,4 +57,3 @@ this.children.push(child);

XMLDocType.prototype.attList = function(elementName, attributeName, attributeType, defaultValueType, defaultValue) {
var XMLDTDAttList, child;
XMLDTDAttList = require('./XMLDTDAttList');
var child;
child = new XMLDTDAttList(this, elementName, attributeName, attributeType, defaultValueType, defaultValue);

@@ -53,4 +65,3 @@ this.children.push(child);

XMLDocType.prototype.entity = function(name, value) {
var XMLDTDEntity, child;
XMLDTDEntity = require('./XMLDTDEntity');
var child;
child = new XMLDTDEntity(this, false, name, value);

@@ -62,4 +73,3 @@ this.children.push(child);

XMLDocType.prototype.pEntity = function(name, value) {
var XMLDTDEntity, child;
XMLDTDEntity = require('./XMLDTDEntity');
var child;
child = new XMLDTDEntity(this, true, name, value);

@@ -71,4 +81,3 @@ this.children.push(child);

XMLDocType.prototype.notation = function(name, value) {
var XMLDTDNotation, child;
XMLDTDNotation = require('./XMLDTDNotation');
var child;
child = new XMLDTDNotation(this, name, value);

@@ -80,4 +89,3 @@ this.children.push(child);

XMLDocType.prototype.cdata = function(value) {
var XMLCData, child;
XMLCData = require('./XMLCData');
var child;
child = new XMLCData(this, value);

@@ -89,4 +97,3 @@ this.children.push(child);

XMLDocType.prototype.comment = function(value) {
var XMLComment, child;
XMLComment = require('./XMLComment');
var child;
child = new XMLComment(this, value);

@@ -98,4 +105,3 @@ this.children.push(child);

XMLDocType.prototype.instruction = function(target, value) {
var XMLProcessingInstruction, child;
XMLProcessingInstruction = require('./XMLProcessingInstruction');
var child;
child = new XMLProcessingInstruction(this, target, value);

@@ -102,0 +108,0 @@ this.children.push(child);

// Generated by CoffeeScript 1.6.3
(function() {
var XMLNode, isArray, isEmpty, isFunction, isObject,
var XMLCData, XMLComment, XMLDeclaration, XMLDocType, XMLElement, XMLNode, XMLRaw, XMLText, isArray, isEmpty, isFunction, isObject,
__hasProp = {}.hasOwnProperty;

@@ -14,2 +14,16 @@

XMLElement = null;
XMLCData = null;
XMLComment = null;
XMLDeclaration = null;
XMLDocType = null;
XMLRaw = null;
XMLText = null;
module.exports = XMLNode = (function() {

@@ -20,2 +34,11 @@ function XMLNode(parent) {

this.stringify = this.parent.stringify;
if (XMLElement === null) {
XMLElement = require('./XMLElement');
XMLCData = require('./XMLCData');
XMLComment = require('./XMLComment');
XMLDeclaration = require('./XMLDeclaration');
XMLDocType = require('./XMLDocType');
XMLRaw = require('./XMLRaw');
XMLText = require('./XMLText');
}
}

@@ -126,3 +149,3 @@

XMLNode.prototype.node = function(name, attributes, text) {
var XMLElement, child, _ref;
var child, _ref;
if (name != null) {

@@ -138,3 +161,2 @@ name = name.valueOf();

}
XMLElement = require('./XMLElement');
child = new XMLElement(this, name, attributes);

@@ -149,4 +171,3 @@ if (text != null) {

XMLNode.prototype.text = function(value) {
var XMLText, child;
XMLText = require('./XMLText');
var child;
child = new XMLText(this, value);

@@ -158,4 +179,3 @@ this.children.push(child);

XMLNode.prototype.cdata = function(value) {
var XMLCData, child;
XMLCData = require('./XMLCData');
var child;
child = new XMLCData(this, value);

@@ -167,4 +187,3 @@ this.children.push(child);

XMLNode.prototype.comment = function(value) {
var XMLComment, child;
XMLComment = require('./XMLComment');
var child;
child = new XMLComment(this, value);

@@ -176,4 +195,3 @@ this.children.push(child);

XMLNode.prototype.raw = function(value) {
var XMLRaw, child;
XMLRaw = require('./XMLRaw');
var child;
child = new XMLRaw(this, value);

@@ -185,5 +203,4 @@ this.children.push(child);

XMLNode.prototype.declaration = function(version, encoding, standalone) {
var XMLDeclaration, doc, xmldec;
var doc, xmldec;
doc = this.document();
XMLDeclaration = require('./XMLDeclaration');
xmldec = new XMLDeclaration(doc, version, encoding, standalone);

@@ -195,5 +212,4 @@ doc.xmldec = xmldec;

XMLNode.prototype.doctype = function(pubID, sysID) {
var XMLDocType, doc, doctype;
var doc, doctype;
doc = this.document();
XMLDocType = require('./XMLDocType');
doctype = new XMLDocType(doc, pubID, sysID);

@@ -200,0 +216,0 @@ doc.doctype = doctype;

@@ -82,3 +82,3 @@ // Generated by CoffeeScript 1.6.3

if (!val.match(/[A-Za-z](?:[A-Za-z0-9._-]|-)*/)) {
throw new Error("Invalid encoding: " + options.val);
throw new Error("Invalid encoding: " + val);
}

@@ -85,0 +85,0 @@ return val;

{
"name": "xmlbuilder",
"version": "2.4.4",
"version": "2.4.5",
"keywords": [

@@ -32,3 +32,3 @@ "xml",

"scripts": {
"prepublish": "coffee -co lib/ src/*.coffee",
"prepublish": "coffee -co lib src",
"postpublish": "rm -rf lib",

@@ -35,0 +35,0 @@ "test": "vows test/*"

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