New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

redux-idle-dispatcher

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redux-idle-dispatcher - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

dist/index.d.ts

2

dist/redux-idle-dispatcher.es.js

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

var t=void 0!==t?t:function(t){return setTimeout(function(){var e=Date.now();t({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-e))}})})},e="@@redux-idle-dispatcher/IDLE";function n(n,o,r){if(void 0===o&&(o=3e4),void 0===r&&(r={type:e}),"object"!=typeof n||"function"!=typeof n.dispatch||"function"!=typeof n.subscribe)throw new Error("Invalid `store` argument; Expected a redux store");if(o&&"number"!=typeof o)throw new Error("Invalid `timeout` argument; Expected a number of ms");if(r&&("object"!=typeof r||"string"!=typeof r.type))throw new Error("Invalid `action` argument; Expected a valid redux action");var i,u,a,c=!1,f=function(){c||n.dispatch(r)},d=(i=function(){requestAnimationFrame(function(){t(f)})},u=o,function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];clearTimeout(a),a=setTimeout(function(){a=null,i.apply(void 0,e)},u)}),p=n.subscribe(d);return d(),function(){c=!0,p.apply(void 0,arguments)}}Object.defineProperty(n,"IDLE",{get:function(){return e}});export default n;
var n=void 0!==window.requestIdleCallback?window.requestIdleCallback:function(n){return setTimeout(function(){var e=Date.now();n({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-e))}})})},e="@@redux-idle-dispatcher/IDLE";function t(t,i,o){void 0===i&&(i=3e4),void 0===o&&(o={type:e});var u,r,a,c=!1,d=function(){c||t.dispatch(o)},f=(u=function(){window.requestAnimationFrame(function(){n(d)})},r=i,function(){window.clearTimeout(a),a=window.setTimeout(function(){a=null,u()},r)}),w=t.subscribe(f);return f(),function(){c=!0,w()}}Object.defineProperty(t,"IDLE",{get:function(){return e}});export default t;
//# sourceMappingURL=redux-idle-dispatcher.es.js.map

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

var t=void 0!==t?t:function(t){return setTimeout(function(){var e=Date.now();t({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-e))}})})},e="@@redux-idle-dispatcher/IDLE";function n(n,o,r){if(void 0===o&&(o=3e4),void 0===r&&(r={type:e}),"object"!=typeof n||"function"!=typeof n.dispatch||"function"!=typeof n.subscribe)throw new Error("Invalid `store` argument; Expected a redux store");if(o&&"number"!=typeof o)throw new Error("Invalid `timeout` argument; Expected a number of ms");if(r&&("object"!=typeof r||"string"!=typeof r.type))throw new Error("Invalid `action` argument; Expected a valid redux action");var i,u,a,c=!1,f=function(){c||n.dispatch(r)},d=(i=function(){requestAnimationFrame(function(){t(f)})},u=o,function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];clearTimeout(a),a=setTimeout(function(){a=null,i.apply(void 0,e)},u)}),p=n.subscribe(d);return d(),function(){c=!0,p.apply(void 0,arguments)}}Object.defineProperty(n,"IDLE",{get:function(){return e}}),module.exports=n;
var n=void 0!==window.requestIdleCallback?window.requestIdleCallback:function(n){return setTimeout(function(){var e=Date.now();n({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-e))}})})},e="@@redux-idle-dispatcher/IDLE";function t(t,i,o){void 0===i&&(i=3e4),void 0===o&&(o={type:e});var u,r,c,d=!1,a=function(){d||t.dispatch(o)},f=(u=function(){window.requestAnimationFrame(function(){n(a)})},r=i,function(){window.clearTimeout(c),c=window.setTimeout(function(){c=null,u()},r)}),w=t.subscribe(f);return f(),function(){d=!0,w()}}Object.defineProperty(t,"IDLE",{get:function(){return e}}),module.exports=t;
//# sourceMappingURL=redux-idle-dispatcher.js.map

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

