@abtnode/core 1.16.8-next-da13616b → 1.16.8-next-ee2c4046

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
- const tarballPath = await this._downloadTarball({
79
- name,
80
- did,
81
- version,
82
- cwd,
83
- tarball,
84
- integrity,
85
- verify: true,
86
- ctrlStore: this.downloadCtrls,
87
- rootDid,
88
- url,
89
- context,
90
- onProgress,
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-da13616b",
6
+ "version": "1.16.8-next-ee2c4046",
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-da13616b",
23
- "@abtnode/certificate-manager": "1.16.8-next-da13616b",
24
- "@abtnode/constant": "1.16.8-next-da13616b",
25
- "@abtnode/cron": "1.16.8-next-da13616b",
26
- "@abtnode/logger": "1.16.8-next-da13616b",
27
- "@abtnode/models": "1.16.8-next-da13616b",
28
- "@abtnode/queue": "1.16.8-next-da13616b",
29
- "@abtnode/rbac": "1.16.8-next-da13616b",
30
- "@abtnode/router-provider": "1.16.8-next-da13616b",
31
- "@abtnode/static-server": "1.16.8-next-da13616b",
32
- "@abtnode/timemachine": "1.16.8-next-da13616b",
33
- "@abtnode/util": "1.16.8-next-da13616b",
22
+ "@abtnode/auth": "1.16.8-next-ee2c4046",
23
+ "@abtnode/certificate-manager": "1.16.8-next-ee2c4046",
24
+ "@abtnode/constant": "1.16.8-next-ee2c4046",
25
+ "@abtnode/cron": "1.16.8-next-ee2c4046",
26
+ "@abtnode/logger": "1.16.8-next-ee2c4046",
27
+ "@abtnode/models": "1.16.8-next-ee2c4046",
28
+ "@abtnode/queue": "1.16.8-next-ee2c4046",
29
+ "@abtnode/rbac": "1.16.8-next-ee2c4046",
30
+ "@abtnode/router-provider": "1.16.8-next-ee2c4046",
31
+ "@abtnode/static-server": "1.16.8-next-ee2c4046",
32
+ "@abtnode/timemachine": "1.16.8-next-ee2c4046",
33
+ "@abtnode/util": "1.16.8-next-ee2c4046",
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-da13616b",
45
- "@blocklet/meta": "1.16.8-next-da13616b",
46
- "@blocklet/sdk": "1.16.8-next-da13616b",
44
+ "@blocklet/constant": "1.16.8-next-ee2c4046",
45
+ "@blocklet/meta": "1.16.8-next-ee2c4046",
46
+ "@blocklet/sdk": "1.16.8-next-ee2c4046",
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": "da59f038cde0760408501257e8af07358473e892"
99
+ "gitHead": "5912296fd1da5d742b4ebdf3095c045040284377"
100
100
  }