bare-buffer
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -12,3 +12,3 @@ type BufferEncoding = | ||
declare class Buffer extends Uint8Array { | ||
interface Buffer extends Uint8Array { | ||
compare( | ||
@@ -139,5 +139,7 @@ target: Buffer, | ||
declare class Buffer extends Uint8Array { | ||
constructor(arrayBuffer: ArrayBuffer, offset?: number, length?: number) | ||
} | ||
declare namespace Buffer { | ||
export { Buffer, BufferEncoding } | ||
export let poolSize: number | ||
@@ -181,4 +183,6 @@ | ||
export const constants: { MAX_LENGTH: number; MAX_STRING_LENGTH: number } | ||
export { Buffer, BufferEncoding } | ||
} | ||
export = Buffer |
{ | ||
"name": "bare-buffer", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "Native buffers for JavaScript", | ||
@@ -11,3 +11,6 @@ "exports": { | ||
"./package": "./package.json", | ||
"./global": "./global.js", | ||
"./global": { | ||
"types": "./global.d.ts", | ||
"default": "./global.js" | ||
}, | ||
"./constants": "./lib/constants.js" | ||
@@ -19,2 +22,3 @@ }, | ||
"global.js", | ||
"global.d.ts", | ||
"binding.c", | ||
@@ -21,0 +25,0 @@ "binding.js", |
774596
29
756