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

animframe

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

animframe - npm Package Compare versions

Comparing version 1.1.4 to 1.1.5

2

bower.json
{
"name": "animframe",
"version": "1.1.4",
"version": "1.1.5",
"homepage": "https://github.com/freezedev/animframe",

@@ -5,0 +5,0 @@ "authors": [

@@ -12,5 +12,5 @@ (function() {

return udefine.configure(function(root) {
var n, _i, _len;
for (_i = 0, _len = names.length; _i < _len; _i++) {
n = names[_i];
var i, len, n;
for (i = 0, len = names.length; i < len; i++) {
n = names[i];
udefine.inject.add([n.toLowerCase()], {

@@ -27,16 +27,16 @@ root: root,

/*
Shim for performance.now function
*/
*/
(function() {
udefine('performance', ['root'], function(root) {
var performance, vendors, x, _i, _len;
var i, len, performance, vendors, x;
performance = root.performance || {};
vendors = ['ms', 'moz', 'webkit', 'o'];
if (!performance.now) {
for (_i = 0, _len = vendors.length; _i < _len; _i++) {
x = vendors[_i];
performance.now = performance["" + x + "Now"];
for (i = 0, len = vendors.length; i < len; i++) {
x = vendors[i];
performance.now = performance[x + "Now"];
if (performance.now) {

@@ -63,8 +63,8 @@ break;

udefine('requestanimationframe', ['root', 'performance'], function(root, perf) {
var lastTime, requestAnimationFrame, x, _i, _len;
var i, lastTime, len, requestAnimationFrame, x;
requestAnimationFrame = root.requestAnimationFrame;
if (!requestAnimationFrame) {
for (_i = 0, _len = vendors.length; _i < _len; _i++) {
x = vendors[_i];
requestAnimationFrame = root["" + x + "RequestAnimationFrame"];
for (i = 0, len = vendors.length; i < len; i++) {
x = vendors[i];
requestAnimationFrame = root[x + "RequestAnimationFrame"];
if (requestAnimationFrame) {

@@ -92,8 +92,8 @@ break;

udefine('cancelanimationframe', ['root'], function(root) {
var cancelAnimationFrame, x, _i, _len;
var cancelAnimationFrame, i, len, x;
cancelAnimationFrame = root.cancelAnimationFrame;
if (!cancelAnimationFrame) {
for (_i = 0, _len = vendors.length; _i < _len; _i++) {
x = vendors[_i];
cancelAnimationFrame = root["" + x + "CancelAnimationFrame"] || root["" + x + "CancelRequestAnimationFrame"];
for (i = 0, len = vendors.length; i < len; i++) {
x = vendors[i];
cancelAnimationFrame = root[x + "CancelAnimationFrame"] || root[x + "CancelRequestAnimationFrame"];
if (cancelAnimationFrame) {

@@ -100,0 +100,0 @@ break;

@@ -1,2 +0,2 @@

/*! animframe - v1.1.4 - 17-11-2013 */
(function(){!function(a){return"undefined"==typeof performance||null===performance?udefine.configure(function(){return udefine.inject.add(a)}):void 0}("performance"),function(a){return udefine.configure(function(b){var c,d,e;for(d=0,e=a.length;e>d;d++)c=a[d],udefine.inject.add([c.toLowerCase()],{root:b,name:c});return null})}(["requestAnimationFrame","cancelAnimationFrame"])}).call(this),function(){udefine("performance",["root"],function(a){var b,c,d,e,f;if(b=a.performance||{},c=["ms","moz","webkit","o"],!b.now)for(e=0,f=c.length;f>e&&(d=c[e],b.now=b[""+d+"Now"],!b.now);e++);return b.now||(b.now=function(){return("function"==typeof Date.now?Date.now():void 0)||(new Date).getTime()}),b})}.call(this),function(){var a;a=["ms","moz","webkit","o"],udefine("requestanimationframe",["root","performance"],function(b,c){var d,e,f,g,h;if(e=b.requestAnimationFrame,!e)for(g=0,h=a.length;h>g&&(f=a[g],!(e=b[""+f+"RequestAnimationFrame"]));g++);return e||(d=0,e=function(a){var e,f,g;return e=c.now(),g=Math.max(0,16-(e-d)),f=b.setTimeout(function(){return a(e+g)},g),d=e+g,f}),e}),udefine("cancelanimationframe",["root"],function(b){var c,d,e,f;if(c=b.cancelAnimationFrame,!c)for(e=0,f=a.length;f>e&&(d=a[e],!(c=b[""+d+"CancelAnimationFrame"]||b[""+d+"CancelRequestAnimationFrame"]));e++);return c||(c=function(a){return b.clearTimeout(a)}),c})}.call(this);
/*! animframe - v1.1.5 - 02-03-2015 */
(function(){!function(a){return"undefined"==typeof performance||null===performance?udefine.configure(function(){return udefine.inject.add(a)}):void 0}("performance"),function(a){return udefine.configure(function(b){var c,d,e;for(c=0,d=a.length;d>c;c++)e=a[c],udefine.inject.add([e.toLowerCase()],{root:b,name:e});return null})}(["requestAnimationFrame","cancelAnimationFrame"])}).call(this),function(){udefine("performance",["root"],function(a){var b,c,d,e,f;if(d=a.performance||{},e=["ms","moz","webkit","o"],!d.now)for(b=0,c=e.length;c>b&&(f=e[b],d.now=d[f+"Now"],!d.now);b++);return d.now||(d.now=function(){return("function"==typeof Date.now?Date.now():void 0)||(new Date).getTime()}),d})}.call(this),function(){var a;a=["ms","moz","webkit","o"],udefine("requestanimationframe",["root","performance"],function(b,c){var d,e,f,g,h;if(g=b.requestAnimationFrame,!g)for(d=0,f=a.length;f>d&&(h=a[d],!(g=b[h+"RequestAnimationFrame"]));d++);return g||(e=0,g=function(a){var d,f,g;return d=c.now(),g=Math.max(0,16-(d-e)),f=b.setTimeout(function(){return a(d+g)},g),e=d+g,f}),g}),udefine("cancelanimationframe",["root"],function(b){var c,d,e,f;if(c=b.cancelAnimationFrame,!c)for(d=0,e=a.length;e>d&&(f=a[d],!(c=b[f+"CancelAnimationFrame"]||b[f+"CancelRequestAnimationFrame"]));d++);return c||(c=function(a){return b.clearTimeout(a)}),c})}.call(this);
{
"name": "animframe",
"version": "1.1.4",
"version": "1.1.5",
"dependencies": {

@@ -8,10 +8,10 @@ "udefine": "~0.8.2"

"devDependencies": {
"grunt": "0.4.x",
"grunt": "^0.4.5",
"grunt-coffeelint": "~0.0.7",
"grunt-contrib-uglify": "~0.2.7",
"grunt-contrib-coffee": "~0.7.0",
"grunt-contrib-coffee": "^0.13.0",
"grunt-contrib-uglify": "^0.8.0",
"grunt-mocha": "~0.4.1",
"grunt-templater": "~0.0.4",
"matchdep": "~0.3.0",
"handlebars": "~1.1.2"
"handlebars": "^3.0.0",
"matchdep": "~0.3.0"
},

@@ -21,2 +21,2 @@ "scripts": {

}
}
}

@@ -9,1 +9,9 @@ animframe

requestAnimationFrame shim (for AMD and all the other stuff)
License
-------
This piece of software is public domain. (See LICENSE)
If the Unlicense does not work for me, you may alternativly use the terms of the MIT license.
[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/freezedev/animframe/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

Sorry, the diff of this file is not supported yet

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