grunt-cacheinfo
Advanced tools
Comparing version 0.4.9 to 0.4.10
{ | ||
"name": "grunt-cacheinfo", | ||
"description": "cacheinfo.", | ||
"version": "0.4.9", | ||
"version": "0.4.10", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "bachi", |
@@ -171,5 +171,5 @@ /* | ||
let isAir = (abc.defPublishType === 'weex' || abc.defPublishType === 'webapp') && !abc.awpProxy; | ||
let wapUrlDomain = options.wapUrlDomain || (isAir ? 'http://market.m.taobao.com/' : 'http://h5.m.taobao.com/'); | ||
let wapUrlDomain = options.wapUrlDomain || (isAir ? 'http://market.m.taobao.com/' : 'http://h5.m.taobao.com/'); | ||
let baseUrl = abc.baseUrl.replace(/^\//, ''); | ||
// 迁移至 weex/webapp 兼容老版本 | ||
@@ -204,3 +204,3 @@ if (isAir && !/^\/?app\//.test(baseUrl)) { | ||
let count = 0; | ||
function handleError() { | ||
@@ -239,2 +239,3 @@ if (count < 2) { | ||
var packageName = pkg.isAir ? pkg.name : pkg.name.replace(/^h5-/, ''); | ||
var universalWeex = (!abc.universalTargets || abc.universalTargets.weex); | ||
var awpPathMap = abc.awpPathMap || {}; | ||
@@ -343,7 +344,6 @@ | ||
cache_files[p.replace(/\/index\.html/, abc.composite ? '.html' : '')] = f; | ||
delete cache_files[p]; | ||
} | ||
} | ||
// 处理 index.weex.js | ||
if (/\.js$/.test(f)) { | ||
if (/\.js$/.test(f) && universalWeex) { | ||
if (/pages\/[^/]+\/index\.(weex|native)(-min)?\.js$/.test(f)) { | ||
@@ -354,6 +354,5 @@ weex_cache_files[p.replace(/\/index\.(weex|native)(-min)?\.js$/, abc.composite ? '.html' : '')] = f; | ||
} | ||
delete cache_files[p]; | ||
} | ||
}); | ||
if (Object.keys(weex_cache_files).length) { | ||
@@ -432,2 +431,2 @@ abcJSON.weexCache = weex_cache_files; | ||
}; | ||
}; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19897