From f71c6b956ef20ac539a28b97e022d20ee3cbc92f Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Fri, 28 Jan 2022 09:09:59 +0000 Subject: [PATCH] Upgrade to the latest version of `detect-libc` (#166) Uses the Report API where available (Node.js 12+) Otherwise spawns a single child process (Node.js 8, 10) --- package.json | 2 +- rc.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index a4ab43c..65cebc6 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "napi" ], "dependencies": { - "detect-libc": "^1.0.3", + "detect-libc": "^2.0.0", "expand-template": "^2.0.3", "github-from-package": "0.0.0", "minimist": "^1.2.3", diff --git a/rc.js b/rc.js index a2dc300..16d5bb4 100644 --- a/rc.js +++ b/rc.js @@ -5,7 +5,7 @@ const detectLibc = require('detect-libc') const napi = require('napi-build-utils') const env = process.env -const libc = env.LIBC || (detectLibc.isNonGlibcLinux && detectLibc.family) || '' +const libc = env.LIBC || (detectLibc.isNonGlibcLinuxSync() && detectLibc.familySync()) || '' // Get the configuration module.exports = function (pkg) {