@absolutejs/absolute 0.20.0-beta.20 → 0.20.0-beta.21
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 +15 -1
- package/dist/angular/browser.js.map +3 -3
- package/dist/angular/components/core/streamingSlotRegistrar.js +1 -1
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
- package/dist/build.js +15 -1
- package/dist/build.js.map +3 -3
- package/dist/cli/index.js +13 -3
- package/dist/index.js +17 -2
- package/dist/index.js.map +4 -4
- package/dist/mobile/index.js +9 -1
- package/dist/mobile/index.js.map +4 -4
- package/dist/src/mobile/deviceCapabilities.d.ts +1 -1
- package/dist/src/utils/imageProcessing.d.ts +3 -0
- package/package.json +11 -10
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var __require = import.meta.require;
|
|
3
3
|
|
|
4
|
-
// .angular-partial-tmp-
|
|
4
|
+
// .angular-partial-tmp-MMVBtX/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-MMVBtX/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-MMVBtX/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
|
@@ -11158,6 +11158,20 @@ var DEFAULT_DEVICE_SIZES, DEFAULT_IMAGE_SIZES, DEFAULT_QUALITY, OPTIMIZATION_END
|
|
|
11158
11158
|
return "webp";
|
|
11159
11159
|
}
|
|
11160
11160
|
return "jpeg";
|
|
11161
|
+
}, sniffImageMime = (buffer) => {
|
|
11162
|
+
if (buffer.length < 12)
|
|
11163
|
+
return null;
|
|
11164
|
+
if (buffer[0] === 137 && buffer[1] === 80 && buffer[2] === 78)
|
|
11165
|
+
return "image/png";
|
|
11166
|
+
if (buffer[0] === 255 && buffer[1] === 216)
|
|
11167
|
+
return "image/jpeg";
|
|
11168
|
+
if (buffer[0] === 71 && buffer[1] === 73 && buffer[2] === 70)
|
|
11169
|
+
return "image/gif";
|
|
11170
|
+
if (buffer.toString("ascii", 0, 4) === "RIFF" && buffer.toString("ascii", 8, 12) === "WEBP")
|
|
11171
|
+
return "image/webp";
|
|
11172
|
+
if (buffer.toString("ascii", 4, 12) === "ftypavif")
|
|
11173
|
+
return "image/avif";
|
|
11174
|
+
return null;
|
|
11161
11175
|
}, AVIF_QUALITY_OFFSET = 20, AVIF_EFFORT = 3, PNG_COMPRESSION_LEVEL = 9, optimizeWithBunImage = async (buffer, width, quality, format) => {
|
|
11162
11176
|
const pipeline = new Bun.Image(buffer).resize(width, undefined, {
|
|
11163
11177
|
withoutEnlargement: true
|
|
@@ -30054,5 +30068,5 @@ export {
|
|
|
30054
30068
|
build
|
|
30055
30069
|
};
|
|
30056
30070
|
|
|
30057
|
-
//# debugId=
|
|
30071
|
+
//# debugId=98578A5E06A0230864756E2164756E21
|
|
30058
30072
|
//# sourceMappingURL=build.js.map
|