@blocklet/cli 1.16.49-beta-20250814-091924-eb162407 → 1.16.49-beta-20250815-032308-7bcf0b85
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.
|
@@ -51,7 +51,7 @@ const getUtil = ({ node, socket, publishEvent, appName, appSk, ownerSk }) => {
|
|
|
51
51
|
owner: { did: owner.address, pk: owner.publicKey },
|
|
52
52
|
purpose: 'e2e',
|
|
53
53
|
});
|
|
54
|
-
await node.
|
|
54
|
+
await node.loginUser({
|
|
55
55
|
teamDid: app.address,
|
|
56
56
|
force: true,
|
|
57
57
|
user: {
|
|
@@ -62,6 +62,11 @@ const getUtil = ({ node, socket, publishEvent, appName, appSk, ownerSk }) => {
|
|
|
62
62
|
email: 'blocklet@arcblock.io',
|
|
63
63
|
approved: true,
|
|
64
64
|
remark: 'e2e',
|
|
65
|
+
connectedAccount: {
|
|
66
|
+
provider: 'wallet',
|
|
67
|
+
did: owner.address,
|
|
68
|
+
pk: owner.publicKey,
|
|
69
|
+
},
|
|
65
70
|
},
|
|
66
71
|
});
|
|
67
72
|
await node.issuePassportToUser({ teamDid: app.address, userDid: owner.address, role: 'owner', notify: false });
|
|
@@ -18,7 +18,7 @@ const logs = require('./logs');
|
|
|
18
18
|
const status = require('./status');
|
|
19
19
|
const upgrade = require('./upgrade');
|
|
20
20
|
const rescue = require('./rescue');
|
|
21
|
-
const
|
|
21
|
+
const migrate = require('./migrate');
|
|
22
22
|
const { printVersionTip } = require('../../util');
|
|
23
23
|
|
|
24
24
|
module.exports = (parentCommand = '') => {
|
|
@@ -130,10 +130,10 @@ module.exports = (parentCommand = '') => {
|
|
|
130
130
|
.action(parseOptions(cleanup.run));
|
|
131
131
|
|
|
132
132
|
program
|
|
133
|
-
.command('
|
|
133
|
+
.command('migrate')
|
|
134
134
|
.option('--dialect <dialect>', 'Which dialect to migrate, available options: sqlite, postgres')
|
|
135
135
|
.description('Migrate database from sqlite to postgres')
|
|
136
|
-
.action(parseOptions(
|
|
136
|
+
.action(parseOptions(migrate.run));
|
|
137
137
|
|
|
138
138
|
program.command('upgrade').description('Self-Upgrade Blocklet Server').action(parseOptions(upgrade.run));
|
|
139
139
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
const path = require('path');
|
|
2
|
+
const chalk = require('chalk');
|
|
2
3
|
const { sequelizeInstances } = require('@abtnode/models');
|
|
3
4
|
const { runSchemaMigrations } = require('@abtnode/core/lib/migrations');
|
|
4
5
|
const { removePostgresLock } = require('@abtnode/core/lib/util/migration-sqlite-to-postgres');
|
|
@@ -50,6 +51,6 @@ exports.run = async ({ dialect }) => {
|
|
|
50
51
|
}
|
|
51
52
|
|
|
52
53
|
printSuccess(`Migration ${dialect} completed`);
|
|
53
|
-
printInfo(
|
|
54
|
+
printInfo(`Please start server, will use Postgres database: ${chalk.cyan('blocklet server start')}`);
|
|
54
55
|
process.exit(0);
|
|
55
56
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/cli",
|
|
3
|
-
"version": "1.16.49-beta-
|
|
3
|
+
"version": "1.16.49-beta-20250815-032308-7bcf0b85",
|
|
4
4
|
"description": "Command line tools to manage Blocklet Server",
|
|
5
5
|
"homepage": "https://github.com/ArcBlock/blocklet-server#readme",
|
|
6
6
|
"bin": {
|
|
@@ -35,28 +35,28 @@
|
|
|
35
35
|
"url": "https://github.com/ArcBlock/blocklet-server/issues"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@abtnode/blocklet-services": "1.16.49-beta-
|
|
39
|
-
"@abtnode/client": "1.16.49-beta-
|
|
40
|
-
"@abtnode/constant": "1.16.49-beta-
|
|
41
|
-
"@abtnode/core": "1.16.49-beta-
|
|
42
|
-
"@abtnode/db-cache": "1.16.49-beta-
|
|
43
|
-
"@abtnode/logger": "1.16.49-beta-
|
|
44
|
-
"@abtnode/models": "1.16.49-beta-
|
|
45
|
-
"@abtnode/router-provider": "1.16.49-beta-
|
|
46
|
-
"@abtnode/util": "1.16.49-beta-
|
|
47
|
-
"@abtnode/webapp": "1.16.49-beta-
|
|
38
|
+
"@abtnode/blocklet-services": "1.16.49-beta-20250815-032308-7bcf0b85",
|
|
39
|
+
"@abtnode/client": "1.16.49-beta-20250815-032308-7bcf0b85",
|
|
40
|
+
"@abtnode/constant": "1.16.49-beta-20250815-032308-7bcf0b85",
|
|
41
|
+
"@abtnode/core": "1.16.49-beta-20250815-032308-7bcf0b85",
|
|
42
|
+
"@abtnode/db-cache": "1.16.49-beta-20250815-032308-7bcf0b85",
|
|
43
|
+
"@abtnode/logger": "1.16.49-beta-20250815-032308-7bcf0b85",
|
|
44
|
+
"@abtnode/models": "1.16.49-beta-20250815-032308-7bcf0b85",
|
|
45
|
+
"@abtnode/router-provider": "1.16.49-beta-20250815-032308-7bcf0b85",
|
|
46
|
+
"@abtnode/util": "1.16.49-beta-20250815-032308-7bcf0b85",
|
|
47
|
+
"@abtnode/webapp": "1.16.49-beta-20250815-032308-7bcf0b85",
|
|
48
48
|
"@arcblock/did": "1.21.2",
|
|
49
49
|
"@arcblock/event-hub": "1.21.2",
|
|
50
50
|
"@arcblock/ipfs-only-hash": "^0.0.2",
|
|
51
51
|
"@arcblock/jwt": "1.21.2",
|
|
52
52
|
"@arcblock/ws": "1.21.3",
|
|
53
|
-
"@blocklet/constant": "1.16.49-beta-
|
|
53
|
+
"@blocklet/constant": "1.16.49-beta-20250815-032308-7bcf0b85",
|
|
54
54
|
"@blocklet/error": "^0.2.5",
|
|
55
55
|
"@blocklet/form-collector": "^0.1.8",
|
|
56
|
-
"@blocklet/images": "1.16.49-beta-
|
|
57
|
-
"@blocklet/meta": "1.16.49-beta-
|
|
58
|
-
"@blocklet/resolver": "1.16.49-beta-
|
|
59
|
-
"@blocklet/store": "1.16.49-beta-
|
|
56
|
+
"@blocklet/images": "1.16.49-beta-20250815-032308-7bcf0b85",
|
|
57
|
+
"@blocklet/meta": "1.16.49-beta-20250815-032308-7bcf0b85",
|
|
58
|
+
"@blocklet/resolver": "1.16.49-beta-20250815-032308-7bcf0b85",
|
|
59
|
+
"@blocklet/store": "1.16.49-beta-20250815-032308-7bcf0b85",
|
|
60
60
|
"@blocklet/theme-builder": "^0.4.6",
|
|
61
61
|
"@ocap/client": "1.21.2",
|
|
62
62
|
"@ocap/mcrypto": "1.21.2",
|
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
"engines": {
|
|
155
155
|
"node": ">=14"
|
|
156
156
|
},
|
|
157
|
-
"gitHead": "
|
|
157
|
+
"gitHead": "75dd236eb42d14a5093c1364e51625412aa91790",
|
|
158
158
|
"devDependencies": {
|
|
159
159
|
"@types/fs-extra": "^11.0.4",
|
|
160
160
|
"@types/jest": "^29.5.13"
|