@basmilius/apple-encoding 0.9.13 → 0.9.15
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/index.mjs +1 -1
- package/package.json +4 -3
package/dist/index.mjs
CHANGED
|
@@ -808,7 +808,7 @@ function swapBytes(buffer) {
|
|
|
808
808
|
}
|
|
809
809
|
const parse = (buffer) => {
|
|
810
810
|
const headerBytes = buffer.slice(0, HEADER_BINARY.length);
|
|
811
|
-
if (DECODER_UTF8.decode(headerBytes) !==
|
|
811
|
+
if (DECODER_UTF8.decode(headerBytes) !== "bplist00") throw new Error(`Invalid binary plist. Expected '${HEADER_BINARY}' at offset 0.`);
|
|
812
812
|
const trailer = buffer.slice(buffer.byteLength - 32, buffer.byteLength);
|
|
813
813
|
const offsetSize = readUInt8(trailer, 6);
|
|
814
814
|
const objectRefSize = readUInt8(trailer, 7);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@basmilius/apple-encoding",
|
|
3
3
|
"description": "Common encoding utilities for Apple Protocols.",
|
|
4
|
-
"version": "0.9.
|
|
4
|
+
"version": "0.9.15",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": {
|
|
@@ -47,7 +47,8 @@
|
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@plist/binary.parse": "^1.1.0",
|
|
49
49
|
"@plist/binary.serialize": "^1.1.0",
|
|
50
|
-
"@types/bun": "^1.3.
|
|
51
|
-
"
|
|
50
|
+
"@types/bun": "^1.3.11",
|
|
51
|
+
"@types/node": "^25.5.0",
|
|
52
|
+
"tsdown": "^0.21.4"
|
|
52
53
|
}
|
|
53
54
|
}
|