create-blocklet 0.8.1 → 0.8.3

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/lib/did.js CHANGED
@@ -20,20 +20,19 @@ export function toDidIcon(did, size = 200, isPng = false) {
20
20
 
21
21
  export async function getBlockletDidList(monikerList = [], connectUrl = '') {
22
22
  try {
23
- let command = `${BLOCKLET_COMMAND} init`;
23
+ const commandArgs = ['init'];
24
24
  if (monikerList.length > 0) {
25
- command += ` --monikers=${monikerList.join(',')}`;
25
+ commandArgs.push(`--monikers=${monikerList.join(',')}`);
26
26
  } else {
27
27
  return [];
28
28
  }
29
29
 
30
30
  if (connectUrl) {
31
- // eslint-disable-next-line no-unused-vars
32
- command += ` --connectUrl=${connectUrl}`;
31
+ commandArgs.push(`--connectUrl=${connectUrl}`);
33
32
  }
34
33
  const runCommand = new Promise((resolve, reject) => {
35
34
  let lastMessage = '';
36
- const childProcess = spawn('blocklet', ['init', '--monikers=react-dapp']);
35
+ const childProcess = spawn(BLOCKLET_COMMAND, commandArgs);
37
36
  const spinner = ora().start();
38
37
  childProcess.stdout.on('data', (data) => {
39
38
  const message = data.toString('utf8') || '';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-blocklet",
3
- "version": "0.8.1",
3
+ "version": "0.8.3",
4
4
  "exports": "./index.js",
5
5
  "type": "module",
6
6
  "repository": "git@github.com:blocklet/create-blocklet.git",
@@ -29,9 +29,9 @@
29
29
  "test:run": "vitest run"
30
30
  },
31
31
  "dependencies": {
32
- "@arcblock/did": "^1.18.124",
33
- "@ocap/mcrypto": "^1.18.124",
34
- "@ocap/util": "^1.18.124",
32
+ "@arcblock/did": "^1.18.126",
33
+ "@ocap/mcrypto": "^1.18.126",
34
+ "@ocap/util": "^1.18.126",
35
35
  "boxen": "^7.1.1",
36
36
  "ejs": "^3.1.10",
37
37
  "envfile": "^7.1.0",
@@ -32,7 +32,7 @@
32
32
  "dependencies": {
33
33
  "@arcblock/did-auth-storage-nedb": "^1.7.1",
34
34
  "@blocklet/sdk": "^1.16.28",
35
- "@ocap/client": "^1.18.124",
35
+ "@ocap/client": "^1.18.126",
36
36
  "dotenv-flow": "^4.1.0",
37
37
  "express": "^4.19.2"
38
38
  },
@@ -36,7 +36,7 @@
36
36
  "@nestjs/common": "^10.3.9",
37
37
  "@nestjs/core": "^10.3.9",
38
38
  "@nestjs/platform-express": "^10.3.9",
39
- "@ocap/client": "^1.18.124",
39
+ "@ocap/client": "^1.18.126",
40
40
  "dotenv-flow": "^4.1.0",
41
41
  "express": "^4.19.2",
42
42
  "reflect-metadata": "^0.2.2",
@@ -28,12 +28,12 @@
28
28
  ]
29
29
  },
30
30
  "dependencies": {
31
- "@arcblock/did-auth": "^1.18.124",
31
+ "@arcblock/did-auth": "^1.18.126",
32
32
  "@arcblock/did-auth-storage-nedb": "^1.7.1",
33
33
  "@blocklet/sdk": "^1.16.28",
34
- "@ocap/client": "^1.18.124",
35
- "@ocap/mcrypto": "^1.18.124",
36
- "@ocap/wallet": "^1.18.124",
34
+ "@ocap/client": "^1.18.126",
35
+ "@ocap/mcrypto": "^1.18.126",
36
+ "@ocap/wallet": "^1.18.126",
37
37
  "dotenv-flow": "^4.1.0",
38
38
  "express": "^4.19.2",
39
39
  "next": "14.2.4",
@@ -39,12 +39,12 @@
39
39
  ]
40
40
  },
41
41
  "dependencies": {
42
- "@arcblock/did-auth": "^1.18.124",
42
+ "@arcblock/did-auth": "^1.18.126",
43
43
  "@arcblock/did-auth-storage-nedb": "^1.7.1",
44
44
  "@blocklet/sdk": "^1.16.28",
45
- "@ocap/client": "^1.18.124",
46
- "@ocap/mcrypto": "^1.18.124",
47
- "@ocap/wallet": "^1.18.124",
45
+ "@ocap/client": "^1.18.126",
46
+ "@ocap/mcrypto": "^1.18.126",
47
+ "@ocap/wallet": "^1.18.126",
48
48
  "axios": "^1.7.2",
49
49
  "cookie-parser": "^1.4.6",
50
50
  "cors": "^2.8.5",
@@ -63,13 +63,13 @@
63
63
  "nodemon": "^3.1.4",
64
64
  "npm-run-all": "^4.1.5",
65
65
  "prettier": "^3.3.2",
66
- "rimraf": "^5.0.7",
67
66
  "react": "^18.2.0",
68
67
  "react-dom": "^18.2.0",
69
68
  "react-router-dom": "^6.24.0",
69
+ "rimraf": "^5.0.7",
70
70
  "simple-git-hooks": "^2.11.1",
71
71
  "vite": "^5.3.2",
72
- "vite-plugin-blocklet": "^0.8.1",
72
+ "vite-plugin-blocklet": "^0.8.3",
73
73
  "vite-plugin-svgr": "^4.2.0",
74
74
  "zx": "^8.1.3"
75
75
  },
@@ -37,12 +37,12 @@
37
37
  ]
38
38
  },
39
39
  "dependencies": {
40
- "@arcblock/did-auth": "^1.18.124",
40
+ "@arcblock/did-auth": "^1.18.126",
41
41
  "@arcblock/did-auth-storage-nedb": "^1.7.1",
42
42
  "@blocklet/sdk": "^1.16.28",
43
- "@ocap/client": "^1.18.124",
44
- "@ocap/mcrypto": "^1.18.124",
45
- "@ocap/wallet": "^1.18.124",
43
+ "@ocap/client": "^1.18.126",
44
+ "@ocap/mcrypto": "^1.18.126",
45
+ "@ocap/wallet": "^1.18.126",
46
46
  "axios": "^1.7.2",
47
47
  "cookie-parser": "^1.4.6",
48
48
  "cors": "^2.8.5",
@@ -79,7 +79,7 @@
79
79
  "ts-node": "^10.9.2",
80
80
  "typescript": "^5.5.2",
81
81
  "vite": "^5.3.2",
82
- "vite-plugin-blocklet": "^0.8.1",
82
+ "vite-plugin-blocklet": "^0.8.3",
83
83
  "vite-plugin-svgr": "^4.2.0",
84
84
  "zx": "^8.1.3"
85
85
  },
@@ -39,12 +39,12 @@
39
39
  ]
40
40
  },
