New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@xmpp/connection

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xmpp/connection - npm Package Compare versions

Comparing version 0.8.0 to 0.9.0

24

index.js

@@ -40,2 +40,3 @@ 'use strict'

this.parser = null
this.root = null
}

@@ -68,3 +69,3 @@

try {
await this.parser.write(str)
this.parser.write(str)
// eslint-disable-next-line no-unused-vars

@@ -76,6 +77,3 @@ } catch (err) {

// and <unsupported-encoding/>. However, the more specific errors are RECOMMENDED."
try {
this._streamError('bad-format')
// eslint-disable-next-line no-unused-vars
} catch (err) {}
this._streamError('bad-format')
}

@@ -87,2 +85,3 @@ }

const listeners = this.socketListeners
listeners.data = data => {

@@ -172,2 +171,3 @@ this._onData(data)

const listeners = this.parserListeners
listeners.element = element => {

@@ -187,5 +187,10 @@ this._onElement(element)

listeners.start = element => {
this._status('open', element)
}
parser.on('error', listeners.error)
parser.on('element', listeners.element)
parser.on('end', listeners.end)
parser.on('start', listeners.start)
}

@@ -251,3 +256,3 @@

async connect(service) {
this._status('connecting')
this._status('connecting', service)
this._attachSocket(new this.Socket())

@@ -287,2 +292,3 @@ // The 'connect' status is set by the socket 'connect' listener

headerElement.attrs['xml:lang'] = lang
this.root = headerElement

@@ -292,5 +298,3 @@ this._attachParser(new this.Parser())

await this.write(this.header(headerElement))
const el = await promise(this.parser, 'start', 'error', timeout)
this._status('open', el)
return promise(this, 'open', 'error', timeout)
}

@@ -322,2 +326,3 @@

const [el] = await p
this.root = null
return el

@@ -338,2 +343,3 @@ // The 'close' status is set by the parser 'end' listener

async send(element) {
element.parent = this.root
this.emit('outgoing', element)

@@ -340,0 +346,0 @@ await this.write(element)

@@ -7,3 +7,3 @@ {

"bugs": "http://github.com/xmppjs/xmpp.js/issues",
"version": "0.8.0",
"version": "0.9.0",
"license": "ISC",

@@ -15,6 +15,6 @@ "keywords": [

"dependencies": {
"@xmpp/error": "^0.8.0",
"@xmpp/events": "^0.8.0",
"@xmpp/jid": "^0.8.0",
"@xmpp/xml": "^0.8.0"
"@xmpp/error": "^0.9.0",
"@xmpp/events": "^0.9.0",
"@xmpp/jid": "^0.9.0",
"@xmpp/xml": "^0.9.0"
},

@@ -28,3 +28,3 @@ "engines": {

},
"gitHead": "3ebafae0363444e21dd670a60eb202f4ce21f560"
"gitHead": "d1ef8d3d625bdeb3e66e9acfee3220725a6d9887"
}
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