We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d70e863 commit 813408bCopy full SHA for 813408b
CHANGELOG.md
@@ -1,5 +1,8 @@
1
# CHANGELOG
2
3
+## 0.1.1
4
+fix: running on linux throws errors
5
+
6
## 0.1.0
7
8
initial release
js/addon.js
@@ -1,4 +1,4 @@
-const { existsSync, readFileSync, statSync } = require('fs')
+const { existsSync, readFileSync } = require('fs')
const { join } = require('path')
const { platform, arch } = process
@@ -164,7 +164,7 @@ switch (platform) {
164
loadError = e
165
}
166
} else {
167
- localFileExisted = statSync(
+ localFileExisted = existsSync(
168
join(__dirname, '../node-unix-socket.linux-x64-gnu.node')
169
)
170
try {
0 commit comments