@iotexproject/kit 0.0.97 → 0.0.99
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 +10 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -8468,6 +8468,15 @@ declare class Contract extends BaseDBModule {
|
|
|
8468
8468
|
address: string;
|
|
8469
8469
|
}): Promise<number>;
|
|
8470
8470
|
}
|
|
8471
|
+
declare class Resource {
|
|
8472
|
+
getComponent({ id }: {
|
|
8473
|
+
id: "banner-latest";
|
|
8474
|
+
}): Promise<{
|
|
8475
|
+
id: "banner-latest";
|
|
8476
|
+
fullScreenData: string;
|
|
8477
|
+
mobileData: string;
|
|
8478
|
+
}>;
|
|
8479
|
+
}
|
|
8471
8480
|
declare const modules$1: {
|
|
8472
8481
|
account: Account;
|
|
8473
8482
|
analyzer: Analyzer;
|
|
@@ -8477,6 +8486,7 @@ declare const modules$1: {
|
|
|
8477
8486
|
health: Health;
|
|
8478
8487
|
analysis: Analysis;
|
|
8479
8488
|
contract: Contract;
|
|
8489
|
+
resource: Resource;
|
|
8480
8490
|
};
|
|
8481
8491
|
export type DBModuleType = typeof modules$1;
|
|
8482
8492
|
export declare const createClient: ({ url }?: {
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var C=({url:$="http://localhost:9527"}={})=>new Proxy({},{get(j,c,w){return new Proxy({},{get(A,f){return async(x)=>{for(let T in x){if(typeof x[T]==="object")x[T]=JSON.stringify(x[T],(B,W)=>typeof W==="bigint"?W.toString():W);if(x[T]==null)delete x[T]}const b=`${$}/${String(c)}/${String(f)}?${new URLSearchParams(x).toString()}`;return(await fetch(b)).json()}}})}}),D=({url:$="http://localhost:9527"}={})=>new Proxy({},{get(j,c,w){return new Proxy({},{get(A,f){return async(x)=>{for(let T in x){if(typeof x[T]==="object")x[T]=JSON.stringify(x[T],(B,W)=>typeof W==="bigint"?W.toString():W);if(x[T]==null)delete x[T]}const b=`${$}/${String(c)}/${String(f)}?${new URLSearchParams(x).toString()}`;return(await fetch(b)).json()}}})}}),E=({url:$="http://localhost:9527",fetchRequestInit:j})=>new Proxy({},{get(c,w,A){return new Proxy({},{get(f,x){return async(b)=>{const z=`${$}/${String(w)}/${String(x)}`;return(await fetch(z,{method:"POST",...j,body:JSON.stringify(b)})).json()}}})}});export{E as createClientWithWriteDBServer,D as createClientWithDBServer,C as createClient};
|