create-blocklet 0.4.13 → 0.4.16

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.13",
3
+ "version": "0.4.16",
4
4
  "exports": "./index.js",
5
5
  "type": "module",
6
6
  "repository": "git@github.com:blocklet/create-blocklet.git",
@@ -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.0.55"
13
+ "@xmark/cli": "^2.0.64"
14
14
  }
15
15
  }
@@ -16,12 +16,12 @@
16
16
  "license": "ISC",
17
17
  "dependencies": {
18
18
  "@arcblock/did-auth-storage-nedb": "^1.6.3",
19
- "@blocklet/sdk": "^1.15.17",
20
- "@ocap/client": "^1.17.0",
19
+ "@blocklet/sdk": "^1.8.2",
20
+ "@ocap/client": "^1.17.4",
21
21
  "dotenv-flow": "^3.2.0",
22
22
  "express": "^4.18.1"
23
23
  },
24
24
  "devDependencies": {
25
- "nodemon": "^2.0.16"
25
+ "nodemon": "^2.0.19"
26
26
  }
27
27
  }
@@ -1,6 +1,27 @@
1
1
  /** @type {import('next').NextConfig} */
2
+
3
+ const whenDev = process.env.NODE_ENV === 'development';
4
+
5
+ const getDevNextConfig = () => {
6
+ let mountPoint = process.env.BLOCKLET_DEV_MOUNT_POINT || '';
7
+
8
+ let appUrl = process.env.BLOCKLET_APP_URL || '';
9
+
10
+ let assetPrefix = `${appUrl}${mountPoint}`.replace('http://', 'https://');
11
+
12
+ let devWithBlockletServer = process.env.hasOwnProperty('BLOCKLET_DEV_MOUNT_POINT');
13
+
14
+ return whenDev && devWithBlockletServer
15
+ ? {
16
+ assetPrefix: assetPrefix, // When the dev mode as component, this line required
17
+ basePath: '',
18
+ }
19
+ : {};
20
+ };
21
+
2
22
  const nextConfig = {
3
23
  reactStrictMode: false,
24
+ ...getDevNextConfig(),
4
25
  };
5
26
 
6
27
  module.exports = nextConfig;
@@ -25,12 +25,12 @@
25
25
  ]
26
26
  },
27
27
  "dependencies": {
28
- "@arcblock/did-auth": "^1.17.0",
28
+ "@arcblock/did-auth": "^1.17.4",
29
29
  "@arcblock/did-auth-storage-nedb": "^1.6.3",
30
- "@blocklet/sdk": "^1.15.17",
31
- "@ocap/client": "^1.17.0",
32
- "@ocap/mcrypto": "^1.17.0",
33
- "@ocap/wallet": "^1.17.0",
30
+ "@blocklet/sdk": "^1.8.2",
31
+ "@ocap/client": "^1.17.4",
32
+ "@ocap/mcrypto": "^1.17.4",
33
+ "@ocap/wallet": "^1.17.4",
34
34
  "dotenv-flow": "^3.2.0",
35
35
  "express": "^4.18.1",
36
36
  "next": "12.1.6",
@@ -42,7 +42,7 @@
42
42
  "eslint-config-next": "12.1.6",
43
43
  "husky": "^8.0.1",
44
44
  "lint-staged": "^12.5.0",
45
- "nodemon": "^2.0.16",
45
+ "nodemon": "^2.0.19",
46
46
  "npm-run-all": "^4.1.5"
47
47
  }
48
48
  }
@@ -39,12 +39,12 @@
39
39
  ]
40
40
  },
41
41
  "dependencies": {
42
- "@arcblock/did-auth": "^1.17.0",
42
+ "@arcblock/did-auth": "^1.17.4",
43
43
  "@arcblock/did-auth-storage-nedb": "^1.6.3",
44
- "@blocklet/sdk": "^1.15.17",
45
- "@ocap/client": "^1.17.0",
46
- "@ocap/mcrypto": "^1.17.0",
47
- "@ocap/wallet": "^1.17.0",
44
+ "@blocklet/sdk": "^1.8.2",
45
+ "@ocap/client": "^1.17.4",
46
+ "@ocap/mcrypto": "^1.17.4",
47
+ "@ocap/wallet": "^1.17.4",
48
48
  "axios": "^0.27.2",
49
49
  "compression": "^1.7.4",
50
50
  "cookie-parser": "^1.4.6",
@@ -59,12 +59,12 @@
59
59
  },
