File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 16
16
17
17
strategy :
18
18
matrix :
19
- node-version : [14, 16]
19
+ node-version :
20
+ - 14
21
+ - 20
20
22
21
23
steps :
22
24
- name : Checkout repository
@@ -41,10 +43,10 @@ jobs:
41
43
- name : Checkout repository
42
44
uses : actions/checkout@v3
43
45
44
- - name : Use Node.js 16
46
+ - name : Use Node.js 20
45
47
uses : actions/setup-node@v3
46
48
with :
47
- node-version : 16
49
+ node-version : 20
48
50
49
51
- name : Install dependencies
50
52
run : npm ci
Original file line number Diff line number Diff line change @@ -771,7 +771,10 @@ describe("connection", () => {
771
771
} ) ;
772
772
}
773
773
774
- if ( global . Blob && null != textBlobBuilder ( "xxx" ) ) {
774
+ // Blob is available in Node.js since v18, but not yet supported by the `engine.io-parser` package
775
+ const isBrowser = typeof window !== "undefined" ;
776
+
777
+ if ( isBrowser && global . Blob && textBlobBuilder ( "xxx" ) !== null ) {
775
778
it ( "should send binary data (as a Blob)" , ( ) => {
776
779
return wrap ( ( done ) => {
777
780
const socket = io ( BASE_URL , { forceNew : true } ) ;
You can’t perform that action at this time.
0 commit comments