Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

loglevelnext

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

loglevelnext - npm Package Compare versions

Comparing version 4.0.1 to 5.0.0

dist/index.d.ts

80

package.json
{
"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>
&nbsp;
<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)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc