@@ -25,24 +25,24 @@ switch (platform) {
25
25
case 'android' :
26
26
switch ( arch ) {
27
27
case 'arm64' :
28
- localFileExisted = existsSync ( join ( __dirname , '../unix -socket.android-arm64.node' ) )
28
+ localFileExisted = existsSync ( join ( __dirname , '../nix -socket.android-arm64.node' ) )
29
29
try {
30
30
if ( localFileExisted ) {
31
- nativeBinding = require ( '../unix -socket.android-arm64.node' )
31
+ nativeBinding = require ( '../nix -socket.android-arm64.node' )
32
32
} else {
33
- nativeBinding = require ( 'unix -socket-android-arm64' )
33
+ nativeBinding = require ( 'nix -socket-android-arm64' )
34
34
}
35
35
} catch ( e ) {
36
36
loadError = e
37
37
}
38
38
break
39
39
case 'arm' :
40
- localFileExisted = existsSync ( join ( __dirname , '../unix -socket.android-arm-eabi.node' ) )
40
+ localFileExisted = existsSync ( join ( __dirname , '../nix -socket.android-arm-eabi.node' ) )
41
41
try {
42
42
if ( localFileExisted ) {
43
- nativeBinding = require ( '../unix -socket.android-arm-eabi.node' )
43
+ nativeBinding = require ( '../nix -socket.android-arm-eabi.node' )
44
44
} else {
45
- nativeBinding = require ( 'unix -socket-android-arm-eabi' )
45
+ nativeBinding = require ( 'nix -socket-android-arm-eabi' )
46
46
}
47
47
} catch ( e ) {
48
48
loadError = e
@@ -56,41 +56,41 @@ switch (platform) {
56
56
switch ( arch ) {
57
57
case 'x64' :
58
58
localFileExisted = existsSync (
59
- join ( __dirname , '../unix -socket.win32-x64-msvc.node' )
59
+ join ( __dirname , '../nix -socket.win32-x64-msvc.node' )
60
60
)
61
61
try {
62
62
if ( localFileExisted ) {
63
- nativeBinding = require ( '../unix -socket.win32-x64-msvc.node' )
63
+ nativeBinding = require ( '../nix -socket.win32-x64-msvc.node' )
64
64
} else {
65
- nativeBinding = require ( 'unix -socket-win32-x64-msvc' )
65
+ nativeBinding = require ( 'nix -socket-win32-x64-msvc' )
66
66
}
67
67
} catch ( e ) {
68
68
loadError = e
69
69
}
70
70
break
71
71
case 'ia32' :
72
72
localFileExisted = existsSync (
73
- join ( __dirname , '../unix -socket.win32-ia32-msvc.node' )
73
+ join ( __dirname , '../nix -socket.win32-ia32-msvc.node' )
74
74
)
75
75
try {
76
76
if ( localFileExisted ) {
77
- nativeBinding = require ( '../unix -socket.win32-ia32-msvc.node' )
77
+ nativeBinding = require ( '../nix -socket.win32-ia32-msvc.node' )
78
78
} else {
79
- nativeBinding = require ( 'unix -socket-win32-ia32-msvc' )
79
+ nativeBinding = require ( 'nix -socket-win32-ia32-msvc' )
80
80
}
81
81
} catch ( e ) {
82
82
loadError = e
83
83
}
84
84
break
85
85
case 'arm64' :
86
86
localFileExisted = existsSync (
87
- join ( __dirname , '../unix -socket.win32-arm64-msvc.node' )
87
+ join ( __dirname , '../nix -socket.win32-arm64-msvc.node' )
88
88
)
89
89
try {
90
90
if ( localFileExisted ) {
91
- nativeBinding = require ( '../unix -socket.win32-arm64-msvc.node' )
91
+ nativeBinding = require ( '../nix -socket.win32-arm64-msvc.node' )
92
92
} else {
93
- nativeBinding = require ( 'unix -socket-win32-arm64-msvc' )
93
+ nativeBinding = require ( 'nix -socket-win32-arm64-msvc' )
94
94
}
95
95
} catch ( e ) {
96
96
loadError = e
@@ -103,26 +103,26 @@ switch (platform) {
103
103
case 'darwin' :
104
104
switch ( arch ) {
105
105
case 'x64' :
106
- localFileExisted = existsSync ( join ( __dirname , '../unix -socket.darwin-x64.node' ) )
106
+ localFileExisted = existsSync ( join ( __dirname , '../nix -socket.darwin-x64.node' ) )
107
107
try {
108
108
if ( localFileExisted ) {
109
- nativeBinding = require ( '../unix -socket.darwin-x64.node' )
109
+ nativeBinding = require ( '../nix -socket.darwin-x64.node' )
110
110
} else {
111
- nativeBinding = require ( 'unix -socket-darwin-x64' )
111
+ nativeBinding = require ( 'nix -socket-darwin-x64' )
112
112
}
113
113
} catch ( e ) {
114
114
loadError = e
115
115
}
116
116
break
117
117
case 'arm64' :
118
118
localFileExisted = existsSync (
119
- join ( __dirname , '../unix -socket.darwin-arm64.node' )
119
+ join ( __dirname , '../nix -socket.darwin-arm64.node' )
120
120
)
121
121
try {
122
122
if ( localFileExisted ) {
123
- nativeBinding = require ( '../unix -socket.darwin-arm64.node' )
123
+ nativeBinding = require ( '../nix -socket.darwin-arm64.node' )
124
124
} else {
125
- nativeBinding = require ( 'unix -socket-darwin-arm64' )
125
+ nativeBinding = require ( 'nix -socket-darwin-arm64' )
126
126
}
127
127
} catch ( e ) {
128
128
loadError = e
@@ -136,12 +136,12 @@ switch (platform) {
136
136
if ( arch !== 'x64' ) {
137
137
throw new Error ( `Unsupported architecture on FreeBSD: ${ arch } ` )
138
138
}
139
- localFileExisted = existsSync ( join ( __dirname , '../unix -socket.freebsd-x64.node' ) )
139
+ localFileExisted = existsSync ( join ( __dirname , '../nix -socket.freebsd-x64.node' ) )
140
140
try {
141
141
if ( localFileExisted ) {
142
- nativeBinding = require ( '../unix -socket.freebsd-x64.node' )
142
+ nativeBinding = require ( '../nix -socket.freebsd-x64.node' )
143
143
} else {
144
- nativeBinding = require ( 'unix -socket-freebsd-x64' )
144
+ nativeBinding = require ( 'nix -socket-freebsd-x64' )
145
145
}
146
146
} catch ( e ) {
147
147
loadError = e
@@ -152,26 +152,26 @@ switch (platform) {
152
152
case 'x64' :
153
153
if ( isMusl ( ) ) {
154
154
localFileExisted = existsSync (
155
- join ( __dirname , '../unix -socket.linux-x64-musl.node' )
155
+ join ( __dirname , '../nix -socket.linux-x64-musl.node' )
156
156
)
157
157
try {
158
158
if ( localFileExisted ) {
159
- nativeBinding = require ( '../unix -socket.linux-x64-musl.node' )
159
+ nativeBinding = require ( '../nix -socket.linux-x64-musl.node' )
160
160
} else {
161
- nativeBinding = require ( 'unix -socket-linux-x64-musl' )
161
+ nativeBinding = require ( 'nix -socket-linux-x64-musl' )
162
162
}
163
163
} catch ( e ) {
164
164
loadError = e
165
165
}
166
166
} else {
167
167
localFileExisted = existsSync (
168
- join ( __dirname , '../unix -socket.linux-x64-gnu.node' )
168
+ join ( __dirname , '../nix -socket.linux-x64-gnu.node' )
169
169
)
170
170
try {
171
171
if ( localFileExisted ) {
172
- nativeBinding = require ( '../unix -socket.linux-x64-gnu.node' )
172
+ nativeBinding = require ( '../nix -socket.linux-x64-gnu.node' )
173
173
} else {
174
- nativeBinding = require ( 'unix -socket-linux-x64-gnu' )
174
+ nativeBinding = require ( 'nix -socket-linux-x64-gnu' )
175
175
}
176
176
} catch ( e ) {
177
177
loadError = e
@@ -181,26 +181,26 @@ switch (platform) {
181
181
case 'arm64' :
182
182
if ( isMusl ( ) ) {
183
183
localFileExisted = existsSync (
184
- join ( __dirname , '../unix -socket.linux-arm64-musl.node' )
184
+ join ( __dirname , '../nix -socket.linux-arm64-musl.node' )
185
185
)
186
186
try {
187
187
if ( localFileExisted ) {
188
- nativeBinding = require ( '../unix -socket.linux-arm64-musl.node' )
188
+ nativeBinding = require ( '../nix -socket.linux-arm64-musl.node' )
189
189
} else {
190
- nativeBinding = require ( 'unix -socket-linux-arm64-musl' )
190
+ nativeBinding = require ( 'nix -socket-linux-arm64-musl' )
191
191
}
192
192
} catch ( e ) {
193
193
loadError = e
194
194
}
195
195
} else {
196
196
localFileExisted = existsSync (
197
- join ( __dirname , '../unix -socket.linux-arm64-gnu.node' )
197
+ join ( __dirname , '../nix -socket.linux-arm64-gnu.node' )
198
198
)
199
199
try {
200
200
if ( localFileExisted ) {
201
- nativeBinding = require ( '../unix -socket.linux-arm64-gnu.node' )
201
+ nativeBinding = require ( '../nix -socket.linux-arm64-gnu.node' )
202
202
} else {
203
- nativeBinding = require ( 'unix -socket-linux-arm64-gnu' )
203
+ nativeBinding = require ( 'nix -socket-linux-arm64-gnu' )
204
204
}
205
205
} catch ( e ) {
206
206
loadError = e
@@ -209,13 +209,13 @@ switch (platform) {
209
209
break
210
210
case 'arm' :
211
211
localFileExisted = existsSync (
212
- join ( __dirname , '../unix -socket.linux-arm-gnueabihf.node' )
212
+ join ( __dirname , '../nix -socket.linux-arm-gnueabihf.node' )
213
213
)
214
214
try {
215
215
if ( localFileExisted ) {
216
- nativeBinding = require ( '../unix -socket.linux-arm-gnueabihf.node' )
216
+ nativeBinding = require ( '../nix -socket.linux-arm-gnueabihf.node' )
217
217
} else {
218
- nativeBinding = require ( 'unix -socket-linux-arm-gnueabihf' )
218
+ nativeBinding = require ( 'nix -socket-linux-arm-gnueabihf' )
219
219
}
220
220
} catch ( e ) {
221
221
loadError = e
0 commit comments