-
Notifications
You must be signed in to change notification settings - Fork 17
/
package.json
119 lines (119 loc) · 3.76 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
{
"name": "crossws",
"version": "0.3.1",
"description": "Cross-platform WebSocket Servers for Node.js, Deno, Bun and Cloudflare Workers",
"repository": "unjs/crossws",
"license": "MIT",
"sideEffects": false,
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"./adapters/bun": {
"types": "./dist/adapters/bun.d.mts",
"default": "./dist/adapters/bun.mjs"
},
"./adapters/deno": {
"types": "./dist/adapters/deno.d.mts",
"default": "./dist/adapters/deno.mjs"
},
"./adapters/cloudflare": {
"types": "./dist/adapters/cloudflare.d.mts",
"default": "./dist/adapters/cloudflare.mjs"
},
"./adapters/cloudflare-durable": {
"types": "./dist/adapters/cloudflare-durable.d.mts",
"default": "./dist/adapters/cloudflare-durable.mjs"
},
"./adapters/sse": {
"types": "./dist/adapters/sse.d.mts",
"default": "./dist/adapters/sse.mjs"
},
"./adapters/node": {
"types": "./dist/adapters/node.d.mts",
"default": "./dist/adapters/node.mjs"
},
"./adapters/uws": {
"types": "./dist/adapters/uws.d.mts",
"default": "./dist/adapters/uws.mjs"
},
"./websocket": {
"types": "./dist/websocket/native.d.mts",
"browser": "./dist/websocket/native.mjs",
"worker": "./dist/websocket/native.mjs",
"bun": "./dist/websocket/native.mjs",
"deno": "./dist/websocket/native.mjs",
"edge-light": "./dist/websocket/native.mjs",
"workerd": "./dist/websocket/native.mjs",
"node": "./dist/websocket/node.mjs",
"default": "./dist/websocket/native.mjs"
},
"./websocket/sse": {
"types": "./dist/websocket/sse.d.mts",
"default": "./dist/websocket/sse.mjs"
}
},
"main": "./dist/index.mjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.mts",
"files": [
"dist",
"adapters",
"*.d.ts"
],
"scripts": {
"build": "unbuild",
"dev": "vitest",
"lint": "eslint --cache . && prettier -c src test",
"lint:fix": "eslint --cache . --fix && prettier -w src test",
"prepack": "pnpm run build",
"play:bun": "bun --watch test/fixture/bun.ts",
"play:cf": "wrangler dev --port 3001 -c test/fixture/wrangler.toml",
"play:cf-durable": "wrangler dev --port 3001 -c test/fixture/wrangler-durable.toml",
"play:deno": "deno run --watch --unstable-byonm -A test/fixture/deno.ts",
"play:node": "jiti test/fixture/node.ts",
"play:sse": "deno run --unstable-byonm -A --watch test/fixture/sse.ts",
"play:uws": "jiti test/fixture/uws.ts",
"release": "pnpm test && pnpm build && changelogen --release && npm publish && git push --follow-tags",
"test": "pnpm lint && pnpm test:types && vitest run --coverage",
"test:types": "tsc --noEmit --skipLibCheck"
},
"resolutions": {
"crossws": "workspace:*"
},
"dependencies": {
"uncrypto": "^0.1.3"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20241112.0",
"@types/bun": "^1.1.14",
"@types/deno": "^2.0.0",
"@types/eventsource": "^1.1.15",
"@types/node": "^22.10.0",
"@types/web": "^0.0.183",
"@types/ws": "^8.5.13",
"@vitest/coverage-v8": "^2.1.6",
"automd": "^0.3.12",
"changelogen": "^0.5.7",
"consola": "^3.2.3",
"eslint": "^9.15.0",
"eslint-config-unjs": "^0.4.2",
"eventsource": "^2.0.2",
"execa": "^9.5.1",
"get-port-please": "^3.1.2",
"h3": "^1.13.0",
"jiti": "^2.4.0",
"listhen": "^1.9.0",
"prettier": "^3.4.1",
"typescript": "^5.7.2",
"uWebSockets.js": "github:uNetworking/uWebSockets.js#v20.44.0",
"unbuild": "^2.0.0",
"undici": "^6.21.0",
"vitest": "^2.1.6",
"wrangler": "^3.91.0",
"ws": "^8.18.0"
},
"packageManager": "pnpm@9.14.2"
}