create-blocklet 0.4.45 → 0.4.46

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-blocklet",
3
- "version": "0.4.45",
3
+ "version": "0.4.46",
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.17.11",
33
- "@ocap/mcrypto": "^1.17.11",
34
- "@ocap/util": "^1.17.11",
32
+ "@arcblock/did": "^1.17.16",
33
+ "@ocap/mcrypto": "^1.17.16",
34
+ "@ocap/util": "^1.17.16",
35
35
  "boxen": "^6.2.1",
36
36
  "ejs": "^3.1.8",
37
37
  "envfile": "^6.17.0",
@@ -47,7 +47,7 @@
47
47
  },
48
48
  "devDependencies": {
49
49
  "@arcblock/eslint-config-base": "0.2.2",
50
- "eslint": "^8.22.0",
50
+ "eslint": "^8.23.0",
51
51
  "prettier": "^2.7.1",
52
52
  "vitest": "^0.19.1"
53
53
  }
@@ -10,6 +10,6 @@
10
10
  "upload": "npm run bundle && blocklet upload .blocklet/release/blocklet.json"
11
11
  },
12
12
  "dependencies": {
13
- "@xmark/cli": "^2.4.24"
13
+ "@xmark/cli": "^2.4.32"
14
14
  }
15
15
  }
@@ -16,8 +16,8 @@
16
16
  "license": "ISC",
17
17
  "dependencies": {
18
18
  "@arcblock/did-auth-storage-nedb": "^1.6.3",
19
- "@blocklet/sdk": "^1.8.9",
20
- "@ocap/client": "^1.17.11",
19
+ "@blocklet/sdk": "^1.8.13",
20
+ "@ocap/client": "^1.17.16",
21
21
  "dotenv-flow": "^3.2.0",
22
22
  "express": "^4.18.1"
23
23
  },
@@ -25,12 +25,12 @@
25
25
  ]
26
26
  },
