@iotexproject/kit 0.1.12 → 0.1.13
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 +9 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -8630,6 +8630,15 @@ declare class Ioid {
|
|
|
8630
8630
|
error: unknown;
|
|
8631
8631
|
hex?: undefined;
|
|
8632
8632
|
}>;
|
|
8633
|
+
devices_registered(args: {
|
|
8634
|
+
dids: string;
|
|
8635
|
+
}, ctx?: ConfigContext): Promise<{
|
|
8636
|
+
devices: any[];
|
|
8637
|
+
error?: undefined;
|
|
8638
|
+
} | {
|
|
8639
|
+
error: unknown;
|
|
8640
|
+
devices?: undefined;
|
|
8641
|
+
}>;
|
|
8633
8642
|
}
|
|
8634
8643
|
declare const modules$3: {
|
|
8635
8644
|
ioid: Ioid;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var F=({url:w="http://localhost:9527",ctx:b}={})=>new Proxy({},{get(B,z,E){return new Proxy({},{get(C,$){return async(T)=>{for(let O in T){if(typeof T[O]==="object")T[O]=JSON.stringify(T[O],(D,A)=>typeof A==="bigint"?A.toString():A);if(T[O]==null)delete T[O]}const j=`${w}/${String(z)}/${String($)}?${new URLSearchParams(T).toString()}`;let N;if(b)N=await fetch(j,{headers:{...b}});else N=await fetch(j);return N.json()}}})}}),G=({url:w="http://localhost:9527"}={})=>new Proxy({},{get(b,B,z){return new Proxy({},{get(E,C){return async($)=>{for(let N in $){if(typeof $[N]==="object")$[N]=JSON.stringify($[N],(O,D)=>typeof D==="bigint"?D.toString():D);if($[N]==null)delete $[N]}const T=`${w}/${String(B)}/${String(C)}?${new URLSearchParams($).toString()}`;return(await fetch(T)).json()}}})}}),H=({url:w="http://localhost:9527",fetchRequestInit:b})=>new Proxy({},{get(B,z,E){return new Proxy({},{get(C,$){return async(T)=>{const j=`${w}/${String(z)}/${String($)}`;return(await fetch(j,{method:"POST",...b,body:JSON.stringify(T)})).json()}}})}}),J=({url:w="http://localhost:9527",fetchRequestInit:b})=>new Proxy({},{get(B,z,E){return new Proxy({},{get(C,$){return async(T)=>{const j=`${w}/${String(z)}/${String($)}?${new URLSearchParams(T).toString()}`;return(await fetch(j,{method:"GET",...b})).json()}}})}}),K=({url:w="http://localhost:9527",ctx:b}={})=>new Proxy({},{get(B,z,E){return new Proxy({},{get(C,$){return async(T)=>{for(let O in T){if(typeof T[O]==="object")T[O]=JSON.stringify(T[O],(D,A)=>typeof A==="bigint"?A.toString():A);if(T[O]==null)delete T[O]}const j=`${w}/${String(z)}/${String($)}?${new URLSearchParams(T).toString()}`;let N;if(b)N=await fetch(j,{headers:{...b}});else N=await fetch(j);return N.json()}}})}});export{J as createIotexscanClient,K as createIoidClient,H as createClientWithWriteDBServer,G as createClientWithDBServer,F as createClient};
|