uint8-varint
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
28780
10
483