use-bn-idle
Advanced tools
Comparing version 1.0.10 to 1.0.11
@@ -1,1 +0,1 @@ | ||
export default function useBnIdle(expired: any): ((timeOutInSeconds: number) => void)[]; | ||
export declare const useBnIdle: (expired: any) => ((timeOutInSeconds: number) => void)[]; |
@@ -1,1 +0,1 @@ | ||
export { default as useBnIdle } from './hooks/useBnIdle'; | ||
export { useBnIdle } from './hooks/useBnIdle'; |
@@ -1,2 +0,2 @@ | ||
import{useEffect as e}from"react";function n(n){var o,r=["mousemove","click","mousedown","keypress","DOMMouseScroll","mousewheel","touchmove","MSPointerMove"],t=["mousemove","resize"],v=0,i=!1;e((function(){return function(){a()}}),[]);var u=function(e){i&&(clearInterval(o),c())},c=function(){o=setInterval((function(){n(),a()}),v)},a=function(){i=!1,clearInterval(o),f()},f=function(){for(var e=0,n=r;e<n.length;e++){var o=n[e];document.removeEventListener(o,u)}for(var v=0,i=t;v<i.length;v++){o=i[v];window.removeEventListener(o,u)}};return[function(e){i=!0,v=1e3*e;for(var n=0,o=r;n<o.length;n++){var a=o[n];document.addEventListener(a,u)}for(var f=0,l=t;f<l.length;f++){a=l[f];window.addEventListener(a,u)}c()},a]}export{n as useBnIdle}; | ||
import{useEffect as e}from"react";var n=function(n){var r,o=["mousemove","click","mousedown","keypress","DOMMouseScroll","mousewheel","touchmove","MSPointerMove"],t=["mousemove","resize"],v=0,i=!1;e((function(){return function(){a()}}),[]);var u=function(e){i&&(clearInterval(r),c())},c=function(){r=setInterval((function(){n(),a()}),v)},a=function(){i=!1,clearInterval(r),f()},f=function(){for(var e=0,n=o;e<n.length;e++){var r=n[e];document.removeEventListener(r,u)}for(var v=0,i=t;v<i.length;v++){r=i[v];window.removeEventListener(r,u)}};return[function(e){i=!0,v=1e3*e;for(var n=0,r=o;n<r.length;n++){var a=r[n];document.addEventListener(a,u)}for(var f=0,l=t;f<l.length;f++){a=l[f];window.addEventListener(a,u)}c()},a]};export{n as useBnIdle}; | ||
//# sourceMappingURL=index.js.map |
@@ -1,1 +0,1 @@ | ||
export default function useBnIdle(expired: any): ((timeOutInSeconds: number) => void)[]; | ||
export declare const useBnIdle: (expired: any) => ((timeOutInSeconds: number) => void)[]; |
@@ -1,1 +0,1 @@ | ||
export { default as useBnIdle } from './hooks/useBnIdle'; | ||
export { useBnIdle } from './hooks/useBnIdle'; |
@@ -1,3 +0,3 @@ | ||
declare function useBnIdle(expired: any): ((timeOutInSeconds: number) => void)[]; | ||
declare const useBnIdle: (expired: any) => ((timeOutInSeconds: number) => void)[]; | ||
export { useBnIdle }; |
@@ -1,1 +0,1 @@ | ||
export default function useBnIdle(expired: () => {}): ((timeOutInSeconds: number) => void)[]; | ||
export declare const useBnIdle: (expired: any) => ((timeOutInSeconds: number) => void)[]; |
{ | ||
"name": "use-bn-idle", | ||
"version": "1.0.10", | ||
"version": "1.0.11", | ||
"description": "React User Idle Hook to find user idle/session timeout", | ||
@@ -5,0 +5,0 @@ "author": { |
@@ -1,1 +0,1 @@ | ||
export {default as useBnIdle} from './hooks/useBnIdle' | ||
export { useBnIdle} from './hooks/useBnIdle' |
@@ -1,1 +0,1 @@ | ||
export default function useBnIdle(expired: () => {}): ((timeOutInSeconds: number) => void)[]; | ||
export declare const useBnIdle: (expired: any) => ((timeOutInSeconds: number) => void)[]; |
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
11298