@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 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 N=({url:F="http://localhost:9527",ctx:C}={})=>new Proxy({},{get(J,G,M){return new Proxy({},{get(K,j){return async(b)=>{for(let B in b){if(typeof b[B]==="object")b[B]=JSON.stringify(b[B],(L,H)=>typeof H==="bigint"?H.toString():H);if(b[B]==null)delete b[B]}const D=`${F}/${String(G)}/${String(j)}?${new URLSearchParams(b).toString()}`;let z;if(C)z=await fetch(D,{headers:{...C}});else z=await fetch(D);return z.json()}}})}}),O=({url:F="http://localhost:9527"}={})=>new Proxy({},{get(C,J,G){return new Proxy({},{get(M,K){return async(j)=>{for(let z in j){if(typeof j[z]==="object")j[z]=JSON.stringify(j[z],(B,L)=>typeof L==="bigint"?L.toString():L);if(j[z]==null)delete j[z]}const b=`${F}/${String(J)}/${String(K)}?${new URLSearchParams(j).toString()}`;return(await fetch(b)).json()}}})}}),P=({url:F="http://localhost:9527",fetchRequestInit:C})=>new Proxy({},{get(J,G,M){return new Proxy({},{get(K,j){return async(b)=>{const D=`${F}/${String(G)}/${String(j)}`;return(await fetch(D,{method:"POST",...C,body:JSON.stringify(b)})).json()}}})}}),Q=({url:F="http://localhost:9527",fetchRequestInit:C})=>new Proxy({},{get(J,G,M){return new Proxy({},{get(K,j){return async(b)=>{const D=`${F}/${String(G)}/${String(j)}?${new URLSearchParams(b).toString()}`;return(await fetch(D,{method:"GET",...C})).json()}}})}}),S=({url:F="http://localhost:9527",ctx:C}={})=>new Proxy({},{get(J,G,M){return new Proxy({},{get(K,j){return async(b)=>{for(let B in b){if(typeof b[B]==="object")b[B]=JSON.stringify(b[B],(L,H)=>typeof H==="bigint"?H.toString():H);if(b[B]==null)delete b[B]}const D=`${F}/${String(G)}/${String(j)}?${new URLSearchParams(b).toString()}`;let z;if(C)z=await fetch(D,{headers:{...C}});else z=await fetch(D);return z.json()}}})}});export{Q as createIotexscanClient,S as createIoidClient,P as createClientWithWriteDBServer,O as createClientWithDBServer,N as createClient};
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};
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@iotexproject/kit",
3
3
  "module": "index.ts",
4
4
  "type": "module",
5
- "version": "v0.1.12",
5
+ "version": "v0.1.13",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "scripts": {