Skip to content

Commit

Permalink
Some updates
Browse files Browse the repository at this point in the history
  • Loading branch information
mcjazzyfunky committed Feb 15, 2019
1 parent 8653c8a commit 287fb15
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
7 changes: 4 additions & 3 deletions package-lock.json

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

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"coveralls": "^3.0.2",
"cross-conf-env": "^1.1.2",
"cross-env": "^5.2.0",
"dyo": "0.0.19",
"js-spec": "^0.1.63",
"mocha": "^5.1.1",
"nyc": "^13.2.0",
Expand Down Expand Up @@ -77,9 +78,7 @@
"zipsource": "shx rm -rf ./build/source && shx mkdir -p ./build/source && copyfiles -a ./* ./build/source && shx cp -r ./src ./build/source && shx mkdir -p ./dist/source && cd build/source && bestzip ../../dist/source/source.zip . && cd ../..",
"dist": "npm run clean && npm run test && npm run build && npm run zipsource"
},
"dependencies": {
"dyo": "0.0.18"
},
"dependencies": {},
"nyc": {
"temp-directory": "./coverage/.nyc_output",
"include": [
Expand Down
4 changes: 2 additions & 2 deletions src/modules/dom/main/adapters/DyoAdapter.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as Dyo from '../../../../../../dyo/index'
import * as Dyo from 'dyo'

import { Context } from '../../../core/main'

Expand All @@ -14,7 +14,7 @@ const DyoAdapter: Adapter = {
useEffect: Dyo.useEffect,
useState: Dyo.useState,

useMethods(ref, getHandler) {
useMethods(ref: any, getHandler: Function) {
const handler = getHandler() // TODO

if (ref && typeof ref === 'object') {
Expand Down
2 changes: 1 addition & 1 deletion src/modules/dom/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import adaptMount from './adpation/adaptMount'
import adaptUnmount from './adpation/adaptUnmount'

import adapter from './adapters/ReactAdapter'
//import adapter from './adapters/DyoAdapter'
// import adapter from './adapters/DyoAdapter'
// import adapter from './adapters/PreactAdapter'

Dispatcher.init({
Expand Down

0 comments on commit 287fb15

Please sign in to comment.