@typeberry/convert 0.8.1-f593b97 → 0.8.2-db0d6dc
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 +41 -0
- package/121.index.js.map +1 -0
- package/index.js +40 -11
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/316.index.js +0 -61
- package/316.index.js.map +0 -1
package/121.index.js
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export const id = 121;
|
|
2
|
+
export const ids = [121];
|
|
3
|
+
export const modules = {
|
|
4
|
+
|
|
5
|
+
/***/ 121:
|
|
6
|
+
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
7
|
+
|
|
8
|
+
__webpack_require__.r(__webpack_exports__);
|
|
9
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10
|
+
/* harmony export */ loadNativeBinding: () => (/* binding */ loadNativeBinding)
|
|
11
|
+
/* harmony export */ });
|
|
12
|
+
//#region bandersnatch/src/native.ts
|
|
13
|
+
async function loadNativeBinding() {
|
|
14
|
+
const { createRequire } = await Promise.resolve(/* import() */).then(__webpack_require__.t.bind(__webpack_require__, 339, 19));
|
|
15
|
+
const require = createRequire(import.meta.url);
|
|
16
|
+
const platform = process?.platform;
|
|
17
|
+
const arch = process?.arch;
|
|
18
|
+
let nativeBinding = null;
|
|
19
|
+
let loadError = null;
|
|
20
|
+
const platformArch = platform && arch ? {
|
|
21
|
+
darwin: { arm64: "@typeberry/bandersnatch-native-darwin-arm64" },
|
|
22
|
+
linux: { x64: "@typeberry/bandersnatch-native-linux-x64-gnu" }
|
|
23
|
+
}[platform]?.[arch] : void 0;
|
|
24
|
+
if (platformArch) try {
|
|
25
|
+
nativeBinding = require(platformArch);
|
|
26
|
+
} catch (e) {
|
|
27
|
+
loadError = e;
|
|
28
|
+
}
|
|
29
|
+
else loadError = /* @__PURE__ */ new Error(`Unsupported platform: ${platform}-${arch}`);
|
|
30
|
+
if (!nativeBinding) throw loadError || /* @__PURE__ */ new Error("Failed to load native binding");
|
|
31
|
+
return nativeBinding;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
//#endregion
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
/***/ })
|
|
38
|
+
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
//# sourceMappingURL=121.index.js.map
|
package/121.index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
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":""}
|