grunt-cacheinfo
Advanced tools
Comparing version 0.1.3 to 0.1.4
{ | ||
"name": "grunt-cacheinfo", | ||
"description": "cacheinfo.", | ||
"version": "0.1.3", | ||
"homepage": "https://github.com/jayli/grunt-combohtml", | ||
"version": "0.1.4", | ||
"homepage": "http://gitlab.alibaba-inc.com/trip-tools/grunt-cacheinfo", | ||
"author": { | ||
@@ -12,3 +12,3 @@ "name": "bachi", | ||
"type": "git", | ||
"url": "git@github.com:jayli/grunt-combohtml.git" | ||
"url": "git@gitlab.alibaba-inc.com:trip-tools/grunt-cacheinfo.git" | ||
}, | ||
@@ -41,4 +41,4 @@ "licenses": [ | ||
], | ||
"_id": "grunt-cacheinfo@0.1.2", | ||
"_from": "grunt-cacheinfo@*", | ||
"_id": "grunt-cacheinfo@0.1.3", | ||
"_from": "grunt-cacheinfo@latest", | ||
"maintainers": [ | ||
@@ -51,8 +51,8 @@ { | ||
"directories": {}, | ||
"publish_time": 1418392430856, | ||
"_cnpm_publish_time": 1418392430856, | ||
"publish_time": 1418560962568, | ||
"_cnpm_publish_time": 1418560962568, | ||
"bugs": { | ||
"url": "https://github.com/jayli/grunt-combohtml/issues" | ||
}, | ||
"_shasum": "3f2e0253ba6e53130e934245da70de914193d1a9", | ||
"_shasum": "f227b353e47209cdc22e7b790e5516d45f4286af", | ||
"_npmVersion": "1.4.16", | ||
@@ -64,9 +64,9 @@ "_npmUser": { | ||
"dist": { | ||
"shasum": "3f2e0253ba6e53130e934245da70de914193d1a9", | ||
"size": 6923, | ||
"shasum": "f227b353e47209cdc22e7b790e5516d45f4286af", | ||
"size": 4784, | ||
"noattachment": false, | ||
"key": "grunt-cacheinfo/-/grunt-cacheinfo-0.1.2.tgz", | ||
"tarball": "http://registry.npm.alibaba-inc.com/grunt-cacheinfo/download/grunt-cacheinfo-0.1.2.tgz" | ||
"key": "grunt-cacheinfo/-/grunt-cacheinfo-0.1.3.tgz", | ||
"tarball": "http://registry.npm.alibaba-inc.com/grunt-cacheinfo/download/grunt-cacheinfo-0.1.3.tgz" | ||
}, | ||
"_resolved": "http://registry.npm.alibaba-inc.com/grunt-cacheinfo/download/grunt-cacheinfo-0.1.2.tgz" | ||
"_resolved": "http://registry.npm.alibaba-inc.com/grunt-cacheinfo/download/grunt-cacheinfo-0.1.3.tgz" | ||
} |
@@ -14,1 +14,6 @@ # grunt-cacheinfo | ||
}, | ||
### Release History | ||
- 0.1.4 | ||
- 读取不到包配置时,直接跳过该任务避免报错 |
@@ -52,3 +52,10 @@ /* | ||
getGlobalConfig(function(globalConfig){ | ||
generatorCacheInfo(getPkgConfig(globalConfig),all_files); | ||
var pkgConfig = getPkgConfig(globalConfig); | ||
if(pkgConfig) { | ||
generatorCacheInfo(pkgConfig, all_files); | ||
} else { | ||
done(); | ||
} | ||
}); | ||
@@ -112,10 +119,12 @@ | ||
var abc = require(path.resolve(process.cwd(), options.abc)); | ||
var pkg = {}; | ||
var pkg = {}, | ||
isPkgFound = false; | ||
for(var i = 0;i<globalConfig.length;i++){ | ||
if(globalConfig[i].name == abc.name){ | ||
pkg = globalConfig[i]; | ||
isPkgFound = true; | ||
break; | ||
} | ||
} | ||
return pkg; | ||
return isPkgFound ? pkg : null; | ||
} | ||
@@ -219,4 +228,1 @@ | ||
}; | ||
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
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
11801
287
18
3