@absolutejs/absolute 0.19.0-beta.1093 → 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 +20 -2
- package/dist/build.js.map +6 -6
- package/dist/index.js +20 -2
- package/dist/index.js.map +6 -6
- 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
package/dist/index.js
CHANGED
|
@@ -24413,6 +24413,20 @@ export const setupApp = async (app, ctx) => {
|
|
|
24413
24413
|
if (__absoluteUserSetupApp__) {
|
|
24414
24414
|
await __absoluteUserSetupApp__(app, { ...ctx, router });
|
|
24415
24415
|
}
|
|
24416
|
+
const currentRouteMatched = router.currentRoute.value.matched.length > 0;
|
|
24417
|
+
if (!currentRouteMatched) {
|
|
24418
|
+
if (ctx.isServer) {
|
|
24419
|
+
ctx.setNotFound();
|
|
24420
|
+
} else {
|
|
24421
|
+
window.location.assign(ctx.url);
|
|
24422
|
+
}
|
|
24423
|
+
return;
|
|
24424
|
+
}
|
|
24425
|
+
if (!ctx.isServer) {
|
|
24426
|
+
router.afterEach((to) => {
|
|
24427
|
+
if (to.matched.length === 0) window.location.assign(to.fullPath);
|
|
24428
|
+
});
|
|
24429
|
+
}
|
|
24416
24430
|
};
|
|
24417
24431
|
`;
|
|
24418
24432
|
return sourceContent.replace(SCRIPT_REGEX, `${openTag}${rewrittenScript}${autoWrapper}${closeTag}`);
|
|
@@ -24836,6 +24850,7 @@ if (typeof __VUE_HMR_RUNTIME__ !== 'undefined') {
|
|
|
24836
24850
|
" await setupAppHook(app, {",
|
|
24837
24851
|
" isServer: false,",
|
|
24838
24852
|
" router: null,",
|
|
24853
|
+
" setNotFound: () => {},",
|
|
24839
24854
|
" setRedirect: () => {},",
|
|
24840
24855
|
" url: clientUrl",
|
|
24841
24856
|
" });",
|
|
@@ -37762,6 +37777,7 @@ __export(exports_buildDepVendor, {
|
|
|
37762
37777
|
buildDepVendor: () => buildDepVendor
|
|
37763
37778
|
});
|
|
37764
37779
|
import { mkdirSync as mkdirSync14 } from "fs";
|
|
37780
|
+
import { isBuiltin } from "module";
|
|
37765
37781
|
import { join as join46 } from "path";
|
|
37766
37782
|
import { rm as rm10 } from "fs/promises";
|
|
37767
37783
|
var {build: bunBuild9, Glob: Glob10 } = globalThis.Bun;
|
|
@@ -37780,7 +37796,7 @@ var toSafeFileName6 = (specifier) => {
|
|
|
37780
37796
|
} catch {
|
|
37781
37797
|
return false;
|
|
37782
37798
|
}
|
|
37783
|
-
}, isBareSpecifier2 = (spec) => !spec.startsWith(".") && !spec.startsWith("/") && !spec.startsWith("@src/"), isAbsolutePackageSpecifier = (spec) => spec === "@absolutejs/absolute" || spec.startsWith("@absolutejs/absolute/"), FRAMEWORK_SPECIFIERS, FRAMEWORK_NAMESPACE_PREFIXES, isFrameworkSpecifier = (spec) => FRAMEWORK_SPECIFIERS.has(spec) || FRAMEWORK_NAMESPACE_PREFIXES.some((prefix) => spec.startsWith(prefix)), FRAMEWORK_EXTERNALS, isSkippedFile = (file5) => file5.includes("node_modules") || file5.includes("/build/") || file5.includes("/dist/") || file5.includes("/indexes/"), isDepSpecifier = (path) => isBareSpecifier2(path) && !isFrameworkSpecifier(path) && !isAbsolutePackageSpecifier(path), isFrameworkRootCandidate = (path) => isBareSpecifier2(path) && isFrameworkSpecifier(path) && !isAbsolutePackageSpecifier(path), readFileSpecifiers = async (file5, transpiler6) => {
|
|
37799
|
+
}, isBareSpecifier2 = (spec) => !spec.startsWith(".") && !spec.startsWith("/") && !spec.startsWith("@src/"), isAbsolutePackageSpecifier = (spec) => spec === "@absolutejs/absolute" || spec.startsWith("@absolutejs/absolute/"), FRAMEWORK_SPECIFIERS, FRAMEWORK_NAMESPACE_PREFIXES, isFrameworkSpecifier = (spec) => FRAMEWORK_SPECIFIERS.has(spec) || FRAMEWORK_NAMESPACE_PREFIXES.some((prefix) => spec.startsWith(prefix)), FRAMEWORK_EXTERNALS, isSkippedFile = (file5) => file5.includes("node_modules") || file5.includes("/build/") || file5.includes("/dist/") || file5.includes("/indexes/"), isDepSpecifier = (path) => isBareSpecifier2(path) && !isBuiltin(path) && !isFrameworkSpecifier(path) && !isAbsolutePackageSpecifier(path), isFrameworkRootCandidate = (path) => isBareSpecifier2(path) && isFrameworkSpecifier(path) && !isAbsolutePackageSpecifier(path), readFileSpecifiers = async (file5, transpiler6) => {
|
|
37784
37800
|
const dep = [];
|
|
37785
37801
|
const framework = [];
|
|
37786
37802
|
try {
|
|
@@ -37883,6 +37899,8 @@ var toSafeFileName6 = (specifier) => {
|
|
|
37883
37899
|
for (const child of bareImports) {
|
|
37884
37900
|
if (!isBareSpecifier2(child))
|
|
37885
37901
|
continue;
|
|
37902
|
+
if (isBuiltin(child))
|
|
37903
|
+
continue;
|
|
37886
37904
|
if (isFrameworkSpecifier(child))
|
|
37887
37905
|
continue;
|
|
37888
37906
|
if (isAbsolutePackageSpecifier(child))
|
|
@@ -47758,5 +47776,5 @@ export {
|
|
|
47758
47776
|
ANGULAR_INIT_TIMEOUT_MS
|
|
47759
47777
|
};
|
|
47760
47778
|
|
|
47761
|
-
//# debugId=
|
|
47779
|
+
//# debugId=1D2543DFA3A7B3D964756E2164756E21
|
|
47762
47780
|
//# sourceMappingURL=index.js.map
|