From 09b048fb53ef9384aabfd30a7a05c8e4160fb3e6 Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Tue, 2 Mar 2021 14:42:41 +0100 Subject: [PATCH] fix: remove nullish coalescing operator to support Node.JS 12 Nullish coalescing operator was only introduced in Node.JS 14 https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Nullish_Coalescing_Operator https://nodejs.org/uk/blog/release/v14.0.0/ Hence, this package is currently not compatible with Node.JS 12 --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index e457c7e..be771d1 100644 --- a/index.js +++ b/index.js @@ -85,7 +85,7 @@ const open = async (target, options) => { })); } - let {name: app, appArguments = []} = options.app ?? {}; + let {name: app, appArguments = []} = options.app || {}; if (Array.isArray(app)) { return pTryEach(app, appName => open(target, {