publication-server
Advanced tools
Comparing version 1.6.2 to 1.6.4
## Release History | ||
* 1.6.4 Add name property when applying subscription handler functions | ||
* 1.6.3 Update client version | ||
* 1.6.2 Fix erroneous publish | ||
@@ -4,0 +8,0 @@ |
## Release History | ||
* 1.4.11 Allow stopping a subscription before its 'ready' event is received | ||
* 1.4.10 Fix README, correct for accidental 1.4.9 publish | ||
@@ -4,0 +6,0 @@ |
@@ -187,3 +187,3 @@ 'use strict'; | ||
this._isFailed = true; | ||
let err = this._extractErr(msg.error); | ||
const err = this._extractErr(msg.error); | ||
this._initializationError = err; | ||
@@ -231,3 +231,3 @@ this.emit('nosub', err); | ||
let e = new Error(err); | ||
const e = new Error(err); | ||
e.publicationName = this._name; // Attach the publication name for reporting. | ||
@@ -234,0 +234,0 @@ return e; |
{ | ||
"name": "publication-server", | ||
"version": "1.6.2", | ||
"version": "1.6.4", | ||
"description": "", | ||
@@ -25,4 +25,4 @@ "main": "src/index.js", | ||
"devDependencies": { | ||
"eslint": ">=3", | ||
"eslint-config-mixmax": "^0.6.0", | ||
"eslint": "^5.15.3", | ||
"eslint-config-mixmax": "^2.0.0", | ||
"pre-commit": "^1.2.2" | ||
@@ -29,0 +29,0 @@ }, |
@@ -163,3 +163,3 @@ 'use strict'; | ||
// Create the subscription, register it and then start it. | ||
let subscription = new Subscription({ | ||
const subscription = new Subscription({ | ||
session: this, | ||
@@ -188,3 +188,3 @@ handler, | ||
let sub = this._subscriptions[msg.id]; | ||
const sub = this._subscriptions[msg.id]; | ||
if (!sub) { | ||
@@ -218,3 +218,3 @@ // No open subscription with the given name. | ||
// Find the correct handler if it exists. | ||
let handler = this.handlers[msg.msg]; | ||
const handler = this.handlers[msg.msg]; | ||
if (!handler) { | ||
@@ -221,0 +221,0 @@ this.send({ |
@@ -49,2 +49,3 @@ 'use strict'; | ||
userId: this._session.userId, | ||
name: this._name, | ||
@@ -51,0 +52,0 @@ /** |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
220747
22
6141
2