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

choo-hooks

Package Overview
Dependencies
Maintainers
24
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

choo-hooks - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

.npmignore

12

index.js

@@ -22,3 +22,3 @@ var onPerformance = require('on-performance')

use: [],
render: [],
render: {},
events: {}

@@ -48,7 +48,7 @@ }

if (/choo\.morph/.test(eventName)) {
self.buffer.render.push(timing)
self.buffer.render.morph = timing
} else if (/choo\.route/.test(eventName)) {
self.buffer.render.push(timing)
self.buffer.render.route = timing
} else if (/choo\.render/.test(eventName)) {
self.buffer.render.push(timing)
self.buffer.render.render = timing
} else if (/choo\.use/.test(eventName)) {

@@ -70,3 +70,4 @@ self.buffer.use.push(timing)

if (self.buffer.render.length === 3) {
var rBuf = self.buffer.render
if (rBuf.render && rBuf.route && rBuf.morph) {
var renderListener = self.listeners['render']

@@ -82,2 +83,3 @@ if (!renderListener) return

}
rBuf.render = rBuf.route = rBuf.morph = void 0
renderListener(timings)

@@ -84,0 +86,0 @@ }

@@ -5,3 +5,3 @@ {

"repository": "choojs/choo-hooks",
"version": "1.1.0",
"version": "1.1.1",
"scripts": {

@@ -8,0 +8,0 @@ "deps": "dependency-check . && dependency-check . --extra --no-dev",

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