@abtnode/core 1.16.11-next-56c94c95 → 1.16.11-next-f74663ac

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.
@@ -694,7 +694,6 @@ class BlockletManager extends BaseBlockletManager {
694
694
  logger.info('restart blocklet', { did });
695
695
  const blocklet = await this.getBlocklet(did);
696
696
  await this.checkControllerStatus(blocklet, 'restart');
697
-
698
697
  await states.blocklet.setBlockletStatus(did, BlockletStatus.stopping, { componentDids });
699
698
  const result = await states.blocklet.getBlocklet(did);
700
699
  this.emit(BlockletEvents.statusChange, result);
@@ -728,7 +727,6 @@ class BlockletManager extends BaseBlockletManager {
728
727
  // eslint-disable-next-line no-unused-vars
729
728
  async reload({ did, componentDids: list }, context) {
730
729
  const blocklet = await this.getBlocklet(did);
731
-
732
730
  await this.checkControllerStatus(blocklet, 'reload');
733
731
 
734
732
  const componentDids = (blocklet.children || [])
package/lib/index.js CHANGED
@@ -276,6 +276,7 @@ function ABTNode(options) {
276
276
  hasBlocklet: blockletManager.hasBlocklet.bind(blockletManager),
277
277
  updateAllBlockletEnvironment: blockletManager.updateAllBlockletEnvironment.bind(blockletManager),
278
278
  setBlockletInitialized: blockletManager.setInitialized.bind(blockletManager),
279
+ setBlockletOwner: blockletManager.updateOwner.bind(blockletManager),
279
280
  updateBlockletOwner: blockletManager.updateOwner.bind(blockletManager),
280
281
  getBlockletRuntimeHistory: blockletManager.getRuntimeHistory.bind(blockletManager),
281
282
 
@@ -184,6 +184,7 @@ const setupAppOwner = async (node, sessionId) => {
184
184
  expiresIn: '7d',
185
185
  });
186
186
 
187
+ await node.setBlockletOwner({ did: appDid, owner: { did: ownerDid, pk: ownerPk } });
187
188
  await node.endSession({ id: sessionId });
188
189
  logger.info('Complete install for blocklet', { appDid, ownerDid, sessionId });
189
190
 
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.16.11-next-56c94c95",
6
+ "version": "1.16.11-next-f74663ac",
7
7
  "description": "",
8
8
  "main": "lib/index.js",
9
9
  "files": [
@@ -19,18 +19,18 @@
19
19
  "author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
20
20
  "license": "Apache-2.0",
21
21
  "dependencies": {
22
- "@abtnode/auth": "1.16.11-next-56c94c95",
23
- "@abtnode/certificate-manager": "1.16.11-next-56c94c95",
24
- "@abtnode/constant": "1.16.11-next-56c94c95",
25
- "@abtnode/cron": "1.16.11-next-56c94c95",
26
- "@abtnode/logger": "1.16.11-next-56c94c95",
27
- "@abtnode/models": "1.16.11-next-56c94c95",
28
- "@abtnode/queue": "1.16.11-next-56c94c95",
29
- "@abtnode/rbac": "1.16.11-next-56c94c95",
30
- "@abtnode/router-provider": "1.16.11-next-56c94c95",
31
- "@abtnode/static-server": "1.16.11-next-56c94c95",
32
- "@abtnode/timemachine": "1.16.11-next-56c94c95",
33
- "@abtnode/util": "1.16.11-next-56c94c95",
22
+ "@abtnode/auth": "1.16.11-next-f74663ac",
23
+ "@abtnode/certificate-manager": "1.16.11-next-f74663ac",
24
+ "@abtnode/constant": "1.16.11-next-f74663ac",
25
+ "@abtnode/cron": "1.16.11-next-f74663ac",
26
+ "@abtnode/logger": "1.16.11-next-f74663ac",
27
+ "@abtnode/models": "1.16.11-next-f74663ac",
28
+ "@abtnode/queue": "1.16.11-next-f74663ac",
29
+ "@abtnode/rbac": "1.16.11-next-f74663ac",
30
+ "@abtnode/router-provider": "1.16.11-next-f74663ac",
31
+ "@abtnode/static-server": "1.16.11-next-f74663ac",
32
+ "@abtnode/timemachine": "1.16.11-next-f74663ac",
33
+ "@abtnode/util": "1.16.11-next-f74663ac",
34
34
  "@arcblock/did": "1.18.80",
35
35
  "@arcblock/did-auth": "1.18.80",
36
36
  "@arcblock/did-ext": "^1.18.80",
@@ -41,9 +41,9 @@
41
41
  "@arcblock/pm2-events": "^0.0.5",
42
42
  "@arcblock/validator": "^1.18.80",
43
43
  "@arcblock/vc": "1.18.80",
44
- "@blocklet/constant": "1.16.11-next-56c94c95",
45
- "@blocklet/meta": "1.16.11-next-56c94c95",
46
- "@blocklet/sdk": "1.16.11-next-56c94c95",
44
+ "@blocklet/constant": "1.16.11-next-f74663ac",
45
+ "@blocklet/meta": "1.16.11-next-f74663ac",
46
+ "@blocklet/sdk": "1.16.11-next-f74663ac",
47
47
  "@did-space/client": "^0.2.113",
48
48
  "@fidm/x509": "^1.2.1",
49
49
  "@ocap/mcrypto": "1.18.80",
@@ -96,5 +96,5 @@
96
96
  "express": "^4.18.2",
97
97
  "jest": "^27.5.1"
98
98
  },
99
- "gitHead": "23ef1be537b8d97e322f0364943f08fc0a7b3247"
99
+ "gitHead": "805327b6c7544c6d2328558434835253e2d741ec"
100
100
  }