From 9003cb5ad370d0c07b2baee88f3b25c597ac3929 Mon Sep 17 00:00:00 2001 From: Non-Official NPM Mirror Bot <99484857+npmmirror@users.noreply.github.com> Date: Sat, 12 Feb 2022 12:16:32 +0800 Subject: [PATCH] docs: update https://registry.npm.taobao.org to https://registry.npmmirror.com (#4881) Co-authored-by: NPM Mirror Bot --- docs/docs/core/httpclient.md | 6 +++--- docs/docs/core/httpclient.zh-CN.md | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/docs/core/httpclient.md b/docs/docs/core/httpclient.md index e38e7c43e2..4e9e948c80 100644 --- a/docs/docs/core/httpclient.md +++ b/docs/docs/core/httpclient.md @@ -18,9 +18,9 @@ So you can easily use `app.curl` to complete a HTTP request. // app.js module.exports = (app) => { app.beforeStart(async () => { - // example: read the version info on https://registry.npm.taobao.org/egg/latest when it starts + // example: read the version info on https://registry.npmmirror.com/egg/latest when it starts const result = await app.curl( - 'https://registry.npm.taobao.org/egg/latest', + 'https://registry.npmmirror.com/egg/latest', { dataType: 'json', }, @@ -43,7 +43,7 @@ class NpmController extends Controller { // example: request a npm module's info const result = await ctx.curl( - 'https://registry.npm.taobao.org/egg/latest', + 'https://registry.npmmirror.com/egg/latest', { // parse JSON response dataType: 'json', diff --git a/docs/docs/core/httpclient.zh-CN.md b/docs/docs/core/httpclient.zh-CN.md index 21fa7fd825..9967ae1bf4 100644 --- a/docs/docs/core/httpclient.zh-CN.md +++ b/docs/docs/core/httpclient.zh-CN.md @@ -18,9 +18,9 @@ order: 5 // app.js module.exports = (app) => { app.beforeStart(async () => { - // 示例:启动的时候去读取 https://registry.npm.taobao.org/egg/latest 的版本信息 + // 示例:启动的时候去读取 https://registry.npmmirror.com/egg/latest 的版本信息 const result = await app.curl( - 'https://registry.npm.taobao.org/egg/latest', + 'https://registry.npmmirror.com/egg/latest', { dataType: 'json', }, @@ -43,7 +43,7 @@ class NpmController extends Controller { // 示例:请求一个 npm 模块信息 const result = await ctx.curl( - 'https://registry.npm.taobao.org/egg/latest', + 'https://registry.npmmirror.com/egg/latest', { // 自动解析 JSON response dataType: 'json',