Skip to content

Commit f71c6b9

Browse files
authoredJan 28, 2022
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)
1 parent 8ee70f9 commit f71c6b9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"napi"
2020
],
2121
"dependencies": {
22-
"detect-libc": "^1.0.3",
22+
"detect-libc": "^2.0.0",
2323
"expand-template": "^2.0.3",
2424
"github-from-package": "0.0.0",
2525
"minimist": "^1.2.3",

‎rc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const detectLibc = require('detect-libc')
55
const napi = require('napi-build-utils')
66

77
const env = process.env
8-
const libc = env.LIBC || (detectLibc.isNonGlibcLinux && detectLibc.family) || ''
8+
const libc = env.LIBC || (detectLibc.isNonGlibcLinuxSync() && detectLibc.familySync()) || ''
99

1010
// Get the configuration
1111
module.exports = function (pkg) {

0 commit comments

Comments
 (0)
Please sign in to comment.