grunt-cacheinfo
Advanced tools
Comparing version 0.1.8 to 0.1.9
{ | ||
"name": "grunt-cacheinfo", | ||
"description": "cacheinfo.", | ||
"version": "0.1.8", | ||
"version": "0.1.9", | ||
"homepage": "http://gitlab.alibaba-inc.com/trip-tools/grunt-cacheinfo", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -14,2 +14,3 @@ /* | ||
var http = require('http'); | ||
var url = require('url'); | ||
var clamUtil = require('clam-util'); | ||
@@ -109,5 +110,8 @@ var exec = require('child_process').exec; | ||
var wap_relative = wapUrl; | ||
wap_relative = wap_relative.replace('http://h5.m.taobao.com',''); | ||
wap_relative = wap_relative.replace('http://h5.wapa.taobao.com',''); | ||
wap_relative = wap_relative.replace('http://h5.waptest.taobao.com',''); | ||
var parsedUrl = url.parse(wapUrl); | ||
if(!parsedUrl.host || !parsedUrl.protocol) { | ||
wapUrl = 'http://' + wapUrl; | ||
parsedUrl = url.parse(wapUrl); | ||
} | ||
wap_relative = parsedUrl.path; | ||
wap_relative = wap_relative.replace('#/fillinfo',''); | ||
@@ -114,0 +118,0 @@ return wap_relative; |
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
12249
297