Comparing version 1.8.2 to 1.8.3
@@ -111,10 +111,18 @@ // Generated by CoffeeScript 1.3.1 | ||
if (err) { | ||
return typeof errorCallback === "function" ? errorCallback(err) : void 0; | ||
return typeof errorCallback === "function" ? errorCallback(err, data) : void 0; | ||
} | ||
details.local = JSON.parse(data.toString()); | ||
try { | ||
details.local = JSON.parse(data.toString()); | ||
} catch (err) { | ||
return typeof errorCallback === "function" ? errorCallback(err, data) : void 0; | ||
} | ||
return balUtilPaths.readPath(remote, function(err, data) { | ||
if (err) { | ||
return typeof errorCallback === "function" ? errorCallback(err) : void 0; | ||
return typeof errorCallback === "function" ? errorCallback(err, data) : void 0; | ||
} | ||
details.remote = JSON.parse(data.toString()); | ||
try { | ||
details.remote = JSON.parse(data.toString()); | ||
} catch (err) { | ||
return typeof errorCallback === "function" ? errorCallback(err, data) : void 0; | ||
} | ||
return runCompare(); | ||
@@ -121,0 +129,0 @@ }); |
{ | ||
"name": "bal-util", | ||
"version": "1.8.2", | ||
"version": "1.8.3", | ||
"description": "Common utility functions for Node.js used and maintained by Benjamin Lupton", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/balupton/bal-util", |
Sorry, the diff of this file is not supported yet
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
154797
29
2429
21