redux-thunk
Advanced tools
Comparing version 1.0.0 to 1.0.1
'use strict'; | ||
exports.__esModule = true; | ||
exports['default'] = thunkMiddleware; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = thunkMiddleware; | ||
function thunkMiddleware(_ref) { | ||
@@ -15,4 +16,2 @@ var dispatch = _ref.dispatch; | ||
}; | ||
} | ||
module.exports = exports['default']; | ||
} |
{ | ||
"name": "redux-thunk", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Thunk middleware for Redux.", | ||
"main": "lib/index.js", | ||
"files": [ | ||
"lib", | ||
"src" | ||
], | ||
"scripts": { | ||
"prepublish": "rimraf lib && babel src --out-dir lib", | ||
"test": "mocha --compilers js:babel/register --reporter spec test/*.js" | ||
"compile": "babel src --out-dir lib", | ||
"prepublish": "rimraf lib && npm run compile", | ||
"test": "mocha --compilers js:babel-core/register --reporter spec test/*.js" | ||
}, | ||
@@ -25,8 +30,11 @@ "repository": { | ||
"devDependencies": { | ||
"babel": "^5.6.14", | ||
"babel-core": "^5.6.15", | ||
"babel-eslint": "^3.1.20", | ||
"babel": "^6.1.18", | ||
"babel-core": "^6.2.1", | ||
"babel-eslint": "^5.0.0-beta4", | ||
"babel-cli": "^6.2.0", | ||
"babel-preset-es2015": "^6.1.18", | ||
"babel-preset-stage-0": "^6.1.18", | ||
"chai": "^3.2.0", | ||
"eslint": "^0.24.0", | ||
"eslint-config-airbnb": "0.0.6", | ||
"eslint": "^1.10.2", | ||
"eslint-config-airbnb": "1.0.2", | ||
"mocha": "^2.2.5", | ||
@@ -33,0 +41,0 @@ "rimraf": "^2.4.3" |
@@ -6,2 +6,6 @@ Redux Thunk | ||
[![build status](https://img.shields.io/travis/gaearon/redux-thunk/master.svg?style=flat-square)](https://travis-ci.org/gaearon/redux-thunk) | ||
[![npm version](https://img.shields.io/npm/v/redux-thunk.svg?style=flat-square)](https://www.npmjs.com/package/redux-thunk) | ||
[![npm downloads](https://img.shields.io/npm/dm/redux-thunk.svg?style=flat-square)](https://www.npmjs.com/package/redux-thunk) | ||
```js | ||
@@ -13,3 +17,3 @@ npm install --save redux-thunk | ||
A thunk is a function that wraps an expression to delay its evaluation. | ||
A [thunk](https://en.wikipedia.org/wiki/Thunk) is a function that wraps an expression to delay its evaluation. | ||
@@ -247,7 +251,6 @@ ```js | ||
export default connect( | ||
SandwichShop, | ||
state => ({ | ||
sandwiches: state.sandwiches | ||
}) | ||
); | ||
)(SandwichShop); | ||
``` | ||
@@ -254,0 +257,0 @@ |
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
258
9618
11
5
19
1