Socket
Socket
Sign inDemoInstall

uint8-varint

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

uint8-varint - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

4

dist/src/index.d.ts

@@ -7,4 +7,6 @@ import type { Uint8ArrayList } from 'uint8arraylist';

export declare function decodeUint8ArrayList(buf: Uint8ArrayList, offset: number): number;
export declare function encode<T extends Uint8Array | Uint8ArrayList = Uint8Array>(value: number, buf?: T, offset?: number): T;
export declare function encode(value: number): Uint8Array;
export declare function encode(value: number, buf: Uint8Array, offset?: number): Uint8Array;
export declare function encode(value: number, buf: Uint8ArrayList, offset?: number): Uint8ArrayList;
export declare function decode(buf: Uint8ArrayList | Uint8Array, offset?: number): number;
//# sourceMappingURL=index.d.ts.map
{
"name": "uint8-varint",
"version": "2.0.0",
"version": "2.0.1",
"description": "Read/write unsigned varints from Uint8Arrays and Uint8ArrayLists",

@@ -5,0 +5,0 @@ "license": "Apache-2.0 OR MIT",

@@ -242,2 +242,5 @@ /* eslint-disable no-fallthrough */

export function encode (value: number): Uint8Array
export function encode (value: number, buf: Uint8Array, offset?: number): Uint8Array
export function encode (value: number, buf: Uint8ArrayList, offset?: number): Uint8ArrayList
export function encode <T extends Uint8Array | Uint8ArrayList = Uint8Array> (value: number, buf?: T, offset: number = 0): T {

@@ -244,0 +247,0 @@ if (buf == null) {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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