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

hafnium

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hafnium - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

9

lib/render-loop.js

@@ -15,2 +15,3 @@ var StateMap = require("./state-map.js")

beforePatch: null,
afterPatch: null
}

@@ -59,3 +60,2 @@ // Set defaults

RenderLoop.prototype.onBeforeDiff = function onBeforeDiff(v) {
console.log("this", this)
this.opts.beforeDiff = v

@@ -68,2 +68,6 @@ }

RenderLoop.prototype.onAfterPatch = function onAfterPatch(v) {
this.opts.afterPatch = v
}
RenderLoop.prototype.redraw = function redraw() {

@@ -100,2 +104,5 @@ this.redrawScheduled = false

this.currentTree = newTree
if (this.opts.afterPatch) {
this.opts.afterPatch()
}
}

@@ -102,0 +109,0 @@ }

2

package.json
{
"name": "hafnium",
"version": "0.0.3",
"version": "0.0.4",
"description": "A minimal framework on top of virtual-dom",

@@ -5,0 +5,0 @@ "main": "index.js",

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