@atlaspack/rust 3.0.1-dev.9 → 3.0.1-dev.91
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/{atlaspack-node-bindings.darwin-arm64.node → index.darwin-arm64.node} +0 -0
- package/{atlaspack-node-bindings.darwin-x64.node → index.darwin-x64.node} +0 -0
- package/index.js +54 -54
- package/{atlaspack-node-bindings.linux-arm64-gnu.node → index.linux-arm64-gnu.node} +0 -0
- package/{atlaspack-node-bindings.linux-x64-gnu.node → index.linux-x64-gnu.node} +0 -0
- package/package.json +4 -3
|
Binary file
|
|
Binary file
|
package/index.js
CHANGED
|
@@ -32,24 +32,24 @@ switch (platform) {
|
|
|
32
32
|
case 'android':
|
|
33
33
|
switch (arch) {
|
|
34
34
|
case 'arm64':
|
|
35
|
-
localFileExisted = existsSync(join(__dirname, '
|
|
35
|
+
localFileExisted = existsSync(join(__dirname, 'index.android-arm64.node'))
|
|
36
36
|
try {
|
|
37
37
|
if (localFileExisted) {
|
|
38
|
-
nativeBinding = require('./
|
|
38
|
+
nativeBinding = require('./index.android-arm64.node')
|
|
39
39
|
} else {
|
|
40
|
-
nativeBinding = require('@atlaspack/
|
|
40
|
+
nativeBinding = require('@atlaspack/monorepo-android-arm64')
|
|
41
41
|
}
|
|
42
42
|
} catch (e) {
|
|
43
43
|
loadError = e
|
|
44
44
|
}
|
|
45
45
|
break
|
|
46
46
|
case 'arm':
|
|
47
|
-
localFileExisted = existsSync(join(__dirname, '
|
|
47
|
+
localFileExisted = existsSync(join(__dirname, 'index.android-arm-eabi.node'))
|
|
48
48
|
try {
|
|
49
49
|
if (localFileExisted) {
|
|
50
|
-
nativeBinding = require('./
|
|
50
|
+
nativeBinding = require('./index.android-arm-eabi.node')
|
|
51
51
|
} else {
|
|
52
|
-
nativeBinding = require('@atlaspack/
|
|
52
|
+
nativeBinding = require('@atlaspack/monorepo-android-arm-eabi')
|
|
53
53
|
}
|
|
54
54
|
} catch (e) {
|
|
55
55
|
loadError = e
|
|
@@ -63,13 +63,13 @@ switch (platform) {
|
|
|
63
63
|
switch (arch) {
|
|
64
64
|
case 'x64':
|
|
65
65
|
localFileExisted = existsSync(
|
|
66
|
-
join(__dirname, '
|
|
66
|
+
join(__dirname, 'index.win32-x64-msvc.node')
|
|
67
67
|
)
|
|
68
68
|
try {
|
|
69
69
|
if (localFileExisted) {
|
|
70
|
-
nativeBinding = require('./
|
|
70
|
+
nativeBinding = require('./index.win32-x64-msvc.node')
|
|
71
71
|
} else {
|
|
72
|
-
nativeBinding = require('@atlaspack/
|
|
72
|
+
nativeBinding = require('@atlaspack/monorepo-win32-x64-msvc')
|
|
73
73
|
}
|
|
74
74
|
} catch (e) {
|
|
75
75
|
loadError = e
|
|
@@ -77,13 +77,13 @@ switch (platform) {
|
|
|
77
77
|
break
|
|
78
78
|
case 'ia32':
|
|
79
79
|
localFileExisted = existsSync(
|
|
80
|
-
join(__dirname, '
|
|
80
|
+
join(__dirname, 'index.win32-ia32-msvc.node')
|
|
81
81
|
)
|
|
82
82
|
try {
|
|
83
83
|
if (localFileExisted) {
|
|
84
|
-
nativeBinding = require('./
|
|
84
|
+
nativeBinding = require('./index.win32-ia32-msvc.node')
|
|
85
85
|
} else {
|
|
86
|
-
nativeBinding = require('@atlaspack/
|
|
86
|
+
nativeBinding = require('@atlaspack/monorepo-win32-ia32-msvc')
|
|
87
87
|
}
|
|
88
88
|
} catch (e) {
|
|
89
89
|
loadError = e
|
|
@@ -91,13 +91,13 @@ switch (platform) {
|
|
|
91
91
|
break
|
|
92
92
|
case 'arm64':
|
|
93
93
|
localFileExisted = existsSync(
|
|
94
|
-
join(__dirname, '
|
|
94
|
+
join(__dirname, 'index.win32-arm64-msvc.node')
|
|
95
95
|
)
|
|
96
96
|
try {
|
|
97
97
|
if (localFileExisted) {
|
|
98
|
-
nativeBinding = require('./
|
|
98
|
+
nativeBinding = require('./index.win32-arm64-msvc.node')
|
|
99
99
|
} else {
|
|
100
|
-
nativeBinding = require('@atlaspack/
|
|
100
|
+
nativeBinding = require('@atlaspack/monorepo-win32-arm64-msvc')
|
|
101
101
|
}
|
|
102
102
|
} catch (e) {
|
|
103
103
|
loadError = e
|
|
@@ -108,23 +108,23 @@ switch (platform) {
|
|
|
108
108
|
}
|
|
109
109
|
break
|
|
110
110
|
case 'darwin':
|
|
111
|
-
localFileExisted = existsSync(join(__dirname, '
|
|
111
|
+
localFileExisted = existsSync(join(__dirname, 'index.darwin-universal.node'))
|
|
112
112
|
try {
|
|
113
113
|
if (localFileExisted) {
|
|
114
|
-
nativeBinding = require('./
|
|
114
|
+
nativeBinding = require('./index.darwin-universal.node')
|
|
115
115
|
} else {
|
|
116
|
-
nativeBinding = require('@atlaspack/
|
|
116
|
+
nativeBinding = require('@atlaspack/monorepo-darwin-universal')
|
|
117
117
|
}
|
|
118
118
|
break
|
|
119
119
|
} catch {}
|
|
120
120
|
switch (arch) {
|
|
121
121
|
case 'x64':
|
|
122
|
-
localFileExisted = existsSync(join(__dirname, '
|
|
122
|
+
localFileExisted = existsSync(join(__dirname, 'index.darwin-x64.node'))
|
|
123
123
|
try {
|
|
124
124
|
if (localFileExisted) {
|
|
125
|
-
nativeBinding = require('./
|
|
125
|
+
nativeBinding = require('./index.darwin-x64.node')
|
|
126
126
|
} else {
|
|
127
|
-
nativeBinding = require('@atlaspack/
|
|
127
|
+
nativeBinding = require('@atlaspack/monorepo-darwin-x64')
|
|
128
128
|
}
|
|
129
129
|
} catch (e) {
|
|
130
130
|
loadError = e
|
|
@@ -132,13 +132,13 @@ switch (platform) {
|
|
|
132
132
|
break
|
|
133
133
|
case 'arm64':
|
|
134
134
|
localFileExisted = existsSync(
|
|
135
|
-
join(__dirname, '
|
|
135
|
+
join(__dirname, 'index.darwin-arm64.node')
|
|
136
136
|
)
|
|
137
137
|
try {
|
|
138
138
|
if (localFileExisted) {
|
|
139
|
-
nativeBinding = require('./
|
|
139
|
+
nativeBinding = require('./index.darwin-arm64.node')
|
|
140
140
|
} else {
|
|
141
|
-
nativeBinding = require('@atlaspack/
|
|
141
|
+
nativeBinding = require('@atlaspack/monorepo-darwin-arm64')
|
|
142
142
|
}
|
|
143
143
|
} catch (e) {
|
|
144
144
|
loadError = e
|
|
@@ -152,12 +152,12 @@ switch (platform) {
|
|
|
152
152
|
if (arch !== 'x64') {
|
|
153
153
|
throw new Error(`Unsupported architecture on FreeBSD: ${arch}`)
|
|
154
154
|
}
|
|
155
|
-
localFileExisted = existsSync(join(__dirname, '
|
|
155
|
+
localFileExisted = existsSync(join(__dirname, 'index.freebsd-x64.node'))
|
|
156
156
|
try {
|
|
157
157
|
if (localFileExisted) {
|
|
158
|
-
nativeBinding = require('./
|
|
158
|
+
nativeBinding = require('./index.freebsd-x64.node')
|
|
159
159
|
} else {
|
|
160
|
-
nativeBinding = require('@atlaspack/
|
|
160
|
+
nativeBinding = require('@atlaspack/monorepo-freebsd-x64')
|
|
161
161
|
}
|
|
162
162
|
} catch (e) {
|
|
163
163
|
loadError = e
|
|
@@ -168,26 +168,26 @@ switch (platform) {
|
|
|
168
168
|
case 'x64':
|
|
169
169
|
if (isMusl()) {
|
|
170
170
|
localFileExisted = existsSync(
|
|
171
|
-
join(__dirname, '
|
|
171
|
+
join(__dirname, 'index.linux-x64-musl.node')
|
|
172
172
|
)
|
|
173
173
|
try {
|
|
174
174
|
if (localFileExisted) {
|
|
175
|
-
nativeBinding = require('./
|
|
175
|
+
nativeBinding = require('./index.linux-x64-musl.node')
|
|
176
176
|
} else {
|
|
177
|
-
nativeBinding = require('@atlaspack/
|
|
177
|
+
nativeBinding = require('@atlaspack/monorepo-linux-x64-musl')
|
|
178
178
|
}
|
|
179
179
|
} catch (e) {
|
|
180
180
|
loadError = e
|
|
181
181
|
}
|
|
182
182
|
} else {
|
|
183
183
|
localFileExisted = existsSync(
|
|
184
|
-
join(__dirname, '
|
|
184
|
+
join(__dirname, 'index.linux-x64-gnu.node')
|
|
185
185
|
)
|
|
186
186
|
try {
|
|
187
187
|
if (localFileExisted) {
|
|
188
|
-
nativeBinding = require('./
|
|
188
|
+
nativeBinding = require('./index.linux-x64-gnu.node')
|
|
189
189
|
} else {
|
|
190
|
-
nativeBinding = require('@atlaspack/
|
|
190
|
+
nativeBinding = require('@atlaspack/monorepo-linux-x64-gnu')
|
|
191
191
|
}
|
|
192
192
|
} catch (e) {
|
|
193
193
|
loadError = e
|
|
@@ -197,26 +197,26 @@ switch (platform) {
|
|
|
197
197
|
case 'arm64':
|
|
198
198
|
if (isMusl()) {
|
|
199
199
|
localFileExisted = existsSync(
|
|
200
|
-
join(__dirname, '
|
|
200
|
+
join(__dirname, 'index.linux-arm64-musl.node')
|
|
201
201
|
)
|
|
202
202
|
try {
|
|
203
203
|
if (localFileExisted) {
|
|
204
|
-
nativeBinding = require('./
|
|
204
|
+
nativeBinding = require('./index.linux-arm64-musl.node')
|
|
205
205
|
} else {
|
|
206
|
-
nativeBinding = require('@atlaspack/
|
|
206
|
+
nativeBinding = require('@atlaspack/monorepo-linux-arm64-musl')
|
|
207
207
|
}
|
|
208
208
|
} catch (e) {
|
|
209
209
|
loadError = e
|
|
210
210
|
}
|
|
211
211
|
} else {
|
|
212
212
|
localFileExisted = existsSync(
|
|
213
|
-
join(__dirname, '
|
|
213
|
+
join(__dirname, 'index.linux-arm64-gnu.node')
|
|
214
214
|
)
|
|
215
215
|
try {
|
|
216
216
|
if (localFileExisted) {
|
|
217
|
-
nativeBinding = require('./
|
|
217
|
+
nativeBinding = require('./index.linux-arm64-gnu.node')
|
|
218
218
|
} else {
|
|
219
|
-
nativeBinding = require('@atlaspack/
|
|
219
|
+
nativeBinding = require('@atlaspack/monorepo-linux-arm64-gnu')
|
|
220
220
|
}
|
|
221
221
|
} catch (e) {
|
|
222
222
|
loadError = e
|
|
@@ -226,26 +226,26 @@ switch (platform) {
|
|
|
226
226
|
case 'arm':
|
|
227
227
|
if (isMusl()) {
|
|
228
228
|
localFileExisted = existsSync(
|
|
229
|
-
join(__dirname, '
|
|
229
|
+
join(__dirname, 'index.linux-arm-musleabihf.node')
|
|
230
230
|
)
|
|
231
231
|
try {
|
|
232
232
|
if (localFileExisted) {
|
|
233
|
-
nativeBinding = require('./
|
|
233
|
+
nativeBinding = require('./index.linux-arm-musleabihf.node')
|
|
234
234
|
} else {
|
|
235
|
-
nativeBinding = require('@atlaspack/
|
|
235
|
+
nativeBinding = require('@atlaspack/monorepo-linux-arm-musleabihf')
|
|
236
236
|
}
|
|
237
237
|
} catch (e) {
|
|
238
238
|
loadError = e
|
|
239
239
|
}
|
|
240
240
|
} else {
|
|
241
241
|
localFileExisted = existsSync(
|
|
242
|
-
join(__dirname, '
|
|
242
|
+
join(__dirname, 'index.linux-arm-gnueabihf.node')
|
|
243
243
|
)
|
|
244
244
|
try {
|
|
245
245
|
if (localFileExisted) {
|
|
246
|
-
nativeBinding = require('./
|
|
246
|
+
nativeBinding = require('./index.linux-arm-gnueabihf.node')
|
|
247
247
|
} else {
|
|
248
|
-
nativeBinding = require('@atlaspack/
|
|
248
|
+
nativeBinding = require('@atlaspack/monorepo-linux-arm-gnueabihf')
|
|
249
249
|
}
|
|
250
250
|
} catch (e) {
|
|
251
251
|
loadError = e
|
|
@@ -255,26 +255,26 @@ switch (platform) {
|
|
|
255
255
|
case 'riscv64':
|
|
256
256
|
if (isMusl()) {
|
|
257
257
|
localFileExisted = existsSync(
|
|
258
|
-
join(__dirname, '
|
|
258
|
+
join(__dirname, 'index.linux-riscv64-musl.node')
|
|
259
259
|
)
|
|
260
260
|
try {
|
|
261
261
|
if (localFileExisted) {
|
|
262
|
-
nativeBinding = require('./
|
|
262
|
+
nativeBinding = require('./index.linux-riscv64-musl.node')
|
|
263
263
|
} else {
|
|
264
|
-
nativeBinding = require('@atlaspack/
|
|
264
|
+
nativeBinding = require('@atlaspack/monorepo-linux-riscv64-musl')
|
|
265
265
|
}
|
|
266
266
|
} catch (e) {
|
|
267
267
|
loadError = e
|
|
268
268
|
}
|
|
269
269
|
} else {
|
|
270
270
|
localFileExisted = existsSync(
|
|
271
|
-
join(__dirname, '
|
|
271
|
+
join(__dirname, 'index.linux-riscv64-gnu.node')
|
|
272
272
|
)
|
|
273
273
|
try {
|
|
274
274
|
if (localFileExisted) {
|
|
275
|
-
nativeBinding = require('./
|
|
275
|
+
nativeBinding = require('./index.linux-riscv64-gnu.node')
|
|
276
276
|
} else {
|
|
277
|
-
nativeBinding = require('@atlaspack/
|
|
277
|
+
nativeBinding = require('@atlaspack/monorepo-linux-riscv64-gnu')
|
|
278
278
|
}
|
|
279
279
|
} catch (e) {
|
|
280
280
|
loadError = e
|
|
@@ -283,13 +283,13 @@ switch (platform) {
|
|
|
283
283
|
break
|
|
284
284
|
case 's390x':
|
|
285
285
|
localFileExisted = existsSync(
|
|
286
|
-
join(__dirname, '
|
|
286
|
+
join(__dirname, 'index.linux-s390x-gnu.node')
|
|
287
287
|
)
|
|
288
288
|
try {
|
|
289
289
|
if (localFileExisted) {
|
|
290
|
-
nativeBinding = require('./
|
|
290
|
+
nativeBinding = require('./index.linux-s390x-gnu.node')
|
|
291
291
|
} else {
|
|
292
|
-
nativeBinding = require('@atlaspack/
|
|
292
|
+
nativeBinding = require('@atlaspack/monorepo-linux-s390x-gnu')
|
|
293
293
|
}
|
|
294
294
|
} catch (e) {
|
|
295
295
|
loadError = e
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaspack/rust",
|
|
3
|
-
"version": "3.0.1-dev.
|
|
3
|
+
"version": "3.0.1-dev.91+08020e0e1",
|
|
4
4
|
"license": "(MIT OR Apache-2.0)",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
"main": "index.js",
|
|
13
13
|
"browser": "browser.js",
|
|
14
14
|
"napi": {
|
|
15
|
-
"name": "atlaspack-node-bindings"
|
|
15
|
+
"name": "atlaspack-node-bindings",
|
|
16
|
+
"permittedTargets": "*"
|
|
16
17
|
},
|
|
17
18
|
"engines": {
|
|
18
19
|
"node": ">= 16.0.0"
|
|
@@ -33,5 +34,5 @@
|
|
|
33
34
|
"test": "mocha"
|
|
34
35
|
},
|
|
35
36
|
"type": "commonjs",
|
|
36
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "08020e0e18819f3e15e74726f9ffa697892f7bfa"
|
|
37
38
|
}
|