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

node-xmpp-stanza

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-xmpp-stanza - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

.npmignore

9

lib/createStanza.js

@@ -6,2 +6,11 @@ 'use strict'

/**
* JSX compatible API, use this function as pragma
* https://facebook.github.io/jsx/
* Returns a Stanza if name is presence, message or iq an ltx Element otherwise.
*a
* @param {string} name name of the element
* @param {object} attrs object of attribute key/value pairs
* @return {Element} Stanza or Element
*/
module.exports = function createStanza (name, attrs /*, child1, child2, ...*/) {

@@ -8,0 +17,0 @@ var el

14

lib/Stanza.js

@@ -12,16 +12,2 @@ 'use strict'

Stanza.prototype.clone = function () {
var clone = new Stanza(this.name, {})
for (var k in this.attrs) {
if (this.attrs.hasOwnProperty(k)) {
clone.attrs[k] = this.attrs[k]
}
}
for (var i = 0; i < this.children.length; i++) {
var child = this.children[i]
clone.cnode(child.clone ? child.clone() : child)
}
return clone
}
/**

@@ -28,0 +14,0 @@ * Common attribute getters/setters to all stanzas

19

package.json
{
"name": "node-xmpp-stanza",
"version": "1.1.0",
"version": "1.1.1",
"description": "XMPP stanza for JavaScript",
"scripts": {
"prepublish": "npm run bundle",
"preversion": "npm test",
"unit": "mocha --recursive test/",
"bundle": "browserify index.js -s stanza -o bundle.js",
"lint": "standard",
"test": "npm run unit && npm run lint && npm run bundle"
},
"homepage": "https://github.com/node-xmpp/stanza",
"repository": "github:node-xmpp/stanza",
"bugs": "https://github.com/node-xmpp/stanza/issues",
"repository": "github:node-xmpp/node-xmpp",
"homepage": "http://github.com/node-xmpp/node-xmpp",
"bugs": "http://github.com/node-xmpp/node-xmpp/issues",
"keywords": [

@@ -23,8 +15,7 @@ "XMPP",

],
"author": "Sonny Piers <sonny@fastmail.net>",
"license": "MIT",
"dependencies": {
"inherits": "^2.0.1",
"ltx": "^2.2.0"
"ltx": "^2.3.0"
}
}
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