Skip to content

Commit 471c995

Browse files
authored
window.fx => window.hyperappFx (#31)
1 parent 7be65b2 commit 471c995

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Then with a module bundler like [parcel](https://github.com/parcel-bundler/parce
5454
import { withFx } from "@hyperapp/fx"
5555
```
5656

57-
If you don't want to set up a build environment, you can download Hyperapp FX from a CDN like [unpkg.com](https://unpkg.com/@hyperapp/fx) and it will be globally available through the `window.fx` object.
57+
If you don't want to set up a build environment, you can download Hyperapp FX from a CDN like [unpkg.com](https://unpkg.com/@hyperapp/fx) and it will be globally available through the `window.hyperappFx` object.
5858

5959
```html
6060
<script src="https://unpkg.com/@hyperapp/fx"></script>

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@hyperapp/fx",
33
"version": "0.6.1",
44
"description": "Effects as data for Hyperapp",
5-
"main": "dist/fx.js",
5+
"main": "dist/hyperappFx.js",
66
"module": "src/index.js",
77
"repository": {
88
"type": "git",
@@ -27,8 +27,8 @@
2727
"format:check": "prettier --list-different {src,test}/**/*.js",
2828
"lint": "eslint {src,test}/**/*.js",
2929
"test": "jest --coverage --no-cache",
30-
"bundle": "rollup -i src/index.js -o dist/fx.js -m -f umd -n fx",
31-
"minify": "uglifyjs dist/fx.js -o dist/fx.js -mc pure_funcs=['Object.defineProperty'] --source-map includeSources,url=fx.js.map",
30+
"bundle": "rollup -i src/index.js -o dist/hyperappFx.js -m -f umd -n hyperappFx",
31+
"minify": "uglifyjs dist/hyperappFx.js -o dist/hyperappFx.js -mc pure_funcs=['Object.defineProperty'] --source-map includeSources,url=hyperappFx.js.map",
3232
"check": "npm run format:check && npm run lint && npm t",
3333
"build": "npm run check && npm run bundle && npm run minify",
3434
"prepare": "npm run build",

0 commit comments

Comments
 (0)