@typeberry/native 0.2.0-e56bb9d → 0.3.0-5dae93e
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.
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { createRequire } from "module";
|
|
2
|
+
|
|
1
3
|
//#region bandersnatch/src/native.ts
|
|
2
4
|
async function loadNativeBinding() {
|
|
3
|
-
const { createRequire } = await import("module");
|
|
4
5
|
const require = createRequire(import.meta.url);
|
|
5
6
|
const platform = process?.platform;
|
|
6
7
|
const arch = process?.arch;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typeberry/native",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0-5dae93e",
|
|
4
4
|
"description": "Native libraries for typeberry - bundles bandersnatch, ed25519 and reed-solomon with WASM and optional native bindings",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"types": "./index.d.ts",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"node": ">=18"
|
|
24
24
|
},
|
|
25
25
|
"optionalDependencies": {
|
|
26
|
-
"@typeberry/bandersnatch-native-darwin-arm64": "0.
|
|
27
|
-
"@typeberry/bandersnatch-native-linux-x64-gnu": "0.
|
|
26
|
+
"@typeberry/bandersnatch-native-darwin-arm64": "0.3.0-5dae93e",
|
|
27
|
+
"@typeberry/bandersnatch-native-linux-x64-gnu": "0.3.0-5dae93e"
|
|
28
28
|
},
|
|
29
29
|
"scripts": {
|
|
30
30
|
"lint": "true",
|