UNPKG

nats

Version:

Node.js client for NATS, a lightweight, high-performance cloud native messaging system

119 lines (118 loc) 3.7 kB
{ "name": "nats", "version": "2.24.0", "description": "Node.js client for NATS, a lightweight, high-performance cloud native messaging system", "keywords": [ "nats", "messaging", "pubsub", "publish", "subscribe", "queue", "distributed", "queueing" ], "homepage": "https://nats.io", "repository": { "type": "git", "url": "git@github.com:nats-io/nats.js.git" }, "bugs": { "url": "https://github.com/nats-io/nats.js/issues" }, "license": "Apache-2.0", "private": false, "author": { "name": "The NATS Authors" }, "contributors": [], "main": "index.js", "types": "lib/src/mod.d.ts", "files": [ "lib/", "examples/", "OWNERS.md", "CODE-OF-CONDUCT.md", "LICENSE", "MAINTAINERS.md" ], "scripts": { "build": "tsc", "cjs-nbc": "deno run --allow-all ./bin/cjs-fix-imports.ts -o nats-base-client/ ./.deps/nats.deno/nats-base-client", "cjs-jetstream": "deno run --allow-all ./bin/cjs-fix-imports.ts -o jetstream/ ./.deps/nats.deno/jetstream/", "cjs": "npm run cjs-nbc && npm run cjs-jetstream", "clean": "shx rm -Rf ./lib/* ./nats-base-client ./.deps", "clone-nbc": "shx mkdir -p ./.deps && cd ./.deps && git clone --branch v1.24.0 https://github.com/nats-io/nats.deno.git", "fmt": "deno fmt ./src/ ./examples/ ./test/", "prepack": "npm run clone-nbc && npm run cjs && npm run check-package && npm run build", "ava": "nyc ava --verbose -T 60000", "test": "npm run check-package && npm run build && npm run ava", "debug-test": "node node_modules/.bin/ava --verbose -T 6500000 --match", "setup": "curl -fsSL https://deno.land/x/install/install.sh | sh", "setup_win": "choco install deno", "stage": "npm run clean && npm run clone-nbc && npm run cjs && shx rm -Rf ./deps/ && npm run build", "cover:html": "nyc report --reporter=html && open coverage/index.html", "coveralls": "shx mkdir -p ./coverage && nyc report --reporter=text-lcov > ./coverage/lcov.info", "check-package": "deno run --allow-all bin/check-bundle-version.ts", "version": "deno run -A bin/update-transport-version.ts && git add src/node_transport.ts", "postversion": "git push && git push --tags", "bump-qualifier": "npm version prerelease --no-commit-hooks --no-git-tag-version", "bump-release": "npm version patch --no-commit-hooks --no-git-tag-version" }, "engines": { "node": ">= 14.0.0" }, "dependencies": { "nkeys.js": "1.1.0" }, "devDependencies": { "@types/node": "^20.12.8", "ava": "^5.3.x", "minimist": "^1.2.8", "nats-jwt": "^0.0.9", "nyc": "^15.1.0", "shx": "^0.3.3", "typescript": "5.4.5" }, "typings": "./lib/src/mod.d.ts", "ava": { "failFast": false, "files": [ "./test/**/*.js", "!./test/helpers/**/*.js" ] }, "nyc": { "extension": [ ".ts", ".js" ], "include": [ "src/**/*.ts", "lib/src/**/*.js", "nats-base-client/**/*.ts", "lib/nats-base-client/**/*.js", "jetstream/**/*.ts", "lib/jetstream/**/*.js" ], "exclude": [ "nats-base-client/bench.ts", "nats-base-client/codec.ts", "nats-base-client/databuffer.ts", "nats-base-client/denobuffer.ts", "nats-base-client/muxsubscription.ts", "nats-base-client/nkeys.ts", "nats-base-client/nuid.ts", "nats-base-client/parser.ts", "nats-base-client/queued_iterator.ts", "nats-base-client/servers.ts", "nats-base-client/transport.ts", "nats-base-client/util.ts", "lib/test/**", "examples/**", "benchmark/**" ], "sourceMap": true, "all": true } }