Skip to content

Commit d0b22c6

Browse files
igorlsdarrachequesne
authored andcommittedFeb 20, 2023
fix(types): fix nodenext module resolution compatibility (#4625)
The import added in [1] was invalid, because it used an non-exported class. Related: #4621 [1]: d4a9b2c
1 parent e71f3d7 commit d0b22c6

File tree

3 files changed

+13
-15
lines changed

3 files changed

+13
-15
lines changed
 

‎lib/index.ts

+3-5
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,11 @@ import { createDeflate, createGzip, createBrotliCompress } from "zlib";
66
import accepts = require("accepts");
77
import { pipeline } from "stream";
88
import path = require("path");
9-
import {
10-
attach,
11-
Server as Engine,
9+
import { attach, Server as Engine, uServer } from "engine.io";
10+
import type {
1211
ServerOptions as EngineOptions,
1312
AttachOptions,
14-
uServer,
13+
BaseServer,
1514
} from "engine.io";
1615
import { Client } from "./client";
1716
import { EventEmitter } from "events";
@@ -41,7 +40,6 @@ import {
4140
SecondArg,
4241
} from "./typed-events";
4342
import { patchAdapter, restoreAdapter, serveFile } from "./uws";
44-
import type { BaseServer } from "engine.io/build/server";
4543

4644
const debug = debugModule("socket.io:server");
4745

‎package-lock.json

+9-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"accepts": "~1.3.4",
5050
"base64id": "~2.0.0",
5151
"debug": "~4.3.2",
52-
"engine.io": "~6.4.0",
52+
"engine.io": "~6.4.1",
5353
"socket.io-adapter": "~2.5.2",
5454
"socket.io-parser": "~4.2.1"
5555
},

0 commit comments

Comments
 (0)
Please sign in to comment.