strtok3 10.0.0 → 10.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -19,9 +19,6 @@ export class BufferTokenizer extends AbstractTokenizer {
19
19
  */
20
20
  async readBuffer(uint8Array, options) {
21
21
  if (options?.position) {
22
- if (options.position < this.position) {
23
- throw new Error('`options.position` must be equal or greater than `tokenizer.position`');
24
- }
25
22
  this.position = options.position;
26
23
  }
27
24
  const bytesRead = await this.peekBuffer(uint8Array, options);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "strtok3",
3
- "version": "10.0.0",
3
+ "version": "10.0.1",
4
4
  "description": "A promise based streaming tokenizer",
5
5
  "author": {
6
6
  "name": "Borewit",