@vercel/node 2.14.0 → 2.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -96,16 +96,8 @@ async function createEdgeRuntimeServer(params) {
96
96
  }
97
97
  const wasmBindings = await params.wasmAssets.getContext();
98
98
  const nodeCompatBindings = params.nodeCompatBindings.getContext();
99
- let WebSocket;
100
- // undici's WebSocket handling is only available in Node.js >= 18
101
- // so fallback to using ws for v16
102
- if (Number(process.version.split('.')[0].substring(1)) < 18) {
103
- // @ts-ignore
104
- WebSocket = (await import('ws')).WebSocket;
105
- }
106
- else {
107
- WebSocket = (await import('undici')).WebSocket;
108
- }
99
+ // @ts-ignore
100
+ const WebSocket = (await import('ws')).WebSocket;
109
101
  const runtime = new EdgeRuntime({
110
102
  initialCode: params.userCode,
111
103
  extend: context => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/node",
3
- "version": "2.14.0",
3
+ "version": "2.14.1",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index",
6
6
  "homepage": "https://vercel.com/docs/runtimes#official-runtimes/node-js",
@@ -34,7 +34,6 @@
34
34
  "ts-morph": "12.0.0",
35
35
  "ts-node": "10.9.1",
36
36
  "typescript": "4.9.5",
37
- "undici": "5.22.0",
38
37
  "ws": "8.13.0"
39
38
  },
40
39
  "devDependencies": {
@@ -58,5 +57,5 @@
58
57
  "source-map-support": "0.5.12",
59
58
  "test-listen": "1.1.0"
60
59
  },
61
- "gitHead": "b5db13c97035d0eae04a5e075ae74e488d1298d6"
60
+ "gitHead": "672c1681cc453744e30f985d3e532111d4d7b120"
62
61
  }