@flun/html-template 5.0.1 → 5.0.2

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/copy-files.js CHANGED
@@ -163,12 +163,11 @@ const runCopyFiles = async (options = {}) => {
163
163
  filesToCopy.map(item => copyFileOrDir(path.join(__dirname, item), path.join(targetDir, item), true, config)));
164
164
 
165
165
  console.log('✅ 文件复制完成!');
166
- // 添加专业支持信息(总是显示)
166
+ // 添加专业支持信息
167
167
  console.log('\n✅ 专业支持:');
168
168
  console.log('✅ • 开发文档: https://www.npmjs.com/package/@flun/html-template');
169
169
  console.log('✅ • 技术支持: cn@flun.top');
170
170
  console.log('✅ • 企业微信: https://work.weixin.qq.com/kfid/kfc44c370d4ddbac6f0');
171
- console.log('✅ 安装完成!');
172
171
  } catch (error) {
173
172
  const errorMsg = `❌ 复制过程中发生错误: ${error.message}`;
174
173
  console.log(errorMsg);
@@ -130,7 +130,7 @@ const transporter = createTransport({
130
130
  subject = '添加验证硬件通知';
131
131
  actionDescription = '添加了一台新的硬件验证设备';
132
132
  break;
133
- case 'backup_code_lock': // 新增:备份码锁定
133
+ case 'backup_code_lock':
134
134
  subject = '安全警报:账户临时锁定';
135
135
  actionDescription = '连续多次输入错误的备用码,账户已被临时锁定24小时';
136
136
  break;
@@ -277,7 +277,7 @@ export const accountRouter = app => {
277
277
  }, oneHour);
278
278
 
279
279
  // 定义安全限制和所有页面(公共页面 + 受保护页面)
280
- const authLimiter = rateLimit({ windowMs: fifteenMin, max: 15, message: { message: '尝试次数过多,请稍后再试' } }),
280
+ const authLimiter = rateLimit({ windowMs: fifteenMin, max: 18, message: { message: '尝试次数过多,请稍后再试' } }),
281
281
  allPages = [...publicPage, '/profile'];
282
282
  allPages.forEach(page => {
283
283
  app.get(page, (req, res) => {
package/f-CHANGELOG.md CHANGED
@@ -1,4 +1,7 @@
1
1
  # 变更日志
2
+ ## [5.0.2] - 2026-06-10 14:48
3
+ ### 优化
4
+ - 一些细节优化;
2
5
  ## [5.0.1] - 2026-06-10 11:59
3
6
  ### 紧急修复
4
7
  - 修复二次验证报错问题:
@@ -15,7 +18,4 @@
15
18
  > - 备份码支持硬件使用;
16
19
  > - 备份码分离为独立卡片,将由启用2FA或添加硬件时判断是否存在智能生成,并保留了重新生成按钮;
17
20
  > > **更多细节请自行体验;**
18
- - customize\account.js文件为配合上述功能实现也做了相应适配;
19
- ## [4.4.3] - 2026-06-05 22:16
20
- ### 优化
21
- - 模板中用户页面的移动端样式适配;
21
+ - customize\account.js文件为配合上述功能实现也做了相应适配;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flun/html-template",
3
- "version": "5.0.1",
3
+ "version": "5.0.2",
4
4
  "description": "一个HTML模板工具包,提供开发服务器和模板编译功能,支持自定义标签和快捷输入,变量定义,包含文件引用,帮助开发者模块化处理HTML;",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",