UNPKG

@imqueue/pg-pubsub

Version:

Reliable PostgreSQL LISTEN/NOTIFY with inter-process lock support

113 lines (112 loc) 3.93 kB
{ "name": "@imqueue/pg-pubsub", "version": "2.0.0", "description": "Reliable PostgreSQL LISTEN/NOTIFY with inter-process lock support", "keywords": [ "listen", "notify", "postgres", "postgresql", "pg-listen", "pg-notify", "pubsub", "publish", "subscribe", "events", "publish-subscribe", "inter-process-lock" ], "scripts": { "prepublishOnly": "npm run build", "postpublish": "./bin/wiki.sh", "clean:dts": "find . -name '*.d.ts' -not -wholename '*node_modules*' -type f -delete", "clean:map": "find . -name '*.js.map' -not -wholename '*node_modules*' -type f -delete", "clean:js": "find . -name '*.js' -not -wholename '*node_modules*' -not -wholename '*bin*' -type f -delete", "clean:build": "rm -rf ./node_modules/@types ; find . -name '*.js.map' -type f -delete ; find . -name '*.ts' -type f -delete", "clean:test": "rm -rf .nyc_output coverage", "clean:doc": "rm -rf docs", "clean:wiki": "rm -rf wiki", "clean": "npm run clean:test ; npm run clean:dts ; npm run clean:map ; npm run clean:js ; npm run clean:doc ; npm run clean:wiki", "build": "tsc", "mocha": "nyc mocha", "show:test": "/usr/bin/env node -e \"import('open').then(open => open.default('file://`pwd`/coverage/index.html',{wait:false}));\"", "show:doc": "/usr/bin/env node -e \"import('open').then(open => open.default('file://`pwd`/docs/index.html',{wait:false}));\"", "test": "npm run build && npm run mocha && npm run show:test && ((test ! -z \"${CI}\" && nyc report --reporter=text-lcov | coveralls) || exit 0)", "doc": "npm run clean && typedoc --excludePrivate --excludeExternals --hideGenerator --exclude \"**/+(debug|test|node_modules|docs|coverage|.nyc_output|examples)/**/*\" --out ./docs . && npm run show:doc", "wiki": "npm run clean && typedoc --excludePrivate --excludeExternals --hideGenerator --exclude \"**/+(debug|test|node_modules|docs|coverage|.nyc_output|examples)/**/*\" --out ./wiki --plugin typedoc-plugin-markdown --hideSources --theme markdown . && ./bin/rename.js", "help": "npm-scripts-help" }, "author": "imqueue.com <support@imqueue.com>", "license": "GPL-3.0-only", "repository": { "type": "git", "url": "git://github.com/imqueue/pg-pubsub.git" }, "bugs": { "url": "https://github.com/imqueue/pg-pubsub/issues" }, "homepage": "https://github.com/imqueue/pg-pubsub", "dependencies": { "@types/node": "^24.0.10", "@types/pg": "^8.15.4", "@types/pg-format": "^1.0.5", "farmhash": "^4.0.2", "pg": "^8.16.3", "pg-format": "^1.0.4", "uuid": "^11.1.0" }, "devDependencies": { "@eslint/eslintrc": "^3.3.1", "@eslint/js": "^9.30.1", "@types/chai": "^5.2.2", "@types/mocha": "^10.0.10", "@types/mock-require": "^3.0.0", "@types/sinon": "^17.0.4", "@types/uuid": "^10.0.0", "@typescript-eslint/eslint-plugin": "^8.35.1", "@typescript-eslint/parser": "^8.35.1", "@typescript-eslint/typescript-estree": "^8.35.1", "chai": "^5.2.0", "coveralls-next": "^4.2.1", "eslint": "^9.30.1", "glob": "^11.0.3", "globals": "^16.3.0", "minimist": "^1.2.8", "mocha": "^11.7.1", "mocha-lcov-reporter": "^1.3.0", "mock-require": "^3.0.3", "npm-scripts-help": "^0.8.0", "nyc": "^17.1.0", "open": "^10.1.2", "sinon": "^21.0.0", "source-map-support": "^0.5.21", "ts-node": "^10.9.2", "typedoc": "^0.28.7", "typedoc-plugin-markdown": "^4.7.0", "typescript": "^5.8.3" }, "main": "index.js", "typescript": { "definitions": "index.d.ts" }, "nyc": { "check-coverage": true, "extension": [ ".ts" ], "exclude": [ "**/*.d.ts", "**/test/**", "**/examples/**" ], "require": [ "ts-node/register" ], "reporter": [ "html", "text", "text-summary", "lcovonly" ] } }