Skip to content

Commit c991cfb

Browse files
committed
Remove extraneous dev deps.
1 parent 19b0e21 commit c991cfb

File tree

3 files changed

+5
-11
lines changed

3 files changed

+5
-11
lines changed

docs/mixins.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,14 @@ This mixin adds a new application event that fires after an action is complete.
5858
const didAction = () => emit => ({
5959
events: {
6060
resolve(state, actions, result) {
61-
const resolve = (result, update) =>
61+
const deepUpdate = (state, result) =>
6262
typeof result === "function"
63-
? update(state => resolve(result(state), update))
63+
? deepUpdate(state, result(state))
6464
: emit("didAction", result)
6565

6666
return typeof result === "function"
67-
? update => result(state => resolve(state, update))
68-
: resolve(result)
67+
? update => result(next => update(state => deepUpdate(state, next)))
68+
: deepUpdate(state, result)
6969
}
7070
}
7171
})
@@ -79,7 +79,7 @@ app({
7979

8080
## Intercepting Events
8181

82-
This mixin adds a wildcard event that can be used to intercept any other event.
82+
This mixin adds an event that can be used to intercept any other event.
8383

8484
```jsx
8585
const catchThemAll = (events = []) => emit => ({

docs/tutorials.md

-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,3 @@ Previous experience with other frameworks is a plus, but not required. Many of t
88
- [Countdown Timer](/docs/countdown-timer.md)
99
- [Gif Search](/docs/gif-search.md)
1010
- [TweetBox](/docs/tweetbox.md)
11-

package.json

-5
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,8 @@
1414
"author": "Jorge Bucaran",
1515
"keywords": [
1616
"hyperapp",
17-
"react",
1817
"elm",
1918
"jsx",
20-
"virtual dom",
2119
"vdom",
2220
"hyperx",
2321
"hyperscript"
@@ -35,10 +33,7 @@
3533
"presets": "es2015"
3634
},
3735
"devDependencies": {
38-
"babel-plugin-transform-object-rest-spread": "^6.26.0",
39-
"babel-plugin-transform-react-jsx": "^6.24.1",
4036
"babel-preset-es2015": "^6.24.1",
41-
"babel-preset-es2015-rollup": "^3.0.0",
4237
"jest": "^20.0.4",
4338
"prettier": "~1.6.0",
4439
"rollup": "^0.49.1",

0 commit comments

Comments
 (0)