{
- "_from": "table@^5.2.3",
- "_id": "table@5.4.6",
- "_inBundle": false,
- "_integrity": "sha512-wmEc8m4fjnob4gt5riFRtTu/6+4rSe12TpAELNSqHMfF3IqnA+CH37USM6/YR3qRZv7e56kAEAtd6nKZaxe0Ug==",
- "_location": "/table",
- "_phantomChildren": {
- "strip-ansi": "5.2.0"
- },
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "table@^5.2.3",
- "name": "table",
- "escapedName": "table",
- "rawSpec": "^5.2.3",
- "saveSpec": null,
- "fetchSpec": "^5.2.3"
- },
- "_requiredBy": [
- "/eslint"
- ],
- "_resolved": "https://registry.npmjs.org/table/-/table-5.4.6.tgz",
- "_shasum": "1292d19500ce3f86053b05f0e8e7e4a3bb21079e",
- "_spec": "table@^5.2.3",
- "_where": "/tmp/coc-prettier-dzKjD7/node_modules/eslint",
"author": {
- "name": "Gajus Kuizinas",
"email": "gajus@gajus.com",
+ "name": "Gajus Kuizinas",
"url": "http://gajus.com"
},
- "bugs": {
- "url": "https://github.com/gajus/table/issues"
- },
- "bundleDependencies": false,
"dependencies": {
- "ajv": "^6.10.2",
- "lodash": "^4.17.14",
- "slice-ansi": "^2.1.0",
- "string-width": "^3.0.0"
+ "ajv": "^8.0.1",
+ "lodash.truncate": "^4.4.2",
+ "slice-ansi": "^4.0.0",
+ "string-width": "^4.2.3",
+ "strip-ansi": "^6.0.1"
},
- "deprecated": false,
"description": "Formats data into a string table.",
"devDependencies": {
- "@babel/cli": "^7.5.0",
- "@babel/core": "^7.5.4",
- "@babel/node": "^7.5.0",
- "@babel/plugin-transform-flow-strip-types": "^7.4.4",
- "@babel/preset-env": "^7.5.4",
- "@babel/register": "^7.4.4",
- "ajv-cli": "^3.0.0",
- "ajv-keywords": "^3.4.1",
- "babel-plugin-istanbul": "^5.1.4",
- "babel-plugin-lodash": "^3.3.4",
- "babel-plugin-transform-export-default-name": "^2.0.4",
+ "@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",
"chai": "^4.2.0",
- "chalk": "^2.4.2",
- "coveralls": "^3.0.5",
- "eslint": "^5.13.0",
- "eslint-config-canonical": "^16.1.0",
- "flow-bin": "^0.102.0",
- "flow-copy-source": "^2.0.7",
- "gitdown": "^3.1.1",
- "husky": "^3.0.0",
- "mocha": "^6.1.4",
- "nyc": "^14.1.1",
- "semantic-release": "^15.13.18",
- "sinon": "^7.3.2"
+ "chalk": "^4.1.0",
+ "coveralls": "^3.1.0",
+ "eslint": "^7.32.0",
+ "eslint-config-canonical": "^25.0.0",
+ "gitdown": "^3.1.4",
+ "husky": "^4.3.6",
+ "js-beautify": "^1.14.0",
+ "lodash.mapvalues": "^4.6.0",
+ "mkdirp": "^1.0.4",
+ "mocha": "^8.2.1",
+ "nyc": "^15.1.0",
+ "semantic-release": "^17.3.1",
+ "sinon": "^12.0.1",
+ "ts-node": "^9.1.1",
+ "typescript": "4.5.2"
},
"engines": {
- "node": ">=6.0.0"
+ "node": ">=10.0.0"
},
- "homepage": "https://github.com/gajus/table#readme",
"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": "git+https://github.com/gajus/table.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 -c ajv-keywords/keywords/typeof -o dist/validateConfig.js && ajv compile --all-errors --inline-refs=false -s src/schemas/streamConfig -c ajv-keywords/keywords/typeof -o dist/validateStreamConfig.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": "5.4.6"
+ "version": "6.7.5"
}