@interactjs/utils
Advanced tools
Comparing version 1.10.1 to 1.10.2
@@ -1,2 +0,2 @@ | ||
import r from"./extend.prod.js";import t from"./is.prod.js";export default function e(f,i,n){if(n=n||{},t.string(f)&&-1!==f.search(" ")&&(f=o(f)),t.array(f))return f.reduce((t,o)=>r(t,e(o,i,n)),n);if(t.object(f)&&(i=f,f=""),t.func(i))n[f]=n[f]||[],n[f].push(i);else if(t.array(i))for(const r of i)e(f,r,n);else if(t.object(i))for(const r in i)e(o(r).map(r=>`${f}${r}`),i[r],n);return n}function o(r){return r.trim().split(/ +/)} | ||
import r from"./extend.prod.js";import t from"./is.prod.js";export default function e(f,i,n){if(n=n||{},t.string(f)&&-1!==f.search(" ")&&(f=o(f)),t.array(f))return f.reduce(((t,o)=>r(t,e(o,i,n))),n);if(t.object(f)&&(i=f,f=""),t.func(i))n[f]=n[f]||[],n[f].push(i);else if(t.array(i))for(const r of i)e(f,r,n);else if(t.object(i))for(const r in i)e(o(r).map((r=>`${f}${r}`)),i[r],n);return n}function o(r){return r.trim().split(/ +/)} | ||
//# sourceMappingURL=normalizeListeners.prod.js.map |
{ | ||
"name": "@interactjs/utils", | ||
"version": "1.10.1", | ||
"version": "1.10.2", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "publishConfig": { |
@@ -24,3 +24,3 @@ let lastTime = 0; | ||
const currTime = Date.now(); | ||
const timeToCall = Math.max(0, 16 - (currTime - lastTime)); // eslint-disable-next-line standard/no-callback-literal | ||
const timeToCall = Math.max(0, 16 - (currTime - lastTime)); // eslint-disable-next-line node/no-callback-literal | ||
@@ -27,0 +27,0 @@ const token = window.setTimeout(() => { |
@@ -1,2 +0,2 @@ | ||
let e,t,n=0;export default{request:t=>e(t),cancel:e=>t(e),init(a){if(e=a.requestAnimationFrame,t=a.cancelAnimationFrame,!e){const n=["ms","moz","webkit","o"];for(const i of n)e=a[i+"RequestAnimationFrame"],t=a[i+"CancelAnimationFrame"]||a[i+"CancelRequestAnimationFrame"]}e=e&&e.bind(a),t=t&&t.bind(a),e||(e=e=>{const t=Date.now(),i=Math.max(0,16-(t-n)),o=a.setTimeout(()=>{e(t+i)},i);return n=t+i,o},t=e=>clearTimeout(e))}}; | ||
let e,t,n=0;export default{request:t=>e(t),cancel:e=>t(e),init(a){if(e=a.requestAnimationFrame,t=a.cancelAnimationFrame,!e){const n=["ms","moz","webkit","o"];for(const i of n)e=a[i+"RequestAnimationFrame"],t=a[i+"CancelAnimationFrame"]||a[i+"CancelRequestAnimationFrame"]}e=e&&e.bind(a),t=t&&t.bind(a),e||(e=e=>{const t=Date.now(),i=Math.max(0,16-(t-n)),o=a.setTimeout((()=>{e(t+i)}),i);return n=t+i,o},t=e=>clearTimeout(e))}}; | ||
//# sourceMappingURL=raf.prod.js.map |
@@ -1,2 +0,2 @@ | ||
import o from"./isWindow.prod.js";export let realWindow=void 0;let n=void 0;export{n as window};export function init(o){realWindow=o;const e=o.document.createTextNode("");e.ownerDocument!==o.document&&"function"==typeof o.wrap&&o.wrap(e)===e&&(o=o.wrap(o)),n=o}"undefined"!=typeof window&&window&&init(window);export function getWindow(e){return o(e)?e:(e.ownerDocument||e).defaultView||n.window} | ||
import o from"./isWindow.prod.js";export let realWindow;let n;export{n as window};export function init(o){realWindow=o;const e=o.document.createTextNode("");e.ownerDocument!==o.document&&"function"==typeof o.wrap&&o.wrap(e)===e&&(o=o.wrap(o)),n=o}"undefined"!=typeof window&&window&&init(window);export function getWindow(e){return o(e)?e:(e.ownerDocument||e).defaultView||n.window} | ||
//# sourceMappingURL=window.prod.js.map |
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
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
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
157256
71
808