New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

choo-log

Package Overview
Dependencies
Maintainers
4
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

choo-log - npm Package Compare versions

Comparing version 5.0.0 to 5.0.1

4

package.json
{
"name": "choo-log",
"version": "5.0.0",
"version": "5.0.1",
"description": "Development logger for choo",

@@ -28,3 +28,3 @@ "main": "index.js",

"budo": "^9.1.0",
"choo": "^3.0.1",
"choo": "^5.0.0",
"dependency-check": "^2.5.2",

@@ -31,0 +31,0 @@ "istanbul": "^0.4.4",

@@ -11,9 +11,9 @@ # choo-log [![stability][0]][1] [![choo peer dependency][13]][14]

```js
const log = require('choo-log')
const choo = require('choo')
var log = require('choo-log')
var choo = require('choo')
const app = choo()
var app = choo()
app.use(log())
const tree = app.start()
var tree = app.start()
document.body.appendChild(tree)

@@ -25,5 +25,5 @@ ```

```js
const choo = require('choo')
var choo = require('choo')
const app = choo()
var app = choo()

@@ -33,3 +33,3 @@ // this block of code will be eliminated by any minification if

if (process.env.NODE_ENV !== 'production') {
const log = require('choo-log')
var log = require('choo-log')
app.use(log())

@@ -40,7 +40,4 @@ }

## API
### logger = chooLog()
Create a new logger instance. Listens to:
- `onAction()`: show the values inside of new `actions`
- `onError()`: display errors
- `onStateChange()`: show current state and previous state
### `logger = log()`
Create a new logger instance.

@@ -47,0 +44,0 @@ ## Installation

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