@abtnode/core 1.16.28-beta-23b06b63 → 1.16.28-beta-bfbab430
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.
|
@@ -7,7 +7,7 @@ const fs = require('fs-extra');
|
|
|
7
7
|
const createArchive = require('archiver');
|
|
8
8
|
const pick = require('lodash/pick');
|
|
9
9
|
const { slugify } = require('transliteration');
|
|
10
|
-
const { BLOCKLET_META_FILE, PROJECT } = require('@blocklet/constant');
|
|
10
|
+
const { BLOCKLET_META_FILE, PROJECT, BLOCKLET_INTERFACE_TYPE_WEB } = require('@blocklet/constant');
|
|
11
11
|
const { update: updateMetaFile, read: readMetaFile } = require('@blocklet/meta/lib/file');
|
|
12
12
|
const { createRelease: createBlockletRelease } = require('@abtnode/util/lib/create-blocklet-release');
|
|
13
13
|
const urlPathFriendly = require('@blocklet/meta/lib/url-path-friendly').default;
|
|
@@ -231,6 +231,21 @@ const createPackRelease = async ({
|
|
|
231
231
|
Object.assign(meta, pick(extendedMeta, ['environments', 'engine']));
|
|
232
232
|
}
|
|
233
233
|
|
|
234
|
+
// Reset group for blocklets with engine specified
|
|
235
|
+
if (meta.engine?.interpreter === 'blocklet') {
|
|
236
|
+
delete meta.group;
|
|
237
|
+
meta.interfaces = [
|
|
238
|
+
{
|
|
239
|
+
name: 'publicUrl',
|
|
240
|
+
path: '/',
|
|
241
|
+
port: 'BLOCKLET_PORT',
|
|
242
|
+
prefix: '*',
|
|
243
|
+
protocol: 'tcp',
|
|
244
|
+
type: BLOCKLET_INTERFACE_TYPE_WEB,
|
|
245
|
+
},
|
|
246
|
+
];
|
|
247
|
+
}
|
|
248
|
+
|
|
234
249
|
await updateMetaFile(path.join(releaseBundleDir, BLOCKLET_META_FILE), meta);
|
|
235
250
|
|
|
236
251
|
// create release
|
|
@@ -3,7 +3,7 @@ const fs = require('fs-extra');
|
|
|
3
3
|
const createArchive = require('archiver');
|
|
4
4
|
const pick = require('lodash/pick');
|
|
5
5
|
const { slugify } = require('transliteration');
|
|
6
|
-
const { BLOCKLET_META_FILE, PROJECT } = require('@blocklet/constant');
|
|
6
|
+
const { BLOCKLET_META_FILE, PROJECT, BLOCKLET_INTERFACE_TYPE_WEB } = require('@blocklet/constant');
|
|
7
7
|
const { update: updateMetaFile, read: readMetaFile } = require('@blocklet/meta/lib/file');
|
|
8
8
|
const { createRelease: createBlockletRelease } = require('@abtnode/util/lib/create-blocklet-release');
|
|
9
9
|
const { titleSchema } = require('@blocklet/meta/lib/schema');
|
|
@@ -381,7 +381,7 @@ const createRelease = async ({
|
|
|
381
381
|
port: 'BLOCKLET_PORT',
|
|
382
382
|
prefix: '*',
|
|
383
383
|
protocol: 'tcp',
|
|
384
|
-
type:
|
|
384
|
+
type: BLOCKLET_INTERFACE_TYPE_WEB,
|
|
385
385
|
},
|
|
386
386
|
];
|
|
387
387
|
}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.28-beta-
|
|
6
|
+
"version": "1.16.28-beta-bfbab430",
|
|
7
7
|
"description": "",
|
|
8
8
|
"main": "lib/index.js",
|
|
9
9
|
"files": [
|
|
@@ -19,19 +19,19 @@
|
|
|
19
19
|
"author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
|
|
20
20
|
"license": "Apache-2.0",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@abtnode/analytics": "1.16.28-beta-
|
|
23
|
-
"@abtnode/auth": "1.16.28-beta-
|
|
24
|
-
"@abtnode/certificate-manager": "1.16.28-beta-
|
|
25
|
-
"@abtnode/constant": "1.16.28-beta-
|
|
26
|
-
"@abtnode/cron": "1.16.28-beta-
|
|
27
|
-
"@abtnode/logger": "1.16.28-beta-
|
|
28
|
-
"@abtnode/models": "1.16.28-beta-
|
|
29
|
-
"@abtnode/queue": "1.16.28-beta-
|
|
30
|
-
"@abtnode/rbac": "1.16.28-beta-
|
|
31
|
-
"@abtnode/router-provider": "1.16.28-beta-
|
|
32
|
-
"@abtnode/static-server": "1.16.28-beta-
|
|
33
|
-
"@abtnode/timemachine": "1.16.28-beta-
|
|
34
|
-
"@abtnode/util": "1.16.28-beta-
|
|
22
|
+
"@abtnode/analytics": "1.16.28-beta-bfbab430",
|
|
23
|
+
"@abtnode/auth": "1.16.28-beta-bfbab430",
|
|
24
|
+
"@abtnode/certificate-manager": "1.16.28-beta-bfbab430",
|
|
25
|
+
"@abtnode/constant": "1.16.28-beta-bfbab430",
|
|
26
|
+
"@abtnode/cron": "1.16.28-beta-bfbab430",
|
|
27
|
+
"@abtnode/logger": "1.16.28-beta-bfbab430",
|
|
28
|
+
"@abtnode/models": "1.16.28-beta-bfbab430",
|
|
29
|
+
"@abtnode/queue": "1.16.28-beta-bfbab430",
|
|
30
|
+
"@abtnode/rbac": "1.16.28-beta-bfbab430",
|
|
31
|
+
"@abtnode/router-provider": "1.16.28-beta-bfbab430",
|
|
32
|
+
"@abtnode/static-server": "1.16.28-beta-bfbab430",
|
|
33
|
+
"@abtnode/timemachine": "1.16.28-beta-bfbab430",
|
|
34
|
+
"@abtnode/util": "1.16.28-beta-bfbab430",
|
|
35
35
|
"@arcblock/did": "1.18.123",
|
|
36
36
|
"@arcblock/did-auth": "1.18.123",
|
|
37
37
|
"@arcblock/did-ext": "^1.18.123",
|
|
@@ -42,12 +42,12 @@
|
|
|
42
42
|
"@arcblock/pm2-events": "^0.0.5",
|
|
43
43
|
"@arcblock/validator": "^1.18.123",
|
|
44
44
|
"@arcblock/vc": "1.18.123",
|
|
45
|
-
"@blocklet/constant": "1.16.28-beta-
|
|
46
|
-
"@blocklet/env": "1.16.28-beta-
|
|
47
|
-
"@blocklet/meta": "1.16.28-beta-
|
|
48
|
-
"@blocklet/resolver": "1.16.28-beta-
|
|
49
|
-
"@blocklet/sdk": "1.16.28-beta-
|
|
50
|
-
"@blocklet/store": "1.16.28-beta-
|
|
45
|
+
"@blocklet/constant": "1.16.28-beta-bfbab430",
|
|
46
|
+
"@blocklet/env": "1.16.28-beta-bfbab430",
|
|
47
|
+
"@blocklet/meta": "1.16.28-beta-bfbab430",
|
|
48
|
+
"@blocklet/resolver": "1.16.28-beta-bfbab430",
|
|
49
|
+
"@blocklet/sdk": "1.16.28-beta-bfbab430",
|
|
50
|
+
"@blocklet/store": "1.16.28-beta-bfbab430",
|
|
51
51
|
"@did-space/client": "^0.4.20",
|
|
52
52
|
"@fidm/x509": "^1.2.1",
|
|
53
53
|
"@ocap/mcrypto": "1.18.123",
|
|
@@ -103,5 +103,5 @@
|
|
|
103
103
|
"jest": "^29.7.0",
|
|
104
104
|
"unzipper": "^0.10.11"
|
|
105
105
|
},
|
|
106
|
-
"gitHead": "
|
|
106
|
+
"gitHead": "f1fbf0752de46be00d1faa0d54eb7d28016e0bb9"
|
|
107
107
|
}
|