@iotexproject/kit
Advanced tools
Comparing version 0.1.5 to 0.1.6
@@ -1,1 +0,1 @@ | ||
var N=({url:C="http://localhost:9527",ctx:D}={})=>new Proxy({},{get(J,G,M){return new Proxy({},{get(K,b){return async(j)=>{for(let B in j){if(typeof j[B]==="object")j[B]=JSON.stringify(j[B],(H,L)=>typeof L==="bigint"?L.toString():L);if(j[B]==null)delete j[B]}const F=`${C}/${String(G)}/${String(b)}?${new URLSearchParams(j).toString()}`;let z;if(D)z=await fetch(F,{headers:{...D}});else z=await fetch(F);return z.json()}}})}}),O=({url:C="http://localhost:9527"}={})=>new Proxy({},{get(D,J,G){return new Proxy({},{get(M,K){return async(b)=>{for(let z in b){if(typeof b[z]==="object")b[z]=JSON.stringify(b[z],(B,H)=>typeof H==="bigint"?H.toString():H);if(b[z]==null)delete b[z]}const j=`${C}/${String(J)}/${String(K)}?${new URLSearchParams(b).toString()}`;return(await fetch(j)).json()}}})}}),P=({url:C="http://localhost:9527",fetchRequestInit:D})=>new Proxy({},{get(J,G,M){return new Proxy({},{get(K,b){return async(j)=>{const F=`${C}/${String(G)}/${String(b)}`;return(await fetch(F,{method:"POST",...D,body:JSON.stringify(j)})).json()}}})}});export{P as createClientWithWriteDBServer,O as createClientWithDBServer,N as createClient}; | ||
var N=({url:B="http://localhost:9527",ctx:C}={})=>new Proxy({},{get(H,F,L){return new Proxy({},{get(J,b){return async(j)=>{for(let G in j){if(typeof j[G]==="object")j[G]=JSON.stringify(j[G],(K,M)=>typeof M==="bigint"?M.toString():M);if(j[G]==null)delete j[G]}const D=`${B}/${String(F)}/${String(b)}?${new URLSearchParams(j).toString()}`;let z;if(C)z=await fetch(D,{headers:{...C}});else z=await fetch(D);return z.json()}}})}}),O=({url:B="http://localhost:9527"}={})=>new Proxy({},{get(C,H,F){return new Proxy({},{get(L,J){return async(b)=>{for(let z in b){if(typeof b[z]==="object")b[z]=JSON.stringify(b[z],(G,K)=>typeof K==="bigint"?K.toString():K);if(b[z]==null)delete b[z]}const j=`${B}/${String(H)}/${String(J)}?${new URLSearchParams(b).toString()}`;return(await fetch(j)).json()}}})}}),P=({url:B="http://localhost:9527",fetchRequestInit:C})=>new Proxy({},{get(H,F,L){return new Proxy({},{get(J,b){return async(j)=>{const D=`${B}/${String(F)}/${String(b)}`;return(await fetch(D,{method:"POST",...C,body:JSON.stringify(j)})).json()}}})}}),Q=({url:B="http://localhost:9527",fetchRequestInit:C})=>new Proxy({},{get(H,F,L){return new Proxy({},{get(J,b){return async(j)=>{const D=`${B}/${String(F)}/${String(b)}?${new URLSearchParams(j).toString()}`;return(await fetch(D,{method:"GET",...C})).json()}}})}});export{Q as createIotexscanClient,P as createClientWithWriteDBServer,O as createClientWithDBServer,N as createClient}; |
@@ -5,11 +5,13 @@ { | ||
"type": "module", | ||
"version": "v0.1.5", | ||
"version": "v0.1.6", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"scripts": { | ||
"dev": "bun run build && bun run --watch server.ts", | ||
"dev": "bun run build && bun run --watch server-kit.ts", | ||
"dev-db": "bun server-db.ts", | ||
"dev-iotexscan": "bun server-iotexscan.ts", | ||
"test": "bun --hot run tests/test-marshalldao.ts", | ||
"build": "bun run build.mjs", | ||
"prepublishOnly": "bun run build" | ||
"prepublishOnly": "bun run build", | ||
"gen:grpc": "protoc --plugin=protoc-gen-ts=./node_modules/.bin/protoc-gen-ts --ts_out=grpc_js:./lib/grpc/generated -I ./lib/grpc/protos ./lib/grpc/protos/*.proto" | ||
}, | ||
@@ -21,2 +23,4 @@ "files": [ | ||
"@clickhouse/client": "^1.4.0", | ||
"@grpc/grpc-js": "^1.11.1", | ||
"@grpc/proto-loader": "^0.7.13", | ||
"@iotexproject/iotex-address-ts": "^1.0.4", | ||
@@ -29,2 +33,3 @@ "@tryghost/content-api": "^1.11.21", | ||
"clickhouse": "^2.6.0", | ||
"crypto-js": "^4.2.0", | ||
"dataloader": "^2.2.2", | ||
@@ -43,5 +48,10 @@ "dayjs": "^1.11.12", | ||
"@types/bun": "latest", | ||
"@types/crypto-js": "^4.2.2", | ||
"@types/google-protobuf": "^3.15.12", | ||
"@types/tryghost__content-api": "^1.3.16", | ||
"bun-plugin-dts": "^0.2.3", | ||
"grpc-tools": "^1.12.4", | ||
"grpc_tools_node_protoc_ts": "^5.3.3", | ||
"hono": "^4.4.11", | ||
"protoc-gen-ts": "^0.8.7", | ||
"typescript": "^5.5.4" | ||
@@ -48,0 +58,0 @@ }, |
Sorry, the diff of this file is too big to display
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
196440
8641
20
11
6
+ Added@grpc/grpc-js@^1.11.1
+ Added@grpc/proto-loader@^0.7.13
+ Addedcrypto-js@^4.2.0
+ Added@grpc/grpc-js@1.12.2(transitive)
+ Added@grpc/proto-loader@0.7.13(transitive)
+ Added@js-sdsl/ordered-map@4.4.2(transitive)
+ Added@protobufjs/aspromise@1.1.2(transitive)
+ Added@protobufjs/base64@1.1.2(transitive)
+ Added@protobufjs/codegen@2.0.4(transitive)
+ Added@protobufjs/eventemitter@1.1.0(transitive)
+ Added@protobufjs/fetch@1.1.0(transitive)
+ Added@protobufjs/float@1.0.2(transitive)
+ Added@protobufjs/inquire@1.1.0(transitive)
+ Added@protobufjs/path@1.1.2(transitive)
+ Added@protobufjs/pool@1.1.0(transitive)
+ Added@protobufjs/utf8@1.1.0(transitive)
+ Added@types/node@22.10.1(transitive)
+ Addedansi-regex@5.0.1(transitive)
+ Addedansi-styles@4.3.0(transitive)
+ Addedcliui@8.0.1(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addedcrypto-js@4.2.0(transitive)
+ Addedemoji-regex@8.0.0(transitive)
+ Addedescalade@3.2.0(transitive)
+ Addedget-caller-file@2.0.5(transitive)
+ Addedis-fullwidth-code-point@3.0.0(transitive)
+ Addedlodash.camelcase@4.3.0(transitive)
+ Addedlong@5.2.3(transitive)
+ Addedprotobufjs@7.4.0(transitive)
+ Addedrequire-directory@2.1.1(transitive)
+ Addedstring-width@4.2.3(transitive)
+ Addedstrip-ansi@6.0.1(transitive)
+ Addedundici-types@6.20.0(transitive)
+ Addedwrap-ansi@7.0.0(transitive)
+ Addedy18n@5.0.8(transitive)
+ Addedyargs@17.7.2(transitive)
+ Addedyargs-parser@21.1.1(transitive)