Skip to content

Commit

Permalink
Explicit node:buffer import
Browse files Browse the repository at this point in the history
Resolves #629
  • Loading branch information
Borewit committed Dec 10, 2021
1 parent 319b83b commit 04cdfb6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/AbstractTokenizer.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { ITokenizer, IFileInfo, IReadChunkOptions } from './types';
import { EndOfStreamError } from 'peek-readable';
import { IGetToken, IToken } from '@tokenizer/token';
import { Buffer } from 'node:buffer';

interface INormalizedReadChunkOptions extends IReadChunkOptions {
offset: number;
Expand Down
1 change: 1 addition & 0 deletions test/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { FileTokenizer } from '../lib/FileTokenizer.js';
import { EndOfStreamError } from 'peek-readable';
import { PassThrough } from 'node:stream';
import mocha from 'mocha';
import { Buffer } from 'node:buffer';

import { dirname } from 'path';
import { fileURLToPath } from 'url';
Expand Down
1 change: 1 addition & 0 deletions test/util.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Utilies for testing
import { Readable } from 'stream';
import { Buffer } from 'node:buffer';

/**
* A mock stream implementation that breaks up provided data into
Expand Down

0 comments on commit 04cdfb6

Please sign in to comment.