@blocklet/cli 1.16.41 → 1.16.42-beta-20250403-230303-c167c6a1
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.
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ const chalk = require('chalk');
|
|
|
5
5
|
const uniq = require('lodash/uniq');
|
|
6
6
|
const pick = require('lodash/pick');
|
|
7
7
|
const merge = require('lodash/merge');
|
|
8
|
-
const cloneDeep = require('
|
|
8
|
+
const cloneDeep = require('@abtnode/util/lib/deep-clone');
|
|
9
9
|
const fs = require('fs-extra');
|
|
10
10
|
const fg = require('fast-glob');
|
|
11
11
|
const isGlob = require('is-glob');
|
|
@@ -92,7 +92,12 @@ module.exports = (parentCommand = '') => {
|
|
|
92
92
|
.description('Init Blocklet Server config')
|
|
93
93
|
.action(parseOptions(init.run));
|
|
94
94
|
|
|
95
|
-
program
|
|
95
|
+
program
|
|
96
|
+
.command('status')
|
|
97
|
+
.description('Show Blocklet Server and blocklet status')
|
|
98
|
+
.option('--force-intranet', 'Force blocklet server to run in intranet, ignore any external IP.', forceIntranet)
|
|
99
|
+
.action(parseOptions(status.run));
|
|
100
|
+
|
|
96
101
|
program.command('logs').description('Show Blocklet Server and blocklet log files').action(parseOptions(logs.run));
|
|
97
102
|
|
|
98
103
|
program
|
|
@@ -34,7 +34,7 @@ const colorMap = {
|
|
|
34
34
|
stopped: 'gray',
|
|
35
35
|
};
|
|
36
36
|
|
|
37
|
-
exports.run = async () => {
|
|
37
|
+
exports.run = async ({ forceIntranet = false }) => {
|
|
38
38
|
const { node, getBaseUrls } = await getNode({ dir: process.cwd() });
|
|
39
39
|
|
|
40
40
|
try {
|
|
@@ -85,7 +85,7 @@ exports.run = async () => {
|
|
|
85
85
|
|
|
86
86
|
if (status === 'running') {
|
|
87
87
|
print();
|
|
88
|
-
const accessUrls = await getDaemonAccessUrls({ info: nodeInfo, getBaseUrls });
|
|
88
|
+
const accessUrls = await getDaemonAccessUrls({ info: nodeInfo, getBaseUrls, forceIntranet });
|
|
89
89
|
|
|
90
90
|
if (!isEmpty(accessUrls)) {
|
|
91
91
|
printSuccess('You can access your blocklet server with either of the following URLs:');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable no-await-in-loop */
|
|
2
2
|
const { joinURL } = require('ufo');
|
|
3
|
-
const cloneDeep = require('
|
|
3
|
+
const cloneDeep = require('@abtnode/util/lib/deep-clone');
|
|
4
4
|
const get = require('lodash/get');
|
|
5
5
|
const Client = require('@ocap/client');
|
|
6
6
|
const axios = require('@abtnode/util/lib/axios');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/cli",
|
|
3
|
-
"version": "1.16.
|
|
3
|
+
"version": "1.16.42-beta-20250403-230303-c167c6a1",
|
|
4
4
|
"description": "Command line tools to manage Blocklet Server",
|
|
5
5
|
"homepage": "https://github.com/ArcBlock/blocklet-server#readme",
|
|
6
6
|
"bin": {
|
|
@@ -35,26 +35,26 @@
|
|
|
35
35
|
"url": "https://github.com/ArcBlock/blocklet-server/issues"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@abtnode/blocklet-services": "1.16.
|
|
39
|
-
"@abtnode/client": "1.16.
|
|
40
|
-
"@abtnode/constant": "1.16.
|
|
41
|
-
"@abtnode/core": "1.16.
|
|
42
|
-
"@abtnode/logger": "1.16.
|
|
43
|
-
"@abtnode/router-provider": "1.16.
|
|
44
|
-
"@abtnode/util": "1.16.
|
|
45
|
-
"@abtnode/webapp": "1.16.
|
|
38
|
+
"@abtnode/blocklet-services": "1.16.42-beta-20250403-230303-c167c6a1",
|
|
39
|
+
"@abtnode/client": "1.16.42-beta-20250403-230303-c167c6a1",
|
|
40
|
+
"@abtnode/constant": "1.16.42-beta-20250403-230303-c167c6a1",
|
|
41
|
+
"@abtnode/core": "1.16.42-beta-20250403-230303-c167c6a1",
|
|
42
|
+
"@abtnode/logger": "1.16.42-beta-20250403-230303-c167c6a1",
|
|
43
|
+
"@abtnode/router-provider": "1.16.42-beta-20250403-230303-c167c6a1",
|
|
44
|
+
"@abtnode/util": "1.16.42-beta-20250403-230303-c167c6a1",
|
|
45
|
+
"@abtnode/webapp": "1.16.42-beta-20250403-230303-c167c6a1",
|
|
46
46
|
"@arcblock/did": "1.19.15",
|
|
47
47
|
"@arcblock/event-hub": "1.19.15",
|
|
48
48
|
"@arcblock/ipfs-only-hash": "^0.0.2",
|
|
49
49
|
"@arcblock/jwt": "1.19.15",
|
|
50
50
|
"@arcblock/ws": "1.19.15",
|
|
51
|
-
"@blocklet/constant": "1.16.
|
|
51
|
+
"@blocklet/constant": "1.16.42-beta-20250403-230303-c167c6a1",
|
|
52
52
|
"@blocklet/form-collector": "^0.1.8",
|
|
53
|
-
"@blocklet/images": "1.16.
|
|
54
|
-
"@blocklet/meta": "1.16.
|
|
55
|
-
"@blocklet/resolver": "1.16.
|
|
56
|
-
"@blocklet/store": "1.16.
|
|
57
|
-
"@blocklet/theme-builder": "^0.1.
|
|
53
|
+
"@blocklet/images": "1.16.42-beta-20250403-230303-c167c6a1",
|
|
54
|
+
"@blocklet/meta": "1.16.42-beta-20250403-230303-c167c6a1",
|
|
55
|
+
"@blocklet/resolver": "1.16.42-beta-20250403-230303-c167c6a1",
|
|
56
|
+
"@blocklet/store": "1.16.42-beta-20250403-230303-c167c6a1",
|
|
57
|
+
"@blocklet/theme-builder": "^0.1.8",
|
|
58
58
|
"@ocap/client": "1.19.15",
|
|
59
59
|
"@ocap/mcrypto": "1.19.15",
|
|
60
60
|
"@ocap/util": "1.19.15",
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
"engines": {
|
|
153
153
|
"node": ">=14"
|
|
154
154
|
},
|
|
155
|
-
"gitHead": "
|
|
155
|
+
"gitHead": "34d6d981bb270af1d0ca59704715bfa82949a9fe",
|
|
156
156
|
"devDependencies": {
|
|
157
157
|
"@types/fs-extra": "^11.0.4",
|
|
158
158
|
"@types/jest": "^29.5.13"
|