@abtnode/core 1.16.29-beta-cbfd116d → 1.16.29-next-680cf137

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.
@@ -1349,31 +1349,17 @@ class DiskBlockletManager extends BaseBlockletManager {
1349
1349
  }
1350
1350
  }
1351
1351
 
1352
- /**
1353
- *
1354
- * @param {object} param - params
1355
- * @param {string} param.did - blocklet did
1356
- * @param {string[]} param.componentDids - component dids
1357
- * @param {boolean} param.shouldUpdateBlockletStatus - should update blocklet status
1358
- * @param {*} context
1359
- * @returns
1360
- */
1361
- async deleteProcess({ did, componentDids, shouldUpdateBlockletStatus = true }, context) {
1352
+ // eslint-disable-next-line no-unused-vars
1353
+ async deleteProcess({ did, componentDids }, context) {
1362
1354
  const blocklet = await this.getBlocklet(did);
1363
1355
 
1364
1356
  logger.info('delete blocklet process', { did, componentDids });
1365
1357
 
1366
1358
  await deleteBlockletProcess(blocklet, { ...context, componentDids });
1367
- logger.info('blocklet process deleted successfully', { did, componentDids });
1368
-
1369
- // 有些情况不需要更新 blocklet 状态, 比如下载完成,安装之前清理 process 时, 不需要更新 blocklet 状态
1370
- if (shouldUpdateBlockletStatus) {
1371
- const result = await states.blocklet.setBlockletStatus(did, BlockletStatus.stopped, { componentDids });
1372
- logger.info('blocklet status updated to stopped after deleted processes', { did, componentDids });
1373
- return result;
1374
- }
1375
1359
 
1376
- return blocklet;
1360
+ const result = await states.blocklet.setBlockletStatus(did, BlockletStatus.stopped, { componentDids });
1361
+ logger.info('blocklet process deleted successfully', { did, componentDids });
1362
+ return result;
1377
1363
  }
1378
1364
 
1379
1365
  // Get blocklet by blockletDid or appDid
@@ -3273,9 +3259,7 @@ class DiskBlockletManager extends BaseBlockletManager {
3273
3259
  return null;
3274
3260
  }
3275
3261
 
3276
- if (blocklet.site) {
3277
- blocklet.site.domainAliases = await this.getDomainAliases(blocklet, context);
3278
- }
3262
+ blocklet.site.domainAliases = await this.getDomainAliases(blocklet, context);
3279
3263
 
3280
3264
  // app runtime info, app status
3281
3265
  blocklet.appRuntimeInfo = this.runtimeMonitor.getRuntimeInfo(blocklet.meta.did);
@@ -3465,7 +3449,7 @@ class DiskBlockletManager extends BaseBlockletManager {
3465
3449
 
3466
3450
  // ensure delete process
3467
3451
  try {
3468
- await this.deleteProcess({ did, shouldUpdateBlockletStatus: false }, context);
3452
+ await this.deleteProcess({ did }, context);
3469
3453
  logger.info('ensure delete blocklet process for installing', { did, name: meta.name });
3470
3454
  } catch (err) {
3471
3455
  logger.error('ensure delete blocklet process failed for installing', { did, name: meta.name, error: err });
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.16.29-beta-cbfd116d",
6
+ "version": "1.16.29-next-680cf137",
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.29-beta-cbfd116d",
23
- "@abtnode/auth": "1.16.29-beta-cbfd116d",
24
- "@abtnode/certificate-manager": "1.16.29-beta-cbfd116d",
25
- "@abtnode/constant": "1.16.29-beta-cbfd116d",
26
- "@abtnode/cron": "1.16.29-beta-cbfd116d",
27
- "@abtnode/logger": "1.16.29-beta-cbfd116d",
28
- "@abtnode/models": "1.16.29-beta-cbfd116d",
29
- "@abtnode/queue": "1.16.29-beta-cbfd116d",
30
- "@abtnode/rbac": "1.16.29-beta-cbfd116d",
31
- "@abtnode/router-provider": "1.16.29-beta-cbfd116d",
32
- "@abtnode/static-server": "1.16.29-beta-cbfd116d",
33
- "@abtnode/timemachine": "1.16.29-beta-cbfd116d",
34
- "@abtnode/util": "1.16.29-beta-cbfd116d",
22
+ "@abtnode/analytics": "1.16.29-next-680cf137",
23
+ "@abtnode/auth": "1.16.29-next-680cf137",
24
+ "@abtnode/certificate-manager": "1.16.29-next-680cf137",
25
+ "@abtnode/constant": "1.16.29-next-680cf137",
26
+ "@abtnode/cron": "1.16.29-next-680cf137",
27
+ "@abtnode/logger": "1.16.29-next-680cf137",
28
+ "@abtnode/models": "1.16.29-next-680cf137",
29
+ "@abtnode/queue": "1.16.29-next-680cf137",
30
+ "@abtnode/rbac": "1.16.29-next-680cf137",
31
+ "@abtnode/router-provider": "1.16.29-next-680cf137",
32
+ "@abtnode/static-server": "1.16.29-next-680cf137",
33
+ "@abtnode/timemachine": "1.16.29-next-680cf137",
34
+ "@abtnode/util": "1.16.29-next-680cf137",
35
35
  "@arcblock/did": "1.18.126",
36
36
  "@arcblock/did-auth": "1.18.126",
37
37
  "@arcblock/did-ext": "^1.18.126",
@@ -42,12 +42,12 @@
42
42
  "@arcblock/pm2-events": "^0.0.5",
43
43
  "@arcblock/validator": "^1.18.126",
44
44
  "@arcblock/vc": "1.18.126",
45
- "@blocklet/constant": "1.16.29-beta-cbfd116d",
46
- "@blocklet/env": "1.16.29-beta-cbfd116d",
47
- "@blocklet/meta": "1.16.29-beta-cbfd116d",
48
- "@blocklet/resolver": "1.16.29-beta-cbfd116d",
49
- "@blocklet/sdk": "1.16.29-beta-cbfd116d",
50
- "@blocklet/store": "1.16.29-beta-cbfd116d",
45
+ "@blocklet/constant": "1.16.29-next-680cf137",
46
+ "@blocklet/env": "1.16.29-next-680cf137",
47
+ "@blocklet/meta": "1.16.29-next-680cf137",
48
+ "@blocklet/resolver": "1.16.29-next-680cf137",
49
+ "@blocklet/sdk": "1.16.29-next-680cf137",
50
+ "@blocklet/store": "1.16.29-next-680cf137",
51
51
  "@did-space/client": "^0.5.7",
52
52
  "@fidm/x509": "^1.2.1",
53
53
  "@ocap/mcrypto": "1.18.126",
@@ -103,5 +103,5 @@
103
103
  "jest": "^29.7.0",
104
104
  "unzipper": "^0.10.11"
105
105
  },
106
- "gitHead": "e9bdb7af77f2d126e40195c67972b07fe683adf9"
106
+ "gitHead": "17b7e7c5e43c497980d4fe6b5bb20609328041bd"
107
107
  }