27
27
  "dependencies": {
28
- "@arcblock/did-auth": "^1.17.11",
28
+ "@arcblock/did-auth": "^1.17.16",
29
29
  "@arcblock/did-auth-storage-nedb": "^1.6.3",
30
- "@blocklet/sdk": "^1.8.9",
31
- "@ocap/client": "^1.17.11",
32
- "@ocap/mcrypto": "^1.17.11",
33
- "@ocap/wallet": "^1.17.11",
30
+ "@blocklet/sdk": "^1.8.13",
31
+ "@ocap/client": "^1.17.16",
32
+ "@ocap/mcrypto": "^1.17.16",
33
+ "@ocap/wallet": "^1.17.16",
34
34
  "dotenv-flow": "^3.2.0",
35
35
  "express": "^4.18.1",
36
36
  "next": "12.2.3",
@@ -28,7 +28,7 @@ if (isProduction) {
28
28
  app.use(compression());
29
29
 
30
30
  const staticDir = path.resolve(__dirname, '../', 'build');
31
- app.use(express.static(staticDir, { index: 'index.html' }));
31
+ app.use(express.static(staticDir, { maxAge: '30d', index: false }));
32
32
  app.use(router);
33
33
  app.use(fallback('index.html', { root: staticDir }));
34
34
 
@@ -1,12 +1,14 @@
1
1
  require('dotenv-flow').config();
2
2
 
3
+ const NodePolyfillPlugin = require('node-polyfill-webpack-plugin');
4
+
3
5
  const port = process.env.BLOCKLET_PORT || process.env.PORT || 3000;
4
6
  const apiPort = process.env.API_PORT || 3030;
5
-
6
7
  const whenDev = process.env.NODE_ENV === 'development';
7
-
8
8
  const mountPoint = process.env.BLOCKLET_DEV_MOUNT_POINT || '';
9
9
 
10
+ const plugins = [new NodePolyfillPlugin({ excludeAliases: ['console'] })];
11
+
10
12
  const webpackConfig = whenDev
11
13
  ? {
12
14
  configure: {
@@ -14,8 +16,9 @@ const webpackConfig = whenDev
14
16
  publicPath: '', // When the dev mode as component, this line required
15
17
  },
16
18
  },
19
+ plugins,
17
20
  }
18
- : {};
21
+ : { plugins };
19
22
 
20
23
  module.exports = {
21
24
  webpack: {
@@ -39,12 +39,12 @@
39
39
  ]
40
40
  },
41
41
  "dependencies": {
42
- "@arcblock/did-auth": "^1.17.11",
42
+ "@arcblock/did-auth": "^1.17.16",
43
43
  "@arcblock/did-auth-storage-nedb": "^1.6.3",
44
- "@blocklet/sdk": "^1.8.9",
45
- "@ocap/client": "^1.17.11",
46
- "@ocap/mcrypto": "^1.17.11",
47
- "@ocap/wallet": "^1.17.11",
44
+ "@blocklet/sdk": "^1.8.13",
45
+ "@ocap/client": "^1.17.16",
46
+ "@ocap/mcrypto": "^1.17.16",
47
+ "@ocap/wallet": "^1.17.16",
48
48
  "axios": "^0.27.2",
49
49
  "compression": "^1.7.4",
50
50
  "cookie-parser": "^1.4.6",
@@ -58,13 +58,13 @@
58
58
  "react-router-dom": "^6.3.0"
59
59
  },
60
60
  "devDependencies": {
61
- "@arcblock/eslint-config": "^0.2.2",
61
+ "@arcblock/eslint-config": "^0.2.3",
62
62
  "@craco/craco": "^6.4.5",
63
- "babel-eslint": "^10.1.0",
64
- "eslint": "^8.22.0",
63
+ "eslint": "^8.23.0",
65
64
  "husky": "^8.0.1",
66
65
  "lint-staged": "^12.5.0",
67
66
  "nodemon": "^2.0.19",
67
+ "node-polyfill-webpack-plugin": "^2.0.1",
68
68
  "npm-run-all": "^4.1.5",
69
69
  "prettier": "^2.7.1",
70
70
  "react-scripts": "5.0.1"
@@ -33,7 +33,7 @@ if (isProduction) {
33
33
  app.use(compression());
34
34
 
35
35
  const staticDir = path.resolve(__dirname, '../', 'build');
36
- app.use(express.static(staticDir, { index: 'index.html' }));
36
+ app.use(express.static(staticDir, { maxAge: '30d', index: false }));
37
37
  app.use(router);
38
38
  app.use(fallback('index.html', { root: staticDir }));
39
39
 
@@ -39,12 +39,12 @@
39
39
  ]
40
40
  },
41
41
  "dependencies": {
42
- "@arcblock/did-auth": "^1.17.11",
42
+ "@arcblock/did-auth": "^1.17.16",
43
43
  "@arcblock/did-auth-storage-nedb": "^1.6.3",
44
- "@blocklet/sdk": "^1.8.9",
45
- "@ocap/client": "^1.17.11",
46
- "@ocap/mcrypto": "^1.17.11",
47
- "@ocap/wallet": "^1.17.11",
44
+ "@blocklet/sdk": "^1.8.13",
45
+ "@ocap/client": "^1.17.16",
46
+ "@ocap/mcrypto": "^1.17.16",
47
+ "@ocap/wallet": "^1.17.16",
48
48
  "axios": "^0.27.2",
49
49
  "compression": "^1.7.4",
50
50
  "cookie-parser": "^1.4.6",
@@ -59,9 +59,9 @@
59
59
  "react-router-dom": "^6.3.0"
60
60
  },
61
61
  "devDependencies": {
62
- "@arcblock/eslint-config": "^0.2.2",
62
+ "@arcblock/eslint-config": "^0.2.3",
63
63
  "@craco/craco": "^6.4.5",
64
- "eslint": "^8.22.0",
64
+ "eslint": "^8.23.0",
65
65
  "husky": "^8.0.1",
66
66
  "lint-staged": "^12.5.0",
67
67
  "nodemon": "^2.0.19",
@@ -40,9 +40,9 @@
40
40
  "react-router-dom": "^6.3.0"
41
41
  },
42
42
  "devDependencies": {
43
- "@arcblock/eslint-config": "^0.2.2",
43
+ "@arcblock/eslint-config": "^0.2.3",
44
44
  "@craco/craco": "^6.4.5",
45
- "eslint": "^8.22.0",
45
+ "eslint": "^8.23.0",
46
46
  "husky": "^8.0.1",
47
47
  "lint-staged": "^12.5.0",
48
48
  "prettier": "^2.7.1",
@@ -28,7 +28,7 @@ if (isProduction) {
28
28
  app.use(compression());
29
29
 
30
30
  const staticDir = path.resolve(__dirname, '../', 'dist');
31
- app.use(express.static(staticDir, { index: 'index.html' }));
31
+ app.use(express.static(staticDir, { maxAge: '30d', index: false }));
32
32
  app.use(router);
33
33
  app.use(fallback('index.html', { root: staticDir }));
34
34
 
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "license": "MIT",
22
22
  "devDependencies": {
23
- "eslint": "^8.22.0",
23
+ "eslint": "^8.23.0",
24
24
  "eslint-config-prettier": "^8.5.0",
25
25
  "eslint-plugin-prettier": "^4.2.1",
26
26
  "eslint-plugin-solid": "0.7.1",
@@ -30,17 +30,17 @@
30
30
  "npm-run-all": "^4.1.5",
31
31
  "prettier": "^2.7.1",
32
32
  "vite": "^3.0.9",
33
- "vite-plugin-blocklet": "^0.4.45",
33
+ "vite-plugin-blocklet": "^0.4.46",
34
34
  "vite-plugin-html": "^3.2.0",
35
35
  "vite-plugin-solid": "^2.3.0"
36
36
  },
37
37
  "dependencies": {
38
- "@arcblock/did-auth": "^1.17.11",
38
+ "@arcblock/did-auth": "^1.17.16",
39
39
  "@arcblock/did-auth-storage-nedb": "^1.6.3",
40
- "@blocklet/sdk": "^1.8.9",
41
- "@ocap/client": "^1.17.11",
42
- "@ocap/mcrypto": "^1.17.11",
43
- "@ocap/wallet": "^1.17.11",
40
+ "@blocklet/sdk": "^1.8.13",
41
+ "@ocap/client": "^1.17.16",
42
+ "@ocap/mcrypto": "^1.17.16",
43
+ "@ocap/wallet": "^1.17.16",
44
44
  "axios": "^0.27.2",
45
45
  "compression": "^1.7.4",
46
46
  "cookie-parser": "^1.4.6",
@@ -49,7 +49,7 @@
49
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.4.8"
52
+ "solid-js": "^1.5.2"
53
53
  },
54
54
  "lint-staged": {
55
55
  "*.{mjs,js,vue}": [
@@ -16,7 +16,7 @@
16
16
  },
17
17
  "license": "MIT",
18
18
  "devDependencies": {
19
- "eslint": "^8.22.0",
19
+ "eslint": "^8.23.0",
20
20
  "eslint-config-prettier": "^8.5.0",
21
21
  "eslint-plugin-prettier": "^4.2.1",
22
22
  "eslint-plugin-solid": "0.7.1",
@@ -24,12 +24,12 @@
24
24
  "lint-staged": "^12.5.0",
25
25
  "prettier": "^2.7.1",
26
26
  "vite": "^3.0.9",
27
- "vite-plugin-blocklet": "^0.4.45",
27
+ "vite-plugin-blocklet": "^0.4.46",
28
28
  "vite-plugin-html": "^3.2.0",
29
29
  "vite-plugin-solid": "^2.3.0"
30
30
  },
31
31
  "dependencies": {
32
- "solid-js": "^1.4.8"
32
+ "solid-js": "^1.5.2"
33
33
  },
34
34
  "lint-staged": {
35
35
  "*.{mjs,js,vue}": [
@@ -28,7 +28,7 @@ if (isProduction) {
28
28
  app.use(compression());
29
29
 
30
30
  const staticDir = path.resolve(__dirname, '../', 'dist');
31
- app.use(express.static(staticDir, { index: 'index.html' }));
31
+ app.use(express.static(staticDir, { maxAge: '30d', index: false }));
32
32
  app.use(router);
33
33
  app.use(fallback('index.html', { root: staticDir }));
34
34
 
@@ -17,12 +17,12 @@
17
17
  "prepare": "husky install"
18
18
  },
19
19
  "dependencies": {
20
- "@arcblock/did-auth": "^1.17.11",
20
+ "@arcblock/did-auth": "^1.17.16",
21
21
  "@arcblock/did-auth-storage-nedb": "^1.6.3",
22
- "@blocklet/sdk": "^1.8.9",
23
- "@ocap/client": "^1.17.11",
24
- "@ocap/mcrypto": "^1.17.11",
25
- "@ocap/wallet": "^1.17.11",
22
+ "@blocklet/sdk": "^1.8.13",
23
+ "@ocap/client": "^1.17.16",
24
+ "@ocap/mcrypto": "^1.17.16",
25
+ "@ocap/wallet": "^1.17.16",
26
26
  "axios": "^0.27.2",
27
27
  "compression": "^1.7.4",
28
28
  "cookie-parser": "^1.4.6",
@@ -34,7 +34,7 @@
34
34
  },
35
35
  "devDependencies": {
36
36
  "@sveltejs/vite-plugin-svelte": "1.0.1",
37
- "eslint": "^8.22.0",
37
+ "eslint": "^8.23.0",
38
38
  "eslint-config-prettier": "^8.5.0",
39
39
  "eslint-plugin-prettier": "^4.2.1",
40
40
  "eslint-plugin-svelte3": "^4.0.0",
@@ -43,7 +43,7 @@
43
43
  "prettier": "^2.7.1",
44
44
  "svelte": "^3.49.0",
45
45
  "vite": "^3.0.9",
46
- "vite-plugin-blocklet": "^0.4.45",
46
+ "vite-plugin-blocklet": "^0.4.46",
47
47
  "vite-plugin-html": "^3.2.0"
48
48
  },
49
49
  "lint-staged": {
@@ -16,7 +16,7 @@
16
16
  },
17
17
  "devDependencies": {
18
18
  "@sveltejs/vite-plugin-svelte": "1.0.1",
19
- "eslint": "^8.22.0",
19
+ "eslint": "^8.23.0",
20
20
  "eslint-config-prettier": "^8.5.0",
21
21
  "eslint-plugin-prettier": "^4.2.1",
22
22
  "eslint-plugin-svelte3": "^4.0.0",
@@ -25,7 +25,7 @@
25
25
  "prettier": "^2.7.1",
26
26
  "svelte": "^3.49.0",
27
27
  "vite": "^3.0.9",
28
- "vite-plugin-blocklet": "^0.4.45",
28
+ "vite-plugin-blocklet": "^0.4.46",
29
29
  "vite-plugin-html": "^3.2.0"
30
30
  },
31
31
  "lint-staged": {
@@ -28,7 +28,7 @@ if (isProduction) {
28
28
  app.use(compression());
29
29
 
30
30
  const staticDir = path.resolve(__dirname, '../', 'dist');
31
- app.use(express.static(staticDir, { index: 'index.html' }));
31
+ app.use(express.static(staticDir, { maxAge: '30d', index: false }));
32
32
  app.use(router);
33
33
  app.use(fallback('index.html', { root: staticDir }));
34
34
 
@@ -18,12 +18,12 @@
18
18
  "prepare": "husky install"
19
19
  },
20
20
  "dependencies": {
21
- "@arcblock/did-auth": "^1.17.11",
21
+ "@arcblock/did-auth": "^1.17.16",
22
22
  "@arcblock/did-auth-storage-nedb": "^1.6.3",
23
- "@blocklet/sdk": "^1.8.9",
24
- "@ocap/client": "^1.17.11",
25
- "@ocap/mcrypto": "^1.17.11",
26
- "@ocap/wallet": "^1.17.11",
23
+ "@blocklet/sdk": "^1.8.13",
24
+ "@ocap/client": "^1.17.16",
25
+ "@ocap/mcrypto": "^1.17.16",
26
+ "@ocap/wallet": "^1.17.16",
27
27
  "axios": "^0.27.2",
28
28
  "compression": "^1.7.4",
29
29
  "cookie-parser": "^1.4.6",
@@ -37,17 +37,17 @@
37
37
  },
38
38
  "devDependencies": {
39
39
  "@vitejs/plugin-vue": "^3.0.3",
40
- "eslint": "^8.22.0",
40
+ "eslint": "^8.23.0",
41
41
  "eslint-config-prettier": "^8.5.0",
42
42
  "eslint-plugin-prettier": "^4.2.1",
43
- "eslint-plugin-vue": "^9.3.0",
43
+ "eslint-plugin-vue": "^9.4.0",
44
44
  "husky": "^8.0.1",
45
45
  "lint-staged": "^12.5.0",
46
46
  "nodemon": "^2.0.19",
47
47
  "npm-run-all": "^4.1.5",
48
48
  "prettier": "^2.7.1",
49
49
  "vite": "^3.0.9",
50
- "vite-plugin-blocklet": "^0.4.45"
50
+ "vite-plugin-blocklet": "^0.4.46"
51
51
  },
52
52
  "lint-staged": {
53
53
  "*.{mjs,js,vue}": [
@@ -18,15 +18,15 @@
18
18
  },
19
19
  "devDependencies": {
20
20
  "@vitejs/plugin-vue": "^3.0.3",
21
- "eslint": "^8.22.0",
21
+ "eslint": "^8.23.0",
22
22
  "eslint-config-prettier": "^8.5.0",
23
23
  "eslint-plugin-prettier": "^4.2.1",
24
- "eslint-plugin-vue": "^9.3.0",
24
+ "eslint-plugin-vue": "^9.4.0",
25
25
  "husky": "^8.0.1",
26
26
  "lint-staged": "^12.5.0",
27
27
  "prettier": "^2.7.1",
28
28
  "vite": "^3.0.9",
29
- "vite-plugin-blocklet": "^0.4.45",
29
+ "vite-plugin-blocklet": "^0.4.46",
30
30
  "vite-plugin-html": "^3.2.0"
31
31
  },
32
32
  "lint-staged": {
@@ -28,7 +28,7 @@ if (isProduction) {
28
28
  app.use(compression());
29
29
 
30
30
  const staticDir = path.resolve(__dirname, '../', 'dist');
31
- app.use(express.static(staticDir, { index: 'index.html' }));
31
+ app.use(express.static(staticDir, { maxAge: '30d', index: false }));
32
32
  app.use(router);
33
33
  app.use(fallback('index.html', { root: staticDir }));
34
34
 
@@ -18,12 +18,12 @@
18
18
  "prepare": "husky install"
19
19
  },
20
20
  "dependencies": {
21
- "@arcblock/did-auth": "^1.17.11",
21
+ "@arcblock/did-auth": "^1.17.16",
22
22
  "@arcblock/did-auth-storage-nedb": "^1.6.3",
23
- "@blocklet/sdk": "^1.8.9",
24
- "@ocap/client": "^1.17.11",
25
- "@ocap/mcrypto": "^1.17.11",
26
- "@ocap/wallet": "^1.17.11",
23
+ "@blocklet/sdk": "^1.8.13",
24
+ "@ocap/client": "^1.17.16",
25
+ "@ocap/mcrypto": "^1.17.16",
26
+ "@ocap/wallet": "^1.17.16",
27
27
  "axios": "^0.27.2",
28
28
  "compression": "^1.7.4",
29
29
  "cookie-parser": "^1.4.6",
@@ -35,16 +35,16 @@
35
35
  "vue": "~2.6.14"
36
36
  },
37
37
  "devDependencies": {
38
- "@babel/core": "^7.18.10",
38
+ "@babel/core": "^7.18.13",
39
39
  "@babel/eslint-parser": "^7.18.9",
40
40
  "@vue/cli-plugin-babel": "~5.0.8",
41
41
  "@vue/cli-plugin-eslint": "~5.0.8",
42
42
  "@vue/cli-service": "~5.0.8",
43
- "core-js": "^3.24.1",
44
- "eslint": "^8.22.0",
43
+ "core-js": "^3.25.0",
44
+ "eslint": "^8.23.0",
45
45
  "eslint-config-prettier": "^8.5.0",
46
46
  "eslint-plugin-prettier": "^4.2.1",
47
- "eslint-plugin-vue": "^9.3.0",
47
+ "eslint-plugin-vue": "^9.4.0",
48
48
  "husky": "^8.0.1",
49
49
  "lint-staged": "^12.5.0",
50
50
  "nodemon": "^2.0.19",
@@ -17,16 +17,16 @@
17
17
  "vue": "~2.6.14"
18
18
  },
19
19
  "devDependencies": {
20
- "@babel/core": "^7.18.10",
20
+ "@babel/core": "^7.18.13",
21
21
  "@babel/eslint-parser": "^7.18.9",
22
22
  "@vue/cli-plugin-babel": "~5.0.8",
23
23
  "@vue/cli-plugin-eslint": "~5.0.8",
24
24
  "@vue/cli-service": "~5.0.8",
25
- "core-js": "^3.24.1",
26
- "eslint": "^8.22.0",
25
+ "core-js": "^3.25.0",
26
+ "eslint": "^8.23.0",
27
27
  "eslint-config-prettier": "^8.5.0",
28
28
  "eslint-plugin-prettier": "^4.2.1",
29
- "eslint-plugin-vue": "^9.3.0",
29
+ "eslint-plugin-vue": "^9.4.0",
30
30
  "husky": "^8.0.1",
31
31
  "lint-staged": "^12.5.0",
32
32
  "vue-template-compiler": "~2.6.14"