var t=void 0!==t?t:function(t){return setTimeout(function(){var e=Date.now();t({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-e))}})})},e="@@redux-idle-dispatcher/IDLE";function n(n,o,r){if(void 0===o&&(o=3e4),void 0===r&&(r={type:e}),"object"!=typeof n||"function"!=typeof n.dispatch||"function"!=typeof n.subscribe)throw new Error("Invalid `store` argument; Expected a redux store");if(o&&"number"!=typeof o)throw new Error("Invalid `timeout` argument; Expected a number of ms");if(r&&("object"!=typeof r||"string"!=typeof r.type))throw new Error("Invalid `action` argument; Expected a valid redux action");var i,u,a,c=!1,f=function(){c||n.dispatch(r)},d=(i=function(){requestAnimationFrame(function(){t(f)})},u=o,function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];clearTimeout(a),a=setTimeout(function(){a=null,i.apply(void 0,e)},u)}),p=n.subscribe(d);return d(),function(){c=!0,p.apply(void 0,arguments)}}Object.defineProperty(n,"IDLE",{get:function(){return e}});export default n;
const e=void 0!==window.requestIdleCallback?window.requestIdleCallback:e=>setTimeout(()=>{const t=Date.now();e({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))})}),t="@@redux-idle-dispatcher/IDLE";function i(i,n=3e4,o={type:t}){let d=!1;const a=()=>{d||i.dispatch(o)},r=((t,i)=>{let n;return()=>{window.clearTimeout(n),n=window.setTimeout(()=>{n=null,window.requestAnimationFrame(()=>{e(a)})},i)}})(0,n),u=i.subscribe(r);return r(),()=>{d=!0,u()}}Object.defineProperty(i,"IDLE",{get:()=>t});export default i;
//# sourceMappingURL=redux-idle-dispatcher.modern.js.map

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

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).reduxIdleDispatcher=t()}(this,function(){var e=void 0!==e?e:function(e){return setTimeout(function(){var t=Date.now();e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})})},t="@@redux-idle-dispatcher/IDLE";function n(n,o,i){if(void 0===o&&(o=3e4),void 0===i&&(i={type:t}),"object"!=typeof n||"function"!=typeof n.dispatch||"function"!=typeof n.subscribe)throw new Error("Invalid `store` argument; Expected a redux store");if(o&&"number"!=typeof o)throw new Error("Invalid `timeout` argument; Expected a number of ms");if(i&&("object"!=typeof i||"string"!=typeof i.type))throw new Error("Invalid `action` argument; Expected a valid redux action");var r,u,f,a=!1,c=function(){a||n.dispatch(i)},d=(r=function(){requestAnimationFrame(function(){e(c)})},u=o,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];clearTimeout(f),f=setTimeout(function(){f=null,r.apply(void 0,t)},u)}),p=n.subscribe(d);return d(),function(){a=!0,p.apply(void 0,arguments)}}return Object.defineProperty(n,"IDLE",{get:function(){return t}}),n});
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e||self).reduxIdleDispatcher=n()}(this,function(){var e=void 0!==window.requestIdleCallback?window.requestIdleCallback:function(e){return setTimeout(function(){var n=Date.now();e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-n))}})})},n="@@redux-idle-dispatcher/IDLE";function t(t,i,o){void 0===i&&(i=3e4),void 0===o&&(o={type:n});var u,d,r,f=!1,c=function(){f||t.dispatch(o)},a=(u=function(){window.requestAnimationFrame(function(){e(c)})},d=i,function(){window.clearTimeout(r),r=window.setTimeout(function(){r=null,u()},d)}),l=t.subscribe(a);return a(),function(){f=!0,l()}}return Object.defineProperty(t,"IDLE",{get:function(){return n}}),t});
//# sourceMappingURL=redux-idle-dispatcher.umd.js.map
{
"name": "redux-idle-dispatcher",
"version": "2.0.1",
"version": "2.0.2",
"description": "Idle your redux app",
"main": "dist/redux-idle-dispatcher.js",
"browser": "dist/redux-idle-dispatcher.umd.js",
"module": "dist/redux-idle-dispatcher.es.js",
"main": "./dist/redux-idle-dispatcher.js",
"browser": "./dist/redux-idle-dispatcher.umd.js",
"module": "./dist/redux-idle-dispatcher.es.js",
"exports": "./dist/redux-idle-dispatcher.modern.js",
"types": "./dist/redux-idle-dispatcher.d.ts",
"source": "./src/index.ts",
"scripts": {
"dev": "microbundle watch",
"build": "microbundle",
"prepare": "npm run build",
"pretest": "npm run build",
"test": "mocha --exit"
"prepare": "microbundle",
"test": "jest"
},

@@ -19,2 +21,5 @@ "repository": {

},
"publishConfig": {
"registry": "https://registry.npmjs.org/"
},
"keywords": [

@@ -27,3 +32,2 @@ "redux",

"files": [
"index.js",
"dist"

@@ -34,16 +38,12 @@ ],

"devDependencies": {
"chai": "^4.2.0",
"microbundle": "^0.12.0-next.7",
"mocha": "^7.1.1",
"prettier": "^1.19.1",
"raf": "^3.4.1",
"redux": "^4.0.5",
"sinon": "^9.0.1",
"sinon-chai": "^3.5.0"
"@types/jest": "^26.0.23",
"jest": "^26.6.3",
"microbundle": "^0.13.0",
"prettier": "^2.3.0",
"redux": "^4.1.0",
"ts-jest": "^26.5.6"
},
"prettier": {
"semi": false,
"singleQuote": true,
"bracketSpacing": false
"singleQuote": true
}
}

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

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