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

pg-notify

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pg-notify - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

README.md

8

lib/pg-notify.js

@@ -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",

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