forked from robtaussig/react-use-websocket
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
91 lines (91 loc) · 2.45 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
79
80
81
82
83
84
85
86
87
88
89
90
91
{
"name": "react-use-websocket",
"version": "4.3.1",
"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"
},
"dependencies": {},
"types": "./dist/index.d.ts",
"peerDependencies": {
"react": ">= 18.0.0",
"react-dom": ">= 18.0.0"
},
"devDependencies": {
"@babel/cli": "^7.17.6",
"@babel/core": "^7.17.9",
"@babel/preset-env": "^7.16.11",
"@babel/preset-react": "^7.16.7",
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "12.1.2",
"@testing-library/react-hooks": "^8.0.0",
"@types/eventsource": "^1.1.8",
"@types/jest": "^27.4.1",
"@types/node": "^17.0.29",
"@types/react": "^18.0.8",
"@types/react-dom": "^18.0.0",
"@types/websocket": "1.0.5",
"awesome-typescript-loader": "^5.2.1",
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^10.0.1",
"babel-jest": "^28.0.2",
"babel-loader": "^8.2.5",
"cross-env": "^7.0.3",
"eventsourcemock": "^2.0.0",
"jest": "^28.0.0",
"jest-environment-jsdom": "^28.0.2",
"jest-websocket-mock": "^2.3.0",
"mock-socket": "^9.1.3",
"react": "18.1.0",
"react-dom": "18.1.0",
"react-test-renderer": "18.1.0",
"source-map-loader": "^3.0.1",
"ts-jest": "28.0.0-next.1",
"typescript": "^4.6.3"
},
"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 <robert.taussig@gmail.com> (robtaussig.com)",
"license": "MIT",
"bugs": {
"url": "https://github.com/robtaussig/react-use-websocket/issues"
},
"homepage": "https://github.com/robtaussig/react-use-websocket#readme"
}