},
"dependencies": {
"ajv": "^8.0.1",
- "is-boolean-object": "^1.1.0",
- "is-number-object": "^1.0.4",
- "is-string": "^1.0.5",
- "lodash.clonedeep": "^4.5.0",
- "lodash.flatten": "^4.4.0",
"lodash.truncate": "^4.4.2",
"slice-ansi": "^4.0.0",
- "string-width": "^4.2.0"
+ "string-width": "^4.2.3",
+ "strip-ansi": "^6.0.1"
},
"description": "Formats data into a string table.",
"devDependencies": {
- "@babel/cli": "^7.12.10",
- "@babel/core": "^7.12.10",
- "@babel/node": "^7.12.10",
- "@babel/plugin-transform-flow-strip-types": "^7.12.10",
- "@babel/preset-env": "^7.12.11",
- "@babel/register": "^7.12.10",
+ "@types/chai": "^4.2.16",
+ "@types/lodash.mapvalues": "^4.6.6",
+ "@types/lodash.truncate": "^4.4.6",
+ "@types/mocha": "^9.0.0",
+ "@types/node": "^14.14.37",
+ "@types/sinon": "^10.0.0",
+ "@types/slice-ansi": "^4.0.0",
"ajv-cli": "^5.0.0",
"ajv-keywords": "^5.0.0",
- "babel-plugin-istanbul": "^6.0.0",
- "babel-plugin-transform-export-default-name": "^2.1.0",
"chai": "^4.2.0",
"chalk": "^4.1.0",
"coveralls": "^3.1.0",
- "eslint": "^7.16.0",
+ "eslint": "^7.32.0",
"eslint-config-canonical": "^25.0.0",
- "flow-bin": "^0.141.0",
- "flow-copy-source": "^2.0.9",
- "gitdown": "^3.1.3",
+ "gitdown": "^3.1.4",
"husky": "^4.3.6",
- "js-beautify": "^1.13.0",
+ "js-beautify": "^1.14.0",
"lodash.mapvalues": "^4.6.0",
- "lodash.random": "^3.2.0",
- "lodash.sample": "^4.2.1",
+ "mkdirp": "^1.0.4",
"mocha": "^8.2.1",
"nyc": "^15.1.0",
"semantic-release": "^17.3.1",
- "sinon": "^9.2.2"
+ "sinon": "^12.0.1",
+ "ts-node": "^9.1.1",
+ "typescript": "4.5.2"
},
"engines": {
"node": ">=10.0.0"
"husky": {
"hooks": {
"post-commit": "npm run create-readme && git add README.md && git commit -m 'docs: generate docs' --no-verify",
- "pre-commit": "npm run lint && npm run test && npm run build"
+ "pre-commit": "npm run build && npm run lint && npm run test"
}
},
"keywords": [
"ansi"
],
"license": "BSD-3-Clause",
- "main": "./dist/index.js",
+ "main": "./dist/src/index.js",
+ "files": [
+ "dist/src/**/*.js",
+ "dist/src/**/*.d.ts"
+ ],
"name": "table",
- "nyc": {
- "include": [
- "src/**/*.js"
- ],
- "instrument": false,
- "reporter": [
- "text-lcov"
- ],
- "require": [
- "@babel/register"
- ],
- "sourceMap": false
- },
"repository": {
"type": "git",
"url": "https://github.com/gajus/table"
},
"scripts": {
- "build": "rm -fr ./dist && NODE_ENV=production babel ./src --out-dir ./dist --copy-files --source-maps && npm run create-validators && flow-copy-source src dist",
+ "prebuild": "rm -fr ./src/generated && mkdirp ./src/generated",
+ "build": "npm run create-validators && tsc",
"create-readme": "gitdown ./.README/README.md --output-file ./README.md",
- "create-validators": "ajv compile --all-errors --inline-refs=false -s src/schemas/config -s src/schemas/streamConfig -r src/schemas/shared -c ajv-keywords/dist/keywords/typeof -o | js-beautify > dist/validators.js",
- "lint": "npm run build && eslint ./src ./test && flow",
- "test": "mocha --require @babel/register"
+ "create-validators": "ajv compile --all-errors --inline-refs=false -s src/schemas/config -s src/schemas/streamConfig -r src/schemas/shared -c ajv-keywords/dist/keywords/typeof -o | js-beautify > ./src/generated/validators.js",
+ "lint": "eslint ./src ./test",
+ "test": "nyc mocha && nyc check-coverage --lines 95"
},
- "version": "6.0.8"
+ "version": "6.7.5"
}