Socket
Socket
Sign inDemoInstall

raf

Package Overview
Dependencies
Maintainers
2
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

raf - npm Package Compare versions

Comparing version 2.0.3 to 2.0.4

6

index.js

@@ -7,3 +7,3 @@ var now = require('performance-now')

, caf = global['cancel' + suffix] || global['cancelRequest' + suffix]
, native = true
, isNative = true

@@ -18,3 +18,3 @@ for(var i = 0; i < vendors.length && !raf; i++) {

if(!raf || !caf) {
native = false
isNative = false

@@ -69,3 +69,3 @@ var last = 0

// to the native rAF function
if(!native) {
if(!isNative) {
return raf.call(global, fn)

@@ -72,0 +72,0 @@ }

{
"name": "raf",
"version": "2.0.3",
"version": "2.0.4",
"description": "requestAnimationFrame polyfill for node and the browser",

@@ -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