choo-hooks
Advanced tools
Comparing version 1.1.0 to 1.1.1
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", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
8986
6
124
1