grunt-cacheinfo
Advanced tools
Comparing version 0.4.3 to 0.4.5
{ | ||
"name": "grunt-cacheinfo", | ||
"description": "cacheinfo.", | ||
"version": "0.4.3", | ||
"version": "0.4.5", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "bachi", |
@@ -23,2 +23,6 @@ # grunt-cacheinfo | ||
- 0.4.5 | ||
- 请求 `offline-config/index.json` 失败,立刻终止构建 | ||
- 0.4.4 | ||
- `offline-config/index.json` 升级到 `https` | ||
- 0.4.3 | ||
@@ -25,0 +29,0 @@ - [+] 增加 `offlineSyncHost` 配置项可以自行配置离线同步 CDN hostname,方便日常环境测试。 |
@@ -64,4 +64,8 @@ /* | ||
var pwd = process.cwd(); | ||
var config_url = options.configUrl || 'http://g.alicdn.com/trip/offline-config/index.json'; | ||
var config_url = options.configUrl || 'https://g.alicdn.com/trip/offline-config/index.json'; | ||
if (/http:/.test(config_url)) { | ||
config_url = config_url.replace(/^http/, 'https'); | ||
} | ||
getGlobalConfig(function (globalConfig) { | ||
@@ -188,3 +192,3 @@ | ||
}).on('error', function (e) { | ||
console.log('错误:请求不到 ' + config_url); | ||
grunt.fail.fatal('错误:请求不到 ' + config_url); | ||
done(); | ||
@@ -191,0 +195,0 @@ }); |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
16943
400
64
3