@studio-freight/tempus
Advanced tools
Comparing version 0.0.37 to 0.0.38
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : | ||
typeof define === 'function' && define.amd ? define(factory) : | ||
(global = global || self, global["@studio-freight/tempus"] = factory()); | ||
(global = global || self, global.$npm_package_name = factory()); | ||
})(this, (function () { | ||
var isClient = typeof window !== 'undefined'; | ||
var Tempus = /*#__PURE__*/function () { | ||
@@ -47,3 +46,3 @@ function Tempus() { | ||
}(); | ||
if (!isClient) console.warn('Tempus can be used in client side only'); | ||
var isClient = typeof window !== 'undefined'; | ||
var index = isClient && new Tempus(); | ||
@@ -50,0 +49,0 @@ |
@@ -1,1 +0,1 @@ | ||
!function(n,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(n||self)["@studio-freight/tempus"]=e()}(this,function(){var n="undefined"!=typeof window,e=/*#__PURE__*/function(){function n(){var n=this;this.raf=function(e){requestAnimationFrame(n.raf);var t=e-n.now;n.now=e;for(var i=0;i<n.callbacks.length;i++)n.callbacks[i].callback(e,t)},this.callbacks=[],this.now=performance.now(),requestAnimationFrame(this.raf)}var e=n.prototype;return e.add=function(n,e){var t=this;return void 0===e&&(e=0),this.callbacks.push({callback:n,priority:e}),this.callbacks.sort(function(n,e){return n.priority-e.priority}),function(){return t.remove(n)}},e.remove=function(n){this.callbacks=this.callbacks.filter(function(e){return n!==e.callback})},n}();return n||console.warn("Tempus can be used in client side only"),n&&new e}); | ||
!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(n||self).$npm_package_name=t()}(this,function(){return"undefined"!=typeof window&&new(/*#__PURE__*/function(){function n(){var n=this;this.raf=function(t){requestAnimationFrame(n.raf);var e=t-n.now;n.now=t;for(var i=0;i<n.callbacks.length;i++)n.callbacks[i].callback(t,e)},this.callbacks=[],this.now=performance.now(),requestAnimationFrame(this.raf)}var t=n.prototype;return t.add=function(n,t){var e=this;return void 0===t&&(t=0),this.callbacks.push({callback:n,priority:t}),this.callbacks.sort(function(n,t){return n.priority-t.priority}),function(){return e.remove(n)}},t.remove=function(n){this.callbacks=this.callbacks.filter(function(t){return n!==t.callback})},n}())}); |
@@ -1,2 +0,2 @@ | ||
var n="undefined"!=typeof window,r=/*#__PURE__*/function(){function n(){var n=this;this.raf=function(r){requestAnimationFrame(n.raf);var a=r-n.now;n.now=r;for(var t=0;t<n.callbacks.length;t++)n.callbacks[t].callback(r,a)},this.callbacks=[],this.now=performance.now(),requestAnimationFrame(this.raf)}var r=n.prototype;return r.add=function(n,r){var a=this;return void 0===r&&(r=0),this.callbacks.push({callback:n,priority:r}),this.callbacks.sort(function(n,r){return n.priority-r.priority}),function(){return a.remove(n)}},r.remove=function(n){this.callbacks=this.callbacks.filter(function(r){return n!==r.callback})},n}();n||console.warn("Tempus can be used in client side only");var a=n&&new r;module.exports=a; | ||
var r="undefined"!=typeof window&&new(/*#__PURE__*/function(){function r(){var r=this;this.raf=function(t){requestAnimationFrame(r.raf);var a=t-r.now;r.now=t;for(var n=0;n<r.callbacks.length;n++)r.callbacks[n].callback(t,a)},this.callbacks=[],this.now=performance.now(),requestAnimationFrame(this.raf)}var t=r.prototype;return t.add=function(r,t){var a=this;return void 0===t&&(t=0),this.callbacks.push({callback:r,priority:t}),this.callbacks.sort(function(r,t){return r.priority-t.priority}),function(){return a.remove(r)}},t.remove=function(r){this.callbacks=this.callbacks.filter(function(t){return r!==t.callback})},r}());module.exports=r; | ||
//# sourceMappingURL=tempus.js.map |
@@ -1,2 +0,2 @@ | ||
!function(n,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(n||self).tempus=e()}(this,function(){var n="undefined"!=typeof window,e=/*#__PURE__*/function(){function n(){var n=this;this.raf=function(e){requestAnimationFrame(n.raf);var t=e-n.now;n.now=e;for(var i=0;i<n.callbacks.length;i++)n.callbacks[i].callback(e,t)},this.callbacks=[],this.now=performance.now(),requestAnimationFrame(this.raf)}var e=n.prototype;return e.add=function(n,e){var t=this;return void 0===e&&(e=0),this.callbacks.push({callback:n,priority:e}),this.callbacks.sort(function(n,e){return n.priority-e.priority}),function(){return t.remove(n)}},e.remove=function(n){this.callbacks=this.callbacks.filter(function(e){return n!==e.callback})},n}();return n||console.warn("Tempus can be used in client side only"),n&&new e}); | ||
!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(n||self).tempus=t()}(this,function(){return"undefined"!=typeof window&&new(/*#__PURE__*/function(){function n(){var n=this;this.raf=function(t){requestAnimationFrame(n.raf);var e=t-n.now;n.now=t;for(var i=0;i<n.callbacks.length;i++)n.callbacks[i].callback(t,e)},this.callbacks=[],this.now=performance.now(),requestAnimationFrame(this.raf)}var t=n.prototype;return t.add=function(n,t){var e=this;return void 0===t&&(t=0),this.callbacks.push({callback:n,priority:t}),this.callbacks.sort(function(n,t){return n.priority-t.priority}),function(){return e.remove(n)}},t.remove=function(n){this.callbacks=this.callbacks.filter(function(t){return n!==t.callback})},n}())}); | ||
//# sourceMappingURL=tempus.umd.js.map |
@@ -0,0 +0,0 @@ declare const _default: Tempus; |
{ | ||
"name": "@studio-freight/tempus", | ||
"version": "0.0.37", | ||
"version": "0.0.38", | ||
"description": "one rAF to rule them all", | ||
@@ -5,0 +5,0 @@ "files": [ |
@@ -0,0 +0,0 @@ ## Purpose |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
15791
78