60
60
  "devDependencies": {
61
61
  "@arcblock/eslint-config": "^0.2.2",
62
- "@craco/craco": "^6.4.3",
62
+ "@craco/craco": "^6.4.5",
63
63
  "babel-eslint": "^10.1.0",
64
- "eslint": "^8.18.0",
64
+ "eslint": "^8.19.0",
65
65
  "husky": "^8.0.1",
66
66
  "lint-staged": "^12.5.0",
67
- "nodemon": "^2.0.16",
67
+ "nodemon": "^2.0.19",
68
68
  "npm-run-all": "^4.1.5",
69
69
  "prettier": "^2.7.1",
70
70
  "react-scripts": "5.0.1"
@@ -39,12 +39,12 @@
39
39
  ]
40
40
  },
41
41
  "dependencies": {
42
- "@arcblock/did-auth": "^1.17.0",
42
+ "@arcblock/did-auth": "^1.17.4",
43
43
  "@arcblock/did-auth-storage-nedb": "^1.6.3",
44
- "@blocklet/sdk": "^1.15.17",
45
- "@ocap/client": "^1.17.0",
46
- "@ocap/mcrypto": "^1.17.0",
47
- "@ocap/wallet": "^1.17.0",
44
+ "@blocklet/sdk": "^1.8.2",
45
+ "@ocap/client": "^1.17.4",
46
+ "@ocap/mcrypto": "^1.17.4",
47
+ "@ocap/wallet": "^1.17.4",
48
48
  "axios": "^0.27.2",
49
49
  "compression": "^1.7.4",
50
50
  "cookie-parser": "^1.4.6",
@@ -60,11 +60,11 @@
60
60
  },
61
61
  "devDependencies": {
62
62
  "@arcblock/eslint-config": "^0.2.2",
63
- "@craco/craco": "^6.4.3",
64
- "eslint": "^8.18.0",
63
+ "@craco/craco": "^6.4.5",
64
+ "eslint": "^8.19.0",
65
65
  "husky": "^8.0.1",
66
66
  "lint-staged": "^12.5.0",
67
- "nodemon": "^2.0.16",
67
+ "nodemon": "^2.0.19",
68
68
  "npm-run-all": "^4.1.5",
69
69
  "prettier": "^2.7.1",
70
70
  "react-scripts": "5.0.1"
@@ -41,8 +41,8 @@
41
41
  },
42
42
  "devDependencies": {
43
43
  "@arcblock/eslint-config": "^0.2.2",
44
- "@craco/craco": "^6.4.3",
45
- "eslint": "^8.18.0",
44
+ "@craco/craco": "^6.4.5",
45
+ "eslint": "^8.19.0",
46
46
  "husky": "^8.0.1",
47
47
  "lint-staged": "^12.5.0",
48
48
  "prettier": "^2.7.1",
@@ -20,27 +20,27 @@
20
20
  },
21
21
  "license": "MIT",
22
22
  "devDependencies": {
23
- "eslint": "^8.18.0",
23
+ "eslint": "^8.19.0",
24
24
  "eslint-config-prettier": "^8.5.0",
25
- "eslint-plugin-prettier": "^4.0.0",
25
+ "eslint-plugin-prettier": "^4.2.1",
26
26
  "eslint-plugin-solid": "0.6.0",
27
27
  "husky": "^8.0.1",
28
28
  "lint-staged": "^12.5.0",
29
- "nodemon": "^2.0.16",
29
+ "nodemon": "^2.0.19",
30
30
  "npm-run-all": "^4.1.5",
31
31
  "prettier": "^2.7.1",
32
- "vite": "^2.9.12",
32
+ "vite": "^2.9.14",
33
33
  "vite-plugin-html": "^3.2.0",
34
34
  "vite-plugin-solid": "^2.2.6",
35
- "vite-plugin-wss-hmr": "^0.4.13"
35
+ "vite-plugin-wss-hmr": "^0.4.16"
36
36
  },
37
37
  "dependencies": {
38
- "@arcblock/did-auth": "^1.17.0",
38
+ "@arcblock/did-auth": "^1.17.4",
39
39
  "@arcblock/did-auth-storage-nedb": "^1.6.3",
40
- "@blocklet/sdk": "^1.15.17",
41
- "@ocap/client": "^1.17.0",
42
- "@ocap/mcrypto": "^1.17.0",
43
- "@ocap/wallet": "^1.17.0",
40
+ "@blocklet/sdk": "^1.8.2",
41
+ "@ocap/client": "^1.17.4",
42
+ "@ocap/mcrypto": "^1.17.4",
43
+ "@ocap/wallet": "^1.17.4",
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.4"
52
+ "solid-js": "^1.4.7"
53
53
  },
