@dfinity/utils
Advanced tools
Comparing version 0.0.3-next-2022-09-22 to 0.0.3-next-2022-09-23
{ | ||
"name": "@dfinity/utils", | ||
"version": "0.0.3-next-2022-09-22", | ||
"version": "0.0.3-next-2022-09-23", | ||
"description": "A collection of utilities and constants for NNS/SNS projects.", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
@@ -36,2 +36,7 @@ # utils-js | ||
- [createServices](#gear-createservices) | ||
- [uint8ArrayToBigInt](#gear-uint8arraytobigint) | ||
- [arrayBufferToUint8Array](#gear-arraybuffertouint8array) | ||
- [uint8ArrayToArrayOfNumber](#gear-uint8arraytoarrayofnumber) | ||
- [arrayOfNumberToUint8Array](#gear-arrayofnumbertouint8array) | ||
- [asciiStringToByteArray](#gear-asciistringtobytearray) | ||
- [assertNonNullish](#gear-assertnonnullish) | ||
@@ -54,2 +59,32 @@ - [toNullable](#gear-tonullable) | ||
#### :gear: uint8ArrayToBigInt | ||
| Function | Type | | ||
| -------------------- | ------------------------------- | | ||
| `uint8ArrayToBigInt` | `(array: Uint8Array) => bigint` | | ||
#### :gear: arrayBufferToUint8Array | ||
| Function | Type | | ||
| ------------------------- | ------------------------------------- | | ||
| `arrayBufferToUint8Array` | `(buffer: ArrayBuffer) => Uint8Array` | | ||
#### :gear: uint8ArrayToArrayOfNumber | ||
| Function | Type | | ||
| --------------------------- | --------------------------------- | | ||
| `uint8ArrayToArrayOfNumber` | `(array: Uint8Array) => number[]` | | ||
#### :gear: arrayOfNumberToUint8Array | ||
| Function | Type | | ||
| --------------------------- | ----------------------------------- | | ||
| `arrayOfNumberToUint8Array` | `(numbers: number[]) => Uint8Array` | | ||
#### :gear: asciiStringToByteArray | ||
| Function | Type | | ||
| ------------------------ | ---------------------------- | | ||
| `asciiStringToByteArray` | `(text: string) => number[]` | | ||
#### :gear: assertNonNullish | ||
@@ -56,0 +91,0 @@ |
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
32039
123