Skip to content

Commit

Permalink
Upgrade to @httptoolkit/osx-find-executable 2.x
Browse files Browse the repository at this point in the history
The previous version emits an npm-audit warning, for the change
at httptoolkit/osx-find-executable@20fb1e2c,
which is a breaking change that can't be patched downstream as it
is incompatible with the current way the function is called.
  • Loading branch information
Krinkle committed Apr 28, 2023
1 parent b67d2f5 commit ebda097
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions lib/detect/darwin.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@

const path = require('path')
const plist = require('simple-plist')
const osxFindExecutable = require('@httptoolkit/osx-find-executable')
const { fromPromise } = require('catering')
const { findExecutableById } = require('@httptoolkit/osx-find-executable')

function finder (bundleId, versionKey) {
return function find (callback) {
osxFindExecutable(bundleId, function (err, execPath) {
fromPromise(findExecutableById(bundleId), function (err, execPath) {
// Ignore not found error
if (err) return callback()

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"index.js"
],
"dependencies": {
"@httptoolkit/osx-find-executable": "^1.1.0",
"@httptoolkit/osx-find-executable": "^2.0.0",
"catering": "^2.1.1",
"debug": "^4.2.0",
"headless-support": "^1.0.0",
"simple-plist": "^1.1.1",
Expand Down

0 comments on commit ebda097

Please sign in to comment.