loglevel-mixin
Advanced tools
Comparing version 3.0.0 to 4.0.0
{ | ||
"name": "loglevel-mixin", | ||
"version": "3.0.0", | ||
"version": "4.0.0", | ||
"type": "module", | ||
"publishConfig": { | ||
@@ -22,19 +23,19 @@ "access": "public" | ||
"scripts": { | ||
"cover": "c8 --temp-directory build/coverage ava && c8 report -r lcov --temp-directory build/coverage", | ||
"cover": "c8 -x 'tests/**/*.mjs' --temp-directory build/tmp ava && c8 report -r lcov -o build/coverage --temp-directory build/tmp", | ||
"docs": "documentation readme src/loglevel-mixin.mjs --section=API", | ||
"lint": "documentation lint src/loglevel-mixin.mjs", | ||
"test": "ava", | ||
"posttest": "markdown-doctest" | ||
"posttest": "markdown-doctest", | ||
"test": "ava" | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"ava": "^1.0.1", | ||
"documentation": "^9.1.1", | ||
"markdown-doctest": "^0.9.1", | ||
"semantic-release": "^15.13.2", | ||
"c8": "^3.2.1", | ||
"esm": "^3.0.84" | ||
"ava": "^2.4.0", | ||
"c8": "^6.0.0", | ||
"documentation": "^12.1.2", | ||
"esm": "^3.2.25", | ||
"markdown-doctest": "^1.0.0", | ||
"semantic-release": "^15.13.28" | ||
}, | ||
"engines": { | ||
"node": ">=10.15.0" | ||
"node": ">=12.12.0" | ||
}, | ||
@@ -51,7 +52,5 @@ "repository": { | ||
"files": [ | ||
"tests/*-test.js", | ||
"tests/*-test.mjs" | ||
], | ||
"extensions": [ | ||
"js", | ||
"mjs" | ||
@@ -58,0 +57,0 @@ ], |
@@ -7,10 +7,7 @@ [![npm](https://img.shields.io/npm/v/loglevel-mixin.svg)](https://www.npmjs.com/package/loglevel-mixin) | ||
[![codecov.io](http://codecov.io/github/arlac77/loglevel-mixin/coverage.svg?branch=master)](http://codecov.io/github/arlac77/loglevel-mixin?branch=master) | ||
[![Coverage Status](https://coveralls.io/repos/arlac77/loglevel-mixin/badge.svg)](https://coveralls.io/r/arlac77/loglevel-mixin) | ||
[![Known Vulnerabilities](https://snyk.io/test/github/arlac77/loglevel-mixin/badge.svg)](https://snyk.io/test/github/arlac77/loglevel-mixin) | ||
[![GitHub Issues](https://img.shields.io/github/issues/arlac77/loglevel-mixin.svg?style=flat-square)](https://github.com/arlac77/loglevel-mixin/issues) | ||
[![Stories in Ready](https://badge.waffle.io/arlac77/loglevel-mixin.svg?label=ready&title=Ready)](http://waffle.io/arlac77/loglevel-mixin) | ||
[![Dependency Status](https://david-dm.org/arlac77/loglevel-mixin.svg)](https://david-dm.org/arlac77/loglevel-mixin) | ||
[![devDependency Status](https://david-dm.org/arlac77/loglevel-mixin/dev-status.svg)](https://david-dm.org/arlac77/loglevel-mixin#info=devDependencies) | ||
[![docs](http://inch-ci.org/github/arlac77/loglevel-mixin.svg?branch=master)](http://inch-ci.org/github/arlac77/loglevel-mixin) | ||
[![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo) | ||
[![downloads](http://img.shields.io/npm/dm/loglevel-mixin.svg?style=flat-square)](https://npmjs.org/package/loglevel-mixin) | ||
@@ -23,6 +20,7 @@ [![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/) | ||
So the model object itself can be used as a logger and the log level is directly attaches to the model | ||
# usage | ||
<!-- skip-example --> | ||
<!-- skip-example --> | ||
```javascript | ||
@@ -52,4 +50,4 @@ import { defineLogLevelProperties, defineLoggerMethods } from 'loglevel-mixin'; | ||
<!-- skip-example --> | ||
<!-- skip-example --> | ||
```javascript | ||
@@ -227,3 +225,3 @@ import { LogLevelMixin } from 'loglevel-mixin'; | ||
- `level` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** log level | ||
- `arg` **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \| [Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object))** original log message - level and timestamp may be overwritten | ||
- `arg` **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \| [Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object))** original log message - level may be overwritten | ||
- `args` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)?** additional values to be merged into the final log event - values have precedence | ||
@@ -230,0 +228,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
5
224
Yes
18416
230