@typeberry/convert 0.8.3-9baf0a5 → 0.8.3
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/{121.index.js → 742.index.js} +8 -6
- package/742.index.js.map +1 -0
- package/index.js +2 -32
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/121.index.js.map +0 -1
package/package.json
CHANGED
package/121.index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"121.index.js","mappings":";;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","sources":[".././node_modules/@typeberry/native/native-C3xbsznx.js"],"sourcesContent":["//#region bandersnatch/src/native.ts\nasync function loadNativeBinding() {\n\tconst { createRequire } = await import(\"module\");\n\tconst require = createRequire(import.meta.url);\n\tconst platform = process?.platform;\n\tconst arch = process?.arch;\n\tlet nativeBinding = null;\n\tlet loadError = null;\n\tconst platformArch = platform && arch ? {\n\t\tdarwin: { arm64: \"@typeberry/bandersnatch-native-darwin-arm64\" },\n\t\tlinux: { x64: \"@typeberry/bandersnatch-native-linux-x64-gnu\" }\n\t}[platform]?.[arch] : void 0;\n\tif (platformArch) try {\n\t\tnativeBinding = require(platformArch);\n\t} catch (e) {\n\t\tloadError = e;\n\t}\n\telse loadError = /* @__PURE__ */ new Error(`Unsupported platform: ${platform}-${arch}`);\n\tif (!nativeBinding) throw loadError || /* @__PURE__ */ new Error(\"Failed to load native binding\");\n\treturn nativeBinding;\n}\n\n//#endregion\nexport { loadNativeBinding };"],"names":[],"sourceRoot":""}
|