Comparing version 1.1.1 to 1.2.0
@@ -33,3 +33,3 @@ export { ByteBuf }; | ||
/** | ||
* Gets the number of remaining bytes. | ||
* The number of remaining bytes. | ||
* @returns The number of bytes remaining. | ||
@@ -48,2 +48,6 @@ */ | ||
/** | ||
* Clears the byte buffer. | ||
*/ | ||
clear(): void; | ||
/** | ||
* Gets a boolean. | ||
@@ -585,7 +589,7 @@ * @param byteOffset The byte offset. | ||
*/ | ||
byteLength: number; | ||
readonly byteLength: number; | ||
/** | ||
* The value. | ||
*/ | ||
value: number; | ||
readonly value: number; | ||
} | ||
@@ -599,7 +603,7 @@ /** | ||
*/ | ||
byteLength: number; | ||
readonly byteLength: number; | ||
/** | ||
* The value. | ||
*/ | ||
value: string; | ||
readonly value: string; | ||
} |
{ | ||
"name": "bytebuf", | ||
"version": "1.1.1", | ||
"version": "1.2.0", | ||
"author": "Ashcon Partovi <ashcon@partovi.net>", | ||
"description": "A byte buffer for encoding and decoding binary data.", | ||
"type": "module", | ||
"module": "dist/bytebuf.mjs", | ||
@@ -32,5 +33,24 @@ "types": "dist/bytebuf.d.ts", | ||
"prepublish": "npm run build", | ||
"test:deno": "npm run build && deno run bytebuf_test.mjs", | ||
"test:node": "npm run build && node bytebuf_test.mjs" | ||
"test": "ava" | ||
}, | ||
"devDependencies": { | ||
"ava": "^3.15.0", | ||
"ts-node": "^10.2.1", | ||
"typescript": "^4.4.3" | ||
}, | ||
"ava": { | ||
"files": [ | ||
"*.test.ts" | ||
], | ||
"extensions": { | ||
"ts": "module" | ||
}, | ||
"nonSemVerExperiments": { | ||
"configurableModuleFormat": true | ||
}, | ||
"nodeArguments": [ | ||
"--no-warnings", | ||
"--loader=ts-node/esm" | ||
] | ||
} | ||
} |
# bytebuf | ||
![npm](https://img.shields.io/npm/v/bytebuf) ![David](https://img.shields.io/david/electroid/bytebuf) | ||
@@ -3,0 +4,0 @@ A byte buffer for encoding and decoding binary data in JavaScript. Supports the major web browsers, NodeJS, Deno, and Cloudflare Workers. |
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
57818
1504
32
Yes
3