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

appdmg

Package Overview
Dependencies
Maintainers
2
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

appdmg - npm Package Compare versions

Comparing version 0.6.0 to 0.6.1

14

lib/hdiutil.js

@@ -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>",

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