@iotexproject/kit 0.0.101 → 0.0.103
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 +4 -4
- 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 {
|
|
@@ -8471,13 +8472,12 @@ declare class Contract extends BaseDBModule {
|
|
|
8471
8472
|
export type ComponentType = "banner-latest" | "iotex-2.0";
|
|
8472
8473
|
export interface ComponentData {
|
|
8473
8474
|
id: ComponentType;
|
|
8474
|
-
|
|
8475
|
-
|
|
8475
|
+
html: string;
|
|
8476
|
+
html_mobile: string;
|
|
8476
8477
|
}
|
|
8477
8478
|
declare class Resource {
|
|
8478
|
-
|
|
8479
|
+
get_component({ id }: {
|
|
8479
8480
|
id: ComponentType;
|
|
8480
|
-
mobile?: boolean;
|
|
8481
8481
|
}): Promise<ComponentData>;
|
|
8482
8482
|
}
|
|
8483
8483
|
declare const modules$1: {
|
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};
|