@lodestar/reqresp 1.26.0-dev.f9d080cde3 → 1.26.0-rc.0
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.
|
@@ -17,8 +17,6 @@ export const IDENTIFIER_FRAME = Buffer.from([0xff, 0x06, 0x00, 0x00, 0x73, 0x4e,
|
|
|
17
17
|
*/
|
|
18
18
|
export const UNCOMPRESSED_CHUNK_SIZE = 65536;
|
|
19
19
|
export function crc(value) {
|
|
20
|
-
// this function doesn't actually need a buffer
|
|
21
|
-
// see https://github.com/napi-rs/node-rs/blob/main/packages/crc32/index.d.ts
|
|
22
20
|
const x = crc32c.calculate(value);
|
|
23
21
|
const result = Buffer.allocUnsafe?.(4) ?? Buffer.alloc(4);
|
|
24
22
|
// As defined in section 3 of https://github.com/google/snappy/blob/master/framing_format.txt
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../src/encodingStrategies/sszSnappy/snappyFrames/common.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,wBAAwB,CAAC;AAE5C,MAAM,CAAN,IAAY,SAMX;AAND,WAAY,SAAS;IACnB,uDAAiB,CAAA;IACjB,qDAAiB,CAAA;IACjB,yDAAmB,CAAA;IACnB,iDAAc,CAAA;IACd,qDAAgB,CAAA;AAClB,CAAC,EANW,SAAS,KAAT,SAAS,QAMpB;AAED,MAAM,CAAC,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;AAC5E,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC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AAC,KAAK,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC,GAAG,UAAU,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC;IAElF,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"bugs": {
|
|
12
12
|
"url": "https://github.com/ChainSafe/lodestar/issues"
|
|
13
13
|
},
|
|
14
|
-
"version": "1.26.0-
|
|
14
|
+
"version": "1.26.0-rc.0",
|
|
15
15
|
"type": "module",
|
|
16
16
|
"exports": {
|
|
17
17
|
".": {
|
|
@@ -52,11 +52,11 @@
|
|
|
52
52
|
"check-readme": "typescript-docs-verifier"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@chainsafe/fast-crc32c": "^4.
|
|
55
|
+
"@chainsafe/fast-crc32c": "^4.2.0",
|
|
56
56
|
"@libp2p/interface": "^1.3.0",
|
|
57
|
-
"@lodestar/config": "1.26.0-
|
|
58
|
-
"@lodestar/params": "1.26.0-
|
|
59
|
-
"@lodestar/utils": "1.26.0-
|
|
57
|
+
"@lodestar/config": "1.26.0-rc.0",
|
|
58
|
+
"@lodestar/params": "1.26.0-rc.0",
|
|
59
|
+
"@lodestar/utils": "1.26.0-rc.0",
|
|
60
60
|
"it-all": "^3.0.4",
|
|
61
61
|
"it-pipe": "^3.0.1",
|
|
62
62
|
"snappy": "^7.2.2",
|
|
@@ -65,8 +65,8 @@
|
|
|
65
65
|
"uint8arraylist": "^2.4.7"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"@lodestar/logger": "1.26.0-
|
|
69
|
-
"@lodestar/types": "1.26.0-
|
|
68
|
+
"@lodestar/logger": "1.26.0-rc.0",
|
|
69
|
+
"@lodestar/types": "1.26.0-rc.0",
|
|
70
70
|
"libp2p": "1.4.3"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|
|
@@ -80,5 +80,5 @@
|
|
|
80
80
|
"reqresp",
|
|
81
81
|
"blockchain"
|
|
82
82
|
],
|
|
83
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "da0530146f7f7e6f833dad50aedde4c8836f87b0"
|
|
84
84
|
}
|