forked from robtaussig/react-use-websocket
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
78 lines (78 loc) · 2.07 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{
"name": "react-use-websocket",
"version": "4.9.0",
"description": "React Hook for WebSocket communication",
"main": "./dist/index.js",
"files": [
"src",
"dist"
],
"scripts": {
"test": "cross-env node_modules/.bin/jest --verbose --no-cache",
"clear-dist": "cross-env rm -rf dist/",
"compile": "cross-env node_modules/.bin/tsc -p .",
"push": "cross-env npm run test && npm run clear-dist && npm run compile && npm publish"
},
"repository": {
"type": "git",
"url": "git+https://github.com/robtaussig/react-use-websocket.git"
},
"types": "./dist/index.d.ts",
"devDependencies": {
"@babel/core": "^7.25.2",
"@babel/preset-env": "^7.25.4",
"@babel/preset-react": "^7.24.7",
"@testing-library/dom": "^10.4.0",
"@testing-library/react": "16.0.1",
"@types/eventsource": "^1.1.15",
"@types/jest": "^29.5.13",
"@types/node": "^17.0.29",
"@types/react": "^18.3.8",
"@types/react-dom": "^18.3.0",
"@types/websocket": "1.0.10",
"babel-jest": "^29.7.0",
"cross-env": "^7.0.3",
"eventsourcemock": "^2.0.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jest-websocket-mock": "^2.5.0",
"react": "18.3.1",
"react-dom": "18.3.1",
"ts-jest": "^29.2.5",
"typescript": "^5.6.2"
},
"jest": {
"preset": "ts-jest",
"clearMocks": true,
"coverageDirectory": "coverage",
"testEnvironment": "jsdom",
"testMatch": [
"<rootDir>/src/lib/**/*.test.(ts|tsx)"
],
"transform": {
"^.+\\.(ts|tsx)?$": "ts-jest"
},
"setupFiles": [
"./__test__/configJSDom.ts"
]
},
"babel": {
"presets": [
"@babel/preset-env",
"@babel/preset-react"
]
},
"keywords": [
"react",
"react-hooks",
"websocket",
"websockets"
],
"author": "Robert Taussig <[email protected]> (robtaussig.com)",
"license": "MIT",
"bugs": {
"url": "https://github.com/robtaussig/react-use-websocket/issues"
},
"homepage": "https://github.com/robtaussig/react-use-websocket#readme",
"packageManager": "[email protected]"
}