@iotexproject/kit 0.1.51 → 0.1.52

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +3 -16
  2. package/package.json +3 -3
package/dist/index.d.ts CHANGED
@@ -7221,8 +7221,8 @@ declare class PointsPlatform {
7221
7221
  user: string;
7222
7222
  }, ctx?: ConfigContext): Promise<{
7223
7223
  selfPoints: any;
7224
- selfRank: any;
7225
- dailyPoints: any;
7224
+ selfRank: {};
7225
+ dailyPoints: {};
7226
7226
  error?: undefined;
7227
7227
  } | {
7228
7228
  error: unknown;
@@ -7951,19 +7951,6 @@ declare class SmartChefEntity {
7951
7951
  } | null>;
7952
7952
  apr(): Promise<string | undefined>;
7953
7953
  myPendingReward(account: `0x${string}`): Promise<{
7954
- pendingReward: {
7955
- value: string;
7956
- format: string;
7957
- originFormat: string;
7958
- decimals: string;
7959
- };
7960
- pendingRewardUSD: {
7961
- value: string;
7962
- format: string;
7963
- originFormat: string;
7964
- decimals: string;
7965
- };
7966
- } | {
7967
7954
  pendingReward: {
7968
7955
  value: string;
7969
7956
  format: string;
@@ -8717,7 +8704,7 @@ export interface ConfigOptions {
8717
8704
  ttl?: number;
8718
8705
  checkAuth?: boolean;
8719
8706
  route?: {
8720
- method: "get" | "post" | "put" | "delete";
8707
+ method: "get" | "post" | "put" | "delete" | "all";
8721
8708
  path: string;
8722
8709
  absolutePath?: boolean;
8723
8710
  };
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.51",
5
+ "version": "v0.1.52",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "scripts": {
@@ -13,9 +13,9 @@
13
13
  "test": "bun --hot run tests/test-marshalldao.ts",
14
14
  "build": "bun run build.mjs",
15
15
  "prepublishOnly": "bun run build",
16
- "postinstall": "bun generate-prisma",
17
16
  "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",
18
- "generate-prisma": "prisma generate --schema=./prisma/schema.prisma"
17
+ "generate-prisma": "prisma generate --schema=./prisma/schema.prisma",
18
+ "dev-db-with-prisma": "bun generate-prisma && bun server-db.ts"
19
19
  },
20
20
  "files": [
21
21
  "dist"