@absolutejs/absolute 0.19.0-beta.1094 → 0.19.0-beta.1095
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/angular/components/core/streamingSlotRegistrar.js +1 -1
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
- package/dist/build.js +16 -1
- package/dist/build.js.map +4 -4
- package/dist/index.js +16 -1
- package/dist/index.js.map +4 -4
- package/dist/types/vue.d.ts +3 -0
- package/dist/vue/index.js +11 -1
- package/dist/vue/index.js.map +3 -3
- package/dist/vue/server.js +11 -1
- package/dist/vue/server.js.map +3 -3
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var __require = import.meta.require;
|
|
3
3
|
|
|
4
|
-
// .angular-partial-tmp-
|
|
4
|
+
// .angular-partial-tmp-4JpE4m/src/core/streamingSlotRegistrar.ts
|
|
5
5
|
var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
|
|
6
6
|
var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
|
|
7
7
|
var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var __require = import.meta.require;
|
|
3
3
|
|
|
4
|
-
// .angular-partial-tmp-
|
|
4
|
+
// .angular-partial-tmp-4JpE4m/src/core/streamingSlotRegistrar.ts
|
|
5
5
|
var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
|
|
6
6
|
var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
|
|
7
7
|
var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
|
|
@@ -48,7 +48,7 @@ var warnMissingStreamingSlotCollector = (primitiveName) => {
|
|
|
48
48
|
getWarningController()?.maybeWarn(primitiveName);
|
|
49
49
|
};
|
|
50
50
|
|
|
51
|
-
// .angular-partial-tmp-
|
|
51
|
+
// .angular-partial-tmp-4JpE4m/src/core/streamingSlotRegistry.ts
|
|
52
52
|
var STREAMING_SLOT_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotAsyncLocalStorage");
|
|
53
53
|
var isObjectRecord2 = (value) => Boolean(value) && typeof value === "object";
|
|
54
54
|
var isAsyncLocalStorage = (value) => isObjectRecord2(value) && ("getStore" in value) && typeof value.getStore === "function" && ("run" in value) && typeof value.run === "function";
|
package/dist/build.js
CHANGED
|
@@ -14319,6 +14319,20 @@ export const setupApp = async (app, ctx) => {
|
|
|
14319
14319
|
if (__absoluteUserSetupApp__) {
|
|
14320
14320
|
await __absoluteUserSetupApp__(app, { ...ctx, router });
|
|
14321
14321
|
}
|
|
14322
|
+
const currentRouteMatched = router.currentRoute.value.matched.length > 0;
|
|
14323
|
+
if (!currentRouteMatched) {
|
|
14324
|
+
if (ctx.isServer) {
|
|
14325
|
+
ctx.setNotFound();
|
|
14326
|
+
} else {
|
|
14327
|
+
window.location.assign(ctx.url);
|
|
14328
|
+
}
|
|
14329
|
+
return;
|
|
14330
|
+
}
|
|
14331
|
+
if (!ctx.isServer) {
|
|
14332
|
+
router.afterEach((to) => {
|
|
14333
|
+
if (to.matched.length === 0) window.location.assign(to.fullPath);
|
|
14334
|
+
});
|
|
14335
|
+
}
|
|
14322
14336
|
};
|
|
14323
14337
|
`;
|
|
14324
14338
|
return sourceContent.replace(SCRIPT_REGEX, `${openTag}${rewrittenScript}${autoWrapper}${closeTag}`);
|
|
@@ -14742,6 +14756,7 @@ if (typeof __VUE_HMR_RUNTIME__ !== 'undefined') {
|
|
|
14742
14756
|
" await setupAppHook(app, {",
|
|
14743
14757
|
" isServer: false,",
|
|
14744
14758
|
" router: null,",
|
|
14759
|
+
" setNotFound: () => {},",
|
|
14745
14760
|
" setRedirect: () => {},",
|
|
14746
14761
|
" url: clientUrl",
|
|
14747
14762
|
" });",
|
|
@@ -28684,5 +28699,5 @@ export {
|
|
|
28684
28699
|
build
|
|
28685
28700
|
};
|
|
28686
28701
|
|
|
28687
|
-
//# debugId=
|
|
28702
|
+
//# debugId=801F8C678931957464756E2164756E21
|
|
28688
28703
|
//# sourceMappingURL=build.js.map
|