cos-nodejs-sdk-v5
Advanced tools
Comparing version 2.11.1 to 2.11.2
@@ -10,2 +10,12 @@ # Changelog | ||
## [v2.11.1](https://github.com/tencentyun/cos-nodejs-sdk-v5/compare/v2.11.0...v2.11.1) - 2021-11-17 | ||
fix:requestError处理 | ||
### Commits | ||
- Merge https://github.com/tencentyun/cos-nodejs-sdk-v5 [`079c668`](https://github.com/tencentyun/cos-nodejs-sdk-v5/commit/079c66886c3fbe93518c607ee4e2102dce755902) | ||
- Updated CHANGELOG.md [`960611c`](https://github.com/tencentyun/cos-nodejs-sdk-v5/commit/960611c9228f2d4d5a5880763490127a88bebe5c) | ||
- upd requestError处理 [`dc1fe92`](https://github.com/tencentyun/cos-nodejs-sdk-v5/commit/dc1fe925826b2aaf02afbee28bdbb8038d7645ad) | ||
## [v2.11.0](https://github.com/tencentyun/cos-nodejs-sdk-v5/compare/v2.10.10...v2.11.0) - 2021-11-17 | ||
@@ -835,8 +845,2 @@ | ||
- 支持 npm 包引入 | ||
- 调用方式改成 new Cos(options) | ||
- 参数 Appid 兼容AppId | ||
- 支持 PutObjectCopy、PutBucketPolicy、GetBucketPolicy | ||
- 新增多个 demo | ||
### Commits | ||
@@ -843,0 +847,0 @@ |
{ | ||
"name": "cos-nodejs-sdk-v5", | ||
"version": "2.11.1", | ||
"version": "2.11.2", | ||
"description": "cos nodejs sdk v5", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -640,6 +640,3 @@ 'use strict'; | ||
var isCIHost = function(url) { | ||
if (url && url.split('?')[0].match(/(.ci.|ci.|.ci)/g)) { | ||
return true; | ||
} | ||
return false; | ||
return /^https?:\/\/([^/]+\.)?ci\.[^/]+/.test(url); | ||
} | ||
@@ -646,0 +643,0 @@ |
783865
16341