corvid-storeon
Advanced tools
Comparing version
@@ -86,6 +86,6 @@ let createStoreon = modules => { | ||
page.push({ cb }); | ||
} | ||
}, | ||
}; | ||
}; | ||
export { createStore, createStoreon }; | ||
export { createStore, createStore as createStoreon }; |
@@ -90,3 +90,3 @@ 'use strict'; | ||
page.push({ cb }); | ||
} | ||
}, | ||
}; | ||
@@ -96,2 +96,2 @@ }; | ||
exports.createStore = createStore; | ||
exports.createStoreon = createStoreon; | ||
exports.createStoreon = createStore; |
{ | ||
"name": "corvid-storeon", | ||
"version": "2.2.0", | ||
"version": "2.3.1", | ||
"description": "A tiny event-based state manager Storeon for Corvid by Wix", | ||
@@ -14,15 +14,15 @@ "main": "dist/index.js", | ||
"devDependencies": { | ||
"eslint": "^6.8.0", | ||
"husky": "^4.2.3", | ||
"jest": "^25.1.0", | ||
"markdownlint": "^0.19.0", | ||
"markdownlint-cli": "^0.22.0", | ||
"rollup": "^2.0.2", | ||
"eslint": "^7.0.0", | ||
"husky": "^4.2.5", | ||
"jest": "^26.0.1", | ||
"markdownlint": "^0.20.2", | ||
"markdownlint-cli": "^0.23.0", | ||
"rollup": "^2.8.2", | ||
"rollup-plugin-commonjs": "^10.1.0", | ||
"rollup-plugin-node-resolve": "^5.2.0", | ||
"storeon": "^2.0.1" | ||
"storeon": "^2.0.2" | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "npm run dist && npm run lint-js && npm run lint-md && npm test" | ||
"pre-commit": "npm run lint-js && npm run lint-md && npm run dist && npm test" | ||
} | ||
@@ -29,0 +29,0 @@ }, |
@@ -85,3 +85,3 @@ # corvid-storeon | ||
```ts | ||
function createStore(Array<Module>): Store | ||
function createStore(Array<Module | false>): Store | ||
@@ -146,3 +146,3 @@ type Store = { | ||
callback ConnectHandler(state: object): void | ||
callback ConnectHandler(state: object): void | Promise<void> | ||
@@ -166,3 +166,3 @@ function Disconnect(): void | ||
callback ReadyHandler(state: object): void | ||
callback ReadyHandler(state: object): void | Promise<void> | ||
``` | ||
@@ -219,3 +219,3 @@ | ||
```ts | ||
function createStore(Array<Module>): Store | ||
function createStore(Array<Module | false>): Store | ||
@@ -264,5 +264,7 @@ function Module(store: StoreonStore): void | ||
callback EventListener(state: object, [data: any]): any | ||
callback EventListener(state: object, [data: any]): Result | ||
function Unbind(): void | ||
type Result = object | void | Promise<void> | false | ||
``` | ||
@@ -357,3 +359,3 @@ | ||
_id: uuid(), | ||
name: $w("inputName").value, | ||
name: $w("#inputName").value, | ||
}); | ||
@@ -360,0 +362,0 @@ }); |
13883
0.87%378
0.53%