File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed
Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @quest-chains/sdk" ,
33 "description" : " An SDK for building applications on top of Quest Chains" ,
4- "version" : " 0.1.12 " ,
4+ "version" : " 0.1.13 " ,
55 "license" : " GPL-3.0" ,
66 "main" : " dist/index.js" ,
77 "typings" : " dist/index.d.ts" ,
Original file line number Diff line number Diff line change @@ -49,15 +49,15 @@ class SubgraphHealthStore {
4949 }
5050}
5151
52- const HealthStoreSingleton = ( function ( ) {
52+ const HealthStoreSingleton = ( function ( ) {
5353 let instance : SubgraphHealthStore ;
5454
5555 function createInstance ( ) {
5656 return new SubgraphHealthStore ( ) ;
5757 }
5858
5959 return {
60- getInstance : function ( ) {
60+ getInstance : function ( ) {
6161 if ( ! instance ) {
6262 instance = createInstance ( ) ;
6363 }
@@ -70,6 +70,8 @@ const getSubgraphStatus = () => HealthStoreSingleton.getInstance().status();
7070
7171const initSubgraphHealthStore = getSubgraphStatus ;
7272
73- initSubgraphHealthStore ( ) ;
73+ if ( typeof window !== 'undefined' ) {
74+ initSubgraphHealthStore ( ) ;
75+ }
7476
7577export const getSubgraphLatestBlock = ( chainId : string ) : number => getSubgraphStatus ( ) [ chainId ] ;
Original file line number Diff line number Diff line change 55 "typeRoots" : [" node_modules/@types" ],
66 "module" : " commonjs" ,
77 "resolveJsonModule" : true ,
8- "lib" : [" esnext" ],
8+ "lib" : [" esnext" , " dom " ],
99 "importHelpers" : true ,
1010 "declaration" : true ,
1111 "sourceMap" : true ,
You can’t perform that action at this time.
0 commit comments