Comparing version 0.6.0 to 0.6.1
@@ -66,11 +66,15 @@ 'use strict' | ||
util.sh('hdiutil', args, function (err) { | ||
if (err && err.exitCode === 16 && /Resource busy/.test(err.stderr)) { | ||
let attempts = 0 | ||
function attemptDetach (err) { | ||
attempts += 1 | ||
if (err && (err.exitCode === 16 || err.code === 16) && /Resource busy/.test(err.stderr) && attempts <= 5) { | ||
setTimeout(function () { | ||
util.sh('hdiutil', args, (err) => cb(err)) | ||
}, 1000) | ||
util.sh('hdiutil', args, attemptDetach) | ||
}, 1000 * Math.pow(2, attempts - 1)) | ||
} else { | ||
cb(err) | ||
} | ||
}) | ||
} | ||
util.sh('hdiutil', args, attemptDetach) | ||
} |
{ | ||
"name": "appdmg", | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "author": "Linus Unnebäck <linus@folkdatorn.se>", |
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
1102
3
1807708
36