41
41
  "dependencies": {
42
- "@arcblock/did-auth": "^1.18.124",
42
+ "@arcblock/did-auth": "^1.18.126",
43
43
  "@arcblock/did-auth-storage-nedb": "^1.7.1",
44
44
  "@blocklet/sdk": "^1.16.28",
45
- "@ocap/client": "^1.18.124",
46
- "@ocap/mcrypto": "^1.18.124",
47
- "@ocap/wallet": "^1.18.124",
45
+ "@ocap/client": "^1.18.126",
46
+ "@ocap/mcrypto": "^1.18.126",
47
+ "@ocap/wallet": "^1.18.126",
48
48
  "axios": "^1.7.2",
49
49
  "cookie-parser": "^1.4.6",
50
50
  "cors": "^2.8.5",
@@ -69,7 +69,7 @@
69
69
  "rimraf": "^5.0.7",
70
70
  "simple-git-hooks": "^2.11.1",
71
71
  "vite": "^5.3.2",
72
- "vite-plugin-blocklet": "^0.8.1",
72
+ "vite-plugin-blocklet": "^0.8.3",
73
73
  "vite-plugin-svgr": "^4.2.0",
74
74
  "zx": "^8.1.3"
75
75
  },
@@ -51,7 +51,7 @@
51
51
  "rimraf": "^5.0.7",
52
52
  "simple-git-hooks": "^2.11.1",
53
53
  "vite": "^5.3.2",
54
- "vite-plugin-blocklet": "^0.8.1",
54
+ "vite-plugin-blocklet": "^0.8.3",
55
55
  "vite-plugin-svgr": "^4.2.0",
