UNPKG

nats.ws

Version:
125 lines (124 loc) 4.68 kB
{ "name": "nats.ws", "version": "1.30.3", "description": "WebSocket NATS client", "main": "./cjs/nats.js", "module": "./esm/nats.js", "exports": { "types": "./lib/src/mod.d.ts", "require": "./cjs/nats.js", "import": "./esm/nats.js" }, "types": "lib/src/mod.d.ts", "files": [ "cjs/", "esm/", "lib/", "MAINTAINERS.md", "CODE-OF-CONDUCT.md", "LICENSE" ], "scripts": { "setup": "curl -fsSL https://deno.land/x/install/install.sh | sh", "setup_win": "choco install deno", "fmt": "deno fmt src/*.ts examples/*.js test/*.js test/*/*.js", "start-tls-nats": "cd examples && nats-server -c tls.conf", "start-nats": "cd examples && nats-server -DV -c nontls.conf", "start-http": "deno run --allow-all --unstable https://deno.land/std@0.136.0/http/file_server.ts .", "start-https": "deno run --allow-all --unstable https://deno.land/std@0.136.0/http/file_server.ts --port 4607 --cert ./certs/cert.pem --key ./certs/key.pem --host localhost .", "install-certs": "env CAROOT=./certs mkcert -cert-file ./certs/cert.pem -key-file ./certs/key.pem -install localhost 127.0.0.1 ::1", "install-ns": "shx mkdir -p ./.deps && cd ./.deps && git clone --branch=main https://github.com/nats-io/nats-server.git && cd nats-server && go build && shx mv nats-server ../../", "prepack": "npm run build", "clean": "shx rm -Rf ./esm/nats.js ./lib ./.deps ./nats-base-client ./jetstream ./wst", "build": "npm run clean && npm run check-imports && npm run check-package && npm run build-cjs && npm run build-esm", "build-cjs": "npm run stage && npm run cjs-nbc && npm run cjs-jetstream && npm run cjs-wst && shx rm -Rf ./deps/ && tsc && shx rm -Rf ./wst && shx mv ./lib/wst ./lib/src && rm -Rf ./nats-base-client ./jetstream", "build-esm": "deno run --allow-all --unstable --reload src/mod.ts && deno bundle --log-level info --unstable src/mod.ts ./esm/nats.js", "stage": "npm run clone-nbc", "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-wst": "deno run --allow-all ./bin/cjs-fix-imports.ts -o wst/ ./src", "clone-nbc": "deno run --allow-all bin/clone-nd.ts", "ava": "nyc ava --verbose -T 60000", "test": "npm run build && npm run check-imports && npm run check-package && npm run ava", "check-imports": "deno run --allow-all bin/consistent-deps.ts", "check-package": "deno run --allow-all bin/check-bundle-version.ts", "debug-test": "node node_modules/.bin/ava --verbose -T 6500000 --match", "version": "deno run -A bin/update-transport-version.ts && git add src/ws_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" }, "optionalDependencies": { "nkeys.js": "1.1.0" }, "devDependencies": { "@types/node": "^22.10.5", "ava": "^5.3.x", "minimist": "^1.2.8", "nats-jwt": "^0.0.9", "shx": "^0.3.3", "tslint": "^6.1.3", "typescript": "^5.5.4", "web-streams-polyfill": "^4.0.0", "websocket": "^1.0.35", "nyc": "^17.1.0" }, "ava": { "failFast": true, "files": [ "./test/**/*.js", "!./test/index.d.ts", "!./test/index.js", "!./test/helpers/**/*.js", "!./test/migrate/**/*.js" ], "require": [ "./test/helpers/setup-browser-env.js" ] }, "nyc": { "extension": [ ".ts", ".js" ], "include": [ "src/**/*.ts", "lib/**/*.js", "nats-base-client/**/*.ts" ], "exclude": [ "nats-base-client/bench.ts", "nats-base-client/codec.ts", "nats-base-client/databuffer.ts", "nats-base-client/denobuffer.ts", "nats-base-client/headers.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", "test/**", "examples/**" ], "sourceMap": true, "all": true }, "repository": { "type": "git", "url": "git@github.com:nats-io/nats.ws.git" }, "bugs": { "url": "https://github.com/nats-io/nats.ws/issues" }, "keywords": [ "NATS", "websockets" ], "author": { "name": "The NATS Authors" }, "license": "Apache-2.0" }