@abtnode/core 1.16.18-beta-bb4ebacc → 1.16.18-beta-f4777312

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.
@@ -433,7 +433,8 @@ class DiskBlockletManager extends BaseBlockletManager {
433
433
  return installComponentFromDev({ folder, meta, rootDid, mountPoint, skipParseDependents, manager: this, states });
434
434
  }
435
435
 
436
- checkComponentsForUpdates({ did }) {
436
+ async checkComponentsForUpdates({ did }) {
437
+ await this.checkControllerStatus(await this.ensureBlocklet(did), 'upgrade');
437
438
  return UpgradeComponents.check({ did, states });
438
439
  }
439
440
 
@@ -3717,7 +3718,7 @@ class DiskBlockletManager extends BaseBlockletManager {
3717
3718
  did: blocklet.meta.did,
3718
3719
  nftId: blocklet.controller?.nftId,
3719
3720
  });
3720
- throw new Error(`can not ${action} an expired blocklet`);
3721
+ throw new Error(`Can not ${action} an expired blocklet`);
3721
3722
  }
3722
3723
 
3723
3724
  if (
@@ -149,7 +149,7 @@ const attachRuntimeDomainAliases = async ({ sites = [], context = {} }) => {
149
149
  if (domain.value.includes(SLOT_FOR_IP_DNS_SITE)) {
150
150
  domain.value = replaceSlotToIp(domain.value, ip);
151
151
  } else if (domain.value === DEFAULT_IP_DOMAIN) {
152
- domain.value = `${ip.split('.').join('-')}${domain.value.substring(2)}`;
152
+ domain.value = `${ip.split('.').join('-')}${domain.value.substring(1)}`;
153
153
  }
154
154
  }
155
155
  return domain;
@@ -359,7 +359,16 @@ class User extends ExtendBase {
359
359
  passports: user.passport ? [{ ...user.passport, lastLoginAt: now }] : [],
360
360
  };
361
361
 
362
+ // HACK: joi 会把 null 值过滤掉,暂时手动判断 null 值
363
+ if (raw.sourceAppPid === null) {
364
+ updates.sourceAppPid = null;
365
+ }
366
+
362
367
  if (exist) {
368
+ // HACK: sourceAppPid 不能更新
369
+ if (updates.sourceAppPid) {
370
+ delete updates.sourceAppPid;
371
+ }
363
372
  // update user, connectedAccount, passport
364
373
  updates.connectedAccounts = updateConnectedAccount(exist.connectedAccounts, user.connectedAccount);
365
374
  updated = await this.updateUser(user.did, updates);
@@ -1026,6 +1026,7 @@ const getRuntimeInfo = async (processId) => {
1026
1026
  memoryUsage: proc.monit.memory,
1027
1027
  cpuUsage: proc.monit.cpu,
1028
1028
  status: proc.pm2_env ? proc.pm2_env.status : null,
1029
+ port: proc.pm2_env ? proc.pm2_env.BLOCKLET_PORT : null,
1029
1030
  };
1030
1031
  };
1031
1032
 
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.16.18-beta-bb4ebacc",
6
+ "version": "1.16.18-beta-f4777312",
7
7
  "description": "",
8
8
  "main": "lib/index.js",
9
9
  "files": [
@@ -19,19 +19,19 @@
19
19
  "author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
20
20
  "license": "Apache-2.0",
21
21
  "dependencies": {
22
- "@abtnode/analytics": "1.16.18-beta-bb4ebacc",
23
- "@abtnode/auth": "1.16.18-beta-bb4ebacc",
24
- "@abtnode/certificate-manager": "1.16.18-beta-bb4ebacc",
25
- "@abtnode/constant": "1.16.18-beta-bb4ebacc",
26
- "@abtnode/cron": "1.16.18-beta-bb4ebacc",
27
- "@abtnode/logger": "1.16.18-beta-bb4ebacc",
28
- "@abtnode/models": "1.16.18-beta-bb4ebacc",
29
- "@abtnode/queue": "1.16.18-beta-bb4ebacc",
30
- "@abtnode/rbac": "1.16.18-beta-bb4ebacc",
31
- "@abtnode/router-provider": "1.16.18-beta-bb4ebacc",
32
- "@abtnode/static-server": "1.16.18-beta-bb4ebacc",
33
- "@abtnode/timemachine": "1.16.18-beta-bb4ebacc",
34
- "@abtnode/util": "1.16.18-beta-bb4ebacc",
22
+ "@abtnode/analytics": "1.16.18-beta-f4777312",
23
+ "@abtnode/auth": "1.16.18-beta-f4777312",
24
+ "@abtnode/certificate-manager": "1.16.18-beta-f4777312",
25
+ "@abtnode/constant": "1.16.18-beta-f4777312",
26
+ "@abtnode/cron": "1.16.18-beta-f4777312",
27
+ "@abtnode/logger": "1.16.18-beta-f4777312",
28
+ "@abtnode/models": "1.16.18-beta-f4777312",
29
+ "@abtnode/queue": "1.16.18-beta-f4777312",
30
+ "@abtnode/rbac": "1.16.18-beta-f4777312",
31
+ "@abtnode/router-provider": "1.16.18-beta-f4777312",
32
+ "@abtnode/static-server": "1.16.18-beta-f4777312",
33
+ "@abtnode/timemachine": "1.16.18-beta-f4777312",
34
+ "@abtnode/util": "1.16.18-beta-f4777312",
35
35
  "@arcblock/did": "1.18.95",
36
36
  "@arcblock/did-auth": "1.18.95",
37
37
  "@arcblock/did-ext": "^1.18.95",
@@ -42,12 +42,12 @@
42
42
  "@arcblock/pm2-events": "^0.0.5",
43
43
  "@arcblock/validator": "^1.18.95",
44
44
  "@arcblock/vc": "1.18.95",
45
- "@blocklet/constant": "1.16.18-beta-bb4ebacc",
46
- "@blocklet/env": "1.16.18-beta-bb4ebacc",
47
- "@blocklet/meta": "1.16.18-beta-bb4ebacc",
48
- "@blocklet/resolver": "1.16.18-beta-bb4ebacc",
49
- "@blocklet/sdk": "1.16.18-beta-bb4ebacc",
50
- "@did-space/client": "^0.3.22",
45
+ "@blocklet/constant": "1.16.18-beta-f4777312",
46
+ "@blocklet/env": "1.16.18-beta-f4777312",
47
+ "@blocklet/meta": "1.16.18-beta-f4777312",
48
+ "@blocklet/resolver": "1.16.18-beta-f4777312",
49
+ "@blocklet/sdk": "1.16.18-beta-f4777312",
50
+ "@did-space/client": "^0.3.25",
51
51
  "@fidm/x509": "^1.2.1",
52
52
  "@ocap/mcrypto": "1.18.95",
53
53
  "@ocap/util": "1.18.95",
@@ -101,5 +101,5 @@
101
101
  "jest": "^27.5.1",
102
102
  "unzipper": "^0.10.11"
103
103
  },
104
- "gitHead": "aca7ff8eb508ecf586108b99a9e07ceab2a62430"
104
+ "gitHead": "c9a7fe350706fbeaa6268609b3decd407896e234"
105
105
  }