@moku-labs/web 1.12.1 → 1.12.2
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.
- package/dist/browser.mjs +2 -3
- package/dist/index.cjs +2 -3
- package/dist/index.mjs +2 -3
- package/package.json +1 -1
package/dist/browser.mjs
CHANGED
|
@@ -4178,7 +4178,7 @@ function createSpaKernel(state, config, emit, deps) {
|
|
|
4178
4178
|
progress?.done();
|
|
4179
4179
|
};
|
|
4180
4180
|
const handlers = {
|
|
4181
|
-
onStart:
|
|
4181
|
+
onStart: () => {},
|
|
4182
4182
|
onEnd: handleEnd,
|
|
4183
4183
|
onError: handleError
|
|
4184
4184
|
};
|
|
@@ -4235,7 +4235,6 @@ function createSpaKernel(state, config, emit, deps) {
|
|
|
4235
4235
|
const commitDataRender = async (pathname, resolvedRender, signal) => {
|
|
4236
4236
|
if (signal?.aborted) return;
|
|
4237
4237
|
const { route, vnode, routeContext, region } = resolvedRender;
|
|
4238
|
-
handleStart(pathname);
|
|
4239
4238
|
const { renderVNode } = await import("./render-BNe0s7fr.mjs");
|
|
4240
4239
|
if (signal?.aborted) return;
|
|
4241
4240
|
syncDataHead(deps.head, route, routeContext);
|
|
@@ -4281,7 +4280,6 @@ function createSpaKernel(state, config, emit, deps) {
|
|
|
4281
4280
|
await commitDataRender(pathname, resolvedRender, signal);
|
|
4282
4281
|
return true;
|
|
4283
4282
|
} catch {
|
|
4284
|
-
progress?.done();
|
|
4285
4283
|
return false;
|
|
4286
4284
|
}
|
|
4287
4285
|
};
|
|
@@ -4302,6 +4300,7 @@ function createSpaKernel(state, config, emit, deps) {
|
|
|
4302
4300
|
*/
|
|
4303
4301
|
const navigate = async (pathname, scrollToTop = true, signal) => {
|
|
4304
4302
|
pendingScrollToTop = scrollToTop;
|
|
4303
|
+
handleStart(pathname);
|
|
4305
4304
|
if (deps.router.mode() !== "ssg" && await tryDataRender(pathname, signal)) return;
|
|
4306
4305
|
if (signal?.aborted) return;
|
|
4307
4306
|
await performNavigation(pathname, handlers, signal);
|
package/dist/index.cjs
CHANGED
|
@@ -11079,7 +11079,7 @@ function createSpaKernel(state, config, emit, deps) {
|
|
|
11079
11079
|
progress?.done();
|
|
11080
11080
|
};
|
|
11081
11081
|
const handlers = {
|
|
11082
|
-
onStart:
|
|
11082
|
+
onStart: () => {},
|
|
11083
11083
|
onEnd: handleEnd,
|
|
11084
11084
|
onError: handleError
|
|
11085
11085
|
};
|
|
@@ -11136,7 +11136,6 @@ function createSpaKernel(state, config, emit, deps) {
|
|
|
11136
11136
|
const commitDataRender = async (pathname, resolvedRender, signal) => {
|
|
11137
11137
|
if (signal?.aborted) return;
|
|
11138
11138
|
const { route, vnode, routeContext, region } = resolvedRender;
|
|
11139
|
-
handleStart(pathname);
|
|
11140
11139
|
const { renderVNode } = await Promise.resolve().then(() => require("./render-DLZEOe4M.cjs"));
|
|
11141
11140
|
if (signal?.aborted) return;
|
|
11142
11141
|
syncDataHead(deps.head, route, routeContext);
|
|
@@ -11182,7 +11181,6 @@ function createSpaKernel(state, config, emit, deps) {
|
|
|
11182
11181
|
await commitDataRender(pathname, resolvedRender, signal);
|
|
11183
11182
|
return true;
|
|
11184
11183
|
} catch {
|
|
11185
|
-
progress?.done();
|
|
11186
11184
|
return false;
|
|
11187
11185
|
}
|
|
11188
11186
|
};
|
|
@@ -11203,6 +11201,7 @@ function createSpaKernel(state, config, emit, deps) {
|
|
|
11203
11201
|
*/
|
|
11204
11202
|
const navigate = async (pathname, scrollToTop = true, signal) => {
|
|
11205
11203
|
pendingScrollToTop = scrollToTop;
|
|
11204
|
+
handleStart(pathname);
|
|
11206
11205
|
if (deps.router.mode() !== "ssg" && await tryDataRender(pathname, signal)) return;
|
|
11207
11206
|
if (signal?.aborted) return;
|
|
11208
11207
|
await performNavigation(pathname, handlers, signal);
|
package/dist/index.mjs
CHANGED
|
@@ -11066,7 +11066,7 @@ function createSpaKernel(state, config, emit, deps) {
|
|
|
11066
11066
|
progress?.done();
|
|
11067
11067
|
};
|
|
11068
11068
|
const handlers = {
|
|
11069
|
-
onStart:
|
|
11069
|
+
onStart: () => {},
|
|
11070
11070
|
onEnd: handleEnd,
|
|
11071
11071
|
onError: handleError
|
|
11072
11072
|
};
|
|
@@ -11123,7 +11123,6 @@ function createSpaKernel(state, config, emit, deps) {
|
|
|
11123
11123
|
const commitDataRender = async (pathname, resolvedRender, signal) => {
|
|
11124
11124
|
if (signal?.aborted) return;
|
|
11125
11125
|
const { route, vnode, routeContext, region } = resolvedRender;
|
|
11126
|
-
handleStart(pathname);
|
|
11127
11126
|
const { renderVNode } = await import("./render-BNe0s7fr.mjs");
|
|
11128
11127
|
if (signal?.aborted) return;
|
|
11129
11128
|
syncDataHead(deps.head, route, routeContext);
|
|
@@ -11169,7 +11168,6 @@ function createSpaKernel(state, config, emit, deps) {
|
|
|
11169
11168
|
await commitDataRender(pathname, resolvedRender, signal);
|
|
11170
11169
|
return true;
|
|
11171
11170
|
} catch {
|
|
11172
|
-
progress?.done();
|
|
11173
11171
|
return false;
|
|
11174
11172
|
}
|
|
11175
11173
|
};
|
|
@@ -11190,6 +11188,7 @@ function createSpaKernel(state, config, emit, deps) {
|
|
|
11190
11188
|
*/
|
|
11191
11189
|
const navigate = async (pathname, scrollToTop = true, signal) => {
|
|
11192
11190
|
pendingScrollToTop = scrollToTop;
|
|
11191
|
+
handleStart(pathname);
|
|
11193
11192
|
if (deps.router.mode() !== "ssg" && await tryDataRender(pathname, signal)) return;
|
|
11194
11193
|
if (signal?.aborted) return;
|
|
11195
11194
|
await performNavigation(pathname, handlers, signal);
|
package/package.json
CHANGED