@iotexproject/kit 0.1.11 → 0.1.12

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
@@ -8622,7 +8622,7 @@ declare class Ioid {
8622
8622
  }>;
8623
8623
  did_hex(args: {
8624
8624
  did: `0x${string}`;
8625
- owner: `0x${string}`;
8625
+ projectName: string;
8626
8626
  }, ctx?: ConfigContext): Promise<{
8627
8627
  hex: string;
8628
8628
  error?: undefined;
package/dist/index.js CHANGED
@@ -1 +1 @@
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};
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};
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.11",
5
+ "version": "v0.1.12",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "scripts": {