zod-sockets
Version:
Socket.IO solution with I/O validation and the ability to generate AsyncAPI specification and a contract for consumers
112 lines (111 loc) • 3.34 kB
JSON
{
"name": "zod-sockets",
"version": "4.1.2",
"description": "Socket.IO solution with I/O validation and the ability to generate AsyncAPI specification and a contract for consumers",
"type": "module",
"main": "dist/index.cjs",
"types": "dist/index.d.ts",
"module": "dist/index.js",
"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
}
},
"files": [
"dist",
"*.md"
],
"engines": {
"node": "^20.9.0 || ^22.0.0 || ^24.0.0"
},
"author": {
"name": "Anna Bocharova",
"url": "https://robintail.cz",
"email": "me@robintail.cz"
},
"repository": {
"type": "git",
"url": "git+https://github.com/RobinTail/zod-sockets.git"
},
"license": "MIT",
"scripts": {
"lint": "eslint",
"pretest": "tsc --noEmit",
"test": "vitest run --coverage src",
"posttest": "make-coverage-badge --output-path coverage.svg",
"test:cjs": "yarn --cwd tests/cjs && vitest run -r tests/cjs",
"test:esm": "yarn --cwd tests/esm && vitest run -r tests/esm",
"test:compat": "yarn --cwd tests/compat && vitest run -r tests/compat",
"test:952": "yarn --cwd tests/issue952 && yarn --cwd tests/issue952 test",
"test:system": "yarn --cwd tests/system && vitest run -r tests/system",
"mdfix": "prettier *.md --write",
"start": "tsx example/index.ts",
"build": "yarn build:compile && yarn build:tests && yarn build:client && yarn build:docs",
"build:compile": "tsup && attw --pack",
"build:client": "tsx example/generate-client.ts && prettier --write example/example*.ts",
"build:docs": "tsx example/generate-documentation.ts",
"build:tests": "tsx tools/make-tests.ts",
"precommit": "yarn lint && yarn test && yarn build && git add example/example* coverage.svg",
"postversion": "git push && git push --tags",
"prepublishOnly": "yarn lint && yarn test && yarn build",
"hooks": "husky"
},
"dependencies": {
"ansis": "^4.0.0",
"ramda": "^0.31.3",
"yaml": "^2.4.1"
},
"peerDependencies": {
"socket.io": "^4.7.4",
"typescript": "^5.3.3",
"zod": "^3.25.56 || ^4.0.5"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.18.1",
"@tsconfig/node20": "^20.1.5",
"@types/node": "^24.0.3",
"@types/ramda": "^0.31.0",
"@types/semver": "^7.5.8",
"@vitest/coverage-v8": "^3.2.2",
"eslint": "^9.4.0",
"eslint-config-prettier": "^10.0.1",
"eslint-plugin-allowed-dependencies": "^1.0.0",
"eslint-plugin-prettier": "^5.1.3",
"husky": "^9.0.10",
"make-coverage-badge": "^1.2.0",
"prettier": "3.6.2",
"semver": "^7.6.3",
"socket.io": "^4.7.4",
"socket.io-client": "^4.7.4",
"tsup": "^8.0.1",
"tsx": "^4.7.0",
"typescript": "^5.3.3",
"typescript-eslint": "^8.0.1",
"vitest": "^3.2.2",
"zod": "^4.0.5"
},
"keywords": [
"nodejs",
"socket",
"validation",
"server",
"sockets",
"websocket",
"websockets",
"socket-io",
"zod",
"typescript-library",
"asyncapi",
"async-api",
"asyncapi-specification",
"asyncapi-tools"
],
"packageManager": "yarn@1.22.22+sha1.ac34549e6aa8e7ead463a7407e1c7390f61a6610"
}