Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@iotexproject/kit

Package Overview
Dependencies
Maintainers
0
Versions
173
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@iotexproject/kit - npm Package Compare versions

Comparing version 0.1.5 to 0.1.6

2

dist/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc