@iotexproject/kit 0.1.15 → 0.1.16
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 +3 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -8591,6 +8591,9 @@ declare const modules$2: {
|
|
|
8591
8591
|
};
|
|
8592
8592
|
export type IotexscanModulesType = typeof modules$2;
|
|
8593
8593
|
declare class Ioid {
|
|
8594
|
+
test(args: {
|
|
8595
|
+
jsonParams: any;
|
|
8596
|
+
}, ctx?: ConfigContext): Promise<any>;
|
|
8594
8597
|
register(args: {
|
|
8595
8598
|
projectName: string;
|
|
8596
8599
|
deviceSignature: `0x${string}`;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var Q=({url:C="http://localhost:9527",ctx:D}={})=>new Proxy({},{get(K,F,N){return new Proxy({},{get(L,j){return async(b)=>{for(let G in b){if(typeof b[G]==="object")b[G]=JSON.stringify(b[G],(H,J)=>typeof J==="bigint"?J.toString():J);if(b[G]==null)delete b[G]}const B=`${C}/${String(F)}/${String(j)}?${new URLSearchParams(b).toString()}`;let z;if(D)z=await fetch(B,{headers:{...D}});else z=await fetch(B);return z.json()}}})}}),S=({url:C="http://localhost:9527"}={})=>new Proxy({},{get(D,K,F){return new Proxy({},{get(N,L){return async(j)=>{for(let z in j){if(typeof j[z]==="object")j[z]=JSON.stringify(j[z],(G,H)=>typeof H==="bigint"?H.toString():H);if(j[z]==null)delete j[z]}const b=`${C}/${String(K)}/${String(L)}?${new URLSearchParams(j).toString()}`;return(await fetch(b)).json()}}})}}),U=({url:C="http://localhost:9527",fetchRequestInit:D})=>new Proxy({},{get(K,F,N){return new Proxy({},{get(L,j){return async(b)=>{const B=`${C}/${String(F)}/${String(j)}`;return(await fetch(B,{method:"POST",...D,body:JSON.stringify(b)})).json()}}})}}),V=({url:C="http://localhost:9527",fetchRequestInit:D})=>new Proxy({},{get(K,F,N){return new Proxy({},{get(L,j){return async(b)=>{const B=`${C}/${String(F)}/${String(j)}?${new URLSearchParams(b).toString()}`;return(await fetch(B,{method:"GET",...D})).json()}}})}}),W=({url:C="http://localhost:9527",ctx:D}={})=>new Proxy({},{get(K,F,N){return new Proxy({},{get(L,j){return async(b)=>{let B=!1;for(let J in b){if(typeof b[J]==="object")B=!0;if(b[J]==null)delete b[J]}let z,G,H={};if(B)z=`${C}/${String(F)}/${String(j)}`;else z=`${C}/${String(F)}/${String(j)}?${new URLSearchParams(b).toString()}`;if(D)H.headers={...D};if(B)H.method="POST",H.body=JSON.stringify(b);return G=await fetch(z,H),G.json()}}})}});export{V as createIotexscanClient,W as createIoidClient,U as createClientWithWriteDBServer,S as createClientWithDBServer,Q as createClient};
|