strtok3 6.0.3 → 6.0.4
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.
- package/lib/ReadStreamTokenizer.js +3 -3
- package/package.json +9 -10
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ReadStreamTokenizer = void 0;
|
|
4
4
|
const AbstractTokenizer_1 = require("./AbstractTokenizer");
|
|
5
5
|
const peek_readable_1 = require("peek-readable");
|
|
6
|
-
|
|
7
|
-
const debug = _debug('strtok3:ReadStreamTokenizer');
|
|
6
|
+
// import * as _debug from 'debug';
|
|
7
|
+
// const debug = _debug('strtok3:ReadStreamTokenizer');
|
|
8
8
|
const maxBufferSize = 256000;
|
|
9
9
|
class ReadStreamTokenizer extends AbstractTokenizer_1.AbstractTokenizer {
|
|
10
10
|
constructor(stream, fileInfo) {
|
|
@@ -110,7 +110,7 @@ class ReadStreamTokenizer extends AbstractTokenizer_1.AbstractTokenizer {
|
|
|
110
110
|
return bytesRead;
|
|
111
111
|
}
|
|
112
112
|
async ignore(length) {
|
|
113
|
-
debug(`ignore ${this.position}...${this.position + length - 1}`);
|
|
113
|
+
// debug(`ignore ${this.position}...${this.position + length - 1}`);
|
|
114
114
|
const bufSize = Math.min(maxBufferSize, length);
|
|
115
115
|
const buf = Buffer.alloc(bufSize);
|
|
116
116
|
let totBytesRead = 0;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "strtok3",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.4",
|
|
4
4
|
"description": "A promise based streaming tokenizer",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Borewit",
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"url": "https://github.com/Borewit/strtok3/issues"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@types/chai": "^4.2.
|
|
42
|
-
"@types/mocha": "^
|
|
43
|
-
"@types/node": "^14.0.
|
|
41
|
+
"@types/chai": "^4.2.12",
|
|
42
|
+
"@types/mocha": "^8.0.0",
|
|
43
|
+
"@types/node": "^14.0.26",
|
|
44
44
|
"@typescript-eslint/eslint-plugin": "^2.31.0",
|
|
45
45
|
"@typescript-eslint/eslint-plugin-tslint": "^2.31.0",
|
|
46
46
|
"@typescript-eslint/parser": "^2.31.0",
|
|
@@ -48,22 +48,21 @@
|
|
|
48
48
|
"coveralls": "^3.1.0",
|
|
49
49
|
"del-cli": "^3.0.0",
|
|
50
50
|
"eslint": "^6.8.0",
|
|
51
|
-
"eslint-plugin-import": "^2.
|
|
52
|
-
"eslint-plugin-prefer-arrow": "^1.2.
|
|
51
|
+
"eslint-plugin-import": "^2.22.0",
|
|
52
|
+
"eslint-plugin-prefer-arrow": "^1.2.2",
|
|
53
53
|
"mocha": "^7.2.0",
|
|
54
54
|
"nyc": "^15.1.0",
|
|
55
|
-
"remark-cli": "^8.0.
|
|
56
|
-
"remark-preset-lint-recommended": "^4.0.
|
|
55
|
+
"remark-cli": "^8.0.1",
|
|
56
|
+
"remark-preset-lint-recommended": "^4.0.1",
|
|
57
57
|
"source-map-support": "^0.5.16",
|
|
58
58
|
"token-types": "^2.0.0",
|
|
59
59
|
"ts-node": "^8.10.2",
|
|
60
60
|
"tslint": "^6.1.2",
|
|
61
|
-
"typescript": "^3.9.
|
|
61
|
+
"typescript": "^3.9.7"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
64
|
"@tokenizer/token": "^0.1.1",
|
|
65
65
|
"@types/debug": "^4.1.5",
|
|
66
|
-
"debug": "^4.1.1",
|
|
67
66
|
"peek-readable": "^3.1.0"
|
|
68
67
|
},
|
|
69
68
|
"keywords": [
|