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 5.0.7 to 6.0.0

2

package.json
{
"name": "loglevel-mixin",
"version": "5.0.7",
"version": "6.0.0",
"publishConfig": {

@@ -5,0 +5,0 @@ "access": "public"

@@ -23,28 +23,2 @@ [![npm](https://img.shields.io/npm/v/loglevel-mixin.svg)](https://www.npmjs.com/package/loglevel-mixin)

```javascript
import { defineLogLevelProperties, defineLoggerMethods } from 'loglevel-mixin';
let someObject = {
log(severity, message) {
console.log(`${severity} ${message}`);
}
};
defineLoggerMethods(someObject);
defineLogLevelProperties(someObject);
someObject.logLevel = 'error';
someObject.info(
severity => 'my info message (not reported since logLevel is error)'
);
someObject.logLevel = 'info';
someObject.info(
severity => 'my info message (reported since logLevel is now info)'
);
```
## works for ES2015 classes to
<!-- skip-example -->
```javascript
import { LogLevelMixin } from 'loglevel-mixin';

@@ -51,0 +25,0 @@

Sorry, the diff of this file is not supported yet

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