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 CHANGED
@@ -1,4 +1,4 @@
1
- [![Build Status](https://travis-ci.org/Borewit/strtok3.svg?branch=master)](https://travis-ci.org/Borewit/strtok3)
1
+ ![Node.js CI](https://github.com/Borewit/strtok3/workflows/Node.js%20CI/badge.svg)
2
2
  [![NPM version](https://badge.fury.io/js/strtok3.svg)](https://npmjs.org/package/strtok3)
3
3
  [![npm downloads](http://img.shields.io/npm/dm/strtok3.svg)](https://npmcharts.com/compare/strtok3,token-types?start=1200&interval=30)
4
4
  [![Dependabot Status](https://api.dependabot.com/badges/status?host=github&repo=Borewit/music-metadata)](https://dependabot.com)[![Coverage status](https://coveralls.io/repos/github/Borewit/strtok3/badge.svg?branch=master)](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.
@@ -67,4 +67,3 @@ class AbstractTokenizer {
67
67
  }
68
68
  }
69
69
  exports.AbstractTokenizer = AbstractTokenizer;
70
- //# sourceMappingURL=AbstractTokenizer.js.map
@@ -112,4 +112,3 @@ class BufferTokenizer {
112
112
  }
113
113
  }
114
114
  exports.BufferTokenizer = BufferTokenizer;
115
- //# sourceMappingURL=BufferTokenizer.js.map
@@ -110,4 +110,3 @@ async function fromFile(sourceFilePath) {
110
110
  return new FileTokenizer(fd, { path: sourceFilePath, size: stat.size });
111
111
  }
112
112
  exports.fromFile = fromFile;
113
- //# sourceMappingURL=FileTokenizer.js.map
package/lib/FsPromise.js CHANGED
@@ -77,4 +77,3 @@ async function readFile(path) {
77
77
  });
78
78
  }
79
79
  exports.readFile = readFile;
80
- //# sourceMappingURL=FsPromise.js.map
@@ -126,4 +126,3 @@ class ReadStreamTokenizer extends AbstractTokenizer_1.AbstractTokenizer {
126
126
  }
127
127
  }
128
128
  exports.ReadStreamTokenizer = ReadStreamTokenizer;
129
- //# sourceMappingURL=ReadStreamTokenizer.js.map
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
@@ -1,3 +1,2 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=types.js.map
package/package.json CHANGED
@@ -1,11 +1,15 @@
1
1
  {
2
2
  "name": "strtok3",
3
- "version": "6.0.4",
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": "npm run test-coverage && nyc report --reporter=text-lcov | 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
- "typings": "lib/index.d.ts",
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.12",
42
- "@types/mocha": "^8.0.0",
43
- "@types/node": "^14.0.26",
44
- "@typescript-eslint/eslint-plugin": "^2.31.0",
45
- "@typescript-eslint/eslint-plugin-tslint": "^2.31.0",
46
- "@typescript-eslint/parser": "^2.31.0",
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.0",
54
+ "del-cli": "^3.0.1",
50
55
  "eslint": "^6.8.0",
51
- "eslint-plugin-import": "^2.22.0",
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": "^8.0.1",
56
- "remark-preset-lint-recommended": "^4.0.1",
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.0.0",
59
- "ts-node": "^8.10.2",
60
- "tslint": "^6.1.2",
61
- "typescript": "^3.9.7"
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.0"
71
+ "peek-readable": "^3.1.3"
67
72
  },
68
73
  "keywords": [
69
74
  "tokenizer",