Comparing version 0.0.21 to 1.0.0
{ | ||
"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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
15092
9
300
0
Yes
Updatedpg@^8.11.2