unpkg-white-list 0.0.0 → 1.0.0
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/.github/workflows/nodejs.yml +15 -0
- package/.github/workflows/release.yml +12 -0
- package/CHANGELOG.md +8 -0
- package/LICENSE +1 -1
- package/README.md +40 -1
- package/package.json +23393 -3
- package/test/index.js +29 -0
package/CHANGELOG.md
ADDED
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -1,2 +1,41 @@
|
|
|
1
1
|
# unpkg-white-list
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
[](https://npmjs.org/package/unpkg-white-list)
|
|
4
|
+
[](https://github.com/cnpm/unpkg-white-list/actions/workflows/nodejs.yml)
|
|
5
|
+
|
|
6
|
+
[npmmirror.com](https://npmmirror.com) 允许开启 [unpkg 功能](https://www.yuque.com/egg/cnpm/files)的白名单列表,避免 https://x.com/fengmk2/status/1791498406923215020 类似问题
|
|
7
|
+
|
|
8
|
+
## 添加白名单方式
|
|
9
|
+
|
|
10
|
+
1、直接在线修改 [package.json](https://github.com/cnpm/unpkg-white-list/edit/master/package.json) 中的 `allowPackages` 字段,
|
|
11
|
+
添加你想开启 unpkg 文件同步的 npm 包名和版本号,全量同步版本号可以设置为 `*`。
|
|
12
|
+
|
|
13
|
+
以同步 [urllib](https://npmmirror.com/package/urllib) 为示例,配置如下:
|
|
14
|
+
|
|
15
|
+
```json
|
|
16
|
+
"allowPackages": {
|
|
17
|
+
...
|
|
18
|
+
"urllib": {
|
|
19
|
+
"version": "*"
|
|
20
|
+
}
|
|
21
|
+
...
|
|
22
|
+
}
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
2、修改完成后提交一个 `Pull Request` 合并到 master 分支,等待 Review,合并后会自动发布,预计最长 5 分钟后会全网生效。
|
|
26
|
+
|
|
27
|
+
## License
|
|
28
|
+
|
|
29
|
+
[MIT](LICENSE)
|
|
30
|
+
|
|
31
|
+
<!-- GITCONTRIBUTOR_START -->
|
|
32
|
+
|
|
33
|
+
## 贡献者
|
|
34
|
+
|
|
35
|
+
|[<img src="https://avatars.githubusercontent.com/u/156269?v=4" width="100px;"/><br/><sub><b>fengmk2</b></sub>](https://github.com/fengmk2)<br/>|
|
|
36
|
+
| :---: |
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
[git-contributor 说明](https://github.com/xudafeng/git-contributor),自动生成时间:`Sat May 18 2024 09:02:24 GMT+0800`。
|
|
40
|
+
|
|
41
|
+
<!-- GITCONTRIBUTOR_END -->
|