@abtnode/core 1.7.6 → 1.7.7

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.
@@ -15,7 +15,7 @@ const { isValid: isValidDid } = require('@arcblock/did');
15
15
  const { verifyPresentation } = require('@arcblock/vc');
16
16
  const { toBase58, isHex } = require('@ocap/util');
17
17
  const { fromSecretKey } = require('@ocap/wallet');
18
- const { toPng: createDidLogo } =
18
+ const { toSvg: createDidLogo } =
19
19
  process.env.NODE_ENV !== 'test' ? require('@arcblock/did-motif') : require('@arcblock/did-motif/dist/did-motif.cjs');
20
20
 
21
21
  const logger = require('@abtnode/logger')('@abtnode/core:blocklet:manager');
@@ -985,6 +985,8 @@ class BlockletManager extends BaseBlockletManager {
985
985
 
986
986
  const blocklet = await this.ensureBlocklet(did);
987
987
 
988
+ await fs.writeFile(path.join(blocklet.env.dataDir, 'logo.svg'), createDidLogo(blocklet.meta.did));
989
+
988
990
  return blocklet;
989
991
  }
990
992
 
@@ -2216,7 +2218,7 @@ class BlockletManager extends BaseBlockletManager {
2216
2218
  blocklet = await this.ensureBlocklet(did);
2217
2219
  logger.info('blocklet installed', { source, did: meta.did });
2218
2220
 
2219
- await fs.writeFile(path.join(blocklet.env.dataDir, 'logo.png'), createDidLogo(blocklet.meta.did));
2221
+ await fs.writeFile(path.join(blocklet.env.dataDir, 'logo.svg'), createDidLogo(blocklet.meta.did));
2220
2222
 
2221
2223
  this.emit(BlockletEvents.installed, { blocklet, context });
2222
2224
 
@@ -2344,7 +2346,7 @@ class BlockletManager extends BaseBlockletManager {
2344
2346
 
2345
2347
  blocklet = await this.ensureBlocklet(did, context);
2346
2348
 
2347
- await fs.writeFile(path.join(blocklet.env.dataDir, 'logo.png'), createDidLogo(blocklet.meta.did));
2349
+ await fs.writeFile(path.join(blocklet.env.dataDir, 'logo.svg'), createDidLogo(blocklet.meta.did));
2348
2350
 
2349
2351
  this.refreshListCache();
2350
2352
 
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.7.6",
6
+ "version": "1.7.7",
7
7
  "description": "",
8
8
  "main": "lib/index.js",
9
9
  "files": [
@@ -19,23 +19,23 @@
19
19
  "author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
20
20
  "license": "MIT",
21
21
  "dependencies": {
22
- "@abtnode/certificate-manager": "1.7.6",
23
- "@abtnode/constant": "1.7.6",
24
- "@abtnode/cron": "1.7.6",
25
- "@abtnode/db": "1.7.6",
26
- "@abtnode/logger": "1.7.6",
27
- "@abtnode/queue": "1.7.6",
28
- "@abtnode/rbac": "1.7.6",
29
- "@abtnode/router-provider": "1.7.6",
30
- "@abtnode/static-server": "1.7.6",
31
- "@abtnode/timemachine": "1.7.6",
32
- "@abtnode/util": "1.7.6",
22
+ "@abtnode/certificate-manager": "1.7.7",
23
+ "@abtnode/constant": "1.7.7",
24
+ "@abtnode/cron": "1.7.7",
25
+ "@abtnode/db": "1.7.7",
26
+ "@abtnode/logger": "1.7.7",
27
+ "@abtnode/queue": "1.7.7",
28
+ "@abtnode/rbac": "1.7.7",
29
+ "@abtnode/router-provider": "1.7.7",
30
+ "@abtnode/static-server": "1.7.7",
31
+ "@abtnode/timemachine": "1.7.7",
32
+ "@abtnode/util": "1.7.7",
33
33
  "@arcblock/did": "^1.16.0",
34
- "@arcblock/did-motif": "^1.1.3",
34
+ "@arcblock/did-motif": "^1.1.4",
35
35
  "@arcblock/event-hub": "1.16.0",
36
36
  "@arcblock/pm2-events": "^0.0.5",
37
37
  "@arcblock/vc": "^1.16.0",
38
- "@blocklet/meta": "1.7.6",
38
+ "@blocklet/meta": "1.7.7",
39
39
  "@fidm/x509": "^1.2.1",
40
40
  "@nedb/core": "^1.2.2",
41
41
  "@nedb/multi": "^1.2.2",
@@ -78,5 +78,5 @@
78
78
  "express": "^4.17.1",
79
79
  "jest": "^27.4.5"
80
80
  },
81
- "gitHead": "47a9dbd6ea74419ff586336824ebb9b2fe7694aa"
81
+ "gitHead": "619db37ea7a91c64a9bf30836a55c70d55325e73"
82
82
  }