@chainsafe/ssz
Advanced tools
Comparing version 0.12.0 to 0.13.0
@@ -23,2 +23,9 @@ # Change Log | ||
## [0.13.0](https://github.com/ChainSafe/ssz/compare/ssz-v0.12.0...ssz-v0.13.0) (2023-09-14) | ||
### Features | ||
* publish more methods ([#334](https://github.com/ChainSafe/ssz/issues/334)) ([947c3e2](https://github.com/ChainSafe/ssz/commit/947c3e278230c9e9db54c4ce20bef76c63040970)) | ||
## [0.12.0](https://github.com/ChainSafe/ssz/compare/ssz-v0.11.1...ssz-v0.12.0) (2023-09-09) | ||
@@ -25,0 +32,0 @@ |
@@ -1,2 +0,2 @@ | ||
export { BitListType } from "./type/bitList"; | ||
export { BitListType, deserializeUint8ArrayBitListFromBytes } from "./type/bitList"; | ||
export { BitVectorType } from "./type/bitVector"; | ||
@@ -3,0 +3,0 @@ export { BooleanType } from "./type/boolean"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.hash64 = exports.byteArrayEquals = exports.toHexString = exports.fromHexString = exports.getUint8ByteToBitBooleanArray = exports.BitArray = exports.TreeViewDU = exports.TreeView = exports.isCompositeType = exports.CompositeType = exports.isBasicType = exports.BasicType = exports.Type = exports.ByteArrayType = exports.BitArrayType = exports.ArrayType = exports.VectorCompositeType = exports.VectorBasicType = exports.OptionalType = exports.UnionType = exports.UintNumberType = exports.UintBigintType = exports.NoneType = exports.ListCompositeType = exports.ListBasicType = exports.ContainerNodeStructType = exports.ContainerType = exports.ByteVectorType = exports.ByteListType = exports.BooleanType = exports.BitVectorType = exports.BitListType = void 0; | ||
exports.hash64 = exports.byteArrayEquals = exports.toHexString = exports.fromHexString = exports.getUint8ByteToBitBooleanArray = exports.BitArray = exports.TreeViewDU = exports.TreeView = exports.isCompositeType = exports.CompositeType = exports.isBasicType = exports.BasicType = exports.Type = exports.ByteArrayType = exports.BitArrayType = exports.ArrayType = exports.VectorCompositeType = exports.VectorBasicType = exports.OptionalType = exports.UnionType = exports.UintNumberType = exports.UintBigintType = exports.NoneType = exports.ListCompositeType = exports.ListBasicType = exports.ContainerNodeStructType = exports.ContainerType = exports.ByteVectorType = exports.ByteListType = exports.BooleanType = exports.BitVectorType = exports.deserializeUint8ArrayBitListFromBytes = exports.BitListType = void 0; | ||
// Types | ||
var bitList_1 = require("./type/bitList"); | ||
Object.defineProperty(exports, "BitListType", { enumerable: true, get: function () { return bitList_1.BitListType; } }); | ||
Object.defineProperty(exports, "deserializeUint8ArrayBitListFromBytes", { enumerable: true, get: function () { return bitList_1.deserializeUint8ArrayBitListFromBytes; } }); | ||
var bitVector_1 = require("./type/bitVector"); | ||
@@ -8,0 +9,0 @@ Object.defineProperty(exports, "BitVectorType", { enumerable: true, get: function () { return bitVector_1.BitVectorType; } }); |
@@ -39,2 +39,8 @@ import { Node } from "@chainsafe/persistent-merkle-tree"; | ||
} | ||
declare type BitArrayDeserialized = { | ||
uint8Array: Uint8Array; | ||
bitLen: number; | ||
}; | ||
export declare function deserializeUint8ArrayBitListFromBytes(data: Uint8Array, start: number, end: number): BitArrayDeserialized; | ||
export {}; | ||
//# sourceMappingURL=bitList.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.BitListType = void 0; | ||
exports.deserializeUint8ArrayBitListFromBytes = exports.BitListType = void 0; | ||
const persistent_merkle_tree_1 = require("@chainsafe/persistent-merkle-tree"); | ||
@@ -117,2 +117,3 @@ const merkleize_1 = require("../util/merkleize"); | ||
} | ||
exports.deserializeUint8ArrayBitListFromBytes = deserializeUint8ArrayBitListFromBytes; | ||
function bitLenToSerializedLength(bitLen) { | ||
@@ -119,0 +120,0 @@ const bytes = Math.ceil(bitLen / 8); |
@@ -80,3 +80,3 @@ import { Node, Tree, Gindex } from "@chainsafe/persistent-merkle-tree"; | ||
*/ | ||
private getFieldRanges; | ||
getFieldRanges(data: DataView, start: number, end: number): BytesRange[]; | ||
} | ||
@@ -83,0 +83,0 @@ /** |
@@ -7,3 +7,3 @@ { | ||
"homepage": "https://github.com/chainsafe/ssz", | ||
"version": "0.12.0", | ||
"version": "0.13.0", | ||
"main": "lib/index.js", | ||
@@ -10,0 +10,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
490365
7270