phonic 0.31.5 → 0.31.6
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.
|
@@ -108,6 +108,7 @@ class ReconnectingWebSocket {
|
|
|
108
108
|
this._clearTimeouts();
|
|
109
109
|
if (this._ws) {
|
|
110
110
|
this._removeListeners();
|
|
111
|
+
this._ws.addEventListener("error", () => { });
|
|
111
112
|
try {
|
|
112
113
|
this._ws.close(1000, "aborted");
|
|
113
114
|
this._handleClose(new Events.CloseEvent(1000, "aborted", this));
|
|
@@ -418,6 +419,7 @@ class ReconnectingWebSocket {
|
|
|
418
419
|
return;
|
|
419
420
|
}
|
|
420
421
|
this._removeListeners();
|
|
422
|
+
this._ws.addEventListener("error", () => { });
|
|
421
423
|
try {
|
|
422
424
|
this._ws.close(code, reason);
|
|
423
425
|
this._handleClose(new Events.CloseEvent(code, reason, this));
|
|
@@ -72,6 +72,7 @@ export class ReconnectingWebSocket {
|
|
|
72
72
|
this._clearTimeouts();
|
|
73
73
|
if (this._ws) {
|
|
74
74
|
this._removeListeners();
|
|
75
|
+
this._ws.addEventListener("error", () => { });
|
|
75
76
|
try {
|
|
76
77
|
this._ws.close(1000, "aborted");
|
|
77
78
|
this._handleClose(new Events.CloseEvent(1000, "aborted", this));
|
|
@@ -382,6 +383,7 @@ export class ReconnectingWebSocket {
|
|
|
382
383
|
return;
|
|
383
384
|
}
|
|
384
385
|
this._removeListeners();
|
|
386
|
+
this._ws.addEventListener("error", () => { });
|
|
385
387
|
try {
|
|
386
388
|
this._ws.close(code, reason);
|
|
387
389
|
this._handleClose(new Events.CloseEvent(code, reason, this));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "phonic",
|
|
3
|
-
"version": "0.31.
|
|
3
|
+
"version": "0.31.6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -125,18 +125,18 @@
|
|
|
125
125
|
"ws": "^8.16.0"
|
|
126
126
|
},
|
|
127
127
|
"devDependencies": {
|
|
128
|
-
"
|
|
129
|
-
"
|
|
130
|
-
"@types/jest": "^29.5.14",
|
|
131
|
-
"@types/node": "^18.19.70",
|
|
128
|
+
"webpack": "^5.97.1",
|
|
129
|
+
"ts-loader": "^9.5.1",
|
|
132
130
|
"@types/ws": "^8.5.10",
|
|
133
131
|
"jest": "^29.7.0",
|
|
132
|
+
"@jest/globals": "^29.7.0",
|
|
133
|
+
"@types/jest": "^29.5.14",
|
|
134
|
+
"ts-jest": "^29.3.4",
|
|
134
135
|
"jest-environment-jsdom": "^29.7.0",
|
|
135
136
|
"msw": "2.11.2",
|
|
136
|
-
"
|
|
137
|
-
"ts-loader": "^9.5.1",
|
|
137
|
+
"@types/node": "^18.19.70",
|
|
138
138
|
"typescript": "~5.7.2",
|
|
139
|
-
"
|
|
139
|
+
"@biomejs/biome": "2.4.3"
|
|
140
140
|
},
|
|
141
141
|
"browser": {
|
|
142
142
|
"fs": false,
|