Skip to content
This repository has been archived by the owner on Sep 3, 2022. It is now read-only.

Commit

Permalink
Fixed export of mapEffect.
Browse files Browse the repository at this point in the history
1. Moved mapEffect into separate file and fixed its export from index.js
  • Loading branch information
Wobbabits committed Oct 29, 2018
1 parent 4eaae66 commit 18354ef
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dist/composi-core.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@composi/core",
"version": "0.8.0",
"version": "0.8.1",
"description": "A JavaScript library for creating websites, PWAs and hybrid apps.",
"main": "src/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ export { render } from './render'
export { hydrate } from './vnode'
export { run } from './runtime'
export { union } from './union'
export { mapEffect } from './runtime'
export { mapEffect } from './mapEffect'
6 changes: 3 additions & 3 deletions src/mapEffect.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Map effects to ease composition of runtime programs.
* @param {Function} effect
* @param {Function} callback
* @param {Function} effect
* @param {Function} callback
* @return {Function} Function
*/
export function mapEffect(effect, callback) {
Expand All @@ -13,4 +13,4 @@ export function mapEffect(effect, callback) {
send(callback(message))
return effect(intercept)
}
}
}

0 comments on commit 18354ef

Please sign in to comment.