@minip2p/node 0.9.1 → 0.10.1
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/README.md +1 -1
- package/dist/adapter.d.ts.map +1 -1
- package/dist/adapter.js +14 -506
- package/dist/adapter.js.map +1 -1
- package/dist/addon.d.ts +11 -4
- package/dist/native-shape.d.ts +4 -18
- package/dist/native-shape.d.ts.map +1 -1
- package/dist/native-shape.js +3 -5
- package/dist/native-shape.js.map +1 -1
- package/package.json +9 -9
- package/src/adapter.ts +25 -670
- package/src/addon.d.ts +11 -4
- package/src/native-shape.ts +12 -35
package/dist/native-shape.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Types of the values the native addon returns
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* SDK type with napi-rs's value encoding: `u64` arrives as `number`, or as a
|
|
6
|
-
* `bigint` above `u32::MAX`, and bytes arrive as a `Buffer`.
|
|
2
|
+
* Types of the values the native addon returns: `minip2p-ffi-core`'s serde
|
|
3
|
+
* shape, with napi-rs's value encoding (`u64` as `number`, or `bigint` above
|
|
4
|
+
* `u32::MAX`; bytes as a `Buffer`). The shared serde backend defines them.
|
|
7
5
|
*
|
|
8
6
|
* The generated `addon.d.ts` imports these names through its header.
|
|
9
7
|
*/
|
package/dist/native-shape.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"native-shape.js","sourceRoot":"","sources":["../src/native-shape.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"native-shape.js","sourceRoot":"","sources":["../src/native-shape.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minip2p/node",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.1",
|
|
4
4
|
"description": "Node.js bindings for minip2p",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"libp2p",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"registry": "https://registry.npmjs.org/"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@minip2p/core": "0.
|
|
41
|
+
"@minip2p/core": "0.10.1"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@minip2p/test-fixtures": "0.0.0",
|
|
@@ -48,13 +48,13 @@
|
|
|
48
48
|
"typescript": "7.0.2"
|
|
49
49
|
},
|
|
50
50
|
"optionalDependencies": {
|
|
51
|
-
"@minip2p/node-darwin-arm64": "0.
|
|
52
|
-
"@minip2p/node-darwin-x64": "0.
|
|
53
|
-
"@minip2p/node-linux-arm64-gnu": "0.
|
|
54
|
-
"@minip2p/node-linux-arm64-musl": "0.
|
|
55
|
-
"@minip2p/node-linux-x64-gnu": "0.
|
|
56
|
-
"@minip2p/node-linux-x64-musl": "0.
|
|
57
|
-
"@minip2p/node-win32-x64-msvc": "0.
|
|
51
|
+
"@minip2p/node-darwin-arm64": "0.10.1",
|
|
52
|
+
"@minip2p/node-darwin-x64": "0.10.1",
|
|
53
|
+
"@minip2p/node-linux-arm64-gnu": "0.10.1",
|
|
54
|
+
"@minip2p/node-linux-arm64-musl": "0.10.1",
|
|
55
|
+
"@minip2p/node-linux-x64-gnu": "0.10.1",
|
|
56
|
+
"@minip2p/node-linux-x64-musl": "0.10.1",
|
|
57
|
+
"@minip2p/node-win32-x64-msvc": "0.10.1"
|
|
58
58
|
},
|
|
59
59
|
"napi": {
|
|
60
60
|
"binaryName": "minip2p",
|