56
56
  "zx": "^8.1.3"
57
57
  },
@@ -34,17 +34,17 @@
34
34
  "rimraf": "^5.0.7",
35
35
  "simple-git-hooks": "^2.11.1",
36
36
  "vite": "^5.3.2",
37
- "vite-plugin-blocklet": "^0.8.1",
37
+ "vite-plugin-blocklet": "^0.8.3",
38
38
  "vite-plugin-solid": "^2.10.2",
39
39
  "zx": "^8.1.3"
40
40
  },
41
41
  "dependencies": {
42
- "@arcblock/did-auth": "^1.18.124",
42
+ "@arcblock/did-auth": "^1.18.126",
43
43
  "@arcblock/did-auth-storage-nedb": "^1.7.1",
44
44
  "@blocklet/sdk": "^1.16.28",
45
- "@ocap/client": "^1.18.124",
46
- "@ocap/mcrypto": "^1.18.124",
47
- "@ocap/wallet": "^1.18.124",
45
+ "@ocap/client": "^1.18.126",
46
+ "@ocap/mcrypto": "^1.18.126",
47
+ "@ocap/wallet": "^1.18.126",
48
48
  "axios": "^1.7.2",
49
49
  "cookie-parser": "^1.4.6",
50
50
  "cors": "^2.8.5",
@@ -30,7 +30,7 @@
30
30
  "simple-git-hooks": "^2.11.1",
31
31
  "solid-js": "^1.8.18",
32
32
  "vite": "^5.3.2",
33
- "vite-plugin-blocklet": "^0.8.1",
33
+ "vite-plugin-blocklet": "^0.8.3",
34
34
  "vite-plugin-solid": "^2.10.2",
35
35
  "zx": "^8.1.3"
36
36
  },
@@ -17,12 +17,12 @@
17
17
  "bump-version": "zx --quiet scripts/bump-version.mjs"
18
18
  },
19
19
  "dependencies": {
20
- "@arcblock/did-auth": "^1.18.124",
20
+ "@arcblock/did-auth": "^1.18.126",
21
21
  "@arcblock/did-auth-storage-nedb": "^1.7.1",
22
22
  "@blocklet/sdk": "^1.16.28",
23
- "@ocap/client": "^1.18.124",
24
- "@ocap/mcrypto": "^1.18.124",
25
- "@ocap/wallet": "^1.18.124",
23
+ "@ocap/client": "^1.18.126",
24
+ "@ocap/mcrypto": "^1.18.126",
25
+ "@ocap/wallet": "^1.18.126",
26
26
  "axios": "^1.7.2",
27
27
  "cookie-parser": "^1.4.6",
28
28
  "cors": "^2.8.5",
@@ -43,7 +43,7 @@
43
43
  "simple-git-hooks": "^2.11.1",
44
44
  "svelte": "^4.2.18",
45
45
  "vite": "^5.3.2",
46
- "vite-plugin-blocklet": "^0.8.1",
46
+ "vite-plugin-blocklet": "^0.8.3",
47
47
  "zx": "^8.1.3"
48
48
  },
49
49
  "lint-staged": {
@@ -24,7 +24,7 @@
24
24
  "simple-git-hooks": "^2.11.1",
25
25
  "svelte": "^4.2.18",
26
26
  "vite": "^5.3.2",
27
- "vite-plugin-blocklet": "^0.8.1",
27
+ "vite-plugin-blocklet": "^0.8.3",
28
28
  "zx": "^8.1.3"
29
29
  },
30
30
  "lint-staged": {
@@ -37,14 +37,14 @@
37
37
  ]
38
38
  },
39
39
  "dependencies": {
40
- "@arcblock/did-auth": "^1.18.124",
40
+ "@arcblock/did-auth": "^1.18.126",
41
41
  "@arcblock/did-auth-storage-nedb": "^1.7.1",
42
42
  "@blocklet/sdk": "^1.16.28",
43
43
  "@did-space/client": "^0.5.4",
44
44
  "@did-space/core": "^0.5.4",
45
- "@ocap/client": "^1.18.124",
46
- "@ocap/mcrypto": "^1.18.124",
47
- "@ocap/wallet": "^1.18.124",
45
+ "@ocap/client": "^1.18.126",
46
+ "@ocap/mcrypto": "^1.18.126",
47
+ "@ocap/wallet": "^1.18.126",
48
48
  "axios": "^1.7.2",
49
49
  "cookie-parser": "^1.4.6",
50
50
  "cors": "^2.8.5",
@@ -91,7 +91,7 @@
91
91
  "ts-node": "^10.9.2",
92
92
  "typescript": "^5.5.2",
93
93
  "vite": "^5.3.2",
94
- "vite-plugin-blocklet": "^0.8.1",
94
+ "vite-plugin-blocklet": "^0.8.3",
95
95
  "vite-plugin-svgr": "^4.2.0",
96
96
  "zx": "^8.1.3"
97
97
  },
@@ -18,12 +18,12 @@
18
18
  "bump-version": "zx --quiet scripts/bump-version.mjs"
19
19
  },
20
20
  "dependencies": {
21
- "@arcblock/did-auth": "^1.18.124",
21
+ "@arcblock/did-auth": "^1.18.126",
22
22
  "@arcblock/did-auth-storage-nedb": "^1.7.1",
23
23
  "@blocklet/sdk": "^1.16.28",
24
- "@ocap/client": "^1.18.124",
25
- "@ocap/mcrypto": "^1.18.124",
26
- "@ocap/wallet": "^1.18.124",
24
+ "@ocap/client": "^1.18.126",
25
+ "@ocap/mcrypto": "^1.18.126",
26
+ "@ocap/wallet": "^1.18.126",
27
27
  "axios": "^1.7.2",
28
28
  "cookie-parser": "^1.4.6",
29
29
  "cors": "^2.8.5",
@@ -47,7 +47,7 @@
47
47
  "rimraf": "^5.0.7",
48
48
  "simple-git-hooks": "^2.11.1",
49
49
  "vite": "^5.3.2",
50
- "vite-plugin-blocklet": "^0.8.1",
50
+ "vite-plugin-blocklet": "^0.8.3",
51
51
  "vue": "^3.4.31",
52
52
  "zx": "^8.1.3"
53
53
  },
@@ -28,7 +28,7 @@
28
28
  "rimraf": "^5.0.7",
29
29
  "simple-git-hooks": "^2.11.1",
30
30
  "vite": "^5.3.2",
31
- "vite-plugin-blocklet": "^0.8.1",
31
+ "vite-plugin-blocklet": "^0.8.3",
32
32
  "vue": "^3.4.31",
33
33
  "zx": "^8.1.3"
34
34
  },
@@ -18,12 +18,12 @@
18
18
  "bump-version": "zx --quiet scripts/bump-version.mjs"
19
19
  },
20
20
  "dependencies": {
21
- "@arcblock/did-auth": "^1.18.124",
21
+ "@arcblock/did-auth": "^1.18.126",
22
22
  "@arcblock/did-auth-storage-nedb": "^1.7.1",
23
23
  "@blocklet/sdk": "^1.16.28",
24
- "@ocap/client": "^1.18.124",
25
- "@ocap/mcrypto": "^1.18.124",
26
- "@ocap/wallet": "^1.18.124",
24
+ "@ocap/client": "^1.18.126",
25
+ "@ocap/mcrypto": "^1.18.126",
26
+ "@ocap/wallet": "^1.18.126",
27
27
  "axios": "^1.7.2",
28
28
  "cookie-parser": "^1.4.6",
29
29
  "cors": "^2.8.5",
@@ -46,7 +46,7 @@
46
46
  "rimraf": "^5.0.7",
47
47
  "simple-git-hooks": "^2.11.1",
48
48
  "vite": "^5.3.2",
49
- "vite-plugin-blocklet": "^0.8.1",
49
+ "vite-plugin-blocklet": "^0.8.3",
50
50
  "vue": "^2.7.16",
51
51
  "zx": "^8.1.3"
52
52
  },
@@ -28,7 +28,7 @@
28
28
  "rimraf": "^5.0.7",
29
29
  "simple-git-hooks": "^2.11.1",
30
30
  "vite": "^5.3.2",
31
- "vite-plugin-blocklet": "^0.8.1",
31
+ "vite-plugin-blocklet": "^0.8.3",
32
32
  "vue": "^2.7.16",
33
33
  "zx": "^8.1.3"
34
34
  },