Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

grunt-cacheinfo

Package Overview
Dependencies
Maintainers
3
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-cacheinfo - npm Package Compare versions

Comparing version 0.4.6 to 0.4.7

2

package.json
{
"name": "grunt-cacheinfo",
"description": "cacheinfo.",
"version": "0.4.6",
"version": "0.4.7",
"author": {

@@ -6,0 +6,0 @@ "name": "bachi",

@@ -183,14 +183,29 @@ /*

function getGlobalConfig(ok) {
https.get(config_url, function (res) {
var raw = '';
res.on('data', function (chunk) {
raw += chunk.toString('utf8');
});
res.on('end', function () {
ok(JSON.parse(raw));
});
}).on('error', function (e) {
grunt.fail.fatal('错误:请求不到 ' + config_url);
done();
});
let count = 0;
function handleError() {
if (count < 2) {
count++;
setTimeout(function() {
_getGlobalConfig();
}, 3000);
} else {
grunt.fail.fatal('错误:请求不到 ' + config_url);
done();
}
}
function _getGlobalConfig() {
https.get(config_url, function (res) {
var raw = '';
res.on('data', function (chunk) {
raw += chunk.toString('utf8');
});
res.on('end', function () {
ok(JSON.parse(raw));
});
}).on('error', handleError);
}
_getGlobalConfig();
}

@@ -197,0 +212,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc