@modern-js/runtime 2.45.1-alpha.0 → 2.46.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.
|
@@ -111,9 +111,6 @@ const routerPlugin = ({ basename = "", routesConfig, createRoutes }) => {
|
|
|
111
111
|
const routerContext = await query(remixRequest, {
|
|
112
112
|
requestContext
|
|
113
113
|
});
|
|
114
|
-
if ("errors" in routerContext && routerContext.errors && Object.keys(routerContext.errors).length > 0) {
|
|
115
|
-
throw new Error(Object.values(routerContext.errors)[0]);
|
|
116
|
-
}
|
|
117
114
|
const cost = end();
|
|
118
115
|
reporter.reportTiming(import_constants.LOADER_REPORTER_NAME, cost);
|
|
119
116
|
serverTiming.addServeTiming(import_constants.LOADER_REPORTER_NAME, cost);
|
|
@@ -131,9 +131,6 @@ var routerPlugin = function(param) {
|
|
|
131
131
|
];
|
|
132
132
|
case 1:
|
|
133
133
|
routerContext = _state.sent();
|
|
134
|
-
if ("errors" in routerContext && routerContext.errors && Object.keys(routerContext.errors).length > 0) {
|
|
135
|
-
throw new Error(Object.values(routerContext.errors)[0]);
|
|
136
|
-
}
|
|
137
134
|
cost = end();
|
|
138
135
|
reporter.reportTiming(LOADER_REPORTER_NAME, cost);
|
|
139
136
|
serverTiming.addServeTiming(LOADER_REPORTER_NAME, cost);
|
|
@@ -76,9 +76,6 @@ const routerPlugin = ({ basename = "", routesConfig, createRoutes }) => {
|
|
|
76
76
|
const routerContext = await query(remixRequest, {
|
|
77
77
|
requestContext
|
|
78
78
|
});
|
|
79
|
-
if ("errors" in routerContext && routerContext.errors && Object.keys(routerContext.errors).length > 0) {
|
|
80
|
-
throw new Error(Object.values(routerContext.errors)[0]);
|
|
81
|
-
}
|
|
82
79
|
const cost = end();
|
|
83
80
|
reporter.reportTiming(LOADER_REPORTER_NAME, cost);
|
|
84
81
|
serverTiming.addServeTiming(LOADER_REPORTER_NAME, cost);
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "2.
|
|
18
|
+
"version": "2.46.1",
|
|
19
19
|
"engines": {
|
|
20
20
|
"node": ">=14.17.6"
|
|
21
21
|
},
|
|
@@ -171,10 +171,10 @@
|
|
|
171
171
|
"react-side-effect": "^2.1.1",
|
|
172
172
|
"styled-components": "^5.3.1",
|
|
173
173
|
"@swc/helpers": "0.5.3",
|
|
174
|
-
"@modern-js/
|
|
175
|
-
"@modern-js/
|
|
176
|
-
"@modern-js/
|
|
177
|
-
"@modern-js/runtime-utils": "2.
|
|
174
|
+
"@modern-js/utils": "2.46.1",
|
|
175
|
+
"@modern-js/types": "2.46.1",
|
|
176
|
+
"@modern-js/plugin": "2.46.1",
|
|
177
|
+
"@modern-js/runtime-utils": "2.46.1"
|
|
178
178
|
},
|
|
179
179
|
"peerDependencies": {
|
|
180
180
|
"react": ">=17",
|
|
@@ -195,11 +195,11 @@
|
|
|
195
195
|
"ts-jest": "^29.1.0",
|
|
196
196
|
"typescript": "^5",
|
|
197
197
|
"webpack": "^5.89.0",
|
|
198
|
-
"@
|
|
199
|
-
"@modern-js/core": "2.
|
|
200
|
-
"@modern-js/server-core": "2.
|
|
201
|
-
"@
|
|
202
|
-
"@scripts/jest-config": "2.
|
|
198
|
+
"@modern-js/app-tools": "2.46.1",
|
|
199
|
+
"@modern-js/core": "2.46.1",
|
|
200
|
+
"@modern-js/server-core": "2.46.1",
|
|
201
|
+
"@scripts/build": "2.46.1",
|
|
202
|
+
"@scripts/jest-config": "2.46.1"
|
|
203
203
|
},
|
|
204
204
|
"sideEffects": false,
|
|
205
205
|
"publishConfig": {
|