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

altr-ease

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

altr-ease - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

20

index.js
var ease = require('ease-component')
, raf = require('raf').polyfill

@@ -9,6 +10,5 @@ module.exports = ease_filter

, target = {}
, rate = 10
, ms = 1
, timer
, start
, wait
, prev

@@ -22,12 +22,15 @@

var update_fn = this.create_part(parts[1] || 'linear', function(d) {
fn = d || 'linear'
animate()
})
var update_rate = this.create_part(parts[2] || '10', function(d) {
animate()
})
function animate() {
if(wait) {
return
}
function animate() {
clearTimeout(timer)
timer = setTimeout(update, rate)
wait = raf(function() {
wait = null
update()
})
}

@@ -42,3 +45,2 @@

update_fn(ctx)
update_rate(ctx)
}

@@ -45,0 +47,0 @@

{
"name": "altr-ease",
"version": "0.0.1",
"version": "0.0.2",
"description": "easing filter for altr",

@@ -20,4 +20,5 @@ "main": "index.js",

"dependencies": {
"ease-component": "1.0.0"
"ease-component": "1.0.0",
"raf": "0.1.1"
}
}
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