@blocklet/sdk 1.16.41-beta-20250318-012955-51b0ae39 → 1.16.41-beta-20250318-123609-b48bb2d7

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.
@@ -11,12 +11,17 @@ const util_1 = require("@blocklet/meta/lib/util");
11
11
  const info_1 = __importDefault(require("@blocklet/meta/lib/info"));
12
12
  const constant_1 = require("@abtnode/constant");
13
13
  const login_1 = require("./login");
14
+ const config_1 = __importDefault(require("../config"));
14
15
  function getFederatedMasterAppInfo({ blocklet, sourceAppPid, version, groupPathPrefix, nodeInfo, }) {
15
16
  const { federated } = blocklet.settings;
16
17
  if (!federated) {
17
18
  return null;
18
19
  }
19
20
  const master = federated.sites.find((x) => x.appPid === sourceAppPid);
21
+ if (!master) {
22
+ config_1.default.logger.error('Federated master app not found', { sourceAppPid });
23
+ throw new Error(`Federated master app not found: ${sourceAppPid}`);
24
+ }
20
25
  return {
21
26
  name: master.appName,
22
27
  description: master.appDescription || `Connect to ${master.appName}`,
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.16.41-beta-20250318-012955-51b0ae39",
6
+ "version": "1.16.41-beta-20250318-123609-b48bb2d7",
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,16 +27,16 @@
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.41-beta-20250318-012955-51b0ae39",
31
- "@abtnode/constant": "1.16.41-beta-20250318-012955-51b0ae39",
32
- "@abtnode/util": "1.16.41-beta-20250318-012955-51b0ae39",
30
+ "@abtnode/client": "1.16.41-beta-20250318-123609-b48bb2d7",
31
+ "@abtnode/constant": "1.16.41-beta-20250318-123609-b48bb2d7",
32
+ "@abtnode/util": "1.16.41-beta-20250318-123609-b48bb2d7",
33
33
  "@arcblock/did": "1.19.15",
34
34
  "@arcblock/did-auth": "1.19.15",
35
35
  "@arcblock/jwt": "1.19.15",
36
36
  "@arcblock/ws": "1.19.15",
37
- "@blocklet/constant": "1.16.41-beta-20250318-012955-51b0ae39",
38
- "@blocklet/env": "1.16.41-beta-20250318-012955-51b0ae39",
39
- "@blocklet/meta": "1.16.41-beta-20250318-012955-51b0ae39",
37
+ "@blocklet/constant": "1.16.41-beta-20250318-123609-b48bb2d7",
38
+ "@blocklet/env": "1.16.41-beta-20250318-123609-b48bb2d7",
39
+ "@blocklet/meta": "1.16.41-beta-20250318-123609-b48bb2d7",
40
40
  "@did-connect/authenticator": "^2.2.7",
41
41
  "@did-connect/handler": "^2.2.7",
42
42
  "@nedb/core": "^2.1.5",
@@ -82,5 +82,5 @@
82
82
  "ts-node": "^10.9.1",
83
83
  "typescript": "^5.6.3"
84
84
  },
85
- "gitHead": "0b5929ecb20ee929ad5f3bd3444d6aea2674de1a"
85
+ "gitHead": "bb26547e22d71d208582b6254c355598a42f363b"
86
86
  }