loglevelnext
Advanced tools
Comparing version 4.0.1 to 5.0.0
{ | ||
"name": "loglevelnext", | ||
"version": "4.0.1", | ||
"version": "5.0.0", | ||
"description": "A modern logging library for Node.js and modern browsers that provides log level mapping to the console", | ||
@@ -9,36 +9,24 @@ "license": "MPL-2.0", | ||
"homepage": "https://github.com/shellscape/loglevelnext", | ||
"main": "lib/index.js", | ||
"main": "dist/index.js", | ||
"engines": { | ||
"node": ">= 8.16.0" | ||
"node": ">= 12.22.1" | ||
}, | ||
"scripts": { | ||
"ci:coverage": "nyc npm run test && nyc report --reporter=text-lcov > coverage.lcov", | ||
"ci:lint": "npm run lint && npm run security", | ||
"ci:lint:commits": "commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}", | ||
"ci:test": "npm run test", | ||
"build": "tsc --project tsconfig.json", | ||
"ci:coverage": "nyc pnpm test && nyc report --reporter=text-lcov > coverage.lcov", | ||
"commitlint": "commitlint", | ||
"commitmsg": "commitlint -e $GIT_PARAMS", | ||
"lint": "eslint --fix --cache lib test", | ||
"lint": "pnpm lint:docs && pnpm lint:json && pnpm lint:package && pnpm lint:js", | ||
"lint-staged": "lint-staged", | ||
"security": "npm audit", | ||
"test": "ava" | ||
"lint:docs": "prettier --write .github/**/*.md **/README.md", | ||
"lint:js": "eslint --fix --cache src test", | ||
"lint:json": "prettier --write tsconfig.*.json", | ||
"lint:package": "prettier --write **/package.json --plugin=prettier-plugin-package", | ||
"security": "pnpm audit --audit-level high", | ||
"test": "FORCE_COLOR=3 ava" | ||
}, | ||
"files": [ | ||
"lib/", | ||
"types/", | ||
"dist", | ||
"README.md" | ||
], | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"@commitlint/cli": "^8.2.0", | ||
"@commitlint/config-conventional": "^8.2.0", | ||
"ava": "^2.4.0", | ||
"chalk": "^4.0.0", | ||
"eslint-config-shellscape": "^2.1.0", | ||
"lint-staged": "^10.1.3", | ||
"nyc": "^15.0.1", | ||
"pre-commit": "^1.2.2", | ||
"sinon": "^7.2.3" | ||
}, | ||
"types": "types/index.d.ts", | ||
"keywords": [ | ||
@@ -62,8 +50,46 @@ "browser", | ||
], | ||
"pre-commit": "lint-staged", | ||
"devDependencies": { | ||
"@commitlint/cli": "12.1.4", | ||
"@commitlint/config-conventional": "12.1.4", | ||
"@types/node": "^15.12.2", | ||
"@types/sinon": "^10.0.2", | ||
"ava": "^3.15.0", | ||
"chalk": "^4.0.0", | ||
"eslint-config-shellscape": "^4.0.1", | ||
"husky": "^4.3.8", | ||
"lint-staged": "11.0.0", | ||
"nyc": "^15.0.1", | ||
"pre-commit": "^1.2.2", | ||
"sinon": "11.1.1", | ||
"ts-node": "^10.0.0", | ||
"typescript": "^4.3.2" | ||
}, | ||
"types": "types/index.d.ts", | ||
"ava": { | ||
"extensions": [ | ||
"ts" | ||
], | ||
"require": [ | ||
"ts-node/register" | ||
], | ||
"files": [ | ||
"test/*.ts" | ||
] | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "lint-staged" | ||
} | ||
}, | ||
"lint-staged": { | ||
"*.js": [ | ||
"*.{ts,js}": [ | ||
"eslint --fix" | ||
], | ||
"*.{json,md,yml,yaml}": [ | ||
"prettier --write" | ||
], | ||
"*package.json": [ | ||
"prettier --write --plugin=prettier-plugin-package" | ||
] | ||
} | ||
} |
@@ -1,14 +0,11 @@ | ||
[tests]: https://img.shields.io/circleci/project/github/shellscape/loglevelnext.svg | ||
[tests]: https://img.shields.io/circleci/project/github/shellscape/loglevelnext.svg | ||
[tests-url]: https://circleci.com/gh/shellscape/loglevelnext | ||
[cover]: https://codecov.io/gh/shellscape/loglevelnext/branch/master/graph/badge.svg | ||
[cover-url]: https://codecov.io/gh/shellscape/loglevelnext | ||
[size]: https://packagephobia.now.sh/badge?p=loglevelnext | ||
[size-url]: https://packagephobia.now.sh/result?p=loglevelnext | ||
[loglevel]: https://githhub.com/pimterry/loglevel | ||
[loglevelpre]: https://github.com/kutuluk/loglevel-plugin-prefix | ||
[methodFactory]: lib/MethodFactory.js | ||
[prefixFactory]: factory/PrefixFactory.js | ||
[methodfactory]: lib/factory/MethodFactory.js | ||
[prefixfactory]: lib/factory/PrefixFactory.js | ||
@@ -18,3 +15,3 @@ <div align="center"> | ||
</div> | ||
| ||
<br/> | ||
@@ -117,5 +114,5 @@ [![tests][tests]][tests-url] | ||
and provide functionality to a `LogLevel` instance. All factories must inherit from the | ||
[`MethodFactory`][methodFactory] class, and may override any defined class functions. | ||
[`MethodFactory`][methodfactory] class, and may override any defined class functions. | ||
For an example factory, please have a look at the [`PrefixFactory`][prefixFactory] | ||
For an example factory, please have a look at the [`PrefixFactory`][prefixfactory] | ||
which provides similar functionality as the [loglevel-prefix](loglevelpre) plugin, | ||
@@ -139,2 +136,2 @@ and is the factory which is used when a user passes the `prefix` option to a | ||
[LICENSE (Mozilla Public License)](./LICENSE) | ||
[LICENSE (Mozilla Public License)](./LICENSE) |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
42162
15
328
14
135
1