54
54
  "lint-staged": {
55
55
  "*.{mjs,js,vue}": [
@@ -31,7 +31,7 @@ export default defineConfig(async ({ mode }) => {
31
31
  },
32
32
  },
33
33
  }),
34
- await createWssHmrPlugin(),
34
+ whenDev && (await createWssHmrPlugin()),
35
35
  ],
36
36
  build: {
37
37
  target: 'esnext',
@@ -16,20 +16,20 @@
16
16
  },
17
17
  "license": "MIT",
18
18
  "devDependencies": {
19
- "eslint": "^8.18.0",
19
+ "eslint": "^8.19.0",
20
20
  "eslint-config-prettier": "^8.5.0",
21
- "eslint-plugin-prettier": "^4.0.0",
21
+ "eslint-plugin-prettier": "^4.2.1",
22
22
  "eslint-plugin-solid": "0.6.0",
23
23
  "husky": "^8.0.1",
24
24
  "lint-staged": "^12.5.0",
25
25
  "prettier": "^2.7.1",
26
- "vite": "^2.9.12",
26
+ "vite": "^2.9.14",
27
27
  "vite-plugin-html": "^3.2.0",
28
28
  "vite-plugin-solid": "^2.2.6",
29
- "vite-plugin-wss-hmr": "^0.4.13"
29
+ "vite-plugin-wss-hmr": "^0.4.16"
30
30
  },
31
31
  "dependencies": {
32
- "solid-js": "^1.4.4"
32
+ "solid-js": "^1.4.7"
33
33
  },
34
34
  "lint-staged": {
35
35
  "*.{mjs,js,vue}": [
@@ -30,7 +30,7 @@ export default defineConfig(async ({ mode }) => {
30
30
  },
31
31
  },
32
32
  }),
33
- await createWssHmrPlugin(),
33
+ whenDev && (await createWssHmrPlugin()),
34
34
  ],
35
35
  build: {
36
36
  target: 'esnext',
@@ -17,12 +17,12 @@
17
17
  "prepare": "husky install"
18
18
  },
19
19
  "dependencies": {
20
- "@arcblock/did-auth": "^1.17.0",
20
+ "@arcblock/did-auth": "^1.17.4",
21
21
  "@arcblock/did-auth-storage-nedb": "^1.6.3",
22
- "@blocklet/sdk": "^1.15.17",
23
- "@ocap/client": "^1.17.0",
24
- "@ocap/mcrypto": "^1.17.0",
25
- "@ocap/wallet": "^1.17.0",
22
+ "@blocklet/sdk": "^1.8.2",
23
+ "@ocap/client": "^1.17.4",
24
+ "@ocap/mcrypto": "^1.17.4",
25
+ "@ocap/wallet": "^1.17.4",
26
26
  "axios": "^0.27.2",
27
27
  "compression": "^1.7.4",
28
28
  "cookie-parser": "^1.4.6",
@@ -34,17 +34,17 @@
34
34
  },
35
35
  "devDependencies": {
36
36
  "@sveltejs/vite-plugin-svelte": "1.0.0-next.47",
37
- "eslint": "^8.18.0",
37
+ "eslint": "^8.19.0",
38
38
  "eslint-config-prettier": "^8.5.0",
39
- "eslint-plugin-prettier": "^4.0.0",
39
+ "eslint-plugin-prettier": "^4.2.1",
40
40
  "eslint-plugin-svelte3": "^4.0.0",
41
41
  "husky": "^8.0.1",
42
42
  "lint-staged": "^12.5.0",
43
43
  "prettier": "^2.7.1",
44
- "svelte": "^3.48.0",
45
- "vite": "^2.9.12",
44
+ "svelte": "^3.49.0",
45
+ "vite": "^2.9.14",
46
46
  "vite-plugin-html": "^3.2.0",
47
- "vite-plugin-wss-hmr": "^0.4.13"
47
+ "vite-plugin-wss-hmr": "^0.4.16"
48
48
  },
49
49
  "lint-staged": {
50
50
  "*.{mjs,js,vue}": [
@@ -32,7 +32,7 @@ export default defineConfig(async ({ mode }) => {
32
32
  },
33
33
  },
34
34
  }),
35
- await createWssHmrPlugin(),
35
+ whenDev && (await createWssHmrPlugin()),
36
36
  ],
37
37
  server: {
38
38
  port,
@@ -16,17 +16,17 @@
16
16
  },
