@blocklet/sdk 1.16.29-beta-2eaf40bc → 1.16.29-beta-112566d5

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.
@@ -67,7 +67,8 @@ const getAuthenticatorProps = (options = {}) => ({
67
67
  try {
68
68
  ({ blocklet } = await this.authClient.getBlocklet());
69
69
  }
70
- catch {
70
+ catch (error) {
71
+ console.error(error);
71
72
  throw new Error('failed to get blocklet');
72
73
  }
73
74
  return blocklet;
@@ -92,7 +93,8 @@ const getAuthenticatorProps = (options = {}) => ({
92
93
  try {
93
94
  ({ blocklet } = await this.authClient.getBlocklet());
94
95
  }
95
- catch {
96
+ catch (error) {
97
+ console.error(error);
96
98
  throw new Error('failed to get blocklet');
97
99
  }
98
100
  return blocklet;
@@ -112,7 +114,8 @@ const getAuthenticatorProps = (options = {}) => ({
112
114
  try {
113
115
  ({ blocklet } = await this.authClient.getBlocklet());
114
116
  }
115
- catch {
117
+ catch (error) {
118
+ console.error(error);
116
119
  throw new Error('failed to get blocklet');
117
120
  }
118
121
  const pk = (0, get_1.default)(blocklet, 'settings.federated.sites[0].pk');
@@ -139,7 +142,8 @@ const getAuthenticatorProps = (options = {}) => ({
139
142
  try {
140
143
  ({ blocklet } = await this.authClient.getBlocklet());
141
144
  }
142
- catch {
145
+ catch (error) {
146
+ console.error(error);
143
147
  throw new Error('failed to get blocklet');
144
148
  }
145
149
  const delegation = (0, get_1.default)(blocklet, 'settings.federated.config.delegation');
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.16.29-beta-2eaf40bc",
6
+ "version": "1.16.29-beta-112566d5",
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",
@@ -27,15 +27,15 @@
27
27
  "author": "linchen1987 <linchen.1987@foxmail.com> (http://github.com/linchen1987)",
28
28
  "license": "Apache-2.0",
29
29
  "dependencies": {
30
- "@abtnode/client": "1.16.29-beta-2eaf40bc",
31
- "@abtnode/constant": "1.16.29-beta-2eaf40bc",
30
+ "@abtnode/client": "1.16.29-beta-112566d5",
31
+ "@abtnode/constant": "1.16.29-beta-112566d5",
32
32
  "@arcblock/did": "1.18.126",
33
33
  "@arcblock/did-auth": "1.18.126",
34
34
  "@arcblock/jwt": "1.18.126",
35
35
  "@arcblock/ws": "1.18.126",
36
- "@blocklet/constant": "1.16.29-beta-2eaf40bc",
37
- "@blocklet/env": "1.16.29-beta-2eaf40bc",
38
- "@blocklet/meta": "1.16.29-beta-2eaf40bc",
36
+ "@blocklet/constant": "1.16.29-beta-112566d5",
37
+ "@blocklet/env": "1.16.29-beta-112566d5",
38
+ "@blocklet/meta": "1.16.29-beta-112566d5",
39
39
  "@did-connect/authenticator": "^2.2.4",
40
40
  "@did-connect/handler": "^2.2.4",
41
41
  "@nedb/core": "^2.1.5",
@@ -75,5 +75,5 @@
75
75
  "ts-node": "^10.9.1",
76
76
  "typescript": "^5.0.4"
77
77
  },
78
- "gitHead": "d723d07ca8914468fc1b53af23aa53dc343e0a8c"
78
+ "gitHead": "4c6213560b79dc862b0b5e48b50f65c39de54aef"
79
79
  }