create-blocklet 0.9.6 → 0.9.8

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.
Files changed (91) hide show
  1. package/common/.prettierrc +11 -1
  2. package/common/scripts/build-clean.mjs +0 -1
  3. package/common/scripts/bump-version.mjs +33 -29
  4. package/index.js +16 -10
  5. package/lib/did.js +10 -5
  6. package/package.json +1 -1
  7. package/templates/did-connect-dapp/.eslintrc.js +4 -0
  8. package/templates/did-connect-dapp/README.md +35 -0
  9. package/templates/did-connect-dapp/api/dev.js +5 -0
  10. package/templates/did-connect-dapp/api/hooks/pre-start.js +33 -0
  11. package/templates/did-connect-dapp/api/index.js +48 -0
  12. package/templates/did-connect-dapp/api/libs/auth.js +25 -0
  13. package/templates/did-connect-dapp/api/libs/env.js +9 -0
  14. package/templates/did-connect-dapp/api/libs/logger.js +3 -0
  15. package/templates/did-connect-dapp/api/libs/utils.js +70 -0
  16. package/templates/did-connect-dapp/api/routes/auth/index.js +15 -0
  17. package/templates/did-connect-dapp/api/routes/auth/request-digest-signature.js +51 -0
  18. package/templates/did-connect-dapp/api/routes/auth/request-multiple-claims.js +52 -0
  19. package/templates/did-connect-dapp/api/routes/auth/request-multiple-steps.js +57 -0
  20. package/templates/did-connect-dapp/api/routes/auth/request-nft.js +82 -0
  21. package/templates/did-connect-dapp/api/routes/auth/request-payment.js +72 -0
  22. package/templates/did-connect-dapp/api/routes/auth/request-profile.js +25 -0
  23. package/templates/did-connect-dapp/api/routes/auth/request-text-signature.js +44 -0
  24. package/templates/did-connect-dapp/api/routes/auth/request-transaction-signature.js +62 -0
  25. package/templates/did-connect-dapp/blocklet.md +5 -0
  26. package/templates/did-connect-dapp/blocklet.yml +57 -0
  27. package/templates/did-connect-dapp/index.html +17 -0
  28. package/templates/did-connect-dapp/package.json +86 -0
  29. package/templates/did-connect-dapp/src/app.jsx +20 -0
  30. package/templates/did-connect-dapp/src/assets/get_wallet_en.png +0 -0
  31. package/templates/did-connect-dapp/src/assets/get_wallet_zh.png +0 -0
  32. package/templates/did-connect-dapp/src/components/connect-item.jsx +39 -0
  33. package/templates/did-connect-dapp/src/components/connects/request-digest-signature.jsx +45 -0
  34. package/templates/did-connect-dapp/src/components/connects/request-multiple-claims.jsx +55 -0
  35. package/templates/did-connect-dapp/src/components/connects/request-multiple-steps.jsx +54 -0
  36. package/templates/did-connect-dapp/src/components/connects/request-nft.jsx +75 -0
  37. package/templates/did-connect-dapp/src/components/connects/request-payment.jsx +82 -0
  38. package/templates/did-connect-dapp/src/components/connects/request-profile.jsx +72 -0
  39. package/templates/did-connect-dapp/src/components/connects/request-text-signature.jsx +44 -0
  40. package/templates/did-connect-dapp/src/components/connects/request-transaction-signature.jsx +44 -0
  41. package/templates/did-connect-dapp/src/components/info-row.jsx +39 -0
  42. package/templates/did-connect-dapp/src/components/layout.jsx +26 -0
  43. package/templates/did-connect-dapp/src/index.jsx +6 -0
  44. package/templates/did-connect-dapp/src/libs/session.js +11 -0
  45. package/templates/did-connect-dapp/src/libs/utils.js +4 -0
  46. package/templates/did-connect-dapp/src/locales/en.js +115 -0
  47. package/templates/did-connect-dapp/src/locales/index.js +5 -0
  48. package/templates/did-connect-dapp/src/locales/zh.js +115 -0
  49. package/templates/did-connect-dapp/src/pages/main.jsx +95 -0
  50. package/templates/did-connect-dapp/template-info.json +12 -0
  51. package/templates/did-connect-dapp/vite.config.mjs +11 -0
  52. package/templates/did-wallet-dapp/blocklet.yml +1 -2
  53. package/templates/did-wallet-dapp/package.json +18 -18
  54. package/templates/express-api/blocklet.yml +0 -1
  55. package/templates/express-api/package.json +9 -8
  56. package/templates/html-static/blocklet.yml +0 -1
  57. package/templates/html-static/package.json +4 -3
  58. package/templates/monorepo/package.json +4 -3
  59. package/templates/monorepo/scripts/bump-version.mjs +36 -32
  60. package/templates/nestjs-api/blocklet.yml +0 -1
  61. package/templates/nestjs-api/package.json +16 -15
  62. package/templates/nextjs-dapp/blocklet.yml +0 -1
  63. package/templates/nextjs-dapp/package.json +7 -7
  64. package/templates/react-dapp/blocklet.yml +0 -1
  65. package/templates/react-dapp/package.json +16 -15
  66. package/templates/react-dapp-ts/blocklet.yml +0 -1
  67. package/templates/react-dapp-ts/package.json +19 -18
  68. package/templates/react-gun-dapp/blocklet.yml +0 -1
  69. package/templates/react-gun-dapp/package.json +15 -14
  70. package/templates/react-static/blocklet.yml +0 -1
  71. package/templates/react-static/package.json +11 -10
  72. package/templates/solidjs-dapp/blocklet.yml +0 -1
  73. package/templates/solidjs-dapp/package.json +14 -13
  74. package/templates/solidjs-static/blocklet.yml +0 -1
  75. package/templates/solidjs-static/package.json +9 -8
  76. package/templates/svelte-dapp/blocklet.yml +0 -1
  77. package/templates/svelte-dapp/package.json +13 -12
  78. package/templates/svelte-static/blocklet.yml +0 -1
  79. package/templates/svelte-static/package.json +9 -8
  80. package/templates/todo-list-example/blocklet.yml +0 -1
  81. package/templates/todo-list-example/package.json +13 -12
  82. package/templates/vue-dapp/blocklet.yml +0 -1
  83. package/templates/vue-dapp/package.json +16 -15
  84. package/templates/vue-static/blocklet.yml +0 -1
  85. package/templates/vue-static/package.json +11 -10
  86. package/templates/vue-ts-static/blocklet.yml +1 -2
  87. package/templates/vue-ts-static/package.json +12 -12
  88. package/templates/vue2-dapp/blocklet.yml +0 -1
  89. package/templates/vue2-dapp/package.json +13 -12
  90. package/templates/vue2-static/blocklet.yml +0 -1
  91. package/templates/vue2-static/package.json +9 -8
