@proscom/prostore-react
Advanced tools
Comparing version 0.0.2 to 0.0.3
/// <reference types="react" /> | ||
import { IProstoreSsrContext } from '@proscom/prostore'; | ||
export declare const ProstoreSsrContext: import("react").Context<ProstoreSsrManager>; | ||
@@ -10,3 +11,3 @@ export declare type IStates = { | ||
} | ||
export declare class ProstoreSsrManager { | ||
export declare class ProstoreSsrManager implements IProstoreSsrContext { | ||
isServer: boolean; | ||
@@ -19,3 +20,5 @@ states: IStates; | ||
waitForCurrentPromises(): Promise<any>; | ||
getState(): IStates; | ||
getState(key: string): any; | ||
setState(key: string, value: any): void; | ||
getStates(): IStates; | ||
} |
@@ -25,3 +25,9 @@ "use strict"; | ||
} | ||
getState() { | ||
getState(key) { | ||
return this.states[key]; | ||
} | ||
setState(key, value) { | ||
this.states[key] = value; | ||
} | ||
getStates() { | ||
return this.states; | ||
@@ -28,0 +34,0 @@ } |
{ | ||
"name": "@proscom/prostore-react", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "> TODO: description", | ||
@@ -18,7 +18,12 @@ "author": "Andrew Starostin <a.starostin@proscom.ru>", | ||
"scripts": { | ||
"tsc": "tsc", | ||
"build": "tsc", | ||
"watch": "tsc --watch --preserveWatchOutput", | ||
"watch-push": "nodemon --config yalc-push.nodemon.json", | ||
"watch-build-push": "concurrently \"npm run watch\" \"npm run watch-push\"", | ||
"yalc-publish": "yalc publish", | ||
"yalc-push": "yalc push", | ||
"test": "echo \"Error: run tests from root\" && exit 1" | ||
}, | ||
"dependencies": { | ||
"@proscom/prostore": "^0.0.2" | ||
"@proscom/prostore": "^0.0.3" | ||
}, | ||
@@ -32,3 +37,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "c48c3142405b42019c0dc23a40b3c4da82bb3604" | ||
"gitHead": "dead0fc8c7ff0e78af7740eee6f424f0e0bff430" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15289
216
+ Added@proscom/prostore@0.0.3(transitive)
- Removed@proscom/prostore@0.0.2(transitive)
Updated@proscom/prostore@^0.0.3