@absolutejs/absolute 0.19.0-beta.212 → 0.19.0-beta.214
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/.absolutejs/cache/angular-linker/03f269392dcdbe53b0482927caa1ff17.js +33 -0
- package/.absolutejs/cache/angular-linker/341d75bd709b8e3da5e0191e3ae7ff34.js +2029 -0
- package/.absolutejs/cache/angular-linker/54161bce55bb149350556317e341619b.js +2872 -0
- package/.absolutejs/cache/angular-linker/58ef0a50d4370cda2b180a0e28ccc9a0.js +381 -0
- package/.absolutejs/cache/angular-linker/6d5602e0777a6bf3dc286d1418e37eeb.js +593 -0
- package/.absolutejs/cache/angular-linker/73f3352125fe12196d76075dab653b06.js +2836 -0
- package/.absolutejs/cache/angular-linker/8d0343b38de78de9075d2b7aaef4a0d6.js +693 -0
- package/.absolutejs/cache/angular-linker/cd4015dfcb0e8b06d279f929ba472d70.js +122 -0
- package/.absolutejs/cache/angular-linker/d7949b8b530e790ee1d7c5f4d9f4e561.js +314 -0
- package/.absolutejs/cache/angular-linker/e1bf85e34581dfb0ed6555e030c158e2.js +1351 -0
- package/.absolutejs/prettier.cache.json +236 -0
- package/.absolutejs/tsc.tsbuildinfo +1 -0
- package/.absolutejs/tsconfig.tsbuildinfo +1 -1
- package/.absolutejs/tsconfig.vue-check.json +6 -0
- package/.absolutejs/vue-tsc.tsbuildinfo +1 -1
- package/build/.cache/images/47f6059ee156360b7a041933b4978cbcb2011a1c9a67d833558d233472be079b.data +0 -0
- package/build/.cache/images/47f6059ee156360b7a041933b4978cbcb2011a1c9a67d833558d233472be079b.meta +1 -0
- package/build/.cache/images/5099ad2f32e4636aa812b97dd0dff1d1b439e24b5e97b2d55fe4f77367f461a4.data +0 -0
- package/build/.cache/images/5099ad2f32e4636aa812b97dd0dff1d1b439e24b5e97b2d55fe4f77367f461a4.meta +1 -0
- package/build/.cache/images/6ee00034d791ddd8b7f3ec800a222632adaf1e8c9fcedc480c773466fc10d1d5.data +0 -0
- package/build/.cache/images/6ee00034d791ddd8b7f3ec800a222632adaf1e8c9fcedc480c773466fc10d1d5.meta +1 -0
- package/build/.cache/images/70714161d457f1df2ede250334bd6060a38a652f10f043791c77d853f3005930.data +0 -0
- package/build/.cache/images/70714161d457f1df2ede250334bd6060a38a652f10f043791c77d853f3005930.meta +1 -0
- package/build/.cache/images/7eda684ed9d49b20bd3f8a52c1d2567c7c01a8b73fd7f880a103c0ec3c14f475.data +0 -0
- package/build/.cache/images/7eda684ed9d49b20bd3f8a52c1d2567c7c01a8b73fd7f880a103c0ec3c14f475.meta +1 -0
- package/build/.cache/images/926071f8d8f974eb91ccf882b478526c5926bc6693d663cdd304c57e7b3e0746.data +0 -0
- package/build/.cache/images/926071f8d8f974eb91ccf882b478526c5926bc6693d663cdd304c57e7b3e0746.meta +1 -0
- package/build/.cache/images/99fa4c4518e49ec0b205f2c67f9d535672053b80c8637540f9ce759ae5f6bbce.data +0 -0
- package/build/.cache/images/99fa4c4518e49ec0b205f2c67f9d535672053b80c8637540f9ce759ae5f6bbce.meta +1 -0
- package/build/.cache/images/d6ecd32c804dc52e56da07bd7d05876ff7f02e2e193baa94e15d1cf9022404d7.data +0 -0
- package/build/.cache/images/d6ecd32c804dc52e56da07bd7d05876ff7f02e2e193baa94e15d1cf9022404d7.meta +1 -0
- package/build/.cache/images/e68219762a1b21ec08ddaf67023cbd689c7f23ab406efa076007b36e4d5844d4.data +0 -0
- package/build/.cache/images/e68219762a1b21ec08ddaf67023cbd689c7f23ab406efa076007b36e4d5844d4.meta +1 -0
- package/build/.cache/images/e6c1d2e1ea4f97ba38de446e595eb7e0a54f50e282f4d3e02d94d9fd17057066.data +0 -0
- package/build/.cache/images/e6c1d2e1ea4f97ba38de446e595eb7e0a54f50e282f4d3e02d94d9fd17057066.meta +1 -0
- package/build/.cache/images/f422de3006871f116d1e262ada57671fd9a77d6922b565de81cdc7c574fdccb2.data +0 -0
- package/build/.cache/images/f422de3006871f116d1e262ada57671fd9a77d6922b565de81cdc7c574fdccb2.meta +1 -0
- package/build/assets/jpg/test.jpg +0 -0
- package/build/sitemap.xml +3 -0
- package/dist/{Image-599vc5xz.vue → Image-k52pzpdh.vue} +71 -37
- package/dist/angular/components/image.component.js +27 -19
- package/dist/angular/index.js.map +2 -2
- package/dist/build.js +6 -12
- package/dist/build.js.map +5 -5
- package/dist/cli/index.js +53 -11
- package/dist/image-client/imageClient.js +1 -10
- package/dist/index.js +6 -12
- package/dist/index.js.map +6 -6
- package/dist/react/components/browser/index.js +1 -10
- package/dist/react/components/index.js +6 -12
- package/dist/react/components/index.js.map +4 -4
- package/dist/svelte/components/Image.svelte +8 -5
- package/dist/vue/components/Image.vue +71 -37
- package/dist/vue/components/index.js +1 -1
- package/package.json +1 -1
- package/scripts/build.ts +308 -295
- package/types/metadata.ts +7 -1
package/dist/cli/index.js
CHANGED
|
@@ -991,21 +991,60 @@ var run = async (name, command) => {
|
|
|
991
991
|
stderr: "pipe",
|
|
992
992
|
stdout: "pipe"
|
|
993
993
|
});
|
|
994
|
+
const [stdout, stderr] = await Promise.all([
|
|
995
|
+
new Response(proc.stdout).text(),
|
|
996
|
+
new Response(proc.stderr).text()
|
|
997
|
+
]);
|
|
994
998
|
const exitCode = await proc.exited;
|
|
995
|
-
const stdout = proc.stdout ? await new Response(proc.stdout).text() : "";
|
|
996
|
-
const stderr = proc.stderr ? await new Response(proc.stderr).text() : "";
|
|
997
999
|
return { exitCode, name, output: (stdout + stderr).trim() };
|
|
998
1000
|
}, findBin = (name) => {
|
|
999
1001
|
const local = resolve7("node_modules", ".bin", name);
|
|
1000
1002
|
return existsSync9(local) ? local : null;
|
|
1001
|
-
}, formatSvelteOutput = (output) =>
|
|
1002
|
-
|
|
1003
|
-
const
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1003
|
+
}, stripAnsi = (str) => str.replace(/\x1b\[[0-9;]*m/g, ""), formatSvelteOutput = (output) => {
|
|
1004
|
+
const cwd = process.cwd() + "/";
|
|
1005
|
+
const summaryMatch = stripAnsi(output).match(/svelte-check found (\d+) error/);
|
|
1006
|
+
const errorCount = summaryMatch ? parseInt(summaryMatch[1] ?? "0", 10) : 0;
|
|
1007
|
+
const formatted = output.split(`
|
|
1008
|
+
`).filter((line) => {
|
|
1009
|
+
const plain = stripAnsi(line);
|
|
1010
|
+
return !plain.startsWith("Loading svelte-check") && !plain.startsWith("Getting Svelte") && !plain.startsWith("====") && !plain.startsWith("svelte-check found") && !/^\d+ (START|COMPLETED)/.test(plain) && plain.trim() !== "";
|
|
1011
|
+
}).flatMap((line) => {
|
|
1012
|
+
let result = line.replaceAll(cwd, "");
|
|
1013
|
+
const plain = stripAnsi(result);
|
|
1014
|
+
const pathMatch = plain.match(/^(\S+\.svelte):(\d+:\d+)$/);
|
|
1015
|
+
if (pathMatch) {
|
|
1016
|
+
return [
|
|
1017
|
+
`\x1B[96m${pathMatch[1]}\x1B[0m:\x1B[93m${pathMatch[2]}\x1B[0m`
|
|
1018
|
+
];
|
|
1019
|
+
}
|
|
1020
|
+
if (result.includes("\x1B[35m")) {
|
|
1021
|
+
const plainLine = stripAnsi(result);
|
|
1022
|
+
const before = stripAnsi(result.split("\x1B[35m")[0] ?? "");
|
|
1023
|
+
const token = stripAnsi((result.split("\x1B[35m")[1] ?? "").split(/\x1b\[3[69]m/)[0] ?? "");
|
|
1024
|
+
if (token) {
|
|
1025
|
+
const expanded = before.replace(/\t/g, " ");
|
|
1026
|
+
const expandedLine = plainLine.replace(/\t/g, " ");
|
|
1027
|
+
const underline = "~".repeat(token.length);
|
|
1028
|
+
return [
|
|
1029
|
+
`\x1B[0m${expandedLine}`,
|
|
1030
|
+
`${" ".repeat(expanded.length)}\x1B[91m${underline}\x1B[0m`
|
|
1031
|
+
];
|
|
1032
|
+
}
|
|
1033
|
+
}
|
|
1034
|
+
if (/^\x1b\[36m|\t/.test(result) && !result.includes("Error") && !result.includes("\x1B[35m")) {
|
|
1035
|
+
return [];
|
|
1036
|
+
}
|
|
1037
|
+
return [result];
|
|
1038
|
+
}).join(`
|
|
1039
|
+
`);
|
|
1040
|
+
if (errorCount > 0) {
|
|
1041
|
+
const s = errorCount === 1 ? "" : "s";
|
|
1042
|
+
return `${formatted}
|
|
1043
|
+
|
|
1044
|
+
Found ${errorCount} error${s}.`;
|
|
1045
|
+
}
|
|
1046
|
+
return formatted;
|
|
1047
|
+
}, typecheck = async (configPath2) => {
|
|
1009
1048
|
const config = await loadConfig(configPath2);
|
|
1010
1049
|
const hasSvelte = Boolean(config.svelteDirectory);
|
|
1011
1050
|
const hasVue = Boolean(config.vueDirectory);
|
|
@@ -1058,7 +1097,10 @@ var run = async (name, command) => {
|
|
|
1058
1097
|
"--threshold",
|
|
1059
1098
|
"error",
|
|
1060
1099
|
"--compiler-warnings",
|
|
1061
|
-
"css-unused-selector:ignore"
|
|
1100
|
+
"css-unused-selector:ignore",
|
|
1101
|
+
"--output",
|
|
1102
|
+
"human-verbose",
|
|
1103
|
+
"--color"
|
|
1062
1104
|
]));
|
|
1063
1105
|
}
|
|
1064
1106
|
const results = await Promise.all(checks);
|
|
@@ -9,16 +9,7 @@ var DEFAULT_DEVICE_SIZES = [
|
|
|
9
9
|
2048,
|
|
10
10
|
3840
|
|
11
11
|
];
|
|
12
|
-
var DEFAULT_IMAGE_SIZES = [
|
|
13
|
-
16,
|
|
14
|
-
32,
|
|
15
|
-
48,
|
|
16
|
-
64,
|
|
17
|
-
96,
|
|
18
|
-
128,
|
|
19
|
-
256,
|
|
20
|
-
384
|
|
21
|
-
];
|
|
12
|
+
var DEFAULT_IMAGE_SIZES = [16, 32, 48, 64, 96, 128, 256, 384];
|
|
22
13
|
var DEFAULT_QUALITY = 75;
|
|
23
14
|
var OPTIMIZATION_ENDPOINT = "/_absolute/image";
|
|
24
15
|
var buildOptimizedUrl = (src, width, quality, basePath = OPTIMIZATION_ENDPOINT) => `${basePath}?url=${encodeURIComponent(src)}&w=${width}&q=${quality}`;
|
package/dist/index.js
CHANGED
|
@@ -956,7 +956,10 @@ var DEFAULT_DEVICE_SIZES, DEFAULT_IMAGE_SIZES, DEFAULT_QUALITY = 75, OPTIMIZATIO
|
|
|
956
956
|
const pipeline = callSharp(sharp, toBuffer(buffer)).rotate().resize(width, undefined, { withoutEnlargement: true });
|
|
957
957
|
switch (format) {
|
|
958
958
|
case "avif":
|
|
959
|
-
return pipeline.avif({
|
|
959
|
+
return pipeline.avif({
|
|
960
|
+
effort: AVIF_EFFORT,
|
|
961
|
+
quality: Math.max(1, quality - AVIF_QUALITY_OFFSET)
|
|
962
|
+
}).toBuffer();
|
|
960
963
|
case "jpeg":
|
|
961
964
|
return pipeline.jpeg({ mozjpeg: true, quality }).toBuffer();
|
|
962
965
|
case "png":
|
|
@@ -1011,16 +1014,7 @@ var init_imageProcessing = __esm(() => {
|
|
|
1011
1014
|
2048,
|
|
1012
1015
|
3840
|
|
1013
1016
|
];
|
|
1014
|
-
DEFAULT_IMAGE_SIZES = [
|
|
1015
|
-
16,
|
|
1016
|
-
32,
|
|
1017
|
-
48,
|
|
1018
|
-
64,
|
|
1019
|
-
96,
|
|
1020
|
-
128,
|
|
1021
|
-
256,
|
|
1022
|
-
384
|
|
1023
|
-
];
|
|
1017
|
+
DEFAULT_IMAGE_SIZES = [16, 32, 48, 64, 96, 128, 256, 384];
|
|
1024
1018
|
MIME_MAP = {
|
|
1025
1019
|
avif: "image/avif",
|
|
1026
1020
|
jpeg: "image/jpeg",
|
|
@@ -177986,5 +177980,5 @@ export {
|
|
|
177986
177980
|
ANGULAR_INIT_TIMEOUT_MS
|
|
177987
177981
|
};
|
|
177988
177982
|
|
|
177989
|
-
//# debugId=
|
|
177983
|
+
//# debugId=99FAC29D4EBC3F9564756E2164756E21
|
|
177990
177984
|
//# sourceMappingURL=index.js.map
|