@@ -0,0 +1,95 @@
1
+ import { useLocaleContext } from '@arcblock/ux/lib/Locale/context';
2
+ import iconOpenInNewRounded from '@iconify-icons/material-symbols/open-in-new-rounded';
3
+ import { Icon } from '@iconify/react';
4
+ import { Box, Link, Typography } from '@mui/material';
5
+
6
+ import getWalletEnImg from '../assets/get_wallet_en.png';
7
+ import getWalletZhImg from '../assets/get_wallet_zh.png';
8
+ import RequestDigestSignature from '../components/connects/request-digest-signature';
9
+ import RequestMultipleClaims from '../components/connects/request-multiple-claims';
10
+ import RequestMultipleSteps from '../components/connects/request-multiple-steps';
11
+ import RequestNFT from '../components/connects/request-nft';
12
+ import RequestPayment from '../components/connects/request-payment';
13
+ import RequestProfile from '../components/connects/request-profile';
14
+ import RequestTextSignature from '../components/connects/request-text-signature';
15
+ import RequestTransactionSignature from '../components/connects/request-transaction-signature';
16
+ import Layout from '../components/layout';
17
+
18
+ function Main() {
19
+ const { locale, t } = useLocaleContext();
20
+ const getWalletImgUrl = locale === 'zh' ? getWalletZhImg : getWalletEnImg;
21
+ const getWalletUrl = `https://www.didwallet.io/${locale === 'zh' ? 'zh' : 'en'}`;
22
+
23
+ return (
24
+ <Layout>
25
+ <Typography component="h3" variant="h4" color="textPrimary" gutterBottom>
26
+ {t('step1.title')}{' '}
27
+ <Typography component="small" color="text.secondary">
28
+ {t('step1.prepareDIDWallet')}
29
+ </Typography>
30
+ </Typography>
31
+ <Typography variant="body1">
32
+ {t('step1.getWalletFromHere')}{' '}
33
+ <Link
34
+ href={getWalletUrl}
35
+ target="_blank"
36
+ underline="hover"
37
+ sx={{
38
+ display: 'inline-flex',
39
+ alignItems: 'center',
40
+ gap: 0.5,
41
+ }}>
42
+ DID Wallet <Icon icon={iconOpenInNewRounded} />
43
+ </Link>
44
+ </Typography>
45
+ <Box
46
+ component="a"
47
+ href={getWalletUrl}
48
+ target="_blank"
49
+ rel="noreferrer"
50
+ sx={{
51
+ display: 'block',
52
+ px: {
53
+ sm: 0,
54
+ md: 8,
55
+ lg: 16,
56
+ },
57
+ }}>
58
+ <Box
59
+ component="img"
60
+ src={getWalletImgUrl}
61
+ alt="Prepare DID Wallet"
62
+ sx={{
63
+ width: '100%',
64
+ }}
65
+ />
66
+ </Box>
67
+
68
+ <Typography component="h3" variant="h4" color="text.primary" gutterBottom sx={{ mt: 2 }}>
69
+ {t('step2.title')}{' '}
70
+ <Typography component="small" color="text.secondary">
71
+ {t('step2.enjoyPlayground')}
72
+ </Typography>
73
+ </Typography>
74
+
75
+ <Box
76
+ sx={{
77
+ display: 'flex',
78
+ flexDirection: 'column',
79
+ gap: 5,
80
+ mb: 10,
81
+ }}>
82
+ <RequestProfile />
83
+ <RequestNFT />
84
+ <RequestTextSignature />
85
+ <RequestDigestSignature />
86
+ <RequestTransactionSignature />
87
+ <RequestPayment />
88
+ <RequestMultipleClaims />
89
+ <RequestMultipleSteps />
90
+ </Box>
91
+ </Layout>
92
+ );
93
+ }
94
+
95
+ export default Main;
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "did-connect-dapp",
3
+ "desc": {
4
+ "en": "Showcase various use cases of DID Connect, help you get started with DID Connect quickly",
5
+ "zh": "展示 DID Connect 各种用法, 帮助你快速上手 DID Connect"
6
+ },
7
+ "blockletType": "dapp",
8
+ "composable": true,
9
+ "languages": "JavaScript",
10
+ "useCase": "Starter",
11
+ "author": "Blocklet"
12
+ }
@@ -0,0 +1,11 @@
1
+ import { defineConfig } from 'vite';
2
+ import react from '@vitejs/plugin-react';
3
+ import { createBlockletPlugin } from 'vite-plugin-blocklet';
4
+ import svgr from 'vite-plugin-svgr';
5
+
6
+ // https://vitejs.dev/config/
7
+ export default defineConfig(() => {
8
+ return {
9
+ plugins: [react(), createBlockletPlugin(), svgr()],
10
+ };
11
+ });
@@ -1,4 +1,3 @@
1
- name: template-did-wallet-dapp
2
1
  title: Blocklet Template DID Wallet Dapp
