@flun/html-template 4.3.0 → 4.3.1

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/dev-server.js CHANGED
@@ -50,7 +50,7 @@ const __filename = fileURLToPath(import.meta.url), __dirname = path.dirname(__fi
50
50
  if (!existsSync(certPath)) throw new Error(`证书文件不存在: ${certPath}`);
51
51
  const key = readFileSync(keyPath, 'utf8'), cert = readFileSync(certPath, 'utf8');
52
52
  serverInstance = https.createServer({ key, cert }, app);
53
- console.log(`🔒 HTTPS已启用,证书加载自: ${keyPath} 和 ${certPath}`);
53
+ console.log(`🔒 证书加载成功,HTTPS已启用`);
54
54
  } catch (err) {
55
55
  console.error(`❌ HTTPS证书加载失败: ${err.message}`);
56
56
  process.exit(1);
package/f-CHANGELOG.md CHANGED
@@ -1,4 +1,7 @@
1
1
  # 变更日志
2
+ ## [4.3.1] - 2026-05-30 11:42
3
+ ### 优化
4
+ - https启用成功后,不在打印证书路径,只给出成功提示;
2
5
  ## [4.3.0] - 2026-05-29 10:05
3
6
  ### 新增
4
7
  - 开发服务器支持 HTTPS 协议,可通过示例文件: `dev.js` 中的 `https`、`httpsKey`、`httpsCert` 参数启用。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flun/html-template",
3
- "version": "4.3.0",
3
+ "version": "4.3.1",
4
4
  "description": "一个HTML模板工具包,提供开发服务器和模板编译功能,支持自定义标签和快捷输入,变量定义,包含文件引用,帮助开发者模块化处理HTML;",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",