@blocklet/sdk 1.16.13-beta-423a40b1 → 1.16.13-beta-d17a7de4

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.
@@ -7,6 +7,7 @@ exports.getParentWebEndpoint = exports.getChildWebEndpoint = exports.getComponen
7
7
  const util_1 = require("@blocklet/meta/lib/util");
8
8
  const axios_1 = __importDefault(require("axios"));
9
9
  const get_1 = __importDefault(require("lodash/get"));
10
+ const omit_1 = __importDefault(require("lodash/omit"));
10
11
  const url_join_1 = __importDefault(require("url-join"));
11
12
  const constant_1 = require("@blocklet/constant");
12
13
  const config_1 = require("../config");
@@ -25,16 +26,13 @@ const doCall = async ({ url, ...options }) => {
25
26
  return resp;
26
27
  }
27
28
  catch (error) {
28
- delete error.config;
29
- delete error.request;
30
- delete error.response;
31
29
  config_1.logger.error(`call ${url} api failed`, {
32
30
  url,
33
31
  responseStatus: (0, get_1.default)(error, 'response.status'),
34
32
  responseData: (0, get_1.default)(error, 'response.data'),
35
- error,
33
+ error: (0, omit_1.default)(error, 'response'),
36
34
  });
37
- throw new Error(`call ${url} api failed: ${error.message}`);
35
+ throw error;
38
36
  }
39
37
  };
40
38
  const parsePorts = () => JSON.parse(process.env.BLOCKLET_WEB_PORTS);
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.16.13-beta-423a40b1",
6
+ "version": "1.16.13-beta-d17a7de4",
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,15 +26,15 @@
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.13-beta-423a40b1",
30
- "@abtnode/constant": "1.16.13-beta-423a40b1",
29
+ "@abtnode/client": "1.16.13-beta-d17a7de4",
30
+ "@abtnode/constant": "1.16.13-beta-d17a7de4",
31
31
  "@arcblock/did": "1.18.84",
32
32
  "@arcblock/did-auth": "1.18.84",
33
33
  "@arcblock/jwt": "1.18.84",
34
34
  "@arcblock/ws": "1.18.84",
35
- "@blocklet/constant": "1.16.13-beta-423a40b1",
36
- "@blocklet/env": "1.16.13-beta-423a40b1",
37
- "@blocklet/meta": "1.16.13-beta-423a40b1",
35
+ "@blocklet/constant": "1.16.13-beta-d17a7de4",
36
+ "@blocklet/env": "1.16.13-beta-d17a7de4",
37
+ "@blocklet/meta": "1.16.13-beta-d17a7de4",
38
38
  "@did-connect/authenticator": "^2.1.59",
39
39
  "@did-connect/handler": "^2.1.59",
40
40
  "@nedb/core": "^2.1.5",
@@ -73,5 +73,5 @@
73
73
  "ts-node": "^10.9.1",
74
74
  "typescript": "^5.0.4"
75
75
  },
76
- "gitHead": "1aee04f45042bd4784ca72f9f8b93918980be4d4"
76
+ "gitHead": "f14750f3b9feeafe80ee88499b2b4a061c2c28c4"
77
77
  }