3
2
  description: A Blocklet DAPP blocklet
4
3
  keywords:
@@ -56,4 +55,4 @@ navigation:
56
55
  title:
57
56
  en: Profile page
58
57
  zh: Profile 页面
59
- link: /profile
58
+ link: /profile
@@ -22,40 +22,40 @@
22
22
  "@ocap/mcrypto": "^1.18.135",
23
23
  "@ocap/util": "^1.18.135",
24
24
  "@ocap/wallet": "^1.18.135",
25
- "body-parser": "^1.20.2",
25
+ "body-parser": "^1.20.3",
26
26
  "cookie-parser": "^1.4.6",
27
27
  "cors": "^2.8.5",
28
- "express": "^4.19.2",
28
+ "express": "^4.21.0",
29
29
  "express-async-errors": "^3.1.1",
30
30
  "morgan": "^1.10.0"
31
31
  },
32
32
  "devDependencies": {
33
+ "@arcblock/did-connect": "^2.10.38",
33
34
  "@arcblock/eslint-config": "^0.3.2",
34
- "@arcblock/did-connect": "^2.10.32",
35
- "@arcblock/ux": "^2.10.32",
35
+ "@arcblock/ux": "^2.10.38",
36
36
  "@blocklet/js-sdk": "^1.16.31",
37
- "@blocklet/ui-react": "^2.10.32",
38
- "bumpp": "^9.4.1",
39
- "@emotion/react": "^11.11.4",
40
- "@emotion/styled": "^11.11.5",
41
- "@mui/icons-material": "^5.16.0",
42
- "@mui/material": "^5.16.0",
37
+ "@blocklet/ui-react": "^2.10.38",
38
+ "@emotion/react": "^11.13.3",
39
+ "@emotion/styled": "^11.13.0",
40
+ "@mui/icons-material": "^5.16.7",
41
+ "@mui/material": "^5.16.7",
43
42
  "@vitejs/plugin-react": "^4.3.1",
44
- "dayjs": "^1.11.11",
43
+ "bumpp": "^9.5.2",
44
+ "dayjs": "^1.11.13",
45
45
  "dotenv-flow": "^4.1.0",
46
46
  "flat": "^6.0.1",
47
- "nodemon": "^3.1.4",
47
+ "nodemon": "^3.1.7",
48
48
  "react": "18.2.0",
49
49
  "react-dom": "18.2.0",
50
- "react-router-dom": "^6.24.1",
51
- "rimraf": "^5.0.7",
50
+ "react-router-dom": "^6.26.2",
51
+ "rimraf": "^5.0.10",
52
52
  "simple-git-hooks": "^2.11.1",
53
- "vite": "^5.3.3",
54
- "vite-node": "^2.0.2",
55
- "vite-plugin-blocklet": "^0.9.6",
53
+ "vite": "^5.4.8",
54
+ "vite-node": "^2.1.1",
55
+ "vite-plugin-blocklet": "^0.9.8",
56
56
  "vite-plugin-require": "^1.2.14",
57
57
  "vite-plugin-svgr": "^4.2.0",
58
- "zx": "^8.1.4"
58
+ "zx": "^8.1.8"
59
59
  },
