@hot-updater/bsdiff 0.29.3 → 0.29.4
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/bun.js.map +1 -1
- package/dist/node.js.map +1 -1
- package/package.json +2 -2
package/dist/bun.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bun.js","names":[],"sources":["../src/bun.ts"],"sourcesContent":["import { readFileSync } from \"node:fs\";\nimport { HdiffError, type HdiffErrorCode } from \"./errors.js\";\nimport { hdiff } from \"./hdiff.js\";\nimport { installPrecompiledWasm } from \"./precompiled.js\";\n\nconst HDIFF_WASM_URL = new URL(\"../assets/hdiff.wasm\", import.meta.url);\n\ninstallPrecompiledWasm(loadBunWasmModule());\n\nfunction loadBunWasmModule(): WebAssembly.Module {\n try {\n return new WebAssembly.Module(readFileSync(HDIFF_WASM_URL));\n } catch {\n throw new HdiffError(\n \"PATCH_FAILED\",\n `Failed to load hdiff.wasm for Bun runtime: ${HDIFF_WASM_URL.toString()}`,\n );\n }\n}\n\nexport { hdiff, HdiffError, type HdiffErrorCode };\n"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"bun.js","names":[],"sources":["../src/bun.ts"],"sourcesContent":["import { readFileSync } from \"node:fs\";\n\nimport { HdiffError, type HdiffErrorCode } from \"./errors.js\";\nimport { hdiff } from \"./hdiff.js\";\nimport { installPrecompiledWasm } from \"./precompiled.js\";\n\nconst HDIFF_WASM_URL = new URL(\"../assets/hdiff.wasm\", import.meta.url);\n\ninstallPrecompiledWasm(loadBunWasmModule());\n\nfunction loadBunWasmModule(): WebAssembly.Module {\n try {\n return new WebAssembly.Module(readFileSync(HDIFF_WASM_URL));\n } catch {\n throw new HdiffError(\n \"PATCH_FAILED\",\n `Failed to load hdiff.wasm for Bun runtime: ${HDIFF_WASM_URL.toString()}`,\n );\n }\n}\n\nexport { hdiff, HdiffError, type HdiffErrorCode };\n"],"mappings":";;;;;AAMA,MAAM,iBAAiB,IAAI,IAAI,wBAAwB,OAAO,KAAK,IAAI;AAEvE,uBAAuB,mBAAmB,CAAC;AAE3C,SAAS,oBAAwC;AAC/C,KAAI;AACF,SAAO,IAAI,YAAY,OAAO,aAAa,eAAe,CAAC;SACrD;AACN,QAAM,IAAI,WACR,gBACA,8CAA8C,eAAe,UAAU,GACxE"}
|
package/dist/node.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.js","names":[],"sources":["../src/node.ts"],"sourcesContent":["import { readFileSync } from \"node:fs\";\nimport { HdiffError, type HdiffErrorCode } from \"./errors.js\";\nimport { hdiff } from \"./hdiff.js\";\nimport { installPrecompiledWasm } from \"./precompiled.js\";\n\nconst HDIFF_WASM_URL = new URL(\"../assets/hdiff.wasm\", import.meta.url);\n\ninstallPrecompiledWasm(loadNodeWasmModule());\n\nfunction loadNodeWasmModule(): WebAssembly.Module {\n try {\n return new WebAssembly.Module(readFileSync(HDIFF_WASM_URL));\n } catch {\n throw new HdiffError(\n \"PATCH_FAILED\",\n `Failed to load hdiff.wasm for Node runtime: ${HDIFF_WASM_URL.toString()}`,\n );\n }\n}\n\nexport { hdiff, HdiffError, type HdiffErrorCode };\n"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"node.js","names":[],"sources":["../src/node.ts"],"sourcesContent":["import { readFileSync } from \"node:fs\";\n\nimport { HdiffError, type HdiffErrorCode } from \"./errors.js\";\nimport { hdiff } from \"./hdiff.js\";\nimport { installPrecompiledWasm } from \"./precompiled.js\";\n\nconst HDIFF_WASM_URL = new URL(\"../assets/hdiff.wasm\", import.meta.url);\n\ninstallPrecompiledWasm(loadNodeWasmModule());\n\nfunction loadNodeWasmModule(): WebAssembly.Module {\n try {\n return new WebAssembly.Module(readFileSync(HDIFF_WASM_URL));\n } catch {\n throw new HdiffError(\n \"PATCH_FAILED\",\n `Failed to load hdiff.wasm for Node runtime: ${HDIFF_WASM_URL.toString()}`,\n );\n }\n}\n\nexport { hdiff, HdiffError, type HdiffErrorCode };\n"],"mappings":";;;;;AAMA,MAAM,iBAAiB,IAAI,IAAI,wBAAwB,OAAO,KAAK,IAAI;AAEvE,uBAAuB,oBAAoB,CAAC;AAE5C,SAAS,qBAAyC;AAChD,KAAI;AACF,SAAO,IAAI,YAAY,OAAO,aAAa,eAAe,CAAC;SACrD;AACN,QAAM,IAAI,WACR,gBACA,+CAA+C,eAAe,UAAU,GACzE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hot-updater/bsdiff",
|
|
3
|
-
"version": "0.29.
|
|
3
|
+
"version": "0.29.4",
|
|
4
4
|
"description": "Hot Updater BSdiff library that produces BSDIFF40 patches for RN bspatch flows",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/node.js",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@types/node": "^25.3.2",
|
|
57
57
|
"tsdown": "0.21.6",
|
|
58
|
-
"typescript": "^
|
|
58
|
+
"typescript": "^6.0.2",
|
|
59
59
|
"vitest": "4.1.0",
|
|
60
60
|
"wrangler": "^4.69.0"
|
|
61
61
|
},
|