Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dfinity/utils

Package Overview
Dependencies
Maintainers
10
Versions
886
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dfinity/utils - npm Package Compare versions

Comparing version 0.0.3-next-2022-09-22 to 0.0.3-next-2022-09-23

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc