create-blocklet 0.3.10 → 0.3.11

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/server.js CHANGED
@@ -4,7 +4,7 @@ import semver from 'semver';
4
4
  $.verbose = false;
5
5
 
6
6
  function trimServerOutputVersion(output = '') {
7
- return output?.replace(/blocklet \S+ v\d+\.\d+\.\d\n+/g, '');
7
+ return output?.replace(/blocklet \S+ v\d+\.\d+\.\d+\n+/g, '');
8
8
  }
9
9
 
10
10
  export async function checkServerInstalled() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-blocklet",
3
- "version": "0.3.10",
3
+ "version": "0.3.11",
4
4
  "exports": "./index.js",
5
5
  "type": "module",
6
6
  "repository": "git@github.com:blocklet/create-blocklet.git",
@@ -11,6 +11,6 @@
11
11
  "upload": "npm run bundle && blocklet upload .blocklet/release/blocklet.json"
12
12
  },
13
13
  "dependencies": {
14
- "@xmark/cli": "^2.0.37"
14
+ "@xmark/cli": "^2.0.38"
15
15
  }
16
16
  }
@@ -15,10 +15,10 @@
15
15
  "license": "ISC",
16
16
  "dependencies": {
17
17
  "@arcblock/did-auth-storage-nedb": "^1.6.3",
18
- "@blocklet/sdk": "^1.7.9",
19
- "@ocap/client": "^1.16.4",
18
+ "@blocklet/sdk": "^1.7.18",
19
+ "@ocap/client": "^1.16.9",
20
20
  "dotenv-flow": "^3.2.0",
21
- "express": "^4.18.0"
21
+ "express": "^4.18.1"
22
22
  },
23
23
  "devDependencies": {
24
24
  "nodemon": "^2.0.16"
@@ -25,21 +25,21 @@
25
25
  ]
26
26
  },
27
27
  "dependencies": {
28
- "@arcblock/did-auth": "^1.16.4",
28
+ "@arcblock/did-auth": "^1.16.9",
29
29
  "@arcblock/did-auth-storage-nedb": "^1.6.3",
30
- "@blocklet/sdk": "^1.7.9",
31
- "@ocap/client": "^1.16.4",
32
- "@ocap/mcrypto": "^1.16.4",
33
- "@ocap/wallet": "^1.16.4",
30
+ "@blocklet/sdk": "^1.7.18",
31
+ "@ocap/client": "^1.16.9",
32
+ "@ocap/mcrypto": "^1.16.9",
33
+ "@ocap/wallet": "^1.16.9",
34
34
  "dotenv-flow": "^3.2.0",
35
- "express": "^4.18.0",
36
- "next": "12.1.5",
35
+ "express": "^4.18.1",
36
+ "next": "12.1.6",
37
37
  "react": "18.1.0",
38
38
  "react-dom": "18.1.0"
39
39
  },
40
40
  "devDependencies": {
41
41
  "eslint": "8.14.0",
42
- "eslint-config-next": "12.1.5",
42
+ "eslint-config-next": "12.1.6",
43
43
  "husky": "^7.0.4",
44
44
  "lint-staged": "^12.4.1",
45
45
  "nodemon": "^2.0.16",
@@ -39,28 +39,27 @@
39
39
  ]
40
40
  },
41
41
  "dependencies": {
42
- "@arcblock/did-auth": "^1.16.4",
42
+ "@arcblock/did-auth": "^1.16.9",
43
43
  "@arcblock/did-auth-storage-nedb": "^1.6.3",
44
- "@blocklet/sdk": "^1.7.9",
45
- "@craco/craco": "^6.4.3",
46
- "@ocap/client": "^1.16.4",
47
- "@ocap/mcrypto": "^1.16.4",
48
- "@ocap/wallet": "^1.16.4",
44
+ "@blocklet/sdk": "^1.7.18",
45
+ "@ocap/client": "^1.16.9",
46
+ "@ocap/mcrypto": "^1.16.9",
47
+ "@ocap/wallet": "^1.16.9",
49
48
  "axios": "^0.27.2",
50
49
  "compression": "^1.7.4",
51
50
  "cookie-parser": "^1.4.6",
52
51
  "cors": "^2.8.5",
53
52
  "dotenv-flow": "^3.2.0",
54
- "express": "^4.18.0",
53
+ "express": "^4.18.1",
55
54
  "express-async-errors": "^3.1.1",
56
55
  "express-history-api-fallback": "^2.2.1",
57
- "react": "^17.0.2",
58
- "react-dom": "^17.0.2",
59
- "react-router-dom": "^6.3.0",
60
- "react-scripts": "5.0.1"
56
+ "react": "^18.1.0",
57
+ "react-dom": "^18.1.0",
58
+ "react-router-dom": "^6.3.0"
61
59
  },
62
60
  "devDependencies": {
63
61
  "@arcblock/eslint-config": "^0.1.8",
62
+ "@craco/craco": "^6.4.3",
64
63
  "babel-eslint": "^10.1.0",
65
64
  "eslint": "^7.32.0",
66
65
  "eslint-config-airbnb": "^18.2.1",
@@ -75,6 +74,7 @@
75
74
  "lint-staged": "^12.4.1",
76
75
  "nodemon": "^2.0.16",
77
76
  "npm-run-all": "^4.1.5",
78
- "prettier": "^2.6.0"
77
+ "prettier": "^2.6.0",
78
+ "react-scripts": "5.0.1"
79
79
  }
80
80
  }
@@ -1,5 +1,10 @@
1
1
  import React from 'react';
2
- import ReactDOM from 'react-dom';
2
+ import ReactDOM from 'react-dom/client';
3
3
  import App from './app';
4
4
 
5
- ReactDOM.render(<App />, document.getElementById('root'));
5
+ const root = ReactDOM.createRoot(document.getElementById('root'));
6
+ root.render(
7
+ <React.StrictMode>
8
+ <App />
9
+ </React.StrictMode>
10
+ );
@@ -39,29 +39,28 @@
39
39
  ]
40
40
  },
41
41
  "dependencies": {
42
- "@arcblock/did-auth": "^1.16.4",
42
+ "@arcblock/did-auth": "^1.16.9",
43
43
  "@arcblock/did-auth-storage-nedb": "^1.6.3",
44
- "@blocklet/sdk": "^1.7.9",
45
- "@craco/craco": "^6.4.3",
46
- "@ocap/client": "^1.16.4",
47
- "@ocap/mcrypto": "^1.16.4",
48
- "@ocap/wallet": "^1.16.4",
44
+ "@blocklet/sdk": "^1.7.18",
45
+ "@ocap/client": "^1.16.9",
46
+ "@ocap/mcrypto": "^1.16.9",
47
+ "@ocap/wallet": "^1.16.9",
49
48
  "axios": "^0.27.2",
50
49
  "compression": "^1.7.4",
51
50
  "cookie-parser": "^1.4.6",
52
51
  "cors": "^2.8.5",
53
52
  "dotenv-flow": "^3.2.0",
54
- "express": "^4.18.0",
53
+ "express": "^4.18.1",
55
54
  "express-async-errors": "^3.1.1",
56
55
  "express-history-api-fallback": "^2.2.1",
57
56
  "gun": "^0.2020.1237",
58
- "react": "^17.0.2",
59
- "react-dom": "^17.0.2",
60
- "react-router-dom": "^6.3.0",
61
- "react-scripts": "5.0.1"
57
+ "react": "^18.1.0",
58
+ "react-dom": "^18.1.0",
59
+ "react-router-dom": "^6.3.0"
62
60
  },
63
61
  "devDependencies": {
64
62
  "@arcblock/eslint-config": "^0.1.8",
63
+ "@craco/craco": "^6.4.3",
65
64
  "babel-eslint": "^10.1.0",
66
65
  "eslint": "^7.32.0",
67
66
  "eslint-config-airbnb": "^18.2.1",
@@ -76,6 +75,7 @@
76
75
  "lint-staged": "^12.4.1",
77
76
  "nodemon": "^2.0.16",
78
77
  "npm-run-all": "^4.1.5",
79
- "prettier": "^2.6.2"
78
+ "prettier": "^2.6.2",
79
+ "react-scripts": "5.0.1"
80
80
  }
81
81
  }
@@ -1,5 +1,10 @@
1
1
  import React from 'react';
2
- import ReactDOM from 'react-dom';
2
+ import ReactDOM from 'react-dom/client';
3
3
  import App from './app';
4
4
 
5
- ReactDOM.render(<App />, document.getElementById('root'));
5
+ const root = ReactDOM.createRoot(document.getElementById('root'));
6
+ root.render(
7
+ <React.StrictMode>
8
+ <App />
9
+ </React.StrictMode>
10
+ );
@@ -35,14 +35,13 @@
35
35
  ]
36
36
  },
37
37
  "dependencies": {
38
- "@craco/craco": "^6.4.3",
39
38
  "react": "^18.1.0",
40
39
  "react-dom": "^18.1.0",
41
- "react-router-dom": "^6.3.0",
42
- "react-scripts": "5.0.1"
40
+ "react-router-dom": "^6.3.0"
43
41
  },
44
42
  "devDependencies": {
45
43
  "@arcblock/eslint-config": "^0.1.8",
44
+ "@craco/craco": "^6.4.3",
46
45
  "babel-eslint": "^10.1.0",
47
46
  "eslint": "^7.32.0",
48
47
  "eslint-config-airbnb": "^18.2.1",
@@ -55,6 +54,7 @@
55
54
  "eslint-plugin-unicorn": "^34.0.1",
56
55
  "husky": "^7.0.4",
57
56
  "lint-staged": "^12.4.1",
58
- "prettier": "^2.6.2"
57
+ "prettier": "^2.6.2",
58
+ "react-scripts": "5.0.1"
59
59
  }
60
60
  }
@@ -1,5 +1,10 @@
1
1
  import React from 'react';
2
- import ReactDOM from 'react-dom';
2
+ import ReactDOM from 'react-dom/client';
3
3
  import App from './app';
4
4
 
5
- ReactDOM.render(<App />, document.getElementById('root'));
5
+ const root = ReactDOM.createRoot(document.getElementById('root'));
6
+ root.render(
7
+ <React.StrictMode>
8
+ <App />
9
+ </React.StrictMode>
10
+ );
@@ -23,33 +23,33 @@
23
23
  "eslint": "^8.14.0",
24
24
  "eslint-config-prettier": "^8.5.0",
25
25
  "eslint-plugin-prettier": "^4.0.0",
26
- "eslint-plugin-solid": "0.4.7",
26
+ "eslint-plugin-solid": "0.5.0",
27
27
  "husky": "^7.0.4",
28
28
  "lint-staged": "^12.4.1",
29
29
  "nodemon": "^2.0.16",
30
30
  "npm-run-all": "^4.1.5",
31
31
  "prettier": "^2.6.2",
32
- "vite": "^2.9.6",
32
+ "vite": "^2.9.9",
33
33
  "vite-plugin-solid": "^2.2.6",
34
34
  "vite-plugin-blocklet": "^0.1.2",
35
35
  "vite-plugin-html": "^3.2.0"
36
36
  },
37
37
  "dependencies": {
38
- "@arcblock/did-auth": "^1.16.4",
38
+ "@arcblock/did-auth": "^1.16.9",
39
39
  "@arcblock/did-auth-storage-nedb": "^1.6.3",
40
- "@blocklet/sdk": "^1.7.9",
41
- "@ocap/client": "^1.16.4",
42
- "@ocap/mcrypto": "^1.16.4",
43
- "@ocap/wallet": "^1.16.4",
40
+ "@blocklet/sdk": "^1.7.18",
41
+ "@ocap/client": "^1.16.9",
42
+ "@ocap/mcrypto": "^1.16.9",
43
+ "@ocap/wallet": "^1.16.9",
44
44
  "axios": "^0.27.2",
45
45
  "compression": "^1.7.4",
46
46
  "cookie-parser": "^1.4.6",
47
47
  "cors": "^2.8.5",
48
48
  "dotenv-flow": "^3.2.0",
49
- "express": "^4.18.0",
49
+ "express": "^4.18.1",
50
50
  "express-async-errors": "^3.1.1",
51
51
  "express-history-api-fallback": "^2.2.1",
52
- "solid-js": "^1.3.17"
52
+ "solid-js": "^1.4.2"
53
53
  },
54
54
  "lint-staged": {
55
55
  "*.{mjs,js,vue}": [
@@ -19,17 +19,17 @@
19
19
  "eslint": "^8.14.0",
20
20
  "eslint-config-prettier": "^8.5.0",
21
21
  "eslint-plugin-prettier": "^4.0.0",
22
- "eslint-plugin-solid": "0.4.7",
22
+ "eslint-plugin-solid": "0.5.0",
23
23
  "husky": "^7.0.4",
24
24
  "lint-staged": "^12.4.1",
25
25
  "prettier": "^2.6.2",
26
- "vite": "^2.9.6",
26
+ "vite": "^2.9.9",
27
27
  "vite-plugin-solid": "^2.2.6",
28
28
  "vite-plugin-blocklet": "^0.1.2",
29
29
  "vite-plugin-html": "^3.2.0"
30
30
  },
31
31
  "dependencies": {
32
- "solid-js": "^1.3.17"
32
+ "solid-js": "^1.4.2"
33
33
  },
34
34
  "lint-staged": {
35
35
  "*.{mjs,js,vue}": [
@@ -18,32 +18,32 @@
18
18
  "prepare": "husky install"
19
19
  },
20
20
  "dependencies": {
21
- "@arcblock/did-auth": "^1.16.4",
21
+ "@arcblock/did-auth": "^1.16.9",
22
22
  "@arcblock/did-auth-storage-nedb": "^1.6.3",
23
- "@blocklet/sdk": "^1.7.9",
24
- "@ocap/client": "^1.16.4",
25
- "@ocap/mcrypto": "^1.16.4",
26
- "@ocap/wallet": "^1.16.4",
23
+ "@blocklet/sdk": "^1.7.18",
24
+ "@ocap/client": "^1.16.9",
25
+ "@ocap/mcrypto": "^1.16.9",
26
+ "@ocap/wallet": "^1.16.9",
27
27
  "axios": "^0.27.2",
28
28
  "compression": "^1.7.4",
29
29
  "cookie-parser": "^1.4.6",
30
30
  "cors": "^2.8.5",
31
31
  "dotenv-flow": "^3.2.0",
32
- "express": "^4.18.0",
32
+ "express": "^4.18.1",
33
33
  "express-async-errors": "^3.1.1",
34
34
  "express-history-api-fallback": "^2.2.1"
35
35
  },
36
36
  "devDependencies": {
37
- "@sveltejs/vite-plugin-svelte": "1.0.0-next.42",
37
+ "@sveltejs/vite-plugin-svelte": "1.0.0-next.44",
38
38
  "eslint": "^8.14.0",
39
39
  "eslint-config-prettier": "^8.5.0",
40
40
  "eslint-plugin-prettier": "^4.0.0",
41
- "eslint-plugin-svelte3": "^3.4.1",
41
+ "eslint-plugin-svelte3": "^4.0.0",
42
42
  "husky": "^7.0.4",
43
43
  "lint-staged": "^12.4.1",
44
44
  "prettier": "^2.6.2",
45
- "svelte": "^3.47.0",
46
- "vite": "^2.9.6",
45
+ "svelte": "^3.48.0",
46
+ "vite": "^2.9.9",
47
47
  "vite-plugin-blocklet": "^0.1.2",
48
48
  "vite-plugin-html": "^3.2.0"
49
49
  },
@@ -15,16 +15,16 @@
15
15
  "prepare": "husky install"
16
16
  },
17
17
  "devDependencies": {
18
- "@sveltejs/vite-plugin-svelte": "1.0.0-next.42",
18
+ "@sveltejs/vite-plugin-svelte": "1.0.0-next.44",
19
19
  "eslint": "^8.14.0",
20
20
  "eslint-config-prettier": "^8.5.0",
21
21
  "eslint-plugin-prettier": "^4.0.0",
22
- "eslint-plugin-svelte3": "^3.4.1",
22
+ "eslint-plugin-svelte3": "^4.0.0",
23
23
  "husky": "^7.0.4",
24
24
  "lint-staged": "^12.4.1",
25
25
  "prettier": "^2.6.2",
26
- "svelte": "^3.47.0",
27
- "vite": "^2.9.6",
26
+ "svelte": "^3.48.0",
27
+ "vite": "^2.9.9",
28
28
  "vite-plugin-blocklet": "^0.1.2",
29
29
  "vite-plugin-html": "^3.2.0"
30
30
  },
@@ -18,35 +18,35 @@
18
18
  "prepare": "husky install"
19
19
  },
20
20
  "dependencies": {
21
- "@arcblock/did-auth": "^1.16.4",
21
+ "@arcblock/did-auth": "^1.16.9",
22
22
  "@arcblock/did-auth-storage-nedb": "^1.6.3",
23
- "@blocklet/sdk": "^1.7.9",
24
- "@ocap/client": "^1.16.4",
25
- "@ocap/mcrypto": "^1.16.4",
26
- "@ocap/wallet": "^1.16.4",
23
+ "@blocklet/sdk": "^1.7.18",
24
+ "@ocap/client": "^1.16.9",
25
+ "@ocap/mcrypto": "^1.16.9",
26
+ "@ocap/wallet": "^1.16.9",
27
27
  "axios": "^0.27.2",
28
28
  "compression": "^1.7.4",
29
29
  "cookie-parser": "^1.4.6",
30
30
  "cors": "^2.8.5",
31
31
  "dotenv-flow": "^3.2.0",
32
- "express": "^4.18.0",
32
+ "express": "^4.18.1",
33
33
  "express-async-errors": "^3.1.1",
34
34
  "express-history-api-fallback": "^2.2.1",
35
35
  "vite-plugin-html": "^3.2.0",
36
- "vue": "^3.2.33"
36
+ "vue": "^3.2.36"
37
37
  },
38
38
  "devDependencies": {
39
- "@vitejs/plugin-vue": "^2.3.1",
39
+ "@vitejs/plugin-vue": "^2.3.3",
40
40
  "eslint": "^8.14.0",
41
41
  "eslint-config-prettier": "^8.5.0",
42
42
  "eslint-plugin-prettier": "^4.0.0",
43
- "eslint-plugin-vue": "^8.7.1",
43
+ "eslint-plugin-vue": "^9.0.1",
44
44
  "husky": "^7.0.4",
45
45
  "lint-staged": "^12.4.1",
46
46
  "nodemon": "^2.0.16",
47
47
  "npm-run-all": "^4.1.5",
48
48
  "prettier": "^2.6.2",
49
- "vite": "^2.9.6",
49
+ "vite": "^2.9.9",
50
50
  "vite-plugin-blocklet": "^0.1.2"
51
51
  },
52
52
  "lint-staged": {
@@ -14,18 +14,18 @@
14
14
  "prepare": "husky install"
15
15
  },
16
16
  "dependencies": {
17
- "vue": "^3.2.33"
17
+ "vue": "^3.2.36"
18
18
  },
