@modern-js/server-core 2.68.8 → 2.68.10
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.
|
@@ -141,7 +141,7 @@ const handleResponseError = (e, res) => {
|
|
|
141
141
|
const err = e instanceof Error ? e : new Error("unknown error", {
|
|
142
142
|
cause: e
|
|
143
143
|
});
|
|
144
|
-
if (err.code === "ERR_STREAM_PREMATURE_CLOSE") {
|
|
144
|
+
if (err.code === "ABORT_ERR" || err.code === "ERR_STREAM_PREMATURE_CLOSE") {
|
|
145
145
|
console.info("The user aborted a request.");
|
|
146
146
|
} else {
|
|
147
147
|
console.error(e);
|
|
@@ -203,7 +203,7 @@ var handleResponseError = function(e, res) {
|
|
|
203
203
|
var err = _instanceof(e, Error) ? e : new Error("unknown error", {
|
|
204
204
|
cause: e
|
|
205
205
|
});
|
|
206
|
-
if (err.code === "ERR_STREAM_PREMATURE_CLOSE") {
|
|
206
|
+
if (err.code === "ABORT_ERR" || err.code === "ERR_STREAM_PREMATURE_CLOSE") {
|
|
207
207
|
console.info("The user aborted a request.");
|
|
208
208
|
} else {
|
|
209
209
|
console.error(e);
|
|
@@ -106,7 +106,7 @@ const handleResponseError = (e, res) => {
|
|
|
106
106
|
const err = e instanceof Error ? e : new Error("unknown error", {
|
|
107
107
|
cause: e
|
|
108
108
|
});
|
|
109
|
-
if (err.code === "ERR_STREAM_PREMATURE_CLOSE") {
|
|
109
|
+
if (err.code === "ABORT_ERR" || err.code === "ERR_STREAM_PREMATURE_CLOSE") {
|
|
110
110
|
console.info("The user aborted a request.");
|
|
111
111
|
} else {
|
|
112
112
|
console.error(e);
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "2.68.
|
|
18
|
+
"version": "2.68.10",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"types": "./dist/types/index.d.ts",
|
|
21
21
|
"main": "./dist/cjs/index.js",
|
|
@@ -54,10 +54,10 @@
|
|
|
54
54
|
"flatted": "^3.3.3",
|
|
55
55
|
"hono": "^3.12.2",
|
|
56
56
|
"ts-deepmerge": "7.0.2",
|
|
57
|
-
"@modern-js/plugin": "2.68.
|
|
58
|
-
"@modern-js/
|
|
59
|
-
"@modern-js/
|
|
60
|
-
"@modern-js/utils": "2.68.
|
|
57
|
+
"@modern-js/plugin": "2.68.10",
|
|
58
|
+
"@modern-js/runtime-utils": "2.68.10",
|
|
59
|
+
"@modern-js/plugin-v2": "2.68.10",
|
|
60
|
+
"@modern-js/utils": "2.68.10"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@types/cloneable-readable": "^2.0.3",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"jest": "^29",
|
|
69
69
|
"ts-jest": "^29.1.0",
|
|
70
70
|
"typescript": "^5",
|
|
71
|
-
"@modern-js/types": "2.68.
|
|
71
|
+
"@modern-js/types": "2.68.10",
|
|
72
72
|
"@scripts/build": "2.66.0",
|
|
73
73
|
"@scripts/jest-config": "2.66.0"
|
|
74
74
|
},
|