strtok3 6.0.4 → 6.0.8
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/README.md +13 -1
- package/lib/AbstractTokenizer.js +0 -1
- package/lib/BufferTokenizer.js +0 -1
- package/lib/FileTokenizer.js +0 -1
- package/lib/FsPromise.js +0 -1
- package/lib/ReadStreamTokenizer.js +0 -1
- package/lib/core.js +1 -2
- package/lib/index.js +1 -2
- package/lib/types.js +0 -1
- package/package.json +23 -18
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+

|
|
2
2
|
[](https://npmjs.org/package/strtok3)
|
|
3
3
|
[](https://npmcharts.com/compare/strtok3,token-types?start=1200&interval=30)
|
|
4
4
|
[](https://dependabot.com)[](https://coveralls.io/github/Borewit/strtok3?branch=master)
|
|
@@ -287,3 +287,15 @@ const {ReadableWebToNodeStream} = require('readable-web-to-node-stream');
|
|
|
287
287
|
const tokenizer = strtok3core.fromStream(nodeStream); // And we now have tokenizer in a web environment
|
|
288
288
|
})();
|
|
289
289
|
```
|
|
290
|
+
|
|
291
|
+
## Licence
|
|
292
|
+
|
|
293
|
+
(The MIT License)
|
|
294
|
+
|
|
295
|
+
Copyright (c) 2020 Borewit
|
|
296
|
+
|
|
297
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
298
|
+
|
|
299
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
300
|
+
|
|
301
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/lib/AbstractTokenizer.js
CHANGED
package/lib/BufferTokenizer.js
CHANGED
package/lib/FileTokenizer.js
CHANGED
package/lib/FsPromise.js
CHANGED
package/lib/core.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.fromBuffer = exports.fromStream = void 0;
|
|
3
|
+
exports.fromBuffer = exports.fromStream = exports.EndOfStreamError = void 0;
|
|
4
4
|
const ReadStreamTokenizer_1 = require("./ReadStreamTokenizer");
|
|
5
5
|
const BufferTokenizer_1 = require("./BufferTokenizer");
|
|
6
6
|
var peek_readable_1 = require("peek-readable");
|
|
@@ -27,4 +27,3 @@ function fromBuffer(buffer, fileInfo) {
|
|
|
27
27
|
return new BufferTokenizer_1.BufferTokenizer(buffer, fileInfo);
|
|
28
28
|
}
|
|
29
29
|
exports.fromBuffer = fromBuffer;
|
|
30
|
-
//# sourceMappingURL=core.js.map
|
package/lib/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.fromStream = void 0;
|
|
3
|
+
exports.fromStream = exports.fromBuffer = exports.EndOfStreamError = exports.fromFile = void 0;
|
|
4
4
|
const fs = require("./FsPromise");
|
|
5
5
|
const core = require("./core");
|
|
6
6
|
var FileTokenizer_1 = require("./FileTokenizer");
|
|
@@ -25,4 +25,3 @@ async function fromStream(stream, fileInfo) {
|
|
|
25
25
|
return core.fromStream(stream, fileInfo);
|
|
26
26
|
}
|
|
27
27
|
exports.fromStream = fromStream;
|
|
28
|
-
//# sourceMappingURL=index.js.map
|
package/lib/types.js
CHANGED
package/package.json
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "strtok3",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.8",
|
|
4
4
|
"description": "A promise based streaming tokenizer",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Borewit",
|
|
7
7
|
"url": "https://github.com/Borewit"
|
|
8
8
|
},
|
|
9
|
+
"funding": {
|
|
10
|
+
"type": "github",
|
|
11
|
+
"url": "https://github.com/sponsors/Borewit"
|
|
12
|
+
},
|
|
9
13
|
"scripts": {
|
|
10
14
|
"clean": "del-cli lib/**/*.js lib/**/*.js.map lib/**/*.d.ts test/**/*.js test/**/*.js.map",
|
|
11
15
|
"compile-src": "tsc -p lib",
|
|
@@ -17,7 +21,8 @@
|
|
|
17
21
|
"lint": "npm run lint-md && npm run eslint",
|
|
18
22
|
"test": "mocha --require ts-node/register --require source-map-support/register --full-trace test/test.ts",
|
|
19
23
|
"test-coverage": "nyc npm run test",
|
|
20
|
-
"coveralls": "
|
|
24
|
+
"send-coveralls": "nyc report --reporter=text-lcov | coveralls",
|
|
25
|
+
"send-codacy": "nyc report --reporter=text-lcov | codacy-coverage",
|
|
21
26
|
"start": "npm run compile && npm run lint && npm run cover-test"
|
|
22
27
|
},
|
|
23
28
|
"engines": {
|
|
@@ -29,7 +34,7 @@
|
|
|
29
34
|
},
|
|
30
35
|
"license": "MIT",
|
|
31
36
|
"main": "lib/index.js",
|
|
32
|
-
"
|
|
37
|
+
"types": "lib/index.d.ts",
|
|
33
38
|
"files": [
|
|
34
39
|
"lib/**/*.js",
|
|
35
40
|
"lib/**/*.d.ts"
|
|
@@ -38,32 +43,32 @@
|
|
|
38
43
|
"url": "https://github.com/Borewit/strtok3/issues"
|
|
39
44
|
},
|
|
40
45
|
"devDependencies": {
|
|
41
|
-
"@types/chai": "^4.2.
|
|
42
|
-
"@types/mocha": "^8.
|
|
43
|
-
"@types/node": "^14.
|
|
44
|
-
"@typescript-eslint/eslint-plugin": "^2.
|
|
45
|
-
"@typescript-eslint/eslint-plugin-tslint": "^
|
|
46
|
-
"@typescript-eslint/parser": "^2.
|
|
46
|
+
"@types/chai": "^4.2.14",
|
|
47
|
+
"@types/mocha": "^8.2.0",
|
|
48
|
+
"@types/node": "^14.14.20",
|
|
49
|
+
"@typescript-eslint/eslint-plugin": "^2.34.0",
|
|
50
|
+
"@typescript-eslint/eslint-plugin-tslint": "^4.13.0",
|
|
51
|
+
"@typescript-eslint/parser": "^2.34.0",
|
|
47
52
|
"chai": "^4.2.0",
|
|
48
53
|
"coveralls": "^3.1.0",
|
|
49
|
-
"del-cli": "^3.0.
|
|
54
|
+
"del-cli": "^3.0.1",
|
|
50
55
|
"eslint": "^6.8.0",
|
|
51
|
-
"eslint-plugin-import": "^2.22.
|
|
56
|
+
"eslint-plugin-import": "^2.22.1",
|
|
52
57
|
"eslint-plugin-prefer-arrow": "^1.2.2",
|
|
53
58
|
"mocha": "^7.2.0",
|
|
54
59
|
"nyc": "^15.1.0",
|
|
55
|
-
"remark-cli": "^
|
|
56
|
-
"remark-preset-lint-recommended": "^
|
|
60
|
+
"remark-cli": "^9.0.0",
|
|
61
|
+
"remark-preset-lint-recommended": "^5.0.0",
|
|
57
62
|
"source-map-support": "^0.5.16",
|
|
58
|
-
"token-types": "^2.
|
|
59
|
-
"ts-node": "^
|
|
60
|
-
"tslint": "^6.1.
|
|
61
|
-
"typescript": "^
|
|
63
|
+
"token-types": "^2.1.1",
|
|
64
|
+
"ts-node": "^9.1.1",
|
|
65
|
+
"tslint": "^6.1.3",
|
|
66
|
+
"typescript": "^4.1.3"
|
|
62
67
|
},
|
|
63
68
|
"dependencies": {
|
|
64
69
|
"@tokenizer/token": "^0.1.1",
|
|
65
70
|
"@types/debug": "^4.1.5",
|
|
66
|
-
"peek-readable": "^3.1.
|
|
71
|
+
"peek-readable": "^3.1.3"
|
|
67
72
|
},
|
|
68
73
|
"keywords": [
|
|
69
74
|
"tokenizer",
|