@shined/doctor-binding 0.0.50 → 0.0.51-canary.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +110 -93
- package/package.json +10 -10
package/index.js
CHANGED
|
@@ -82,7 +82,6 @@ function requireNative() {
|
|
|
82
82
|
} catch (e) {
|
|
83
83
|
loadErrors.push(e)
|
|
84
84
|
}
|
|
85
|
-
|
|
86
85
|
} else if (process.arch === 'arm') {
|
|
87
86
|
try {
|
|
88
87
|
return require('./doctor-binding.android-arm-eabi.node')
|
|
@@ -94,7 +93,6 @@ function requireNative() {
|
|
|
94
93
|
} catch (e) {
|
|
95
94
|
loadErrors.push(e)
|
|
96
95
|
}
|
|
97
|
-
|
|
98
96
|
} else {
|
|
99
97
|
loadErrors.push(new Error(`Unsupported architecture on Android ${process.arch}`))
|
|
100
98
|
}
|
|
@@ -110,7 +108,6 @@ function requireNative() {
|
|
|
110
108
|
} catch (e) {
|
|
111
109
|
loadErrors.push(e)
|
|
112
110
|
}
|
|
113
|
-
|
|
114
111
|
} else if (process.arch === 'ia32') {
|
|
115
112
|
try {
|
|
116
113
|
return require('./doctor-binding.win32-ia32-msvc.node')
|
|
@@ -122,7 +119,6 @@ function requireNative() {
|
|
|
122
119
|
} catch (e) {
|
|
123
120
|
loadErrors.push(e)
|
|
124
121
|
}
|
|
125
|
-
|
|
126
122
|
} else if (process.arch === 'arm64') {
|
|
127
123
|
try {
|
|
128
124
|
return require('./doctor-binding.win32-arm64-msvc.node')
|
|
@@ -134,22 +130,20 @@ function requireNative() {
|
|
|
134
130
|
} catch (e) {
|
|
135
131
|
loadErrors.push(e)
|
|
136
132
|
}
|
|
137
|
-
|
|
138
133
|
} else {
|
|
139
134
|
loadErrors.push(new Error(`Unsupported architecture on Windows: ${process.arch}`))
|
|
140
135
|
}
|
|
141
136
|
} else if (process.platform === 'darwin') {
|
|
142
137
|
try {
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
138
|
+
return require('./doctor-binding.darwin-universal.node')
|
|
139
|
+
} catch (e) {
|
|
140
|
+
loadErrors.push(e)
|
|
141
|
+
}
|
|
142
|
+
try {
|
|
143
|
+
return require('@shined/doctor-binding-darwin-universal')
|
|
144
|
+
} catch (e) {
|
|
145
|
+
loadErrors.push(e)
|
|
146
|
+
}
|
|
153
147
|
if (process.arch === 'x64') {
|
|
154
148
|
try {
|
|
155
149
|
return require('./doctor-binding.darwin-x64.node')
|
|
@@ -161,7 +155,6 @@ function requireNative() {
|
|
|
161
155
|
} catch (e) {
|
|
162
156
|
loadErrors.push(e)
|
|
163
157
|
}
|
|
164
|
-
|
|
165
158
|
} else if (process.arch === 'arm64') {
|
|
166
159
|
try {
|
|
167
160
|
return require('./doctor-binding.darwin-arm64.node')
|
|
@@ -173,7 +166,6 @@ function requireNative() {
|
|
|
173
166
|
} catch (e) {
|
|
174
167
|
loadErrors.push(e)
|
|
175
168
|
}
|
|
176
|
-
|
|
177
169
|
} else {
|
|
178
170
|
loadErrors.push(new Error(`Unsupported architecture on macOS: ${process.arch}`))
|
|
179
171
|
}
|
|
@@ -189,7 +181,6 @@ function requireNative() {
|
|
|
189
181
|
} catch (e) {
|
|
190
182
|
loadErrors.push(e)
|
|
191
183
|
}
|
|
192
|
-
|
|
193
184
|
} else if (process.arch === 'arm64') {
|
|
194
185
|
try {
|
|
195
186
|
return require('./doctor-binding.freebsd-arm64.node')
|
|
@@ -201,7 +192,6 @@ function requireNative() {
|
|
|
201
192
|
} catch (e) {
|
|
202
193
|
loadErrors.push(e)
|
|
203
194
|
}
|
|
204
|
-
|
|
205
195
|
} else {
|
|
206
196
|
loadErrors.push(new Error(`Unsupported architecture on FreeBSD: ${process.arch}`))
|
|
207
197
|
}
|
|
@@ -209,133 +199,160 @@ function requireNative() {
|
|
|
209
199
|
if (process.arch === 'x64') {
|
|
210
200
|
if (isMusl()) {
|
|
211
201
|
try {
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
202
|
+
return require('./doctor-binding.linux-x64-musl.node')
|
|
203
|
+
} catch (e) {
|
|
204
|
+
loadErrors.push(e)
|
|
205
|
+
}
|
|
206
|
+
try {
|
|
207
|
+
return require('@shined/doctor-binding-linux-x64-musl')
|
|
208
|
+
} catch (e) {
|
|
209
|
+
loadErrors.push(e)
|
|
210
|
+
}
|
|
222
211
|
} else {
|
|
223
212
|
try {
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
213
|
+
return require('./doctor-binding.linux-x64-gnu.node')
|
|
214
|
+
} catch (e) {
|
|
215
|
+
loadErrors.push(e)
|
|
216
|
+
}
|
|
217
|
+
try {
|
|
218
|
+
return require('@shined/doctor-binding-linux-x64-gnu')
|
|
219
|
+
} catch (e) {
|
|
220
|
+
loadErrors.push(e)
|
|
221
|
+
}
|
|
234
222
|
}
|
|
235
223
|
} else if (process.arch === 'arm64') {
|
|
236
224
|
if (isMusl()) {
|
|
237
225
|
try {
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
226
|
+
return require('./doctor-binding.linux-arm64-musl.node')
|
|
227
|
+
} catch (e) {
|
|
228
|
+
loadErrors.push(e)
|
|
229
|
+
}
|
|
230
|
+
try {
|
|
231
|
+
return require('@shined/doctor-binding-linux-arm64-musl')
|
|
232
|
+
} catch (e) {
|
|
233
|
+
loadErrors.push(e)
|
|
234
|
+
}
|
|
248
235
|
} else {
|
|
249
236
|
try {
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
237
|
+
return require('./doctor-binding.linux-arm64-gnu.node')
|
|
238
|
+
} catch (e) {
|
|
239
|
+
loadErrors.push(e)
|
|
240
|
+
}
|
|
241
|
+
try {
|
|
242
|
+
return require('@shined/doctor-binding-linux-arm64-gnu')
|
|
243
|
+
} catch (e) {
|
|
244
|
+
loadErrors.push(e)
|
|
245
|
+
}
|
|
260
246
|
}
|
|
261
247
|
} else if (process.arch === 'arm') {
|
|
262
248
|
if (isMusl()) {
|
|
263
249
|
try {
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
250
|
+
return require('./doctor-binding.linux-arm-musleabihf.node')
|
|
251
|
+
} catch (e) {
|
|
252
|
+
loadErrors.push(e)
|
|
253
|
+
}
|
|
254
|
+
try {
|
|
255
|
+
return require('@shined/doctor-binding-linux-arm-musleabihf')
|
|
256
|
+
} catch (e) {
|
|
257
|
+
loadErrors.push(e)
|
|
258
|
+
}
|
|
259
|
+
} else {
|
|
260
|
+
try {
|
|
261
|
+
return require('./doctor-binding.linux-arm-gnueabihf.node')
|
|
262
|
+
} catch (e) {
|
|
263
|
+
loadErrors.push(e)
|
|
264
|
+
}
|
|
265
|
+
try {
|
|
266
|
+
return require('@shined/doctor-binding-linux-arm-gnueabihf')
|
|
267
|
+
} catch (e) {
|
|
268
|
+
loadErrors.push(e)
|
|
269
|
+
}
|
|
272
270
|
}
|
|
273
|
-
|
|
271
|
+
} else if (process.arch === 'riscv64') {
|
|
272
|
+
if (isMusl()) {
|
|
273
|
+
try {
|
|
274
|
+
return require('./doctor-binding.linux-riscv64-musl.node')
|
|
275
|
+
} catch (e) {
|
|
276
|
+
loadErrors.push(e)
|
|
277
|
+
}
|
|
278
|
+
try {
|
|
279
|
+
return require('@shined/doctor-binding-linux-riscv64-musl')
|
|
280
|
+
} catch (e) {
|
|
281
|
+
loadErrors.push(e)
|
|
282
|
+
}
|
|
274
283
|
} else {
|
|
275
284
|
try {
|
|
276
|
-
|
|
285
|
+
return require('./doctor-binding.linux-riscv64-gnu.node')
|
|
286
|
+
} catch (e) {
|
|
287
|
+
loadErrors.push(e)
|
|
288
|
+
}
|
|
289
|
+
try {
|
|
290
|
+
return require('@shined/doctor-binding-linux-riscv64-gnu')
|
|
291
|
+
} catch (e) {
|
|
292
|
+
loadErrors.push(e)
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
} else if (process.arch === 'ppc64') {
|
|
296
|
+
try {
|
|
297
|
+
return require('./doctor-binding.linux-ppc64-gnu.node')
|
|
277
298
|
} catch (e) {
|
|
278
299
|
loadErrors.push(e)
|
|
279
300
|
}
|
|
280
301
|
try {
|
|
281
|
-
return require('@shined/doctor-binding-linux-
|
|
302
|
+
return require('@shined/doctor-binding-linux-ppc64-gnu')
|
|
282
303
|
} catch (e) {
|
|
283
304
|
loadErrors.push(e)
|
|
284
305
|
}
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
if (isMusl()) {
|
|
289
|
-
try {
|
|
290
|
-
return require('./doctor-binding.linux-riscv64-musl.node')
|
|
306
|
+
} else if (process.arch === 's390x') {
|
|
307
|
+
try {
|
|
308
|
+
return require('./doctor-binding.linux-s390x-gnu.node')
|
|
291
309
|
} catch (e) {
|
|
292
310
|
loadErrors.push(e)
|
|
293
311
|
}
|
|
294
312
|
try {
|
|
295
|
-
return require('@shined/doctor-binding-linux-
|
|
313
|
+
return require('@shined/doctor-binding-linux-s390x-gnu')
|
|
296
314
|
} catch (e) {
|
|
297
315
|
loadErrors.push(e)
|
|
298
316
|
}
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
317
|
+
} else {
|
|
318
|
+
loadErrors.push(new Error(`Unsupported architecture on Linux: ${process.arch}`))
|
|
319
|
+
}
|
|
320
|
+
} else if (process.platform === 'openharmony') {
|
|
321
|
+
if (process.arch === 'arm64') {
|
|
322
|
+
try {
|
|
323
|
+
return require('./doctor-binding.linux-arm64-ohos.node')
|
|
303
324
|
} catch (e) {
|
|
304
325
|
loadErrors.push(e)
|
|
305
326
|
}
|
|
306
327
|
try {
|
|
307
|
-
return require('@shined/doctor-binding-linux-
|
|
328
|
+
return require('@shined/doctor-binding-linux-arm64-ohos')
|
|
308
329
|
} catch (e) {
|
|
309
330
|
loadErrors.push(e)
|
|
310
331
|
}
|
|
311
|
-
|
|
312
|
-
}
|
|
313
|
-
} else if (process.arch === 'ppc64') {
|
|
332
|
+
} else if (process.arch === 'x64') {
|
|
314
333
|
try {
|
|
315
|
-
return require('./doctor-binding.linux-
|
|
334
|
+
return require('./doctor-binding.linux-x64-ohos.node')
|
|
316
335
|
} catch (e) {
|
|
317
336
|
loadErrors.push(e)
|
|
318
337
|
}
|
|
319
338
|
try {
|
|
320
|
-
return require('@shined/doctor-binding-linux-
|
|
339
|
+
return require('@shined/doctor-binding-linux-x64-ohos')
|
|
321
340
|
} catch (e) {
|
|
322
341
|
loadErrors.push(e)
|
|
323
342
|
}
|
|
324
|
-
|
|
325
|
-
} else if (process.arch === 's390x') {
|
|
343
|
+
} else if (process.arch === 'arm') {
|
|
326
344
|
try {
|
|
327
|
-
return require('./doctor-binding.linux-
|
|
345
|
+
return require('./doctor-binding.linux-arm-ohos.node')
|
|
328
346
|
} catch (e) {
|
|
329
347
|
loadErrors.push(e)
|
|
330
348
|
}
|
|
331
349
|
try {
|
|
332
|
-
return require('@shined/doctor-binding-linux-
|
|
350
|
+
return require('@shined/doctor-binding-linux-arm-ohos')
|
|
333
351
|
} catch (e) {
|
|
334
352
|
loadErrors.push(e)
|
|
335
353
|
}
|
|
336
|
-
|
|
337
354
|
} else {
|
|
338
|
-
loadErrors.push(new Error(`Unsupported architecture on
|
|
355
|
+
loadErrors.push(new Error(`Unsupported architecture on OpenHarmony: ${process.arch}`))
|
|
339
356
|
}
|
|
340
357
|
} else {
|
|
341
358
|
loadErrors.push(new Error(`Unsupported OS: ${process.platform}, architecture: ${process.arch}`))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shined/doctor-binding",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.51-canary.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"types": "index.d.ts",
|
|
6
6
|
"repository": {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
},
|
|
9
9
|
"publishConfig": {
|
|
10
10
|
"access": "public",
|
|
11
|
-
"tag": "
|
|
11
|
+
"tag": "canary"
|
|
12
12
|
},
|
|
13
13
|
"files": [
|
|
14
14
|
"index.js",
|
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
},
|
|
21
21
|
"homepage": "https://github.com/sheinsight/doctor-engine#readme",
|
|
22
22
|
"optionalDependencies": {
|
|
23
|
-
"@shined/doctor-binding-darwin-x64": "0.0.
|
|
24
|
-
"@shined/doctor-binding-darwin-arm64": "0.0.
|
|
25
|
-
"@shined/doctor-binding-win32-x64-msvc": "0.0.
|
|
26
|
-
"@shined/doctor-binding-win32-arm64-msvc": "0.0.
|
|
27
|
-
"@shined/doctor-binding-linux-x64-gnu": "0.0.
|
|
28
|
-
"@shined/doctor-binding-linux-x64-musl": "0.0.
|
|
29
|
-
"@shined/doctor-binding-linux-arm64-gnu": "0.0.
|
|
30
|
-
"@shined/doctor-binding-linux-arm64-musl": "0.0.
|
|
23
|
+
"@shined/doctor-binding-darwin-x64": "0.0.51-canary.0",
|
|
24
|
+
"@shined/doctor-binding-darwin-arm64": "0.0.51-canary.0",
|
|
25
|
+
"@shined/doctor-binding-win32-x64-msvc": "0.0.51-canary.0",
|
|
26
|
+
"@shined/doctor-binding-win32-arm64-msvc": "0.0.51-canary.0",
|
|
27
|
+
"@shined/doctor-binding-linux-x64-gnu": "0.0.51-canary.0",
|
|
28
|
+
"@shined/doctor-binding-linux-x64-musl": "0.0.51-canary.0",
|
|
29
|
+
"@shined/doctor-binding-linux-arm64-gnu": "0.0.51-canary.0",
|
|
30
|
+
"@shined/doctor-binding-linux-arm64-musl": "0.0.51-canary.0"
|
|
31
31
|
}
|
|
32
32
|
}
|