@iotexproject/kit 0.0.100 → 0.0.102
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -8450,6 +8450,7 @@ declare class Transaction extends BaseDBModule {
|
|
|
8450
8450
|
data: import("postgres").Row[];
|
|
8451
8451
|
endCursor: string;
|
|
8452
8452
|
startCursor: string;
|
|
8453
|
+
total: number;
|
|
8453
8454
|
}>;
|
|
8454
8455
|
}
|
|
8455
8456
|
declare class Contract extends BaseDBModule {
|
|
@@ -8468,7 +8469,7 @@ declare class Contract extends BaseDBModule {
|
|
|
8468
8469
|
address: string;
|
|
8469
8470
|
}): Promise<number>;
|
|
8470
8471
|
}
|
|
8471
|
-
export type ComponentType = "banner-latest" | "iotex-
|
|
8472
|
+
export type ComponentType = "banner-latest" | "iotex-2.0";
|
|
8472
8473
|
export interface ComponentData {
|
|
8473
8474
|
id: ComponentType;
|
|
8474
8475
|
fullScreenData: string;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var L=({url:z="http://localhost:9527"}={})=>new Proxy({},{get(F,C,G){return new Proxy({},{get(J,D){return async(x)=>{for(let b in x){if(typeof x[b]==="object")x[b]=JSON.stringify(x[b],(K,j)=>typeof j==="bigint"?j.toString():j);if(x[b]==null)delete x[b]}const B=`${z}/${String(C)}/${String(D)}?${new URLSearchParams(x).toString()}`;return(await fetch(B)).json()}}})}}),M=({url:z="http://localhost:9527"}={})=>new Proxy({},{get(F,C,G){return new Proxy({},{get(J,D){return async(x)=>{for(let b in x){if(typeof x[b]==="object")x[b]=JSON.stringify(x[b],(K,j)=>typeof j==="bigint"?j.toString():j);if(x[b]==null)delete x[b]}const B=`${z}/${String(C)}/${String(D)}?${new URLSearchParams(x).toString()}`;return(await fetch(B)).json()}}})}}),N=({url:z="http://localhost:9527",fetchRequestInit:F})=>new Proxy({},{get(C,G,J){return new Proxy({},{get(D,x){return async(B)=>{const H=`${z}/${String(G)}/${String(x)}`;return(await fetch(H,{method:"POST",...F,body:JSON.stringify(B)})).json()}}})}});export{N as createClientWithWriteDBServer,M as createClientWithDBServer,L as createClient};
|