create-blocklet 0.6.6 → 0.6.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.
- package/package.json +7 -7
- package/templates/docsite/package.json +3 -3
- package/templates/express-api/package.json +4 -4
- package/templates/html-static/package.json +1 -1
- package/templates/monorepo/package.json +2 -2
- package/templates/nestjs-api/package.json +10 -10
- package/templates/nextjs-dapp/package.json +6 -6
- package/templates/react-dapp/api/index.js +0 -2
- package/templates/react-dapp/package.json +10 -11
- package/templates/react-dapp-ts/api/src/index.ts +0 -2
- package/templates/react-dapp-ts/package.json +13 -15
- package/templates/react-gun-dapp/api/index.js +0 -2
- package/templates/react-gun-dapp/package.json +10 -11
- package/templates/react-static/package.json +5 -5
- package/templates/solidjs-dapp/api/index.js +0 -2
- package/templates/solidjs-dapp/package.json +10 -11
- package/templates/solidjs-static/package.json +5 -5
- package/templates/svelte-dapp/api/index.js +0 -2
- package/templates/svelte-dapp/package.json +10 -11
- package/templates/svelte-static/package.json +5 -5
- package/templates/vue-dapp/api/index.js +0 -2
- package/templates/vue-dapp/package.json +10 -11
- package/templates/vue-static/package.json +5 -5
- package/templates/vue2-dapp/api/index.js +0 -2
- package/templates/vue2-dapp/package.json +10 -11
- package/templates/vue2-static/package.json +5 -5
- package/templates/website/package.json +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-blocklet",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.7",
|
|
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.
|
|
33
|
-
"@ocap/mcrypto": "^1.18.
|
|
34
|
-
"@ocap/util": "^1.18.
|
|
32
|
+
"@arcblock/did": "^1.18.87",
|
|
33
|
+
"@ocap/mcrypto": "^1.18.87",
|
|
34
|
+
"@ocap/util": "^1.18.87",
|
|
35
35
|
"boxen": "^6.2.1",
|
|
36
36
|
"ejs": "^3.1.9",
|
|
37
37
|
"envfile": "^6.18.0",
|
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
"jdenticon": "^3.2.0",
|
|
41
41
|
"ora": "^6.3.1",
|
|
42
42
|
"prompts": "^2.4.2",
|
|
43
|
-
"semver": "^7.5.
|
|
43
|
+
"semver": "^7.5.4",
|
|
44
44
|
"terminal-link": "^3.0.0",
|
|
45
45
|
"zx": "7.0.7"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@arcblock/eslint-config-base": "0.2.2",
|
|
49
|
-
"eslint": "^8.
|
|
49
|
+
"eslint": "^8.45.0",
|
|
50
50
|
"prettier": "^2.8.8",
|
|
51
|
-
"vitest": "^0.32.
|
|
51
|
+
"vitest": "^0.32.4"
|
|
52
52
|
}
|
|
53
53
|
}
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
"bump-version": "zx --quiet scripts/bump-version.mjs"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@xmark/cli": "^2.5.
|
|
19
|
-
"@xmark/theme-docs": "^2.5.
|
|
18
|
+
"@xmark/cli": "^2.5.6",
|
|
19
|
+
"@xmark/theme-docs": "^2.5.6",
|
|
20
20
|
"bumpp": "^8.2.1",
|
|
21
21
|
"rimraf": "^3.0.2",
|
|
22
|
-
"zx": "^7.2.
|
|
22
|
+
"zx": "^7.2.3"
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -31,20 +31,20 @@
|
|
|
31
31
|
"license": "ISC",
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@arcblock/did-auth-storage-nedb": "^1.7.1",
|
|
34
|
-
"@blocklet/sdk": "^1.16.
|
|
35
|
-
"@ocap/client": "^1.18.
|
|
34
|
+
"@blocklet/sdk": "^1.16.13",
|
|
35
|
+
"@ocap/client": "^1.18.87",
|
|
36
36
|
"dotenv-flow": "^3.2.0",
|
|
37
37
|
"express": "^4.18.2"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@arcblock/eslint-config-base": "^0.2.4",
|
|
41
41
|
"bumpp": "^8.2.1",
|
|
42
|
-
"eslint": "^8.
|
|
42
|
+
"eslint": "^8.45.0",
|
|
43
43
|
"husky": "^8.0.3",
|
|
44
44
|
"lint-staged": "^12.5.0",
|
|
45
45
|
"nodemon": "^2.0.22",
|
|
46
46
|
"prettier": "^2.8.8",
|
|
47
47
|
"rimraf": "^3.0.2",
|
|
48
|
-
"zx": "^7.2.
|
|
48
|
+
"zx": "^7.2.3"
|
|
49
49
|
}
|
|
50
50
|
}
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
"license": "ISC",
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@arcblock/did-auth-storage-nedb": "^1.7.1",
|
|
35
|
-
"@blocklet/sdk": "^1.16.
|
|
36
|
-
"@nestjs/common": "^9.4.
|
|
37
|
-
"@nestjs/core": "^9.4.
|
|
38
|
-
"@nestjs/platform-express": "^9.4.
|
|
39
|
-
"@ocap/client": "^1.18.
|
|
35
|
+
"@blocklet/sdk": "^1.16.13",
|
|
36
|
+
"@nestjs/common": "^9.4.3",
|
|
37
|
+
"@nestjs/core": "^9.4.3",
|
|
38
|
+
"@nestjs/platform-express": "^9.4.3",
|
|
39
|
+
"@ocap/client": "^1.18.87",
|
|
40
40
|
"dotenv-flow": "^3.2.0",
|
|
41
41
|
"express": "^4.18.2",
|
|
42
42
|
"reflect-metadata": "^0.1.13",
|
|
@@ -47,11 +47,11 @@
|
|
|
47
47
|
"@nestjs/cli": "^9.5.0",
|
|
48
48
|
"@nestjs/schematics": "^9.2.0",
|
|
49
49
|
"@types/express": "^4.17.17",
|
|
50
|
-
"@types/node": "^18.
|
|
51
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
52
|
-
"@typescript-eslint/parser": "^5.
|
|
50
|
+
"@types/node": "^18.17.0",
|
|
51
|
+
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
|
52
|
+
"@typescript-eslint/parser": "^5.62.0",
|
|
53
53
|
"bumpp": "^8.2.1",
|
|
54
|
-
"eslint": "^8.
|
|
54
|
+
"eslint": "^8.45.0",
|
|
55
55
|
"husky": "^8.0.3",
|
|
56
56
|
"lint-staged": "^12.5.0",
|
|
57
57
|
"nodemon": "^2.0.22",
|
|
@@ -61,6 +61,6 @@
|
|
|
61
61
|
"ts-node": "^10.9.1",
|
|
62
62
|
"tsconfig-paths": "^4.2.0",
|
|
63
63
|
"typescript": "^4.9.5",
|
|
64
|
-
"zx": "^7.2.
|
|
64
|
+
"zx": "^7.2.3"
|
|
65
65
|
}
|
|
66
66
|
}
|
|
@@ -28,12 +28,12 @@
|
|
|
28
28
|
]
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@arcblock/did-auth": "^1.18.
|
|
31
|
+
"@arcblock/did-auth": "^1.18.87",
|
|
32
32
|
"@arcblock/did-auth-storage-nedb": "^1.7.1",
|
|
33
|
-
"@blocklet/sdk": "^1.16.
|
|
34
|
-
"@ocap/client": "^1.18.
|
|
35
|
-
"@ocap/mcrypto": "^1.18.
|
|
36
|
-
"@ocap/wallet": "^1.18.
|
|
33
|
+
"@blocklet/sdk": "^1.16.13",
|
|
34
|
+
"@ocap/client": "^1.18.87",
|
|
35
|
+
"@ocap/mcrypto": "^1.18.87",
|
|
36
|
+
"@ocap/wallet": "^1.18.87",
|
|
37
37
|
"dotenv-flow": "^3.2.0",
|
|
38
38
|
"express": "^4.18.2",
|
|
39
39
|
"next": "12.2.3",
|
|
@@ -49,6 +49,6 @@
|
|
|
49
49
|
"nodemon": "^2.0.22",
|
|
50
50
|
"npm-run-all": "^4.1.5",
|
|
51
51
|
"rimraf": "^3.0.2",
|
|
52
|
-
"zx": "^7.2.
|
|
52
|
+
"zx": "^7.2.3"
|
|
53
53
|
}
|
|
54
54
|
}
|
|
@@ -3,7 +3,6 @@ require('express-async-errors');
|
|
|
3
3
|
const path = require('path');
|
|
4
4
|
const cors = require('cors');
|
|
5
5
|
const express = require('express');
|
|
6
|
-
const compression = require('compression');
|
|
7
6
|
const cookieParser = require('cookie-parser');
|
|
8
7
|
const fallback = require('express-history-api-fallback');
|
|
9
8
|
|
|
@@ -26,7 +25,6 @@ const isProduction = process.env.NODE_ENV === 'production' || process.env.ABT_NO
|
|
|
26
25
|
|
|
27
26
|
if (isProduction) {
|
|
28
27
|
const staticDir = path.resolve(__dirname, '../dist');
|
|
29
|
-
app.use(compression());
|
|
30
28
|
app.use(express.static(staticDir, { maxAge: '30d', index: false }));
|
|
31
29
|
app.use(fallback('index.html', { root: staticDir }));
|
|
32
30
|
|
|
@@ -40,14 +40,13 @@
|
|
|
40
40
|
]
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@arcblock/did-auth": "^1.18.
|
|
43
|
+
"@arcblock/did-auth": "^1.18.87",
|
|
44
44
|
"@arcblock/did-auth-storage-nedb": "^1.7.1",
|
|
45
|
-
"@blocklet/sdk": "^1.16.
|
|
46
|
-
"@ocap/client": "^1.18.
|
|
47
|
-
"@ocap/mcrypto": "^1.18.
|
|
48
|
-
"@ocap/wallet": "^1.18.
|
|
45
|
+
"@blocklet/sdk": "^1.16.13",
|
|
46
|
+
"@ocap/client": "^1.18.87",
|
|
47
|
+
"@ocap/mcrypto": "^1.18.87",
|
|
48
|
+
"@ocap/wallet": "^1.18.87",
|
|
49
49
|
"axios": "^0.27.2",
|
|
50
|
-
"compression": "^1.7.4",
|
|
51
50
|
"cookie-parser": "^1.4.6",
|
|
52
51
|
"cors": "^2.8.5",
|
|
53
52
|
"dotenv-flow": "^3.2.0",
|
|
@@ -56,7 +55,7 @@
|
|
|
56
55
|
"express-history-api-fallback": "^2.2.1",
|
|
57
56
|
"react": "^18.2.0",
|
|
58
57
|
"react-dom": "^18.2.0",
|
|
59
|
-
"react-router-dom": "^6.
|
|
58
|
+
"react-router-dom": "^6.14.2",
|
|
60
59
|
"rimraf": "^3.0.2"
|
|
61
60
|
},
|
|
62
61
|
"devDependencies": {
|
|
@@ -64,16 +63,16 @@
|
|
|
64
63
|
"@vitejs/plugin-react": "^2.2.0",
|
|
65
64
|
"bumpp": "^8.2.1",
|
|
66
65
|
"cross-env": "^7.0.3",
|
|
67
|
-
"eslint": "^8.
|
|
66
|
+
"eslint": "^8.45.0",
|
|
68
67
|
"husky": "^8.0.3",
|
|
69
68
|
"lint-staged": "^12.5.0",
|
|
70
69
|
"nodemon": "^2.0.22",
|
|
71
70
|
"npm-run-all": "^4.1.5",
|
|
72
71
|
"prettier": "^2.8.8",
|
|
73
|
-
"vite": "^4.
|
|
74
|
-
"vite-plugin-blocklet": "^0.6.
|
|
72
|
+
"vite": "^4.4.7",
|
|
73
|
+
"vite-plugin-blocklet": "^0.6.7",
|
|
75
74
|
"vite-plugin-node-polyfills": "^0.7.0",
|
|
76
75
|
"vite-plugin-svgr": "^2.4.0",
|
|
77
|
-
"zx": "^7.2.
|
|
76
|
+
"zx": "^7.2.3"
|
|
78
77
|
}
|
|
79
78
|
}
|
|
@@ -2,7 +2,6 @@ import 'express-async-errors';
|
|
|
2
2
|
|
|
3
3
|
import path from 'path';
|
|
4
4
|
|
|
5
|
-
import compression from 'compression';
|
|
6
5
|
import cookieParser from 'cookie-parser';
|
|
7
6
|
import cors from 'cors';
|
|
8
7
|
import dotenv from 'dotenv-flow';
|
|
@@ -32,7 +31,6 @@ const isProduction = process.env.NODE_ENV === 'production' || process.env.ABT_NO
|
|
|
32
31
|
|
|
33
32
|
if (isProduction) {
|
|
34
33
|
const staticDir = path.resolve(process.env.BLOCKLET_APP_DIR!, 'dist');
|
|
35
|
-
app.use(compression());
|
|
36
34
|
app.use(express.static(staticDir, { maxAge: '30d', index: false }));
|
|
37
35
|
app.use(fallback('index.html', { root: staticDir }));
|
|
38
36
|
|
|
@@ -38,14 +38,13 @@
|
|
|
38
38
|
]
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@arcblock/did-auth": "^1.18.
|
|
41
|
+
"@arcblock/did-auth": "^1.18.87",
|
|
42
42
|
"@arcblock/did-auth-storage-nedb": "^1.7.1",
|
|
43
|
-
"@blocklet/sdk": "^1.16.
|
|
44
|
-
"@ocap/client": "^1.18.
|
|
45
|
-
"@ocap/mcrypto": "^1.18.
|
|
46
|
-
"@ocap/wallet": "^1.18.
|
|
43
|
+
"@blocklet/sdk": "^1.16.13",
|
|
44
|
+
"@ocap/client": "^1.18.87",
|
|
45
|
+
"@ocap/mcrypto": "^1.18.87",
|
|
46
|
+
"@ocap/wallet": "^1.18.87",
|
|
47
47
|
"axios": "^0.27.2",
|
|
48
|
-
"compression": "^1.7.4",
|
|
49
48
|
"cookie-parser": "^1.4.6",
|
|
50
49
|
"cors": "^2.8.5",
|
|
51
50
|
"dotenv-flow": "^3.2.0",
|
|
@@ -54,24 +53,23 @@
|
|
|
54
53
|
"express-history-api-fallback": "^2.2.1",
|
|
55
54
|
"react": "^18.2.0",
|
|
56
55
|
"react-dom": "^18.2.0",
|
|
57
|
-
"react-router-dom": "^6.
|
|
56
|
+
"react-router-dom": "^6.14.2",
|
|
58
57
|
"rimraf": "^3.0.2"
|
|
59
58
|
},
|
|
60
59
|
"devDependencies": {
|
|
61
60
|
"@arcblock/eslint-config": "^0.2.4",
|
|
62
61
|
"@arcblock/eslint-config-ts": "^0.2.4",
|
|
63
|
-
"@types/compression": "^1.7.2",
|
|
64
62
|
"@types/cookie-parser": "^1.4.3",
|
|
65
63
|
"@types/cors": "^2.8.13",
|
|
66
64
|
"@types/dotenv-flow": "^3.2.0",
|
|
67
65
|
"@types/express": "^4.17.17",
|
|
68
|
-
"@types/node": "^18.
|
|
69
|
-
"@types/react": "^18.2.
|
|
70
|
-
"@types/react-dom": "^18.2.
|
|
66
|
+
"@types/node": "^18.17.0",
|
|
67
|
+
"@types/react": "^18.2.16",
|
|
68
|
+
"@types/react-dom": "^18.2.7",
|
|
71
69
|
"@vitejs/plugin-react": "^2.2.0",
|
|
72
70
|
"bumpp": "^8.2.1",
|
|
73
71
|
"cross-env": "^7.0.3",
|
|
74
|
-
"eslint": "^8.
|
|
72
|
+
"eslint": "^8.45.0",
|
|
75
73
|
"husky": "^8.0.3",
|
|
76
74
|
"import-sort-style-module": "^6.0.0",
|
|
77
75
|
"lint-staged": "^12.5.0",
|
|
@@ -81,11 +79,11 @@
|
|
|
81
79
|
"prettier-plugin-import-sort": "^0.0.7",
|
|
82
80
|
"ts-node": "^10.9.1",
|
|
83
81
|
"typescript": "^4.9.5",
|
|
84
|
-
"vite": "^4.
|
|
85
|
-
"vite-plugin-blocklet": "^0.6.
|
|
82
|
+
"vite": "^4.4.7",
|
|
83
|
+
"vite-plugin-blocklet": "^0.6.7",
|
|
86
84
|
"vite-plugin-node-polyfills": "^0.7.0",
|
|
87
85
|
"vite-plugin-svgr": "^2.4.0",
|
|
88
|
-
"zx": "^7.2.
|
|
86
|
+
"zx": "^7.2.3"
|
|
89
87
|
},
|
|
90
88
|
"importSort": {
|
|
91
89
|
".js, .jsx, .mjs": {
|
|
@@ -4,7 +4,6 @@ const path = require('path');
|
|
|
4
4
|
const cors = require('cors');
|
|
5
5
|
const Gun = require('gun');
|
|
6
6
|
const express = require('express');
|
|
7
|
-
const compression = require('compression');
|
|
8
7
|
const cookieParser = require('cookie-parser');
|
|
9
8
|
const fallback = require('express-history-api-fallback');
|
|
10
9
|
|
|
@@ -30,7 +29,6 @@ const isProduction = process.env.NODE_ENV === 'production' || process.env.ABT_NO
|
|
|
30
29
|
|
|
31
30
|
if (isProduction) {
|
|
32
31
|
const staticDir = path.resolve(__dirname, '../dist');
|
|
33
|
-
app.use(compression());
|
|
34
32
|
app.use(express.static(staticDir, { maxAge: '30d', index: false }));
|
|
35
33
|
app.use(fallback('index.html', { root: staticDir }));
|
|
36
34
|
|
|
@@ -40,14 +40,13 @@
|
|
|
40
40
|
]
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@arcblock/did-auth": "^1.18.
|
|
43
|
+
"@arcblock/did-auth": "^1.18.87",
|
|
44
44
|
"@arcblock/did-auth-storage-nedb": "^1.7.1",
|
|
45
|
-
"@blocklet/sdk": "^1.16.
|
|
46
|
-
"@ocap/client": "^1.18.
|
|
47
|
-
"@ocap/mcrypto": "^1.18.
|
|
48
|
-
"@ocap/wallet": "^1.18.
|
|
45
|
+
"@blocklet/sdk": "^1.16.13",
|
|
46
|
+
"@ocap/client": "^1.18.87",
|
|
47
|
+
"@ocap/mcrypto": "^1.18.87",
|
|
48
|
+
"@ocap/wallet": "^1.18.87",
|
|
49
49
|
"axios": "^0.27.2",
|
|
50
|
-
"compression": "^1.7.4",
|
|
51
50
|
"cookie-parser": "^1.4.6",
|
|
52
51
|
"cors": "^2.8.5",
|
|
53
52
|
"dotenv-flow": "^3.2.0",
|
|
@@ -57,24 +56,24 @@
|
|
|
57
56
|
"gun": "^0.2020.1239",
|
|
58
57
|
"react": "^18.2.0",
|
|
59
58
|
"react-dom": "^18.2.0",
|
|
60
|
-
"react-router-dom": "^6.
|
|
59
|
+
"react-router-dom": "^6.14.2"
|
|
61
60
|
},
|
|
62
61
|
"devDependencies": {
|
|
63
62
|
"@arcblock/eslint-config": "^0.2.4",
|
|
64
63
|
"@vitejs/plugin-react": "^2.2.0",
|
|
65
64
|
"bumpp": "^8.2.1",
|
|
66
65
|
"cross-env": "^7.0.3",
|
|
67
|
-
"eslint": "^8.
|
|
66
|
+
"eslint": "^8.45.0",
|
|
68
67
|
"husky": "^8.0.3",
|
|
69
68
|
"lint-staged": "^12.5.0",
|
|
70
69
|
"nodemon": "^2.0.22",
|
|
71
70
|
"npm-run-all": "^4.1.5",
|
|
72
71
|
"prettier": "^2.8.8",
|
|
73
72
|
"rimraf": "^3.0.2",
|
|
74
|
-
"vite": "^4.
|
|
75
|
-
"vite-plugin-blocklet": "^0.6.
|
|
73
|
+
"vite": "^4.4.7",
|
|
74
|
+
"vite-plugin-blocklet": "^0.6.7",
|
|
76
75
|
"vite-plugin-node-polyfills": "^0.7.0",
|
|
77
76
|
"vite-plugin-svgr": "^2.4.0",
|
|
78
|
-
"zx": "^7.2.
|
|
77
|
+
"zx": "^7.2.3"
|
|
79
78
|
}
|
|
80
79
|
}
|
|
@@ -41,21 +41,21 @@
|
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"react": "^18.2.0",
|
|
43
43
|
"react-dom": "^18.2.0",
|
|
44
|
-
"react-router-dom": "^6.
|
|
44
|
+
"react-router-dom": "^6.14.2"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@arcblock/eslint-config": "^0.2.4",
|
|
48
48
|
"@vitejs/plugin-react": "^2.2.0",
|
|
49
49
|
"bumpp": "^8.2.1",
|
|
50
|
-
"eslint": "^8.
|
|
50
|
+
"eslint": "^8.45.0",
|
|
51
51
|
"husky": "^8.0.3",
|
|
52
52
|
"lint-staged": "^12.5.0",
|
|
53
53
|
"prettier": "^2.8.8",
|
|
54
54
|
"rimraf": "^3.0.2",
|
|
55
|
-
"vite": "^4.
|
|
56
|
-
"vite-plugin-blocklet": "^0.6.
|
|
55
|
+
"vite": "^4.4.7",
|
|
56
|
+
"vite-plugin-blocklet": "^0.6.7",
|
|
57
57
|
"vite-plugin-node-polyfills": "^0.7.0",
|
|
58
58
|
"vite-plugin-svgr": "^2.4.0",
|
|
59
|
-
"zx": "^7.2.
|
|
59
|
+
"zx": "^7.2.3"
|
|
60
60
|
}
|
|
61
61
|
}
|
|
@@ -3,7 +3,6 @@ require('express-async-errors');
|
|
|
3
3
|
const path = require('path');
|
|
4
4
|
const cors = require('cors');
|
|
5
5
|
const express = require('express');
|
|
6
|
-
const compression = require('compression');
|
|
7
6
|
const cookieParser = require('cookie-parser');
|
|
8
7
|
const fallback = require('express-history-api-fallback');
|
|
9
8
|
|
|
@@ -26,7 +25,6 @@ const isProduction = process.env.NODE_ENV === 'production' || process.env.ABT_NO
|
|
|
26
25
|
|
|
27
26
|
if (isProduction) {
|
|
28
27
|
const staticDir = path.resolve(__dirname, '../dist');
|
|
29
|
-
app.use(compression());
|
|
30
28
|
app.use(express.static(staticDir, { maxAge: '30d', index: false }));
|
|
31
29
|
app.use(fallback('index.html', { root: staticDir }));
|
|
32
30
|
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"bumpp": "^8.2.1",
|
|
24
24
|
"cross-env": "^7.0.3",
|
|
25
|
-
"eslint": "^8.
|
|
25
|
+
"eslint": "^8.45.0",
|
|
26
26
|
"eslint-config-prettier": "^8.8.0",
|
|
27
27
|
"eslint-plugin-prettier": "^4.2.1",
|
|
28
28
|
"eslint-plugin-solid": "0.7.1",
|
|
@@ -32,28 +32,27 @@
|
|
|
32
32
|
"npm-run-all": "^4.1.5",
|
|
33
33
|
"prettier": "^2.8.8",
|
|
34
34
|
"rimraf": "^3.0.2",
|
|
35
|
-
"vite": "^4.
|
|
36
|
-
"vite-plugin-blocklet": "^0.6.
|
|
35
|
+
"vite": "^4.4.7",
|
|
36
|
+
"vite-plugin-blocklet": "^0.6.7",
|
|
37
37
|
"vite-plugin-node-polyfills": "^0.7.0",
|
|
38
38
|
"vite-plugin-solid": "^2.7.0",
|
|
39
|
-
"zx": "^7.2.
|
|
39
|
+
"zx": "^7.2.3"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@arcblock/did-auth": "^1.18.
|
|
42
|
+
"@arcblock/did-auth": "^1.18.87",
|
|
43
43
|
"@arcblock/did-auth-storage-nedb": "^1.7.1",
|
|
44
|
-
"@blocklet/sdk": "^1.16.
|
|
45
|
-
"@ocap/client": "^1.18.
|
|
46
|
-
"@ocap/mcrypto": "^1.18.
|
|
47
|
-
"@ocap/wallet": "^1.18.
|
|
44
|
+
"@blocklet/sdk": "^1.16.13",
|
|
45
|
+
"@ocap/client": "^1.18.87",
|
|
46
|
+
"@ocap/mcrypto": "^1.18.87",
|
|
47
|
+
"@ocap/wallet": "^1.18.87",
|
|
48
48
|
"axios": "^0.27.2",
|
|
49
|
-
"compression": "^1.7.4",
|
|
50
49
|
"cookie-parser": "^1.4.6",
|
|
51
50
|
"cors": "^2.8.5",
|
|
52
51
|
"dotenv-flow": "^3.2.0",
|
|
53
52
|
"express": "^4.18.2",
|
|
54
53
|
"express-async-errors": "^3.1.1",
|
|
55
54
|
"express-history-api-fallback": "^2.2.1",
|
|
56
|
-
"solid-js": "^1.7.
|
|
55
|
+
"solid-js": "^1.7.8"
|
|
57
56
|
},
|
|
58
57
|
"lint-staged": {
|
|
59
58
|
"*.{mjs,js,vue}": [
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"bumpp": "^8.2.1",
|
|
23
|
-
"eslint": "^8.
|
|
23
|
+
"eslint": "^8.45.0",
|
|
24
24
|
"eslint-config-prettier": "^8.8.0",
|
|
25
25
|
"eslint-plugin-prettier": "^4.2.1",
|
|
26
26
|
"eslint-plugin-solid": "0.7.1",
|
|
@@ -28,14 +28,14 @@
|
|
|
28
28
|
"lint-staged": "^12.5.0",
|
|
29
29
|
"prettier": "^2.8.8",
|
|
30
30
|
"rimraf": "^3.0.2",
|
|
31
|
-
"vite": "^4.
|
|
32
|
-
"vite-plugin-blocklet": "^0.6.
|
|
31
|
+
"vite": "^4.4.7",
|
|
32
|
+
"vite-plugin-blocklet": "^0.6.7",
|
|
33
33
|
"vite-plugin-node-polyfills": "^0.7.0",
|
|
34
34
|
"vite-plugin-solid": "^2.7.0",
|
|
35
|
-
"zx": "^7.2.
|
|
35
|
+
"zx": "^7.2.3"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"solid-js": "^1.7.
|
|
38
|
+
"solid-js": "^1.7.8"
|
|
39
39
|
},
|
|
40
40
|
"lint-staged": {
|
|
41
41
|
"*.{mjs,js,vue}": [
|
|
@@ -3,7 +3,6 @@ require('express-async-errors');
|
|
|
3
3
|
const path = require('path');
|
|
4
4
|
const cors = require('cors');
|
|
5
5
|
const express = require('express');
|
|
6
|
-
const compression = require('compression');
|
|
7
6
|
const cookieParser = require('cookie-parser');
|
|
8
7
|
const fallback = require('express-history-api-fallback');
|
|
9
8
|
|
|
@@ -26,7 +25,6 @@ const isProduction = process.env.NODE_ENV === 'production' || process.env.ABT_NO
|
|
|
26
25
|
|
|
27
26
|
if (isProduction) {
|
|
28
27
|
const staticDir = path.resolve(__dirname, '../dist');
|
|
29
|
-
app.use(compression());
|
|
30
28
|
app.use(express.static(staticDir, { maxAge: '30d', index: false }));
|
|
31
29
|
app.use(fallback('index.html', { root: staticDir }));
|
|
32
30
|
|
|
@@ -17,14 +17,13 @@
|
|
|
17
17
|
"bump-version": "zx --quiet scripts/bump-version.mjs"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@arcblock/did-auth": "^1.18.
|
|
20
|
+
"@arcblock/did-auth": "^1.18.87",
|
|
21
21
|
"@arcblock/did-auth-storage-nedb": "^1.7.1",
|
|
22
|
-
"@blocklet/sdk": "^1.16.
|
|
23
|
-
"@ocap/client": "^1.18.
|
|
24
|
-
"@ocap/mcrypto": "^1.18.
|
|
25
|
-
"@ocap/wallet": "^1.18.
|
|
22
|
+
"@blocklet/sdk": "^1.16.13",
|
|
23
|
+
"@ocap/client": "^1.18.87",
|
|
24
|
+
"@ocap/mcrypto": "^1.18.87",
|
|
25
|
+
"@ocap/wallet": "^1.18.87",
|
|
26
26
|
"axios": "^0.27.2",
|
|
27
|
-
"compression": "^1.7.4",
|
|
28
27
|
"cookie-parser": "^1.4.6",
|
|
29
28
|
"cors": "^2.8.5",
|
|
30
29
|
"dotenv-flow": "^3.2.0",
|
|
@@ -36,7 +35,7 @@
|
|
|
36
35
|
"@sveltejs/vite-plugin-svelte": "1.0.1",
|
|
37
36
|
"bumpp": "^8.2.1",
|
|
38
37
|
"cross-env": "^7.0.3",
|
|
39
|
-
"eslint": "^8.
|
|
38
|
+
"eslint": "^8.45.0",
|
|
40
39
|
"eslint-config-prettier": "^8.8.0",
|
|
41
40
|
"eslint-plugin-prettier": "^4.2.1",
|
|
42
41
|
"eslint-plugin-svelte3": "^4.0.0",
|
|
@@ -45,12 +44,12 @@
|
|
|
45
44
|
"npm-run-all": "^4.1.5",
|
|
46
45
|
"prettier": "^2.8.8",
|
|
47
46
|
"rimraf": "^3.0.2",
|
|
48
|
-
"svelte": "^3.59.
|
|
49
|
-
"vite": "^4.
|
|
50
|
-
"vite-plugin-blocklet": "^0.6.
|
|
47
|
+
"svelte": "^3.59.2",
|
|
48
|
+
"vite": "^4.4.7",
|
|
49
|
+
"vite-plugin-blocklet": "^0.6.7",
|
|
51
50
|
"vite-plugin-html": "^3.2.0",
|
|
52
51
|
"vite-plugin-node-polyfills": "^0.7.0",
|
|
53
|
-
"zx": "^7.2.
|
|
52
|
+
"zx": "^7.2.3"
|
|
54
53
|
},
|
|
55
54
|
"lint-staged": {
|
|
56
55
|
"*.{mjs,js,vue}": [
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@sveltejs/vite-plugin-svelte": "1.0.1",
|
|
22
22
|
"bumpp": "^8.2.1",
|
|
23
|
-
"eslint": "^8.
|
|
23
|
+
"eslint": "^8.45.0",
|
|
24
24
|
"eslint-config-prettier": "^8.8.0",
|
|
25
25
|
"eslint-plugin-prettier": "^4.2.1",
|
|
26
26
|
"eslint-plugin-svelte3": "^4.0.0",
|
|
@@ -28,11 +28,11 @@
|
|
|
28
28
|
"lint-staged": "^12.5.0",
|
|
29
29
|
"prettier": "^2.8.8",
|
|
30
30
|
"rimraf": "^3.0.2",
|
|
31
|
-
"svelte": "^3.59.
|
|
32
|
-
"vite": "^4.
|
|
33
|
-
"vite-plugin-blocklet": "^0.6.
|
|
31
|
+
"svelte": "^3.59.2",
|
|
32
|
+
"vite": "^4.4.7",
|
|
33
|
+
"vite-plugin-blocklet": "^0.6.7",
|
|
34
34
|
"vite-plugin-node-polyfills": "^0.7.0",
|
|
35
|
-
"zx": "^7.2.
|
|
35
|
+
"zx": "^7.2.3"
|
|
36
36
|
},
|
|
37
37
|
"lint-staged": {
|
|
38
38
|
"*.{mjs,js,vue}": [
|
|
@@ -3,7 +3,6 @@ require('express-async-errors');
|
|
|
3
3
|
const path = require('path');
|
|
4
4
|
const cors = require('cors');
|
|
5
5
|
const express = require('express');
|
|
6
|
-
const compression = require('compression');
|
|
7
6
|
const cookieParser = require('cookie-parser');
|
|
8
7
|
const fallback = require('express-history-api-fallback');
|
|
9
8
|
|
|
@@ -26,7 +25,6 @@ const isProduction = process.env.NODE_ENV === 'production' || process.env.ABT_NO
|
|
|
26
25
|
|
|
27
26
|
if (isProduction) {
|
|
28
27
|
const staticDir = path.resolve(__dirname, '../dist');
|
|
29
|
-
app.use(compression());
|
|
30
28
|
app.use(express.static(staticDir, { maxAge: '30d', index: false }));
|
|
31
29
|
app.use(fallback('index.html', { root: staticDir }));
|
|
32
30
|
|
|
@@ -18,14 +18,13 @@
|
|
|
18
18
|
"bump-version": "zx --quiet scripts/bump-version.mjs"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@arcblock/did-auth": "^1.18.
|
|
21
|
+
"@arcblock/did-auth": "^1.18.87",
|
|
22
22
|
"@arcblock/did-auth-storage-nedb": "^1.7.1",
|
|
23
|
-
"@blocklet/sdk": "^1.16.
|
|
24
|
-
"@ocap/client": "^1.18.
|
|
25
|
-
"@ocap/mcrypto": "^1.18.
|
|
26
|
-
"@ocap/wallet": "^1.18.
|
|
23
|
+
"@blocklet/sdk": "^1.16.13",
|
|
24
|
+
"@ocap/client": "^1.18.87",
|
|
25
|
+
"@ocap/mcrypto": "^1.18.87",
|
|
26
|
+
"@ocap/wallet": "^1.18.87",
|
|
27
27
|
"axios": "^0.27.2",
|
|
28
|
-
"compression": "^1.7.4",
|
|
29
28
|
"cookie-parser": "^1.4.6",
|
|
30
29
|
"cors": "^2.8.5",
|
|
31
30
|
"dotenv-flow": "^3.2.0",
|
|
@@ -38,20 +37,20 @@
|
|
|
38
37
|
"@vitejs/plugin-vue": "^3.2.0",
|
|
39
38
|
"bumpp": "^8.2.1",
|
|
40
39
|
"cross-env": "^7.0.3",
|
|
41
|
-
"eslint": "^8.
|
|
40
|
+
"eslint": "^8.45.0",
|
|
42
41
|
"eslint-config-prettier": "^8.8.0",
|
|
43
42
|
"eslint-plugin-prettier": "^4.2.1",
|
|
44
|
-
"eslint-plugin-vue": "^9.
|
|
43
|
+
"eslint-plugin-vue": "^9.15.1",
|
|
45
44
|
"husky": "^8.0.3",
|
|
46
45
|
"lint-staged": "^12.5.0",
|
|
47
46
|
"nodemon": "^2.0.22",
|
|
48
47
|
"npm-run-all": "^4.1.5",
|
|
49
48
|
"prettier": "^2.8.8",
|
|
50
49
|
"rimraf": "^3.0.2",
|
|
51
|
-
"vite": "^4.
|
|
52
|
-
"vite-plugin-blocklet": "^0.6.
|
|
50
|
+
"vite": "^4.4.7",
|
|
51
|
+
"vite-plugin-blocklet": "^0.6.7",
|
|
53
52
|
"vite-plugin-node-polyfills": "^0.7.0",
|
|
54
|
-
"zx": "^7.2.
|
|
53
|
+
"zx": "^7.2.3"
|
|
55
54
|
},
|
|
56
55
|
"lint-staged": {
|
|
57
56
|
"*.{mjs,js,vue}": [
|
|
@@ -22,18 +22,18 @@
|
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@vitejs/plugin-vue": "^3.2.0",
|
|
24
24
|
"bumpp": "^8.2.1",
|
|
25
|
-
"eslint": "^8.
|
|
25
|
+
"eslint": "^8.45.0",
|
|
26
26
|
"eslint-config-prettier": "^8.8.0",
|
|
27
27
|
"eslint-plugin-prettier": "^4.2.1",
|
|
28
|
-
"eslint-plugin-vue": "^9.
|
|
28
|
+
"eslint-plugin-vue": "^9.15.1",
|
|
29
29
|
"husky": "^8.0.3",
|
|
30
30
|
"lint-staged": "^12.5.0",
|
|
31
31
|
"prettier": "^2.8.8",
|
|
32
32
|
"rimraf": "^3.0.2",
|
|
33
|
-
"vite": "^4.
|
|
34
|
-
"vite-plugin-blocklet": "^0.6.
|
|
33
|
+
"vite": "^4.4.7",
|
|
34
|
+
"vite-plugin-blocklet": "^0.6.7",
|
|
35
35
|
"vite-plugin-node-polyfills": "^0.7.0",
|
|
36
|
-
"zx": "^7.2.
|
|
36
|
+
"zx": "^7.2.3"
|
|
37
37
|
},
|
|
38
38
|
"lint-staged": {
|
|
39
39
|
"*.{mjs,js,vue}": [
|
|
@@ -3,7 +3,6 @@ require('express-async-errors');
|
|
|
3
3
|
const path = require('path');
|
|
4
4
|
const cors = require('cors');
|
|
5
5
|
const express = require('express');
|
|
6
|
-
const compression = require('compression');
|
|
7
6
|
const cookieParser = require('cookie-parser');
|
|
8
7
|
const fallback = require('express-history-api-fallback');
|
|
9
8
|
|
|
@@ -26,7 +25,6 @@ const isProduction = process.env.NODE_ENV === 'production' || process.env.ABT_NO
|
|
|
26
25
|
|
|
27
26
|
if (isProduction) {
|
|
28
27
|
const staticDir = path.resolve(__dirname, '../dist');
|
|
29
|
-
app.use(compression());
|
|
30
28
|
app.use(express.static(staticDir, { maxAge: '30d', index: false }));
|
|
31
29
|
app.use(fallback('index.html', { root: staticDir }));
|
|
32
30
|
|
|
@@ -18,14 +18,13 @@
|
|
|
18
18
|
"bump-version": "zx --quiet scripts/bump-version.mjs"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@arcblock/did-auth": "^1.18.
|
|
21
|
+
"@arcblock/did-auth": "^1.18.87",
|
|
22
22
|
"@arcblock/did-auth-storage-nedb": "^1.7.1",
|
|
23
|
-
"@blocklet/sdk": "^1.16.
|
|
24
|
-
"@ocap/client": "^1.18.
|
|
25
|
-
"@ocap/mcrypto": "^1.18.
|
|
26
|
-
"@ocap/wallet": "^1.18.
|
|
23
|
+
"@blocklet/sdk": "^1.16.13",
|
|
24
|
+
"@ocap/client": "^1.18.87",
|
|
25
|
+
"@ocap/mcrypto": "^1.18.87",
|
|
26
|
+
"@ocap/wallet": "^1.18.87",
|
|
27
27
|
"axios": "^0.27.2",
|
|
28
|
-
"compression": "^1.7.4",
|
|
29
28
|
"cookie-parser": "^1.4.6",
|
|
30
29
|
"cors": "^2.8.5",
|
|
31
30
|
"dotenv-flow": "^3.2.0",
|
|
@@ -38,20 +37,20 @@
|
|
|
38
37
|
"@vitejs/plugin-vue2": "^2.2.0",
|
|
39
38
|
"bumpp": "^8.2.1",
|
|
40
39
|
"cross-env": "^7.0.3",
|
|
41
|
-
"eslint": "^8.
|
|
40
|
+
"eslint": "^8.45.0",
|
|
42
41
|
"eslint-config-prettier": "^8.8.0",
|
|
43
42
|
"eslint-plugin-prettier": "^4.2.1",
|
|
44
|
-
"eslint-plugin-vue": "^9.
|
|
43
|
+
"eslint-plugin-vue": "^9.15.1",
|
|
45
44
|
"husky": "^8.0.3",
|
|
46
45
|
"lint-staged": "^12.5.0",
|
|
47
46
|
"nodemon": "^2.0.22",
|
|
48
47
|
"npm-run-all": "^4.1.5",
|
|
49
48
|
"prettier": "^2.8.8",
|
|
50
49
|
"rimraf": "^3.0.2",
|
|
51
|
-
"vite": "^4.
|
|
52
|
-
"vite-plugin-blocklet": "^0.6.
|
|
50
|
+
"vite": "^4.4.7",
|
|
51
|
+
"vite-plugin-blocklet": "^0.6.7",
|
|
53
52
|
"vite-plugin-node-polyfills": "^0.7.0",
|
|
54
|
-
"zx": "^7.2.
|
|
53
|
+
"zx": "^7.2.3"
|
|
55
54
|
},
|
|
56
55
|
"lint-staged": {
|
|
57
56
|
"*.{mjs,js,vue}": [
|
|
@@ -22,18 +22,18 @@
|
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@vitejs/plugin-vue2": "^2.2.0",
|
|
24
24
|
"bumpp": "^8.2.1",
|
|
25
|
-
"eslint": "^8.
|
|
25
|
+
"eslint": "^8.45.0",
|
|
26
26
|
"eslint-config-prettier": "^8.8.0",
|
|
27
27
|
"eslint-plugin-prettier": "^4.2.1",
|
|
28
|
-
"eslint-plugin-vue": "^9.
|
|
28
|
+
"eslint-plugin-vue": "^9.15.1",
|
|
29
29
|
"husky": "^8.0.3",
|
|
30
30
|
"lint-staged": "^12.5.0",
|
|
31
31
|
"prettier": "^2.8.8",
|
|
32
32
|
"rimraf": "^3.0.2",
|
|
33
|
-
"vite": "^4.
|
|
34
|
-
"vite-plugin-blocklet": "^0.6.
|
|
33
|
+
"vite": "^4.4.7",
|
|
34
|
+
"vite-plugin-blocklet": "^0.6.7",
|
|
35
35
|
"vite-plugin-node-polyfills": "^0.7.0",
|
|
36
|
-
"zx": "^7.2.
|
|
36
|
+
"zx": "^7.2.3"
|
|
37
37
|
},
|
|
38
38
|
"lint-staged": {
|
|
39
39
|
"*.{mjs,js,vue}": [
|