Comparing version 0.0.4 to 0.0.5
@@ -92,2 +92,3 @@ 'use strict' | ||
on (topic, listener, callback) { | ||
debug('[subscribe]', topic) | ||
if (this.state === states.closing) { | ||
@@ -125,3 +126,3 @@ return | ||
return this.client.query(`LISTEN ${format(topic)}`) | ||
return this.client.query(`LISTEN ${format.ident(topic)}`) | ||
.then(() => { | ||
@@ -240,4 +241,5 @@ if (callback) { | ||
this.client.on('notification', ({ channel, payload }) => { | ||
this.ee.emit(channel, payload) | ||
this.client.on('notification', (message) => { | ||
debug('[_setupClient] notification', message) | ||
this.ee.emit(message.channel, message.payload) | ||
}) | ||
@@ -244,0 +246,0 @@ |
{ | ||
"name": "pg-notify", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Postgres pubsub client", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
15231
6
292
0
125