UNPKG

@phnq/message

Version:

Asynchronous, incremental messaging client and server

68 lines (67 loc) 1.87 kB
{ "name": "@phnq/message", "version": "2.1.0", "description": "Asynchronous, incremental messaging client and server", "keywords": [ "WebSocket", "WebSockets", "Push", "Async", "Asynchronous", "Client", "Server" ], "repository": { "type": "git", "url": "git+https://github.com/pgostovic/message.git" }, "main": "dist/index.js", "exports": { ".": { "import": { "browser": "./dist/browser.js", "default": "./dist/index.js" }, "require": { "browser": "./dist/browser.js", "default": "./dist/index.js" } } }, "scripts": { "dist": "bun build --production ./src/index.ts --outdir ./dist --target node --packages=external; tsc --project tsconfig.types.json", "postdist": "bun build --production ./src/browser.ts --outdir ./dist --target browser --minify", "clean": "rm -rf dist *.tsbuildinfo", "test": "bun test", "pretest": "podman run -d --name nats_phnq_message_test -p 4225:4222 -p8225:8222 nats", "posttest": "podman stop nats_phnq_message_test; podman rm nats_phnq_message_test", "prelint": "tsc -b", "lint": "biome check src", "release": "bun run clean && bun run dist && bun run test && bun publish" }, "engines": { "node": ">=20" }, "author": "Patrick Gostovic", "license": "ISC", "devDependencies": { "@biomejs/biome": "^2.2.4", "@types/bun": "^1.2.21", "@types/object-hash": "^3.0.6", "@types/uuid": "^9.0.8", "@types/ws": "^8.18.1", "ts-node": "^10.9.2", "typescript": "^5.9.2" }, "dependencies": { "@phnq/log": "^1.1.7", "@phnq/streams": "^1.1.6", "browser-process-hrtime": "^1.0.0", "isomorphic-ws": "^5.0.0", "nats": "^2.29.3", "node-fetch": "^3.3.2", "object-hash": "^3.0.0", "uuid": "^9.0.1", "ws": "^8.18.3" } }