@blocklet/cli 1.17.7-beta-20251225-073259-cb6ecf68 → 1.17.7-beta-20251227-001958-ea2ba3f5
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.
|
@@ -22,7 +22,11 @@ const update = async (appId) => {
|
|
|
22
22
|
await wrapSpinner(
|
|
23
23
|
'Updating...',
|
|
24
24
|
async () => {
|
|
25
|
-
|
|
25
|
+
let ownerInfo;
|
|
26
|
+
if (blocklet.settings?.owner?.did) {
|
|
27
|
+
ownerInfo = await node.getUser({ teamDid: blocklet.appPid, user: { did: blocklet.settings.owner.did } });
|
|
28
|
+
}
|
|
29
|
+
|
|
26
30
|
return publishDidDocument({ blocklet, ownerInfo, nodeInfo });
|
|
27
31
|
},
|
|
28
32
|
{
|
|
@@ -471,33 +471,28 @@ const exec = async ({ workingDir, config, dataDir, mode, updateDb, forceIntranet
|
|
|
471
471
|
const daemonErrorLogFile = path.join(logDir, 'daemon.stderr.log');
|
|
472
472
|
const startTimeMs = Date.now();
|
|
473
473
|
try {
|
|
474
|
-
//
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
printInfo,
|
|
488
|
-
printError,
|
|
489
|
-
printSuccess,
|
|
490
|
-
});
|
|
474
|
+
// Migrate db schema first
|
|
475
|
+
await runSchemaMigrations({ dataDir, printInfo, printSuccess, blocklets: await node.getBlocklets() });
|
|
476
|
+
|
|
477
|
+
// Migrate application logic later
|
|
478
|
+
const migrationSucceeded = await runMigrationScripts({
|
|
479
|
+
node,
|
|
480
|
+
config,
|
|
481
|
+
configFile,
|
|
482
|
+
dataDir,
|
|
483
|
+
printInfo,
|
|
484
|
+
printError,
|
|
485
|
+
printSuccess,
|
|
486
|
+
});
|
|
491
487
|
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
488
|
+
if (migrationSucceeded === false) {
|
|
489
|
+
return resolve(1);
|
|
490
|
+
}
|
|
495
491
|
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
}
|
|
492
|
+
// NOTE: this is a workaround for the blocklet state revert issue after migration
|
|
493
|
+
if (process.env.ABORT_AFTER_MIGRATION) {
|
|
494
|
+
shelljs.exec(`${ABT_NODE_COMMAND_NAME} stop --force`, { silent: true });
|
|
495
|
+
return resolve(0);
|
|
501
496
|
}
|
|
502
497
|
|
|
503
498
|
// Ensure version is correct
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/cli",
|
|
3
|
-
"version": "1.17.7-beta-
|
|
3
|
+
"version": "1.17.7-beta-20251227-001958-ea2ba3f5",
|
|
4
4
|
"description": "Command line tools to manage Blocklet Server",
|
|
5
5
|
"homepage": "https://www.arcblock.io/docs/blocklet-cli",
|
|
6
6
|
"bin": {
|
|
@@ -33,33 +33,33 @@
|
|
|
33
33
|
"url": "https://github.com/ArcBlock/blocklet-server/issues"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@abtnode/blocklet-services": "1.17.7-beta-
|
|
37
|
-
"@abtnode/constant": "1.17.7-beta-
|
|
38
|
-
"@abtnode/core": "1.17.7-beta-
|
|
39
|
-
"@abtnode/db-cache": "1.17.7-beta-
|
|
40
|
-
"@abtnode/logger": "1.17.7-beta-
|
|
41
|
-
"@abtnode/models": "1.17.7-beta-
|
|
42
|
-
"@abtnode/router-provider": "1.17.7-beta-
|
|
43
|
-
"@abtnode/util": "1.17.7-beta-
|
|
44
|
-
"@abtnode/webapp": "1.17.7-beta-
|
|
45
|
-
"@arcblock/did": "^1.27.
|
|
46
|
-
"@arcblock/event-hub": "^1.27.
|
|
36
|
+
"@abtnode/blocklet-services": "1.17.7-beta-20251227-001958-ea2ba3f5",
|
|
37
|
+
"@abtnode/constant": "1.17.7-beta-20251227-001958-ea2ba3f5",
|
|
38
|
+
"@abtnode/core": "1.17.7-beta-20251227-001958-ea2ba3f5",
|
|
39
|
+
"@abtnode/db-cache": "1.17.7-beta-20251227-001958-ea2ba3f5",
|
|
40
|
+
"@abtnode/logger": "1.17.7-beta-20251227-001958-ea2ba3f5",
|
|
41
|
+
"@abtnode/models": "1.17.7-beta-20251227-001958-ea2ba3f5",
|
|
42
|
+
"@abtnode/router-provider": "1.17.7-beta-20251227-001958-ea2ba3f5",
|
|
43
|
+
"@abtnode/util": "1.17.7-beta-20251227-001958-ea2ba3f5",
|
|
44
|
+
"@abtnode/webapp": "1.17.7-beta-20251227-001958-ea2ba3f5",
|
|
45
|
+
"@arcblock/did": "^1.27.16",
|
|
46
|
+
"@arcblock/event-hub": "^1.27.16",
|
|
47
47
|
"@arcblock/ipfs-only-hash": "^0.0.2",
|
|
48
|
-
"@arcblock/jwt": "^1.27.
|
|
49
|
-
"@arcblock/ws": "^1.27.
|
|
50
|
-
"@blocklet/constant": "1.17.7-beta-
|
|
48
|
+
"@arcblock/jwt": "^1.27.16",
|
|
49
|
+
"@arcblock/ws": "^1.27.16",
|
|
50
|
+
"@blocklet/constant": "1.17.7-beta-20251227-001958-ea2ba3f5",
|
|
51
51
|
"@blocklet/error": "^0.3.5",
|
|
52
52
|
"@blocklet/form-collector": "^0.1.8",
|
|
53
|
-
"@blocklet/images": "1.17.7-beta-
|
|
54
|
-
"@blocklet/meta": "1.17.7-beta-
|
|
55
|
-
"@blocklet/resolver": "1.17.7-beta-
|
|
56
|
-
"@blocklet/server-js": "1.17.7-beta-
|
|
57
|
-
"@blocklet/store": "1.17.7-beta-
|
|
53
|
+
"@blocklet/images": "1.17.7-beta-20251227-001958-ea2ba3f5",
|
|
54
|
+
"@blocklet/meta": "1.17.7-beta-20251227-001958-ea2ba3f5",
|
|
55
|
+
"@blocklet/resolver": "1.17.7-beta-20251227-001958-ea2ba3f5",
|
|
56
|
+
"@blocklet/server-js": "1.17.7-beta-20251227-001958-ea2ba3f5",
|
|
57
|
+
"@blocklet/store": "1.17.7-beta-20251227-001958-ea2ba3f5",
|
|
58
58
|
"@blocklet/theme-builder": "^0.4.8",
|
|
59
|
-
"@ocap/client": "^1.27.
|
|
60
|
-
"@ocap/mcrypto": "^1.27.
|
|
61
|
-
"@ocap/util": "^1.27.
|
|
62
|
-
"@ocap/wallet": "^1.27.
|
|
59
|
+
"@ocap/client": "^1.27.16",
|
|
60
|
+
"@ocap/mcrypto": "^1.27.16",
|
|
61
|
+
"@ocap/util": "^1.27.16",
|
|
62
|
+
"@ocap/wallet": "^1.27.16",
|
|
63
63
|
"@vercel/ncc": "^0.38.3",
|
|
64
64
|
"archiver": "^7.0.1",
|
|
65
65
|
"async": "^3.2.4",
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
"engines": {
|
|
154
154
|
"node": ">=14"
|
|
155
155
|
},
|
|
156
|
-
"gitHead": "
|
|
156
|
+
"gitHead": "ec0a542fc2c66f2530d25884b43bddfa28d921a0",
|
|
157
157
|
"devDependencies": {
|
|
158
158
|
"@types/fs-extra": "^11.0.4"
|
|
159
159
|
}
|