17
17
  "devDependencies": {
18
18
  "@sveltejs/vite-plugin-svelte": "1.0.0-next.47",
19
- "eslint": "^8.18.0",
19
+ "eslint": "^8.19.0",
20
20
  "eslint-config-prettier": "^8.5.0",
21
- "eslint-plugin-prettier": "^4.0.0",
21
+ "eslint-plugin-prettier": "^4.2.1",
22
22
  "eslint-plugin-svelte3": "^4.0.0",
23
23
  "husky": "^8.0.1",
24
24
  "lint-staged": "^12.5.0",
25
25
  "prettier": "^2.7.1",
26
- "svelte": "^3.48.0",
27
- "vite": "^2.9.12",
26
+ "svelte": "^3.49.0",
27
+ "vite": "^2.9.14",
28
28
  "vite-plugin-html": "^3.2.0",
29
- "vite-plugin-wss-hmr": "^0.4.13"
29
+ "vite-plugin-wss-hmr": "^0.4.16"
30
30
  },
31
31
  "lint-staged": {
32
32
  "*.{mjs,js,vue}": [
@@ -31,7 +31,7 @@ export default defineConfig(async ({ mode }) => {
31
31
  },
32
32
  },
33
33
  }),
34
- await createWssHmrPlugin(),
34
+ whenDev && (await createWssHmrPlugin()),
35
35
  ],
36
36
  server: {
37
37
  port,
@@ -18,12 +18,12 @@
18
18
  "prepare": "husky install"
19
19
  },
20
20
  "dependencies": {
21
- "@arcblock/did-auth": "^1.17.0",
21
+ "@arcblock/did-auth": "^1.17.4",
22
22
  "@arcblock/did-auth-storage-nedb": "^1.6.3",
23
- "@blocklet/sdk": "^1.15.17",
24
- "@ocap/client": "^1.17.0",
25
- "@ocap/mcrypto": "^1.17.0",
26
- "@ocap/wallet": "^1.17.0",
23
+ "@blocklet/sdk": "^1.8.2",
24
+ "@ocap/client": "^1.17.4",
25
+ "@ocap/mcrypto": "^1.17.4",
26
+ "@ocap/wallet": "^1.17.4",
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": "^2.3.3",
40
- "eslint": "^8.18.0",
40
+ "eslint": "^8.19.0",
41
41
  "eslint-config-prettier": "^8.5.0",
42
- "eslint-plugin-prettier": "^4.0.0",
43
- "eslint-plugin-vue": "^9.1.1",
42
+ "eslint-plugin-prettier": "^4.2.1",
43
+ "eslint-plugin-vue": "^9.2.0",
44
44
  "husky": "^8.0.1",
45
45
  "lint-staged": "^12.5.0",
46
- "nodemon": "^2.0.16",
46
+ "nodemon": "^2.0.19",
47
47
  "npm-run-all": "^4.1.5",
48
48
  "prettier": "^2.7.1",
49
- "vite": "^2.9.12",
50
- "vite-plugin-wss-hmr": "^0.4.13"
49
+ "vite": "^2.9.14",
50
+ "vite-plugin-wss-hmr": "^0.4.16"
51
51
  },
52
52
  "lint-staged": {
53
53
  "*.{mjs,js,vue}": [
@@ -33,7 +33,7 @@ export default defineConfig(async ({ mode }) => {
33
33
  },
34
34
  },
35
35
  }),
36
- await createWssHmrPlugin(),
36
+ whenDev && (await createWssHmrPlugin()),
37
37
  ],
38
38
  server: {
39
39
  port,
@@ -18,16 +18,16 @@
18
18
  },
19
19
  "devDependencies": {
20
20
  "@vitejs/plugin-vue": "^2.3.3",
21
- "eslint": "^8.18.0",
21
+ "eslint": "^8.19.0",
22
22
  "eslint-config-prettier": "^8.5.0",
23
- "eslint-plugin-prettier": "^4.0.0",
24
- "eslint-plugin-vue": "^9.1.1",
23
+ "eslint-plugin-prettier": "^4.2.1",
24
+ "eslint-plugin-vue": "^9.2.0",
25
25
  "husky": "^8.0.1",
26
26
  "lint-staged": "^12.5.0",
27
27
  "prettier": "^2.7.1",
28
- "vite": "^2.9.12",
28
+ "vite": "^2.9.14",
29
29
  "vite-plugin-html": "^3.2.0",
30
- "vite-plugin-wss-hmr": "^0.4.13"
30
+ "vite-plugin-wss-hmr": "^0.4.16"
31
31
  },
32
32
  "lint-staged": {
33
33
  "*.{mjs,js,vue}": [
@@ -31,7 +31,7 @@ export default defineConfig(async ({ mode }) => {
31
31
  },
32
32
  },
33
33
  }),
