@absolutejs/absolute 0.19.0-beta.698 → 0.19.0-beta.699
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/browser.js.map +1 -1
- package/dist/angular/index.js +6 -5
- package/dist/angular/index.js.map +3 -3
- package/dist/angular/server.js +6 -5
- package/dist/angular/server.js.map +3 -3
- package/dist/build.js +6 -5
- package/dist/build.js.map +3 -3
- package/dist/index.js +7 -6
- package/dist/index.js.map +4 -4
- package/dist/src/angular/components/defer-slot.component.d.ts +1 -1
- package/dist/src/core/prepare.d.ts +18 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -43908,8 +43908,9 @@ ${slot.resolvedBindings.map((binding) => ` "${binding.key}": this.__absoluteDef
|
|
|
43908
43908
|
${fields}
|
|
43909
43909
|
`);
|
|
43910
43910
|
}, readAndEscapeFile = async (filePath, stylePreprocessors) => {
|
|
43911
|
-
if (!existsSync16(filePath))
|
|
43912
|
-
|
|
43911
|
+
if (!existsSync16(filePath)) {
|
|
43912
|
+
throw new Error(`Unable to inline Angular style resource: file not found at ${filePath}`);
|
|
43913
|
+
}
|
|
43913
43914
|
const content = await compileStyleFileIfNeeded(filePath, stylePreprocessors);
|
|
43914
43915
|
return escapeTemplateContent(content);
|
|
43915
43916
|
}, inlineTemplateAndLowerDefer = async (source, fileDir) => {
|
|
@@ -43917,7 +43918,7 @@ ${fields}
|
|
|
43917
43918
|
if (templateUrlMatch?.[1]) {
|
|
43918
43919
|
const templatePath = join15(fileDir, templateUrlMatch[1]);
|
|
43919
43920
|
if (!existsSync16(templatePath)) {
|
|
43920
|
-
|
|
43921
|
+
throw new Error(`Unable to inline Angular templateUrl "${templateUrlMatch[1]}": file not found at ${templatePath}`);
|
|
43921
43922
|
}
|
|
43922
43923
|
const templateRaw2 = await fs2.readFile(templatePath, "utf-8");
|
|
43923
43924
|
const lowered2 = lowerAngularDeferSyntax(templateRaw2);
|
|
@@ -43948,7 +43949,7 @@ ${fields}
|
|
|
43948
43949
|
if (templateUrlMatch?.[1]) {
|
|
43949
43950
|
const templatePath = join15(fileDir, templateUrlMatch[1]);
|
|
43950
43951
|
if (!existsSync16(templatePath)) {
|
|
43951
|
-
|
|
43952
|
+
throw new Error(`Unable to inline Angular templateUrl "${templateUrlMatch[1]}": file not found at ${templatePath}`);
|
|
43952
43953
|
}
|
|
43953
43954
|
const templateRaw2 = readFileSync10(templatePath, "utf-8");
|
|
43954
43955
|
const lowered2 = lowerAngularDeferSyntax(templateRaw2);
|
|
@@ -51115,7 +51116,7 @@ var createSitemapPlugin = (buildDir, sitemapConfig) => new Elysia5({ name: "abso
|
|
|
51115
51116
|
return;
|
|
51116
51117
|
Promise.resolve().then(() => (init_generateSitemap(), exports_generateSitemap)).then(({ generateSitemap: generateSitemap2 }) => generateSitemap2(started.routes, server.url.origin, buildDir, sitemapConfig)).catch((err) => console.error("[sitemap] Generation failed:", err));
|
|
51117
51118
|
});
|
|
51118
|
-
var createNotFoundPlugin = () => new Elysia5({ name: "absolutejs-not-found" }).onError(async ({ code }) => {
|
|
51119
|
+
var createNotFoundPlugin = () => new Elysia5({ name: "absolutejs-not-found" }).onError({ as: "global" }, async ({ code }) => {
|
|
51119
51120
|
if (code !== "NOT_FOUND")
|
|
51120
51121
|
return;
|
|
51121
51122
|
const response = await renderFirstNotFound();
|
|
@@ -57812,5 +57813,5 @@ export {
|
|
|
57812
57813
|
ANGULAR_INIT_TIMEOUT_MS
|
|
57813
57814
|
};
|
|
57814
57815
|
|
|
57815
|
-
//# debugId=
|
|
57816
|
+
//# debugId=DC45D0D20A29B90464756E2164756E21
|
|
57816
57817
|
//# sourceMappingURL=index.js.map
|