@flun/webauthn-browser 2.0.14 → 2.0.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/CHANGELOG.md CHANGED
@@ -1,4 +1,7 @@
1
1
  # 变更日志
2
- ## [2.0.14] - 2026-06-13 15:38
3
- ### 优化:
4
- - 内部细节优化;
2
+ ## [2.0.16] - 2026-07-06 15:49
3
+ ### 新增
4
+ - 在 README 中新增“配置”章节,指导用户通过 `allowScripts` 显式放行本包的安装脚本,避免因 `ignore-scripts` 全局配置导致钩子被跳过。
5
+ ## [2.0.15] - 2026-06-16 20:16
6
+ ### 变更:
7
+ - 联系邮箱更改为:open@flun.top;
package/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  SC 开源许可声明
2
2
  版权信息
3
- 衍生开发 Copyright (c) 2026, flun <cn@flun.top>
3
+ 衍生开发 Copyright (c) 2026, flun <open@flun.top>
4
4
 
5
5
  本项目(软件包)基于 Matthew Miller 作者的原代码进行开发、修改和扩展。
6
6
 
package/README.md CHANGED
@@ -38,6 +38,28 @@
38
38
  - [许可证](#许可证)
39
39
  - [相关链接](#相关链接)
40
40
 
41
+ ---
42
+ ## 配置
43
+
44
+ ### 允许安装脚本执行
45
+
46
+ 本包在安装时可能触发某些依赖包的自动脚本(如 `postinstall` 等);如果你的 npm 全局配置或项目配置禁止了脚本执行(例如设置了 `ignore-scripts=true`),可能会导致安装不完整或运行时异常;
47
+
48
+ 推荐在项目根目录的 `package.json` 中添加 `allowScripts` 字段,显式放行本包及其依赖的脚本:
49
+
50
+ ```json
51
+ {
52
+ "allowScripts": {
53
+ "@flun/windows": true
54
+ // 如果依赖的其它包(如 bcrypt、electron-winstaller 等)也有脚本,请按需添加,格式相同
55
+ }
56
+ }
57
+ ```
58
+
59
+ > 如果你信任所有安装包,也可以直接在项目 `.npmrc` 中设置 `allow-scripts = false`(表示关闭脚本拦截,所有脚本均允许执行),或删除/设为 `ignore-scripts = false`;
60
+
61
+ 配置后,再次运行 `npm install` 即可正常执行所有安装钩子;
62
+
41
63
  ---
42
64
 
43
65
  ## 安装
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flun/webauthn-browser",
3
- "version": "2.0.14",
3
+ "version": "2.0.16",
4
4
  "description": "WebAuthn 前端库,提供简单易用的接口来处理 WebAuthn 认证流程,支持 Passkeys 和 FIDO2 标准;",
5
5
  "keywords": [
6
6
  "typescript",
@@ -15,7 +15,7 @@
15
15
  ".": "./index.js"
16
16
  },
17
17
  "unpkg": "dist/index.js",
18
- "author": "flun <cn@flun.top>",
18
+ "author": "flun <open@flun.top>",
19
19
  "publishConfig": {
20
20
  "access": "public"
21
21
  },