Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ltx

Package Overview
Dependencies
Maintainers
4
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ltx - npm Package Compare versions

Comparing version 0.9.0 to 0.9.1

62

ltx-browser.js

@@ -141,6 +141,7 @@ (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){

Element.prototype.getName = function() {
if (this.name.indexOf(':') >= 0)
if (this.name.indexOf(':') >= 0) {
return this.name.substr(this.name.indexOf(':') + 1)
else
} else {
return this.name
}
}

@@ -155,5 +156,4 @@

return this.findNS(prefix)
} else {
return this.findNS()
}
return this.findNS()
}

@@ -167,13 +167,15 @@

/* default namespace */
if (this.attrs.xmlns)
if (this.attrs.xmlns) {
return this.attrs.xmlns
else if (this.parent)
} else if (this.parent) {
return this.parent.findNS()
}
} else {
/* prefixed namespace */
var attr = 'xmlns:' + prefix
if (this.attrs[attr])
if (this.attrs[attr]) {
return this.attrs[attr]
else if (this.parent)
} else if (this.parent) {
return this.parent.findNS(prefix)
}
}

@@ -188,4 +190,5 @@ }

if (this.parent)
if (this.parent) {
namespaces = this.parent.getXmlns()
}

@@ -203,5 +206,10 @@ for (var attr in this.attrs) {

this.attrs = {}
Object.keys(attrs || {}).forEach(function(key) {
this.attrs[key] = attrs[key]
}, this)
if (typeof attrs === 'string')
this.attrs.xmlns = attrs
else if (attrs) {
Object.keys(attrs).forEach(function(key) {
this.attrs[key] = attrs[key]
}, this)
}
}

@@ -213,9 +221,11 @@

Element.prototype.getAttr = function(name, xmlns) {
if (!xmlns)
if (!xmlns) {
return this.attrs[name]
}
var namespaces = this.getXmlns()
if (!namespaces[xmlns])
if (!namespaces[xmlns]) {
return null
}

@@ -269,3 +279,5 @@ return this.attrs[[namespaces[xmlns], name].join(':')]

}
if (recursive) result = [].concat.apply([], result)
if (recursive) {
result = [].concat.apply([], result)
}
return result

@@ -321,6 +333,6 @@ }

Element.prototype.root = function() {
if (this.parent)
if (this.parent) {
return this.parent.root()
else
return this
}
return this
}

@@ -331,6 +343,6 @@ Element.prototype.tree = Element.prototype.root

Element.prototype.up = function() {
if (this.parent)
if (this.parent) {
return this.parent
else
return this
}
return this
}

@@ -350,3 +362,5 @@

this.children.push(child)
child.parent = this
if (typeof child === 'object') {
child.parent = this
}
return child

@@ -1816,3 +1830,3 @@ }

}).call(this,require("/Users/lloyd/MyStuff/code/node-xmpp/ltx/node_modules/grunt-browserify/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"),typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{"./support/isBuffer":10,"/Users/lloyd/MyStuff/code/node-xmpp/ltx/node_modules/grunt-browserify/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":9,"inherits":8}]},{},[3])
}).call(this,require("/home/lloyd/Dropbox/code/node-xmpp/ltx/node_modules/grunt-browserify/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"),typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{"./support/isBuffer":10,"/home/lloyd/Dropbox/code/node-xmpp/ltx/node_modules/grunt-browserify/node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":9,"inherits":8}]},{},[3])
{
"name": "ltx",
"version": "0.9.0",
"version": "0.9.1",
"main": "./lib/index",

@@ -37,23 +37,20 @@ "browser": "./lib/index-browserify",

],
"licenses": [
{
"type": "MIT"
}
],
"license": "MIT",
"engine": "node",
"devDependencies": {
"Strophe.js": "https://github.com/metajack/strophejs/tarball/master",
"easysax": ">=0.1.7",
"grunt": "~0.4.2",
"grunt-browserify": "~1.3.1",
"grunt-cli": "~0.1.13",
"grunt-contrib-clean": "~0.5.0",
"grunt-contrib-jshint": "~0.8.0",
"grunt-vows": "~0.4.0",
"node-xml": ">=1.0.1",
"Strophe.js": "https://github.com/metajack/strophejs/tarball/master",
"request-animation-frame": ">=0.1.0",
"vows": "~0.7.0",
"grunt-vows": "~0.4.0",
"grunt": "~0.4.2",
"grunt-contrib-clean": "~0.5.0",
"grunt-browserify": "~1.3.1",
"grunt-contrib-jshint": "~0.8.0"
"vows": "~0.7.0"
},
"scripts": {
"test": "grunt test"
"test": "./node_modules/.bin/grunt test"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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