@abtnode/core 1.16.8-next-da13616b → 1.16.8-next-3bbab13f
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.
|
@@ -127,7 +127,7 @@ class BlockletDownloader extends EventEmitter {
|
|
|
127
127
|
*/
|
|
128
128
|
async download(blocklet, options = {}) {
|
|
129
129
|
const {
|
|
130
|
-
meta: { name, did },
|
|
130
|
+
meta: { name, title, did },
|
|
131
131
|
} = blocklet;
|
|
132
132
|
|
|
133
133
|
this.logger.info('Download Blocklet', { name, did });
|
|
@@ -169,7 +169,7 @@ class BlockletDownloader extends EventEmitter {
|
|
|
169
169
|
return { isCancelled: true };
|
|
170
170
|
}
|
|
171
171
|
} catch (error) {
|
|
172
|
-
this.logger.error('Download blocklet failed', { did, name, error });
|
|
172
|
+
this.logger.error('Download blocklet failed', { did, name, title, error });
|
|
173
173
|
await this.bundleDownloader.cancelDownload(blocklet.meta.did);
|
|
174
174
|
throw error;
|
|
175
175
|
}
|
|
@@ -56,7 +56,7 @@ class BundleDownloader extends EventEmitter {
|
|
|
56
56
|
* @memberof BlockletManager
|
|
57
57
|
*/
|
|
58
58
|
async download(meta, rootDid, url, context = {}) {
|
|
59
|
-
const { bundleName: name, bundleDid: did, version, dist = {} } = meta;
|
|
59
|
+
const { bundleName: name, bundleDid: did, title, version, dist = {} } = meta;
|
|
60
60
|
const { tarball, integrity } = dist;
|
|
61
61
|
|
|
62
62
|
const lockName = `download-${did}-${version}`;
|
|
@@ -75,20 +75,26 @@ class BundleDownloader extends EventEmitter {
|
|
|
75
75
|
await fs.ensureDir(cwd);
|
|
76
76
|
this.logger.info('start download blocklet', { name, version, cwd, tarball, integrity });
|
|
77
77
|
onProgress({ status: 'downloading' });
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
78
|
+
let tarballPath;
|
|
79
|
+
try {
|
|
80
|
+
tarballPath = await this._downloadTarball({
|
|
81
|
+
name,
|
|
82
|
+
did,
|
|
83
|
+
version,
|
|
84
|
+
cwd,
|
|
85
|
+
tarball,
|
|
86
|
+
integrity,
|
|
87
|
+
verify: true,
|
|
88
|
+
ctrlStore: this.downloadCtrls,
|
|
89
|
+
rootDid,
|
|
90
|
+
url,
|
|
91
|
+
context,
|
|
92
|
+
onProgress,
|
|
93
|
+
});
|
|
94
|
+
} catch (error) {
|
|
95
|
+
this.logger.error('download bundle failed', { did, title, version, url, error });
|
|
96
|
+
throw error;
|
|
97
|
+
}
|
|
92
98
|
this.logger.info('downloaded blocklet tar file', { name, version, tarballPath });
|
|
93
99
|
if (tarballPath === downloadFile.CANCEL) {
|
|
94
100
|
lock.release();
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.8-next-
|
|
6
|
+
"version": "1.16.8-next-3bbab13f",
|
|
7
7
|
"description": "",
|
|
8
8
|
"main": "lib/index.js",
|
|
9
9
|
"files": [
|
|
@@ -19,18 +19,18 @@
|
|
|
19
19
|
"author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
|
|
20
20
|
"license": "Apache-2.0",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@abtnode/auth": "1.16.8-next-
|
|
23
|
-
"@abtnode/certificate-manager": "1.16.8-next-
|
|
24
|
-
"@abtnode/constant": "1.16.8-next-
|
|
25
|
-
"@abtnode/cron": "1.16.8-next-
|
|
26
|
-
"@abtnode/logger": "1.16.8-next-
|
|
27
|
-
"@abtnode/models": "1.16.8-next-
|
|
28
|
-
"@abtnode/queue": "1.16.8-next-
|
|
29
|
-
"@abtnode/rbac": "1.16.8-next-
|
|
30
|
-
"@abtnode/router-provider": "1.16.8-next-
|
|
31
|
-
"@abtnode/static-server": "1.16.8-next-
|
|
32
|
-
"@abtnode/timemachine": "1.16.8-next-
|
|
33
|
-
"@abtnode/util": "1.16.8-next-
|
|
22
|
+
"@abtnode/auth": "1.16.8-next-3bbab13f",
|
|
23
|
+
"@abtnode/certificate-manager": "1.16.8-next-3bbab13f",
|
|
24
|
+
"@abtnode/constant": "1.16.8-next-3bbab13f",
|
|
25
|
+
"@abtnode/cron": "1.16.8-next-3bbab13f",
|
|
26
|
+
"@abtnode/logger": "1.16.8-next-3bbab13f",
|
|
27
|
+
"@abtnode/models": "1.16.8-next-3bbab13f",
|
|
28
|
+
"@abtnode/queue": "1.16.8-next-3bbab13f",
|
|
29
|
+
"@abtnode/rbac": "1.16.8-next-3bbab13f",
|
|
30
|
+
"@abtnode/router-provider": "1.16.8-next-3bbab13f",
|
|
31
|
+
"@abtnode/static-server": "1.16.8-next-3bbab13f",
|
|
32
|
+
"@abtnode/timemachine": "1.16.8-next-3bbab13f",
|
|
33
|
+
"@abtnode/util": "1.16.8-next-3bbab13f",
|
|
34
34
|
"@arcblock/did": "1.18.80",
|
|
35
35
|
"@arcblock/did-auth": "1.18.80",
|
|
36
36
|
"@arcblock/did-ext": "^1.18.80",
|
|
@@ -41,9 +41,9 @@
|
|
|
41
41
|
"@arcblock/pm2-events": "^0.0.5",
|
|
42
42
|
"@arcblock/validator": "^1.18.80",
|
|
43
43
|
"@arcblock/vc": "1.18.80",
|
|
44
|
-
"@blocklet/constant": "1.16.8-next-
|
|
45
|
-
"@blocklet/meta": "1.16.8-next-
|
|
46
|
-
"@blocklet/sdk": "1.16.8-next-
|
|
44
|
+
"@blocklet/constant": "1.16.8-next-3bbab13f",
|
|
45
|
+
"@blocklet/meta": "1.16.8-next-3bbab13f",
|
|
46
|
+
"@blocklet/sdk": "1.16.8-next-3bbab13f",
|
|
47
47
|
"@did-space/client": "^0.2.91",
|
|
48
48
|
"@fidm/x509": "^1.2.1",
|
|
49
49
|
"@ocap/mcrypto": "1.18.80",
|
|
@@ -96,5 +96,5 @@
|
|
|
96
96
|
"express": "^4.18.2",
|
|
97
97
|
"jest": "^27.5.1"
|
|
98
98
|
},
|
|
99
|
-
"gitHead": "
|
|
99
|
+
"gitHead": "602f3a260894cb85b86f3e2e03e138f3ba2f6719"
|
|
100
100
|
}
|