fx-gulp-cdn-replace
Advanced tools
Comparing version 0.6.0 to 0.6.1
@@ -14,3 +14,3 @@ 'use strict'; | ||
var jsImgReg = /src\s*:\s*["|']([^"']+)[^>]*/gim; | ||
var jsPubImgReg = /"..\/staticPub\/game\/js\/"/gim; | ||
var jsPubImgReg = /".\/game\/js\/"/gim; | ||
var base64Reg = /^data:image\/([^;]+);base64,/; | ||
@@ -109,3 +109,3 @@ var inlineReg = /\s+inline[\s+>]/; | ||
.replace(jsPubImgReg, function(match, url) { | ||
match = match.replace(/"..\/staticPub\/game\/js\/"/g, '"'+option.root.jsImg+'/game/js/"'); | ||
match = match.replace(/".\/game\/js\/"/g, '"'+option.root.jsImg+'/game/js/"'); | ||
return match; | ||
@@ -112,0 +112,0 @@ }); |
112
package.json
{ | ||
"name": "fx-gulp-cdn-replace", | ||
"version": "0.6.0", | ||
"description": "gulp-cdn-replace\r ================", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"_args": [ | ||
[ | ||
{ | ||
"raw": "fx-gulp-cdn-replace@^0.6.0", | ||
"scope": null, | ||
"escapedName": "fx-gulp-cdn-replace", | ||
"name": "fx-gulp-cdn-replace", | ||
"rawSpec": "^0.6.0", | ||
"spec": ">=0.6.0 <0.7.0", | ||
"type": "range" | ||
}, | ||
"F:\\fanxinggamemobile.kugou.com" | ||
] | ||
], | ||
"_cnpm_publish_time": 1483672882506, | ||
"_from": "fx-gulp-cdn-replace@>=0.6.0 <0.7.0", | ||
"_id": "fx-gulp-cdn-replace@0.6.0", | ||
"_inCache": true, | ||
"_installable": true, | ||
"_location": "/fx-gulp-cdn-replace", | ||
"_nodeVersion": "6.3.0", | ||
"_npmOperationalInternal": { | ||
"host": "packages-12-west.internal.npmjs.com", | ||
"tmp": "tmp/fx-gulp-cdn-replace-0.6.0.tgz_1483672882285_0.13875315128825605" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/JiangJie/gulp-cdn-replace.git" | ||
"_npmUser": { | ||
"name": "zhouzone", | ||
"email": "345460126@qq.com" | ||
}, | ||
"keywords": [ | ||
"gulp", | ||
"cdn", | ||
"replace", | ||
"hash" | ||
"_npmVersion": "3.10.3", | ||
"_phantomChildren": {}, | ||
"_requested": { | ||
"raw": "fx-gulp-cdn-replace@^0.6.0", | ||
"scope": null, | ||
"escapedName": "fx-gulp-cdn-replace", | ||
"name": "fx-gulp-cdn-replace", | ||
"rawSpec": "^0.6.0", | ||
"spec": ">=0.6.0 <0.7.0", | ||
"type": "range" | ||
}, | ||
"_requiredBy": [ | ||
"#DEV:/" | ||
], | ||
"_resolved": "https://registry.npm.taobao.org/fx-gulp-cdn-replace/download/fx-gulp-cdn-replace-0.6.0.tgz", | ||
"_shasum": "c05a79a62f37cfd5c6c7be2dfd1032b6cc7c2728", | ||
"_shrinkwrap": null, | ||
"_spec": "fx-gulp-cdn-replace@^0.6.0", | ||
"_where": "F:\\fanxinggamemobile.kugou.com", | ||
"author": { | ||
@@ -23,7 +54,5 @@ "name": "Jarvis Jiang", | ||
}, | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/JiangJie/gulp-cdn-replace/issues" | ||
}, | ||
"homepage": "https://github.com/JiangJie/gulp-cdn-replace", | ||
"dependencies": { | ||
@@ -33,32 +62,39 @@ "gulp-util": "^3.0.1", | ||
}, | ||
"gitHead": "f8c45b300129a24d22f9b4f428f85879169b48b8", | ||
"_id": "gulp-cdn-replace@0.6.0", | ||
"_shasum": "db839ba9d4a91f076cf25f57671606e6eb177671", | ||
"_from": "gulp-cdn-replace@*", | ||
"_npmVersion": "4.0.2", | ||
"_nodeVersion": "7.2.0", | ||
"_npmUser": { | ||
"name": "jarvisjiang", | ||
"email": "jiang115jie@gmail.com" | ||
}, | ||
"description": "gulp-cdn-replace\r ================", | ||
"devDependencies": {}, | ||
"directories": {}, | ||
"dist": { | ||
"shasum": "db839ba9d4a91f076cf25f57671606e6eb177671", | ||
"size": 3248, | ||
"shasum": "c05a79a62f37cfd5c6c7be2dfd1032b6cc7c2728", | ||
"size": 3746, | ||
"noattachment": false, | ||
"tarball": "http://registry.npm.taobao.org/gulp-cdn-replace/download/gulp-cdn-replace-0.6.0.tgz" | ||
"tarball": "http://registry.npm.taobao.org/fx-gulp-cdn-replace/download/fx-gulp-cdn-replace-0.6.0.tgz" | ||
}, | ||
"gitHead": "f8c45b300129a24d22f9b4f428f85879169b48b8", | ||
"homepage": "https://github.com/JiangJie/gulp-cdn-replace", | ||
"keywords": [ | ||
"gulp", | ||
"cdn", | ||
"replace", | ||
"hash" | ||
], | ||
"license": "MIT", | ||
"main": "index.js", | ||
"maintainers": [ | ||
{ | ||
"name": "jarvisjiang", | ||
"email": "jiang115jie@gmail.com" | ||
"name": "zhouzone", | ||
"email": "345460126@qq.com" | ||
} | ||
], | ||
"_npmOperationalInternal": { | ||
"host": "packages-18-east.internal.npmjs.com", | ||
"tmp": "tmp/gulp-cdn-replace-0.6.0.tgz_1482750633435_0.23670148733071983" | ||
"name": "fx-gulp-cdn-replace", | ||
"optionalDependencies": {}, | ||
"publish_time": 1483672882506, | ||
"readme": "ERROR: No README data found!", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/JiangJie/gulp-cdn-replace.git" | ||
}, | ||
"directories": {}, | ||
"publish_time": 1482750635502, | ||
"_cnpm_publish_time": 1482750635502, | ||
"_resolved": "https://registry.npm.taobao.org/gulp-cdn-replace/download/gulp-cdn-replace-0.6.0.tgz" | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"version": "0.6.1" | ||
} |
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
10303