loglevel-mixin
Advanced tools
Comparing version 2.0.5 to 3.0.0
{ | ||
"name": "loglevel-mixin", | ||
"version": "2.0.5", | ||
"version": "3.0.0", | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"main": "dist/loglevel-mixin.js", | ||
"main": "src/loglevel-mixin.mjs", | ||
"module": "src/loglevel-mixin.mjs", | ||
@@ -26,18 +26,10 @@ "description": "mixin to declare logging methods named after a set of log levels", | ||
"test": "ava", | ||
"semantic-release": "semantic-release", | ||
"posttest": "npm run prepare && markdown-doctest", | ||
"prepare": "rollup -c", | ||
"travis-deploy-once": "travis-deploy-once" | ||
"posttest": "markdown-doctest" | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"ava": "^1.0.0-rc.2", | ||
"documentation": "^8.1.2", | ||
"ava": "^1.0.1", | ||
"documentation": "^9.1.1", | ||
"markdown-doctest": "^0.9.1", | ||
"rollup": "^0.67.1", | ||
"rollup-plugin-cleanup": "^3.0.0", | ||
"rollup-plugin-commonjs": "^9.2.0", | ||
"rollup-plugin-node-resolve": "^3.4.0", | ||
"semantic-release": "^15.12.0", | ||
"travis-deploy-once": "^5.0.9", | ||
"semantic-release": "^15.13.2", | ||
"c8": "^3.2.1", | ||
@@ -47,3 +39,3 @@ "esm": "^3.0.84" | ||
"engines": { | ||
"node": ">=10.13" | ||
"node": ">=10.15.0" | ||
}, | ||
@@ -75,8 +67,5 @@ "repository": { | ||
"repository": { | ||
"url": "https://github.com/arlac77/npm-package-template.git" | ||
"url": "https://github.com/arlac77/npm-package-template-esm-only.git" | ||
} | ||
}, | ||
"_release": { | ||
"verifyRelease": "cracks" | ||
} | ||
} |
@@ -24,4 +24,6 @@ [![npm](https://img.shields.io/npm/v/loglevel-mixin.svg)](https://www.npmjs.com/package/loglevel-mixin) | ||
<!-- skip-example --> | ||
```javascript | ||
const llm = require('loglevel-mixin'); | ||
import { defineLogLevelProperties, defineLoggerMethods } from 'loglevel-mixin'; | ||
@@ -34,4 +36,4 @@ let someObject = { | ||
llm.defineLoggerMethods(someObject); | ||
llm.defineLogLevelProperties(someObject); | ||
defineLoggerMethods(someObject); | ||
defineLogLevelProperties(someObject); | ||
@@ -50,6 +52,8 @@ someObject.logLevel = 'error'; | ||
<!-- skip-example --> | ||
```javascript | ||
const llm = require('loglevel-mixin'); | ||
import { LogLevelMixin } from 'loglevel-mixin'; | ||
const LoggingEnabledClass = llm.LogLevelMixin( | ||
const LoggingEnabledClass = LogLevelMixin( | ||
class BaseClass { | ||
@@ -90,5 +94,5 @@ log(level, message) { | ||
- [Properties](#properties) | ||
- [defaultLogLevels](#defaultloglevels) | ||
- [Loglevel](#loglevel) | ||
- [Properties](#properties-1) | ||
- [defaultLogLevels](#defaultloglevels) | ||
- [declareLevels](#declarelevels) | ||
@@ -117,2 +121,11 @@ - [Parameters](#parameters) | ||
## Loglevel | ||
Type: [Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object) | ||
### Properties | ||
- `name` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** | ||
- `priority` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** | ||
## defaultLogLevels | ||
@@ -131,11 +144,2 @@ | ||
## Loglevel | ||
Type: [Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object) | ||
### Properties | ||
- `name` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** | ||
- `priority` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** | ||
## declareLevels | ||
@@ -142,0 +146,0 @@ |
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
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
6
232
0
18700
4
223