19
19
  "devDependencies": {
20
- "@vitejs/plugin-vue": "^2.3.1",
20
+ "@vitejs/plugin-vue": "^2.3.3",
21
21
  "eslint": "^8.14.0",
22
22
  "eslint-config-prettier": "^8.5.0",
23
23
  "eslint-plugin-prettier": "^4.0.0",
24
- "eslint-plugin-vue": "^8.7.1",
24
+ "eslint-plugin-vue": "^9.0.1",
25
25
  "husky": "^7.0.4",
26
26
  "lint-staged": "^12.4.1",
27
27
  "prettier": "^2.6.2",
28
- "vite": "^2.9.6",
28
+ "vite": "^2.9.9",
29
29
  "vite-plugin-blocklet": "^0.1.2",
30
30
  "vite-plugin-html": "^3.2.0"
31
31
  },
@@ -18,33 +18,33 @@
18
18
  "prepare": "husky install"
19
19
  },
20
20
  "dependencies": {
21
- "@arcblock/did-auth": "^1.16.4",
21
+ "@arcblock/did-auth": "^1.16.9",
22
22
  "@arcblock/did-auth-storage-nedb": "^1.6.3",
23
- "@blocklet/sdk": "^1.7.9",
24
- "@ocap/client": "^1.16.4",
25
- "@ocap/mcrypto": "^1.16.4",
26
- "@ocap/wallet": "^1.16.4",
23
+ "@blocklet/sdk": "^1.7.18",
24
+ "@ocap/client": "^1.16.9",
25
+ "@ocap/mcrypto": "^1.16.9",
26
+ "@ocap/wallet": "^1.16.9",
27
27
  "axios": "^0.27.2",
28
28
  "compression": "^1.7.4",
29
29
  "cookie-parser": "^1.4.6",
30
- "core-js": "^3.22.3",
31
30
  "cors": "^2.8.5",
32
31
  "dotenv-flow": "^3.2.0",
33
- "express": "^4.18.0",
32
+ "express": "^4.18.1",
34
33
  "express-async-errors": "^3.1.1",
35
34
  "express-history-api-fallback": "^2.2.1",
36
35
  "vue": "^2.6.14"
37
36
  },
38
37
  "devDependencies": {
39
- "@babel/core": "^7.17.9",
38
+ "@babel/core": "^7.18.0",
40
39
  "@babel/eslint-parser": "^7.17.0",
41
40
  "@vue/cli-plugin-babel": "~5.0.4",
42
41
  "@vue/cli-plugin-eslint": "~5.0.4",
43
42
  "@vue/cli-service": "~5.0.4",
43
+ "core-js": "^3.22.6",
44
44
  "eslint": "^8.14.0",
45
45
  "eslint-config-prettier": "^8.5.0",
46
46
  "eslint-plugin-prettier": "^4.0.0",
47
- "eslint-plugin-vue": "^8.7.1",
47
+ "eslint-plugin-vue": "^9.0.1",
48
48
  "husky": "^7.0.4",
49
49
  "lint-staged": "^12.4.1",
50
50
  "nodemon": "^2.0.16",
@@ -14,19 +14,19 @@
14
14
  "prepare": "husky install"
15
15
  },
16
16
  "dependencies": {
17
- "core-js": "^3.22.3",
18
17
  "vue": "^2.6.14"
19
18
  },
20
19
  "devDependencies": {
21
- "@babel/core": "^7.17.9",
20
+ "@babel/core": "^7.18.0",
22
21
  "@babel/eslint-parser": "^7.17.0",
23
22
  "@vue/cli-plugin-babel": "~5.0.4",
24
23
  "@vue/cli-plugin-eslint": "~5.0.4",
25
24
  "@vue/cli-service": "~5.0.4",
25
+ "core-js": "^3.22.6",
26
26
  "eslint": "^8.14.0",
27
27
  "eslint-config-prettier": "^8.5.0",
28
28
  "eslint-plugin-prettier": "^4.0.0",
29
- "eslint-plugin-vue": "^8.7.1",
29
+ "eslint-plugin-vue": "^9.0.1",
30
30
  "husky": "^7.0.4",
31
31
  "lint-staged": "^12.4.1",
32
32
  "vue-template-compiler": "^2.6.14"