34
- await createWssHmrPlugin(),
34
+ whenDev && (await createWssHmrPlugin()),
35
35
  ],
36
36
  server: {
37
37
  port,
@@ -18,12 +18,12 @@
18
18
  "prepare": "husky install"
19
19
  },
20
20
  "dependencies": {
21
- "@arcblock/did-auth": "^1.17.0",
21
+ "@arcblock/did-auth": "^1.17.4",
22
22
  "@arcblock/did-auth-storage-nedb": "^1.6.3",
23
- "@blocklet/sdk": "^1.15.17",
24
- "@ocap/client": "^1.17.0",
25
- "@ocap/mcrypto": "^1.17.0",
26
- "@ocap/wallet": "^1.17.0",
23
+ "@blocklet/sdk": "^1.8.2",
24
+ "@ocap/client": "^1.17.4",
25
+ "@ocap/mcrypto": "^1.17.4",
26
+ "@ocap/wallet": "^1.17.4",
27
27
  "axios": "^0.27.2",
28
28
  "compression": "^1.7.4",
29
29
  "cookie-parser": "^1.4.6",
@@ -32,24 +32,24 @@
32
32
  "express": "^4.18.1",
33
33
  "express-async-errors": "^3.1.1",
34
34
  "express-history-api-fallback": "^2.2.1",
35
- "vue": "^2.6.14"
35
+ "vue": "~2.6.14"
36
36
  },
37
37
  "devDependencies": {
38
- "@babel/core": "^7.18.5",
38
+ "@babel/core": "^7.18.6",
39
39
  "@babel/eslint-parser": "^7.18.2",
40
- "@vue/cli-plugin-babel": "~5.0.6",
41
- "@vue/cli-plugin-eslint": "~5.0.6",
42
- "@vue/cli-service": "~5.0.6",
43
- "core-js": "^3.23.2",
44
- "eslint": "^8.18.0",
40
+ "@vue/cli-plugin-babel": "~5.0.8",
41
+ "@vue/cli-plugin-eslint": "~5.0.8",
42
+ "@vue/cli-service": "~5.0.8",
43
+ "core-js": "^3.23.4",
44
+ "eslint": "^8.19.0",
45
45
  "eslint-config-prettier": "^8.5.0",
46
- "eslint-plugin-prettier": "^4.0.0",
47
- "eslint-plugin-vue": "^9.1.1",
46
+ "eslint-plugin-prettier": "^4.2.1",
47
+ "eslint-plugin-vue": "^9.2.0",
48
48
  "husky": "^8.0.1",
49
49
  "lint-staged": "^12.5.0",
50
- "nodemon": "^2.0.16",
50
+ "nodemon": "^2.0.19",
51
51
  "npm-run-all": "^4.1.5",
52
- "vue-template-compiler": "^2.6.14"
52
+ "vue-template-compiler": "~2.6.14"
53
53
  },
54
54
  "lint-staged": {
55
55
  "*.{mjs,js,vue}": [
@@ -14,22 +14,22 @@
14
14
  "prepare": "husky install"
15
15
  },
16
16
  "dependencies": {
17
- "vue": "^2.6.14"
17
+ "vue": "~2.6.14"
18
18
  },
19
19
  "devDependencies": {
20
- "@babel/core": "^7.18.5",
20
+ "@babel/core": "^7.18.6",
21
21
  "@babel/eslint-parser": "^7.18.2",
22
- "@vue/cli-plugin-babel": "~5.0.6",
23
- "@vue/cli-plugin-eslint": "~5.0.6",
24
- "@vue/cli-service": "~5.0.6",
25
- "core-js": "^3.23.2",
26
- "eslint": "^8.18.0",
22
+ "@vue/cli-plugin-babel": "~5.0.8",
23
+ "@vue/cli-plugin-eslint": "~5.0.8",
24
+ "@vue/cli-service": "~5.0.8",
25
+ "core-js": "^3.23.4",
26
+ "eslint": "^8.19.0",
27
27
  "eslint-config-prettier": "^8.5.0",
28
- "eslint-plugin-prettier": "^4.0.0",
29
- "eslint-plugin-vue": "^9.1.1",
28
+ "eslint-plugin-prettier": "^4.2.1",
29
+ "eslint-plugin-vue": "^9.2.0",
30
30
  "husky": "^8.0.1",
31
31
  "lint-staged": "^12.5.0",
32
- "vue-template-compiler": "^2.6.14"
32
+ "vue-template-compiler": "~2.6.14"
33
33
  },
34
34
  "lint-staged": {
35
35
  "*.{mjs,js,vue}": [