60
60
  "lint-staged": {
61
61
  "*.{mjs,js,jsx,ts,tsx}": [
@@ -1,4 +1,3 @@
1
- name: template-express
2
1
  title: Blocklet Template Express
3
2
  description: A Blocklet Api blocklet
4
3
  keywords:
@@ -32,21 +32,22 @@
32
32
  "license": "ISC",
33
33
  "dependencies": {
34
34
  "@arcblock/did-auth-storage-nedb": "^1.7.1",
35
- "@blocklet/sdk": "^1.16.30",
35
+ "@blocklet/sdk": "^1.16.31",
36
36
  "@ocap/client": "^1.18.135",
37
37
  "dotenv-flow": "^4.1.0",
38
- "express": "^4.19.2"
38
+ "express": "^4.21.0"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@arcblock/eslint-config-base": "^0.3.2",
42
- "bumpp": "^9.4.1",
43
- "eslint": "^8.57.0",
44
- "lint-staged": "^15.2.7",
45
- "nodemon": "^3.1.4",
42
+ "@trivago/prettier-plugin-sort-imports": "^4.3.0",
43
+ "bumpp": "^9.5.2",
44
+ "eslint": "^8.57.1",
45
+ "lint-staged": "^15.2.10",
46
+ "nodemon": "^3.1.7",
46
47
  "prettier": "^3.3.3",
47
- "rimraf": "^5.0.7",
48
+ "rimraf": "^5.0.10",
48
49
  "simple-git-hooks": "^2.11.1",
49
- "zx": "^8.1.4"
50
+ "zx": "^8.1.8"
50
51
  },
51
52
  "simple-git-hooks": {
52
53
  "pre-commit": "npx lint-staged"
@@ -1,4 +1,3 @@
1
- name: template-html
2
1
  title: Blocklet Template HTML
3
2
  description: A Blocklet Server blocklet
4
3
  keywords:
@@ -16,9 +16,10 @@
16
16
  "author": "",
17
17
  "license": "ISC",
18
18
  "devDependencies": {
19
- "bumpp": "^9.4.1",
19
+ "@trivago/prettier-plugin-sort-imports": "^4.3.0",
20
+ "bumpp": "^9.5.2",
20
21
  "prettier": "^3.3.3",
21
- "rimraf": "^5.0.7",
22
- "zx": "^8.1.4"
22
+ "rimraf": "^5.0.10",
23
+ "zx": "^8.1.8"
23
24
  }
24
25
  }
@@ -20,11 +20,12 @@
20
20
  "license": "ISC",
21
21
  "devDependencies": {
22
22
  "@arcblock/eslint-config": "^0.3.2",
23
- "bumpp": "^9.4.1",
24
- "eslint": "^8.57.0",
23
+ "@trivago/prettier-plugin-sort-imports": "^4.3.0",
24
+ "bumpp": "^9.5.2",
25
+ "eslint": "^8.57.1",
25
26
  "prettier": "^3.3.3",
26
27
  "simple-git-hooks": "^2.11.1",
27
- "zx": "^8.1.4"
28
+ "zx": "^8.1.8"
28
29
  },
29
30
  "simple-git-hooks": {
30
31
  "pre-commit": "npx lint-staged"
@@ -2,46 +2,50 @@
2
2
  import { execSync } from 'child_process';
3
3
  import { $, chalk, fs, path } from 'zx';
4
4
 
5
- const cwd = process.cwd(); // 获取脚本执行目录
5
+ async function main() {
6
+ const cwd = process.cwd(); // 获取脚本执行目录
6
7
 
7
- // or use pnpm to bump version: `pnpm -r --filter {packages/*, themes/*} -- pnpm version`
8
- execSync('bumpp --no-tag --no-commit --no-push package.json blocklets/*/package.json', { stdio: 'inherit' });
8
+ // or use pnpm to bump version: `pnpm -r --filter {packages/*, themes/*} -- pnpm version`
9
+ execSync('bumpp --no-tag --no-commit --no-push package.json blocklets/*/package.json', { stdio: 'inherit' });
9
10
 
10
- const { version } = await fs.readJSON('package.json');
11
- await fs.writeFileSync('version', version);
11
+ const { version } = await fs.readJSON('package.json');
12
+ await fs.writeFileSync('version', version);
12
13
 
13
- console.log(chalk.greenBright(`[info]: start to modify blocklets version to ${version}`));
14
- const dirPath = path.join(__dirname, '../blocklets');
15
- let pathList = await fs.readdirSync(dirPath);
16
- pathList = pathList.map((item) => `${dirPath}/${item}`);
17
- for (const ymlDir of pathList) {
18
- await $`cd ${ymlDir} && blocklet version ${version}`;
19
- }
20
- console.log(chalk.greenBright('[info]: all blocklets version modified.'));
14
+ console.log(chalk.greenBright(`[info]: start to modify blocklets version to ${version}`));
15
+ const dirPath = path.join(__dirname, '../blocklets');
16
+ let pathList = await fs.readdirSync(dirPath);
17
+ pathList = pathList.map((item) => `${dirPath}/${item}`);
18
+ for (const ymlDir of pathList) {
19
+ await $`cd ${ymlDir} && blocklet version ${version}`;
20
+ }
21
+ console.log(chalk.greenBright('[info]: all blocklets version modified.'));
21
22
 
22
- await $`cd ${cwd}`;
23
+ await $`cd ${cwd}`;
23
24
 
24
- let newChangelog = '';
25
+ let newChangelog = '';
25
26
 
26
- try {
27
- const gitRes = await $`git log --pretty=format:"- %s" "main"...HEAD`;
28
- newChangelog = gitRes.stdout.trim();
29
- } catch {
30
- console.error(chalk.redBright('Could not get git log, please write changelog manually.'));
31
- }
27
+ try {
28
+ const gitRes = await $`git log --pretty=format:"- %s" "main"...HEAD`;
29
+ newChangelog = gitRes.stdout.trim();
30
+ } catch {
31
+ console.error(chalk.redBright('Could not get git log, please write changelog manually.'));
32
+ }
32
33
 
33
- const now = new Date();
34
- const currentDate = `${now.getFullYear()}-${now.getMonth() + 1}-${now.getDate()}`;
35
- const title = `## ${version} (${currentDate})`;
34
+ const now = new Date();
35
+ const currentDate = `${now.getFullYear()}-${now.getMonth() + 1}-${now.getDate()}`;
36
+ const title = `## ${version} (${currentDate})`;
36
37
 
37
- await fs.ensureFile('CHANGELOG.md');
38
- const oldChangelog = await fs.readFile('CHANGELOG.md', 'utf8');
39
- const changelog = [title, newChangelog, oldChangelog].filter((item) => !!item).join('\n\n');
38
+ await fs.ensureFile('CHANGELOG.md');
39
+ const oldChangelog = await fs.readFile('CHANGELOG.md', 'utf8');
40
+ const changelog = [title, newChangelog, oldChangelog].filter((item) => !!item).join('\n\n');
40
41
 
41
- await fs.writeFile('CHANGELOG.md', changelog);
42
+ await fs.writeFile('CHANGELOG.md', changelog);
42
43
 
43
- console.log(`\nNow you can make adjustments to ${chalk.cyan('CHANGELOG.md')}. Then press enter to continue.`);
44
+ console.log(`\nNow you can make adjustments to ${chalk.cyan('CHANGELOG.md')}. Then press enter to continue.`);
45
+
46
+ process.stdin.setRawMode(true);
47
+ process.stdin.resume();
48
+ process.stdin.on('data', process.exit.bind(process, 0));
49
+ }
44
50
 
45
- process.stdin.setRawMode(true);
46
- process.stdin.resume();
47
- process.stdin.on('data', process.exit.bind(process, 0));
51
+ main();
@@ -1,4 +1,3 @@
1
- name: template-nestjs
2
1
  title: Blocklet Template NestJS
3
2
  description: A Blocklet Api blocklet
4
3
  keywords:
@@ -36,36 +36,37 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "@arcblock/did-auth-storage-nedb": "^1.7.1",
39
- "@blocklet/sdk": "^1.16.30",
40
- "@nestjs/common": "^10.3.9",
41
- "@nestjs/core": "^10.3.9",
42
- "@nestjs/platform-express": "^10.3.9",
39
+ "@blocklet/sdk": "^1.16.31",
40
+ "@nestjs/common": "^10.4.4",
41
+ "@nestjs/core": "^10.4.4",
42
+ "@nestjs/platform-express": "^10.4.4",
43
43
  "@ocap/client": "^1.18.135",
44
44
  "dotenv-flow": "^4.1.0",
45
- "express": "^4.19.2",
45
+ "express": "^4.21.0",
46
46
  "reflect-metadata": "^0.2.2",
47
47
  "rxjs": "^7.8.1"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@arcblock/eslint-config-base": "^0.3.2",
51
- "@nestjs/cli": "^10.3.2",
52
- "@nestjs/schematics": "^10.1.1",
51
+ "@nestjs/cli": "^10.4.5",
52
+ "@nestjs/schematics": "^10.1.4",
53
+ "@trivago/prettier-plugin-sort-imports": "^4.3.0",
53
54
  "@types/express": "^4.17.21",
54
- "@types/node": "^20.14.13",
55
+ "@types/node": "^20.16.9",
55
56
  "@typescript-eslint/eslint-plugin": "^7.18.0",
56
57
  "@typescript-eslint/parser": "^7.18.0",
57
- "bumpp": "^9.4.1",
58
- "eslint": "^8.57.0",
59
- "lint-staged": "^15.2.7",
60
- "nodemon": "^3.1.4",
58
+ "bumpp": "^9.5.2",
59
+ "eslint": "^8.57.1",
60
+ "lint-staged": "^15.2.10",
61
+ "nodemon": "^3.1.7",
61
62
  "prettier": "^3.3.3",
62
- "rimraf": "^5.0.7",
63
+ "rimraf": "^5.0.10",
63
64
  "simple-git-hooks": "^2.11.1",
64
65
  "source-map-support": "^0.5.21",
65
66
  "ts-node": "^10.9.2",
66
67
  "tsconfig-paths": "^4.2.0",
67
- "typescript": "^5.5.2",
68
- "zx": "^8.1.4"
68
+ "typescript": "^5.6.2",
69
+ "zx": "^8.1.8"
69
70
  },
70
71
  "simple-git-hooks": {
71
72
  "pre-commit": "npx lint-staged"
@@ -1,4 +1,3 @@
1
- name: template-nextjs
2
1
  title: Blocklet Template Next.js
3
2
  description: A Blocklet DAPP blocklet
4
3
  keywords:
@@ -30,26 +30,26 @@
30
30
  "dependencies": {
31
31
  "@arcblock/did-auth": "^1.18.135",
32
32
  "@arcblock/did-auth-storage-nedb": "^1.7.1",
33
- "@blocklet/sdk": "^1.16.30",
33
+ "@blocklet/sdk": "^1.16.31",
34
34
  "@ocap/client": "^1.18.135",
35
35
  "@ocap/mcrypto": "^1.18.135",
36
36
  "@ocap/wallet": "^1.18.135",
37
37
  "dotenv-flow": "^4.1.0",
38
- "express": "^4.19.2",
38
+ "express": "^4.21.0",
39
39
  "next": "14.2.4",
40
40
  "react": "18.2.0",
41
41
  "react-dom": "18.2.0"
42
42
  },
43
43
  "devDependencies": {
44
- "bumpp": "^9.4.1",
44
+ "bumpp": "^9.5.2",
45
45
  "eslint": "8.57.0",
46
46
  "eslint-config-next": "14.2.4",
47
- "lint-staged": "^15.2.7",
48
- "nodemon": "^3.1.4",
47
+ "lint-staged": "^15.2.10",
48
+ "nodemon": "^3.1.7",
49
49
  "npm-run-all": "^4.1.5",
50
- "rimraf": "^5.0.7",
50
+ "rimraf": "^5.0.10",
51
51
  "simple-git-hooks": "^2.11.1",
52
- "zx": "^8.1.4"
52
+ "zx": "^8.1.8"
53
53
  },
54
54
  "simple-git-hooks": {
55
55
  "pre-commit": "npx lint-staged"
@@ -1,4 +1,3 @@
1
- name: template-react-dapp
2
1
  title: Blocklet Template React
3
2
  description: A Blocklet DAPP blocklet
4
3
  keywords:
@@ -42,37 +42,38 @@
42
42
  "dependencies": {
43
43
  "@arcblock/did-auth": "^1.18.135",
44
44
  "@arcblock/did-auth-storage-nedb": "^1.7.1",
45
- "@blocklet/sdk": "^1.16.30",
45
+ "@blocklet/sdk": "^1.16.31",
46
46
  "@ocap/client": "^1.18.135",
47
47
  "@ocap/mcrypto": "^1.18.135",
48
48
  "@ocap/wallet": "^1.18.135",
49
- "axios": "^1.7.2",
49
+ "axios": "^1.7.7",
50
50
  "cookie-parser": "^1.4.6",
51
51
  "cors": "^2.8.5",
52
52
  "dotenv-flow": "^4.1.0",
53
- "express": "^4.19.2",
53
+ "express": "^4.21.0",
54
54
  "express-async-errors": "^3.1.1"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@arcblock/eslint-config": "^0.3.2",
58
- "@blocklet/js-sdk": "^1.16.30",
58
+ "@blocklet/js-sdk": "^1.16.31",
59
+ "@trivago/prettier-plugin-sort-imports": "^4.3.0",
59
60
  "@vitejs/plugin-react": "^4.3.1",
60
- "bumpp": "^9.4.1",
61
+ "bumpp": "^9.5.2",
61
62
  "cross-env": "^7.0.3",
62
- "eslint": "^8.57.0",
63
- "lint-staged": "^15.2.7",
64
- "nodemon": "^3.1.4",
63
+ "eslint": "^8.57.1",
64
+ "lint-staged": "^15.2.10",
65
+ "nodemon": "^3.1.7",
65
66
  "npm-run-all": "^4.1.5",
66
67
  "prettier": "^3.3.3",
67
- "react": "^18.2.0",
68
- "react-dom": "^18.2.0",
69
- "react-router-dom": "^6.24.0",
70
- "rimraf": "^5.0.7",
68
+ "react": "~18.2.0",
69
+ "react-dom": "~18.2.0",
70
+ "react-router-dom": "^6.26.2",
71
+ "rimraf": "^5.0.10",
71
72
  "simple-git-hooks": "^2.11.1",
72
- "vite": "^5.3.5",
73
- "vite-plugin-blocklet": "^0.9.6",
73
+ "vite": "^5.4.8",
74
+ "vite-plugin-blocklet": "^0.9.8",
74
75
  "vite-plugin-svgr": "^4.2.0",
75
- "zx": "^8.1.4"
76
+ "zx": "^8.1.8"
76
77
  },
77
78
  "simple-git-hooks": {
78
79
  "pre-commit": "npx lint-staged"
@@ -1,4 +1,3 @@
1
- name: template-react-dapp-ts
2
1
  title: Blocklet Template React
3
2
  description: A Blocklet DAPP blocklet
4
3
  keywords:
@@ -40,49 +40,50 @@
40
40
  "dependencies": {
41
41
  "@arcblock/did-auth": "^1.18.135",
42
42
  "@arcblock/did-auth-storage-nedb": "^1.7.1",
43
- "@blocklet/sdk": "^1.16.30",
43
+ "@blocklet/sdk": "^1.16.31",
44
44
  "@ocap/client": "^1.18.135",
45
45
  "@ocap/mcrypto": "^1.18.135",
46
46
  "@ocap/wallet": "^1.18.135",
47
- "axios": "^1.7.2",
47
+ "axios": "^1.7.7",
48
48
  "cookie-parser": "^1.4.6",
49
49
  "cors": "^2.8.5",
50
50
  "dotenv-flow": "^4.1.0",
51
- "express": "^4.19.2",
51
+ "express": "^4.21.0",
52
52
  "express-async-errors": "^3.1.1"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@arcblock/eslint-config": "^0.3.2",
56
56
  "@arcblock/eslint-config-ts": "^0.3.2",
57
- "@blocklet/js-sdk": "^1.16.30",
57
+ "@blocklet/js-sdk": "^1.16.31",
58
+ "@trivago/prettier-plugin-sort-imports": "^4.3.0",
58
59
  "@types/cookie-parser": "^1.4.7",
59
60
  "@types/cors": "^2.8.17",
60
61
  "@types/dotenv-flow": "^3.3.3",
61
62
  "@types/express": "^4.17.21",
62
- "@types/node": "^20.14.13",
63
- "@types/react": "^18.3.3",
63
+ "@types/node": "^20.16.9",
64
+ "@types/react": "^18.3.9",
64
65
  "@types/react-dom": "^18.3.0",
65
66
  "@vitejs/plugin-react": "^4.3.1",
66
- "bumpp": "^9.4.1",
67
+ "bumpp": "^9.5.2",
67
68
  "cross-env": "^7.0.3",
68
- "eslint": "^8.57.0",
69
+ "eslint": "^8.57.1",
69
70
  "import-sort-style-module": "^6.0.0",
70
- "lint-staged": "^15.2.7",
71
- "nodemon": "^3.1.4",
71
+ "lint-staged": "^15.2.10",
72
+ "nodemon": "^3.1.7",
72
73
  "npm-run-all": "^4.1.5",
73
74
  "prettier": "^3.3.3",
74
75
  "prettier-plugin-import-sort": "^0.0.7",
75
- "react": "^18.2.0",
76
- "react-dom": "^18.2.0",
77
- "react-router-dom": "^6.24.0",
78
- "rimraf": "^5.0.7",
76
+ "react": "~18.2.0",
77
+ "react-dom": "~18.2.0",
78
+ "react-router-dom": "^6.26.2",
79
+ "rimraf": "^5.0.10",
79
80
  "simple-git-hooks": "^2.11.1",
80
81
  "ts-node": "^10.9.2",
81
- "typescript": "^5.5.2",
82
- "vite": "^5.3.5",
83
- "vite-plugin-blocklet": "^0.9.6",
82
+ "typescript": "^5.6.2",
83
+ "vite": "^5.4.8",
84
+ "vite-plugin-blocklet": "^0.9.8",
84
85
  "vite-plugin-svgr": "^4.2.0",
85
- "zx": "^8.1.4"
86
+ "zx": "^8.1.8"
86
87
  },
87
88
  "importSort": {
88
89
  ".js, .jsx, .mjs": {
@@ -1,4 +1,3 @@
1
- name: template-react-gunjs
2
1
  title: Blocklet Template React
3
2
  description: A Blocklet DAPP blocklet
4
3
  keywords: