@blocklet/sdk 1.16.16-beta-d6c5ed65 → 1.16.16-beta-301539f6

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.
@@ -16,12 +16,12 @@ const doCall = async ({ url, ...options }) => {
16
16
  try {
17
17
  const resp = await (0, axios_1.default)({
18
18
  url,
19
+ timeout: 60 * 1000,
19
20
  ...options,
20
21
  headers: {
21
22
  'x-component-sig': (0, verify_sign_1.sign)(options.data),
22
23
  'x-component-did': process.env.BLOCKLET_COMPONENT_DID,
23
24
  },
24
- timeout: 60 * 1000,
25
25
  });
26
26
  config_1.logger.info(`call ${url} api success`);
27
27
  return resp;
@@ -15,6 +15,7 @@ declare const _default: {
15
15
  role: string;
16
16
  provider: string;
17
17
  fullName: string;
18
+ walletOS: string;
18
19
  };
19
20
  }, res: import("express").Response<any, Record<string, any>>, next: import("express").NextFunction) => void;
20
21
  auth: ({ roles, permissions, getClient }?: {
@@ -4,6 +4,7 @@ type User = {
4
4
  role: string | undefined;
5
5
  provider: string;
6
6
  fullName: string;
7
+ walletOS: string;
7
8
  };
8
9
  declare const userMiddleware: () => (req: Request & {
9
10
  user?: User;
@@ -6,6 +6,7 @@ const userMiddleware = () => (req, res, next) => {
6
6
  role: req.headers['x-user-role'],
7
7
  provider: req.headers['x-user-provider'],
8
8
  fullName: decodeURIComponent(req.headers['x-user-fullname']),
9
+ walletOS: req.headers['x-user-wallet-os'],
9
10
  };
10
11
  }
11
12
  next();
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.16.16-beta-d6c5ed65",
6
+ "version": "1.16.16-beta-301539f6",
7
7
  "description": "graphql client to read/write data on abt node",
8
8
  "main": "lib/index.js",
9
9
  "typings": "lib/index.d.ts",
@@ -26,20 +26,20 @@
26
26
  "author": "linchen1987 <linchen.1987@foxmail.com> (http://github.com/linchen1987)",
27
27
  "license": "Apache-2.0",
28
28
  "dependencies": {
29
- "@abtnode/client": "1.16.16-beta-d6c5ed65",
30
- "@abtnode/constant": "1.16.16-beta-d6c5ed65",
31
- "@arcblock/did": "1.18.89",
32
- "@arcblock/did-auth": "1.18.89",
33
- "@arcblock/jwt": "1.18.89",
34
- "@arcblock/ws": "1.18.89",
35
- "@blocklet/constant": "1.16.16-beta-d6c5ed65",
36
- "@blocklet/env": "1.16.16-beta-d6c5ed65",
37
- "@blocklet/meta": "1.16.16-beta-d6c5ed65",
29
+ "@abtnode/client": "1.16.16-beta-301539f6",
30
+ "@abtnode/constant": "1.16.16-beta-301539f6",
31
+ "@arcblock/did": "1.18.90",
32
+ "@arcblock/did-auth": "1.18.90",
33
+ "@arcblock/jwt": "1.18.90",
34
+ "@arcblock/ws": "1.18.90",
35
+ "@blocklet/constant": "1.16.16-beta-301539f6",
36
+ "@blocklet/env": "1.16.16-beta-301539f6",
37
+ "@blocklet/meta": "1.16.16-beta-301539f6",
38
38
  "@did-connect/authenticator": "^2.2.0",
39
39
  "@did-connect/handler": "^2.2.0",
40
40
  "@nedb/core": "^2.1.5",
41
- "@ocap/mcrypto": "1.18.89",
42
- "@ocap/wallet": "1.18.89",
41
+ "@ocap/mcrypto": "1.18.90",
42
+ "@ocap/wallet": "1.18.90",
43
43
  "axios": "^0.27.2",
44
44
  "cheerio": "^1.0.0-rc.12",
45
45
  "fs-extra": "^10.1.0",
@@ -74,5 +74,5 @@
74
74
  "ts-node": "^10.9.1",
75
75
  "typescript": "^5.0.4"
76
76
  },
77
- "gitHead": "16f5632a7b86283381fa49acc4d2553c65cd2aa3"
77
+ "gitHead": "4abf42f8b8cc859b76a85ab083414654dea10fcb"
78
78
  }