@absolutejs/absolute 0.19.0-beta.815 → 0.19.0-beta.817
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 +17 -3
- package/dist/build.js.map +4 -4
- package/dist/cli/index.js +17 -0
- package/dist/index.js +17 -3
- package/dist/index.js.map +4 -4
- package/dist/src/cli/scripts/eslint.d.ts +1 -4
- package/dist/src/vue/pageHandler.d.ts +5 -0
- package/dist/vue/index.js +25 -3
- package/dist/vue/index.js.map +3 -3
- package/dist/vue/server.js +25 -3
- package/dist/vue/server.js.map +3 -3
- package/package.json +9 -1
package/dist/cli/index.js
CHANGED
|
@@ -2920,6 +2920,21 @@ var hasKey = (objectLiteralSource, key) => {
|
|
|
2920
2920
|
const pattern = new RegExp(`(^|[\\s,{])${key}\\s*:`, "m");
|
|
2921
2921
|
return pattern.test(objectLiteralSource);
|
|
2922
2922
|
};
|
|
2923
|
+
var NON_GLOBAL_IGNORE_KEYS = [
|
|
2924
|
+
"files",
|
|
2925
|
+
"rules",
|
|
2926
|
+
"plugins",
|
|
2927
|
+
"languageOptions",
|
|
2928
|
+
"linterOptions",
|
|
2929
|
+
"processor",
|
|
2930
|
+
"settings",
|
|
2931
|
+
"extends"
|
|
2932
|
+
];
|
|
2933
|
+
var isGlobalIgnoresBlock = (block) => {
|
|
2934
|
+
if (!hasKey(block, "ignores"))
|
|
2935
|
+
return false;
|
|
2936
|
+
return !NON_GLOBAL_IGNORE_KEYS.some((key) => hasKey(block, key));
|
|
2937
|
+
};
|
|
2923
2938
|
var extractTopLevelObjectLiterals = (source) => {
|
|
2924
2939
|
const arrayStart = source.search(/defineConfig\s*\(\s*\[|export\s+default\s*\[/);
|
|
2925
2940
|
if (arrayStart === -1)
|
|
@@ -2999,6 +3014,8 @@ var checkForMisplacedIgnores = () => {
|
|
|
2999
3014
|
return;
|
|
3000
3015
|
}
|
|
3001
3016
|
const blocks = extractTopLevelObjectLiterals(source);
|
|
3017
|
+
if (blocks.some(isGlobalIgnoresBlock))
|
|
3018
|
+
return;
|
|
3002
3019
|
let offenderCount = 0;
|
|
3003
3020
|
for (const block of blocks) {
|
|
3004
3021
|
if (hasKey(block, "ignores") && hasKey(block, "files")) {
|
package/dist/index.js
CHANGED
|
@@ -10642,7 +10642,7 @@ if (typeof __VUE_HMR_RUNTIME__ !== 'undefined') {
|
|
|
10642
10642
|
] : [];
|
|
10643
10643
|
await write2(indexOutputFile, [
|
|
10644
10644
|
...vueHmrImports,
|
|
10645
|
-
`import Comp from "${relative8(dirname12(indexOutputFile), clientOutputFile).replace(/\\/g, "/")}";`,
|
|
10645
|
+
`import Comp, * as PageModule from "${relative8(dirname12(indexOutputFile), clientOutputFile).replace(/\\/g, "/")}";`,
|
|
10646
10646
|
'import { createSSRApp, createApp } from "vue";',
|
|
10647
10647
|
"",
|
|
10648
10648
|
"// HMR State Preservation: Check for preserved state from HMR",
|
|
@@ -10677,7 +10677,21 @@ if (typeof __VUE_HMR_RUNTIME__ !== 'undefined') {
|
|
|
10677
10677
|
'const isSsrDirty = typeof window !== "undefined" && window.__SSR_DIRTY__;',
|
|
10678
10678
|
'const shouldHydrate = typeof window === "undefined" ? false : !(isHMR || isSsrDirty);',
|
|
10679
10679
|
"const app = shouldHydrate ? createSSRApp(Comp, mergedProps) : createApp(Comp, mergedProps);",
|
|
10680
|
-
|
|
10680
|
+
"",
|
|
10681
|
+
"// Optional setupApp hook \u2014 page modules can export `setupApp(app, { url, isServer })`",
|
|
10682
|
+
"// to attach plugins like vue-router that require app.use() before mount.",
|
|
10683
|
+
"// On the client we pass the current location.pathname + search as `url` and",
|
|
10684
|
+
"// `isServer: false` so the same hook works in both environments.",
|
|
10685
|
+
"async function bootstrapApp() {",
|
|
10686
|
+
' if (typeof PageModule.setupApp === "function") {',
|
|
10687
|
+
' const clientUrl = typeof window !== "undefined"',
|
|
10688
|
+
" ? window.location.pathname + window.location.search",
|
|
10689
|
+
' : "/";',
|
|
10690
|
+
" await PageModule.setupApp(app, { url: clientUrl, isServer: false });",
|
|
10691
|
+
" }",
|
|
10692
|
+
' app.mount("#root");',
|
|
10693
|
+
"}",
|
|
10694
|
+
"bootstrapApp();",
|
|
10681
10695
|
"",
|
|
10682
10696
|
"// Store app instance for HMR - used for manual component updates",
|
|
10683
10697
|
'if (typeof window !== "undefined") {',
|
|
@@ -26789,5 +26803,5 @@ export {
|
|
|
26789
26803
|
ANGULAR_INIT_TIMEOUT_MS
|
|
26790
26804
|
};
|
|
26791
26805
|
|
|
26792
|
-
//# debugId=
|
|
26806
|
+
//# debugId=A3959AC7E8601C6464756E2164756E21
|
|
26793
26807
|
//# sourceMappingURL=index.js.map
|