@blocklet/cli 1.16.47-beta-20250715-034905-11207b15 → 1.16.47-beta-20250718-075003-940d2e2a
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.
|
@@ -16,7 +16,7 @@ const { hasMountPoint } = require('@blocklet/meta/lib/engine');
|
|
|
16
16
|
const { BLOCKLET_BUNDLE_FOLDER } = require('@blocklet/constant');
|
|
17
17
|
const hasReservedKey = require('@blocklet/meta/lib/has-reserved-key');
|
|
18
18
|
const urlPathFriendly = require('@blocklet/meta/lib/url-path-friendly').default;
|
|
19
|
-
const { ROLES, WELLKNOWN_SERVICE_PATH_PREFIX } = require('@abtnode/constant');
|
|
19
|
+
const { ROLES, WELLKNOWN_SERVICE_PATH_PREFIX, SERVER_ROLES } = require('@abtnode/constant');
|
|
20
20
|
const ensureServerEndpoint = require('@abtnode/util/lib/ensure-server-endpoint');
|
|
21
21
|
const makeFormData = require('@abtnode/util/lib/make-from-data');
|
|
22
22
|
|
|
@@ -314,8 +314,8 @@ const deployToLocal = async (dir, opts) => {
|
|
|
314
314
|
const endpoint = `http://127.0.0.1:${nodeInfo.port}`;
|
|
315
315
|
|
|
316
316
|
const { accessKeyId, accessKeySecret } = await node.createAccessKey(
|
|
317
|
-
{ teamDid: nodeInfo.did, remark: '
|
|
318
|
-
{ user: { fullName: '
|
|
317
|
+
{ teamDid: nodeInfo.did, remark: '@blocklet/cli', passport: ROLES.ADMIN },
|
|
318
|
+
{ user: { fullName: '@blocklet/cli' } }
|
|
319
319
|
);
|
|
320
320
|
|
|
321
321
|
try {
|
|
@@ -325,11 +325,17 @@ const deployToLocal = async (dir, opts) => {
|
|
|
325
325
|
accessSecret: accessKeySecret,
|
|
326
326
|
...opts,
|
|
327
327
|
});
|
|
328
|
-
await node.deleteAccessKey(
|
|
328
|
+
await node.deleteAccessKey(
|
|
329
|
+
{ teamDid: nodeInfo.did, accessKeyId },
|
|
330
|
+
{ user: { fullName: '@blocklet/cli', role: SERVER_ROLES.BLOCKLET_SDK } }
|
|
331
|
+
);
|
|
329
332
|
process.exit(0);
|
|
330
333
|
} catch (err) {
|
|
331
334
|
printError(err.message);
|
|
332
|
-
await node.deleteAccessKey(
|
|
335
|
+
await node.deleteAccessKey(
|
|
336
|
+
{ teamDid: nodeInfo.did, accessKeyId },
|
|
337
|
+
{ user: { fullName: '@blocklet/cli', role: SERVER_ROLES.BLOCKLET_SDK } }
|
|
338
|
+
);
|
|
333
339
|
process.exit(1);
|
|
334
340
|
}
|
|
335
341
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/cli",
|
|
3
|
-
"version": "1.16.47-beta-
|
|
3
|
+
"version": "1.16.47-beta-20250718-075003-940d2e2a",
|
|
4
4
|
"description": "Command line tools to manage Blocklet Server",
|
|
5
5
|
"homepage": "https://github.com/ArcBlock/blocklet-server#readme",
|
|
6
6
|
"bin": {
|
|
@@ -35,29 +35,29 @@
|
|
|
35
35
|
"url": "https://github.com/ArcBlock/blocklet-server/issues"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@abtnode/blocklet-services": "1.16.47-beta-
|
|
39
|
-
"@abtnode/client": "1.16.47-beta-
|
|
40
|
-
"@abtnode/constant": "1.16.47-beta-
|
|
41
|
-
"@abtnode/core": "1.16.47-beta-
|
|
42
|
-
"@abtnode/db-cache": "1.16.47-beta-
|
|
43
|
-
"@abtnode/logger": "1.16.47-beta-
|
|
44
|
-
"@abtnode/models": "1.16.47-beta-
|
|
45
|
-
"@abtnode/router-provider": "1.16.47-beta-
|
|
46
|
-
"@abtnode/util": "1.16.47-beta-
|
|
47
|
-
"@abtnode/webapp": "1.16.47-beta-
|
|
38
|
+
"@abtnode/blocklet-services": "1.16.47-beta-20250718-075003-940d2e2a",
|
|
39
|
+
"@abtnode/client": "1.16.47-beta-20250718-075003-940d2e2a",
|
|
40
|
+
"@abtnode/constant": "1.16.47-beta-20250718-075003-940d2e2a",
|
|
41
|
+
"@abtnode/core": "1.16.47-beta-20250718-075003-940d2e2a",
|
|
42
|
+
"@abtnode/db-cache": "1.16.47-beta-20250718-075003-940d2e2a",
|
|
43
|
+
"@abtnode/logger": "1.16.47-beta-20250718-075003-940d2e2a",
|
|
44
|
+
"@abtnode/models": "1.16.47-beta-20250718-075003-940d2e2a",
|
|
45
|
+
"@abtnode/router-provider": "1.16.47-beta-20250718-075003-940d2e2a",
|
|
46
|
+
"@abtnode/util": "1.16.47-beta-20250718-075003-940d2e2a",
|
|
47
|
+
"@abtnode/webapp": "1.16.47-beta-20250718-075003-940d2e2a",
|
|
48
48
|
"@arcblock/did": "1.20.16",
|
|
49
49
|
"@arcblock/event-hub": "1.20.16",
|
|
50
50
|
"@arcblock/ipfs-only-hash": "^0.0.2",
|
|
51
51
|
"@arcblock/jwt": "1.20.16",
|
|
52
52
|
"@arcblock/ws": "1.20.16",
|
|
53
|
-
"@blocklet/constant": "1.16.47-beta-
|
|
53
|
+
"@blocklet/constant": "1.16.47-beta-20250718-075003-940d2e2a",
|
|
54
54
|
"@blocklet/error": "^0.2.5",
|
|
55
55
|
"@blocklet/form-collector": "^0.1.8",
|
|
56
|
-
"@blocklet/images": "1.16.47-beta-
|
|
57
|
-
"@blocklet/meta": "1.16.47-beta-
|
|
58
|
-
"@blocklet/resolver": "1.16.47-beta-
|
|
59
|
-
"@blocklet/store": "1.16.47-beta-
|
|
60
|
-
"@blocklet/theme-builder": "^0.
|
|
56
|
+
"@blocklet/images": "1.16.47-beta-20250718-075003-940d2e2a",
|
|
57
|
+
"@blocklet/meta": "1.16.47-beta-20250718-075003-940d2e2a",
|
|
58
|
+
"@blocklet/resolver": "1.16.47-beta-20250718-075003-940d2e2a",
|
|
59
|
+
"@blocklet/store": "1.16.47-beta-20250718-075003-940d2e2a",
|
|
60
|
+
"@blocklet/theme-builder": "^0.4.2",
|
|
61
61
|
"@ocap/client": "1.20.16",
|
|
62
62
|
"@ocap/mcrypto": "1.20.16",
|
|
63
63
|
"@ocap/util": "1.20.16",
|
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
"engines": {
|
|
155
155
|
"node": ">=14"
|
|
156
156
|
},
|
|
157
|
-
"gitHead": "
|
|
157
|
+
"gitHead": "740ffa603c1de73ccf1bd4d0be497c9a9c7ce936",
|
|
158
158
|
"devDependencies": {
|
|
159
159
|
"@types/fs-extra": "^11.0.4",
|
|
160
160
|
"@types/jest": "^29.5.13"
|