Skip to content

Commit c35a5fc

Browse files
authored
upgrade detect-libc (#923)
1 parent fc7f350 commit c35a5fc

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

cli/postinstall.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ let path = require('path');
33

44
let parts = [process.platform, process.arch];
55
if (process.platform === 'linux') {
6-
const {MUSL, family} = require('detect-libc');
6+
const {MUSL, familySync} = require('detect-libc');
7+
const family = familySync();
78
if (family === MUSL) {
89
parts.push('musl');
910
} else if (process.arch === 'arm') {

node/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
let parts = [process.platform, process.arch];
22
if (process.platform === 'linux') {
3-
const { MUSL, family } = require('detect-libc');
3+
const { MUSL, familySync } = require('detect-libc');
4+
const family = familySync();
45
if (family === MUSL) {
56
parts.push('musl');
67
} else if (process.arch === 'arm') {

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"node/*.flow"
4040
],
4141
"dependencies": {
42-
"detect-libc": "^1.0.3"
42+
"detect-libc": "^2.0.3"
4343
},
4444
"devDependencies": {
4545
"@babel/parser": "7.21.4",

0 commit comments

Comments
 (0)