com.jimuwd.xian.registry-proxy 1.1.19 → 1.1.20-beta01

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.
@@ -128,8 +128,8 @@ async function main() {
128
128
  console.log(`Set npmRegistryServer to http://127.0.0.1:${PROXY_PORT}`);
129
129
  registerCleanup(async () => {
130
130
  try {
131
- await execa('yarn', ['config', 'unset', 'npmRegistryServer']);
132
- console.log('Cleared npmRegistryServer configuration');
131
+ await execa('yarn', ['config', 'unset', 'npmRegistryServer']); //fixme:这里使用unset,有个缺点就是如果工程中.yarnrc.yml原本配置的只读registryServer没有恢复而是被清空了!国内的网络再执行任何拉取操作或yarn dlx命令容易超时!
132
+ console.log('Cleared npmRegistryServer configuration:这里清空npmRegistryServer而不是恢复,有个缺点就是如果工程中.yarnrc.yml原本配置的只读registryServer没有恢复而是被清空了!国内的网络再执行任何拉取操作或yarn dlx命令容易超时!');
133
133
  }
134
134
  catch {
135
135
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "com.jimuwd.xian.registry-proxy",
3
- "version": "1.1.19",
3
+ "version": "1.1.20-beta01",
4
4
  "description": "A lightweight npm registry local proxy with fallback support",
5
5
  "type": "module",
6
6
  "main": "dist/server/index.js",