redux-thunk
Advanced tools
Comparing version 1.0.2 to 1.0.3
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = thunkMiddleware; | ||
function thunkMiddleware(_ref) { | ||
@@ -17,2 +13,3 @@ var dispatch = _ref.dispatch; | ||
} | ||
module.exports = exports['default']; | ||
module.exports = thunkMiddleware; |
{ | ||
"name": "redux-thunk", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Thunk middleware for Redux.", | ||
@@ -11,4 +11,4 @@ "main": "lib/index.js", | ||
"scripts": { | ||
"compile": "babel src --out-dir lib", | ||
"prepublish": "rimraf lib && npm run compile", | ||
"build": "babel src --out-dir lib", | ||
"prepublish": "rimraf lib && npm run build", | ||
"test": "mocha --compilers js:babel-core/register --reporter spec test/*.js" | ||
@@ -15,0 +15,0 @@ }, |
@@ -1,2 +0,2 @@ | ||
export default function thunkMiddleware({ dispatch, getState }) { | ||
function thunkMiddleware({ dispatch, getState }) { | ||
return next => action => | ||
@@ -7,1 +7,3 @@ typeof action === 'function' ? | ||
} | ||
module.exports = thunkMiddleware |
9617
17