token-types
Advanced tools
Comparing version 5.0.0-alpha.3 to 5.0.0
@@ -1,2 +0,2 @@ | ||
/// <reference types="node" /> | ||
/// <reference types="node" resolution-mode="require"/> | ||
import { IToken, IGetToken } from '@tokenizer/token'; | ||
@@ -3,0 +3,0 @@ import { Buffer } from 'node:buffer'; |
@@ -368,2 +368,3 @@ import * as ieee754 from 'ieee754'; | ||
// ToDo: don't read, but skip data | ||
// eslint-disable-next-line @typescript-eslint/no-empty-function | ||
get(array, off) { | ||
@@ -370,0 +371,0 @@ } |
{ | ||
"name": "token-types", | ||
"version": "5.0.0-alpha.3", | ||
"version": "5.0.0", | ||
"description": "Common token types for decoding and encoding numeric and string values", | ||
@@ -19,5 +19,6 @@ "author": { | ||
"compile": "npm run compile-src && npm run compile-test", | ||
"eslint": "eslint lib test --ext .ts --ignore-pattern *.d.ts", | ||
"lint-ts": "tslint lib/index.ts --exclude '*.d.ts' 'test/**/*.ts' --exclude 'test/**/*.d.ts'", | ||
"lint-md": "remark -u preset-lint-recommended .", | ||
"lint": "npm run lint-ts && npm run lint-md", | ||
"lint": "npm run lint-md && npm run eslint", | ||
"test": "mocha", | ||
@@ -28,3 +29,3 @@ "test-coverage": "c8 npm run test", | ||
"engines": { | ||
"node": "^12.20.0 || ^14.13.1 || >=16.0.0" | ||
"node": ">=14.16" | ||
}, | ||
@@ -50,2 +51,4 @@ "repository": { | ||
"@types/node": "^18.6.3", | ||
"@typescript-eslint/eslint-plugin": "^5.30.7", | ||
"@typescript-eslint/parser": "^5.30.7", | ||
"c8": "^7.12.0", | ||
@@ -55,3 +58,10 @@ "chai": "^4.3.6", | ||
"del-cli": "^5.0.0", | ||
"mocha": "^9.2.2", | ||
"eslint": "^8.9.0", | ||
"eslint-config-prettier": "^8.5.0", | ||
"eslint-import-resolver-typescript": "^2.7.1", | ||
"eslint-plugin-import": "^2.26.0", | ||
"eslint-plugin-jsdoc": "^39.3.4", | ||
"eslint-plugin-node": "^11.1.0", | ||
"eslint-plugin-unicorn": "^43.0.2", | ||
"mocha": "^10.0.0", | ||
"remark-cli": "^11.0.0", | ||
@@ -61,3 +71,2 @@ "remark-preset-lint-recommended": "^6.1.2", | ||
"ts-node": "^10.9.1", | ||
"tslint": "^6.1.3", | ||
"typescript": "^4.7.4" | ||
@@ -64,0 +73,0 @@ }, |
@@ -16,2 +16,7 @@ ![Node.js CI](https://github.com/Borewit/token-types/workflows/Node.js%20CI/badge.svg) | ||
## Compatibility | ||
Module: version 5 migrated from [CommonJS](https://en.wikipedia.org/wiki/CommonJS) to [pure ECMAScript Module (ESM)](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c). | ||
JavaScript is compliant with [ECMAScript 2019 (ES10)](https://en.wikipedia.org/wiki/ECMAScript#10th_Edition_%E2%80%93_ECMAScript_2019). | ||
## Installation | ||
@@ -38,4 +43,4 @@ | ||
```js | ||
const strtok3 = require('strtok3'); | ||
const token = require('token-types'); | ||
import * as strtok3 from 'strtok3'; | ||
import * as token from 'token-types'; | ||
@@ -42,0 +47,0 @@ (async () => { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
24632
600
1
121
22