Huge News!Announcing our $40M Series B led by Abstract Ventures.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.21 to 1.0.0

cjs/package.json

30

package.json
{
"name": "pg-notify",
"version": "0.0.21",
"version": "1.0.0",
"description": "Postgres pubsub client",
"main": "index.js",
"type": "module",
"module": "src/index.js",
"main": "cjs/src/index.js",
"exports": {
"types": "./types/index.d.ts",
"import": "./src/index.js",
"default": "./cjs/src/index.js"
},
"types": "types/index.d.ts",
"typings": "types/index.d.ts",
"scripts": {
"test": "ava --serial",
"test": "ava --serial test/**",
"test:cjs": "ava --serial cjs/test/**",
"test:types": "tsd",
"test:all": "npm run lint && npm run test && npm run test:types",
"test:all": "npm run lint && npm run test && npm run test:cjs && npm run test:types",
"lint": "standard",
"coverage": "nyc --reporter=lcov --reporter=text ava --serial"
"lint:fix": "standard --fix",
"coverage": "c8 --reporter=lcov --reporter=text ava --serial test/**",
"transpile:cjs": "node ./transpile.cjs.js && npm run lint:fix"
},

@@ -33,3 +45,3 @@ "author": "Aldis Ameriks <aldis.ameriks@gmail.com>",

"debug": "^4.3.4",
"pg": "^8.11.0",
"pg": "^8.11.2",
"pg-format": "^1.0.4",

@@ -42,5 +54,5 @@ "secure-json-parse": "^2.7.0"

"benchmark": "^2.1.4",
"c8": "8.0.1",
"coveralls": "^3.1.1",
"dotenv": "^16.3.0",
"nyc": "^15.1.0",
"dotenv": "^16.3.1",
"standard": "^17.1.0",

@@ -50,4 +62,4 @@ "tsd": "^0.28.1"

"tsd": {
"directory": "test/types"
"directory": "types"
}
}

@@ -47,4 +47,4 @@ <h1 align="center">pg-notify</h1>

```js
const PGPubSub = require('pg-notify')
// import PGPubSub from 'pg-notify'
import PGPubSub from 'pg-notify'
//const PGPubSub = require('pg-notify')

@@ -51,0 +51,0 @@ ;(async () => {

@@ -1,10 +0,9 @@

'use strict'
import EventEmitter from 'node:events'
import util from 'node:util'
import pg from 'pg'
import format from 'pg-format'
import sjson from 'secure-json-parse'
import Debug from 'debug'
const EventEmitter = require('events')
const util = require('util')
const pg = require('pg')
const format = require('pg-format')
const sjson = require('secure-json-parse')
const debug = require('debug')('pg-notify')
const debug = Debug('pg-notify')
const sleep = util.promisify(setTimeout)

@@ -178,2 +177,2 @@

module.exports = PGPubSub
export default PGPubSub
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