@flun/webauthn-browser 2.0.15 → 2.0.17
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 +6 -0
- package/README.md +24 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
# 变更日志
|
|
2
|
+
## [2.0.17] - 2026-07-06 15:55
|
|
3
|
+
### 修复
|
|
4
|
+
- 修复说明文件中 `allowScripts` 配置示例错误的问题;
|
|
5
|
+
## [2.0.16] - 2026-07-06 15:49
|
|
6
|
+
### 新增
|
|
7
|
+
- 在 README 中新增“配置”章节,指导用户通过 `allowScripts` 显式放行本包的安装脚本,避免因 `ignore-scripts` 全局配置导致钩子被跳过。
|
|
2
8
|
## [2.0.15] - 2026-06-16 20:16
|
|
3
9
|
### 变更:
|
|
4
10
|
- 联系邮箱更改为:open@flun.top;
|
package/README.md
CHANGED
|
@@ -10,6 +10,8 @@
|
|
|
10
10
|
## 目录
|
|
11
11
|
|
|
12
12
|
- [目录](#目录)
|
|
13
|
+
- [配置](#配置)
|
|
14
|
+
- [允许安装脚本执行](#允许安装脚本执行)
|
|
13
15
|
- [安装](#安装)
|
|
14
16
|
- [NPM 模块方式](#npm-模块方式)
|
|
15
17
|
- [UMD 全局方式](#umd-全局方式)
|
|
@@ -38,6 +40,28 @@
|
|
|
38
40
|
- [许可证](#许可证)
|
|
39
41
|
- [相关链接](#相关链接)
|
|
40
42
|
|
|
43
|
+
---
|
|
44
|
+
## 配置
|
|
45
|
+
|
|
46
|
+
### 允许安装脚本执行
|
|
47
|
+
|
|
48
|
+
本包在安装时可能触发某些依赖包的自动脚本(如 `postinstall` 等);如果你的 npm 全局配置或项目配置禁止了脚本执行(例如设置了 `ignore-scripts=true`),可能会导致安装不完整或运行时异常;
|
|
49
|
+
|
|
50
|
+
推荐在项目根目录的 `package.json` 中添加 `allowScripts` 字段,显式放行本包及其依赖的脚本:
|
|
51
|
+
|
|
52
|
+
```json
|
|
53
|
+
{
|
|
54
|
+
"allowScripts": {
|
|
55
|
+
"@flun/webauthn-browser": true
|
|
56
|
+
// 如果依赖的其它包(如 bcrypt、electron-winstaller 等)也有脚本,请按需添加,格式相同
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
> 如果你信任所有安装包,也可以直接在项目 `.npmrc` 中设置 `allow-scripts = false`(表示关闭脚本拦截,所有脚本均允许执行),或删除/设为 `ignore-scripts = false`;
|
|
62
|
+
|
|
63
|
+
配置后,再次运行 `npm install` 即可正常执行所有安装钩子;
|
|
64
|
+
|
|
41
65
|
---
|
|
42
66
|
|
|
43
67
|
## 安装
|