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

loglevel-mixin

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

loglevel-mixin - npm Package Compare versions

Comparing version 2.0.5 to 3.0.0

27

package.json
{
"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 @@

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