@takumi-rs/core 2.0.0-rc.15 → 2.0.0-rc.16
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/dist/export.cjs +79 -99
- package/dist/export.mjs +79 -99
- package/package.json +10 -10
package/dist/export.cjs
CHANGED
|
@@ -57,8 +57,9 @@ function requireNative() {
|
|
|
57
57
|
loadErrors.push(e);
|
|
58
58
|
}
|
|
59
59
|
try {
|
|
60
|
-
const
|
|
61
|
-
|
|
60
|
+
const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-android-arm64/core.android-arm64.node");
|
|
61
|
+
const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-android-arm64/package.json").version;
|
|
62
|
+
if (bindingPackageVersion !== "2.0.0-rc.16" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.0.0-rc.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
62
63
|
return binding;
|
|
63
64
|
} catch (e) {
|
|
64
65
|
loadErrors.push(e);
|
|
@@ -70,8 +71,9 @@ function requireNative() {
|
|
|
70
71
|
loadErrors.push(e);
|
|
71
72
|
}
|
|
72
73
|
try {
|
|
73
|
-
const
|
|
74
|
-
|
|
74
|
+
const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-android-arm-eabi/core.android-arm-eabi.node");
|
|
75
|
+
const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-android-arm-eabi/package.json").version;
|
|
76
|
+
if (bindingPackageVersion !== "2.0.0-rc.16" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.0.0-rc.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
75
77
|
return binding;
|
|
76
78
|
} catch (e) {
|
|
77
79
|
loadErrors.push(e);
|
|
@@ -84,8 +86,9 @@ function requireNative() {
|
|
|
84
86
|
loadErrors.push(e);
|
|
85
87
|
}
|
|
86
88
|
try {
|
|
87
|
-
const
|
|
88
|
-
|
|
89
|
+
const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-win32-x64-gnu/core.win32-x64-gnu.node");
|
|
90
|
+
const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-win32-x64-gnu/package.json").version;
|
|
91
|
+
if (bindingPackageVersion !== "2.0.0-rc.16" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.0.0-rc.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
89
92
|
return binding;
|
|
90
93
|
} catch (e) {
|
|
91
94
|
loadErrors.push(e);
|
|
@@ -97,8 +100,9 @@ function requireNative() {
|
|
|
97
100
|
loadErrors.push(e);
|
|
98
101
|
}
|
|
99
102
|
try {
|
|
100
|
-
const
|
|
101
|
-
|
|
103
|
+
const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-win32-x64-msvc/core.win32-x64-msvc.node");
|
|
104
|
+
const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-win32-x64-msvc/package.json").version;
|
|
105
|
+
if (bindingPackageVersion !== "2.0.0-rc.16" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.0.0-rc.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
102
106
|
return binding;
|
|
103
107
|
} catch (e) {
|
|
104
108
|
loadErrors.push(e);
|
|
@@ -111,8 +115,9 @@ function requireNative() {
|
|
|
111
115
|
loadErrors.push(e);
|
|
112
116
|
}
|
|
113
117
|
try {
|
|
114
|
-
const
|
|
115
|
-
|
|
118
|
+
const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-win32-ia32-msvc/core.win32-ia32-msvc.node");
|
|
119
|
+
const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-win32-ia32-msvc/package.json").version;
|
|
120
|
+
if (bindingPackageVersion !== "2.0.0-rc.16" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.0.0-rc.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
116
121
|
return binding;
|
|
117
122
|
} catch (e) {
|
|
118
123
|
loadErrors.push(e);
|
|
@@ -124,8 +129,9 @@ function requireNative() {
|
|
|
124
129
|
loadErrors.push(e);
|
|
125
130
|
}
|
|
126
131
|
try {
|
|
127
|
-
const
|
|
128
|
-
|
|
132
|
+
const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-win32-arm64-msvc/core.win32-arm64-msvc.node");
|
|
133
|
+
const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-win32-arm64-msvc/package.json").version;
|
|
134
|
+
if (bindingPackageVersion !== "2.0.0-rc.16" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.0.0-rc.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
129
135
|
return binding;
|
|
130
136
|
} catch (e) {
|
|
131
137
|
loadErrors.push(e);
|
|
@@ -138,8 +144,9 @@ function requireNative() {
|
|
|
138
144
|
loadErrors.push(e);
|
|
139
145
|
}
|
|
140
146
|
try {
|
|
141
|
-
const
|
|
142
|
-
|
|
147
|
+
const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-darwin-universal/core.darwin-universal.node");
|
|
148
|
+
const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-darwin-universal/package.json").version;
|
|
149
|
+
if (bindingPackageVersion !== "2.0.0-rc.16" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.0.0-rc.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
143
150
|
return binding;
|
|
144
151
|
} catch (e) {
|
|
145
152
|
loadErrors.push(e);
|
|
@@ -151,8 +158,9 @@ function requireNative() {
|
|
|
151
158
|
loadErrors.push(e);
|
|
152
159
|
}
|
|
153
160
|
try {
|
|
154
|
-
const
|
|
155
|
-
|
|
161
|
+
const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-darwin-x64/core.darwin-x64.node");
|
|
162
|
+
const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-darwin-x64/package.json").version;
|
|
163
|
+
if (bindingPackageVersion !== "2.0.0-rc.16" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.0.0-rc.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
156
164
|
return binding;
|
|
157
165
|
} catch (e) {
|
|
158
166
|
loadErrors.push(e);
|
|
@@ -164,8 +172,9 @@ function requireNative() {
|
|
|
164
172
|
loadErrors.push(e);
|
|
165
173
|
}
|
|
166
174
|
try {
|
|
167
|
-
const
|
|
168
|
-
|
|
175
|
+
const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-darwin-arm64/core.darwin-arm64.node");
|
|
176
|
+
const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-darwin-arm64/package.json").version;
|
|
177
|
+
if (bindingPackageVersion !== "2.0.0-rc.16" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.0.0-rc.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
169
178
|
return binding;
|
|
170
179
|
} catch (e) {
|
|
171
180
|
loadErrors.push(e);
|
|
@@ -178,8 +187,9 @@ function requireNative() {
|
|
|
178
187
|
loadErrors.push(e);
|
|
179
188
|
}
|
|
180
189
|
try {
|
|
181
|
-
const
|
|
182
|
-
|
|
190
|
+
const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-freebsd-x64/core.freebsd-x64.node");
|
|
191
|
+
const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-freebsd-x64/package.json").version;
|
|
192
|
+
if (bindingPackageVersion !== "2.0.0-rc.16" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.0.0-rc.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
183
193
|
return binding;
|
|
184
194
|
} catch (e) {
|
|
185
195
|
loadErrors.push(e);
|
|
@@ -191,8 +201,9 @@ function requireNative() {
|
|
|
191
201
|
loadErrors.push(e);
|
|
192
202
|
}
|
|
193
203
|
try {
|
|
194
|
-
const
|
|
195
|
-
|
|
204
|
+
const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-freebsd-arm64/core.freebsd-arm64.node");
|
|
205
|
+
const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-freebsd-arm64/package.json").version;
|
|
206
|
+
if (bindingPackageVersion !== "2.0.0-rc.16" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.0.0-rc.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
196
207
|
return binding;
|
|
197
208
|
} catch (e) {
|
|
198
209
|
loadErrors.push(e);
|
|
@@ -205,8 +216,9 @@ function requireNative() {
|
|
|
205
216
|
loadErrors.push(e);
|
|
206
217
|
}
|
|
207
218
|
try {
|
|
208
|
-
const
|
|
209
|
-
|
|
219
|
+
const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-x64-musl/core.linux-x64-musl.node");
|
|
220
|
+
const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-x64-musl/package.json").version;
|
|
221
|
+
if (bindingPackageVersion !== "2.0.0-rc.16" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.0.0-rc.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
210
222
|
return binding;
|
|
211
223
|
} catch (e) {
|
|
212
224
|
loadErrors.push(e);
|
|
@@ -218,8 +230,9 @@ function requireNative() {
|
|
|
218
230
|
loadErrors.push(e);
|
|
219
231
|
}
|
|
220
232
|
try {
|
|
221
|
-
const
|
|
222
|
-
|
|
233
|
+
const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-x64-gnu/core.linux-x64-gnu.node");
|
|
234
|
+
const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-x64-gnu/package.json").version;
|
|
235
|
+
if (bindingPackageVersion !== "2.0.0-rc.16" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.0.0-rc.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
223
236
|
return binding;
|
|
224
237
|
} catch (e) {
|
|
225
238
|
loadErrors.push(e);
|
|
@@ -232,8 +245,9 @@ function requireNative() {
|
|
|
232
245
|
loadErrors.push(e);
|
|
233
246
|
}
|
|
234
247
|
try {
|
|
235
|
-
const
|
|
236
|
-
|
|
248
|
+
const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm64-musl/core.linux-arm64-musl.node");
|
|
249
|
+
const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm64-musl/package.json").version;
|
|
250
|
+
if (bindingPackageVersion !== "2.0.0-rc.16" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.0.0-rc.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
237
251
|
return binding;
|
|
238
252
|
} catch (e) {
|
|
239
253
|
loadErrors.push(e);
|
|
@@ -245,8 +259,9 @@ function requireNative() {
|
|
|
245
259
|
loadErrors.push(e);
|
|
246
260
|
}
|
|
247
261
|
try {
|
|
248
|
-
const
|
|
249
|
-
|
|
262
|
+
const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm64-gnu/core.linux-arm64-gnu.node");
|
|
263
|
+
const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm64-gnu/package.json").version;
|
|
264
|
+
if (bindingPackageVersion !== "2.0.0-rc.16" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.0.0-rc.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
250
265
|
return binding;
|
|
251
266
|
} catch (e) {
|
|
252
267
|
loadErrors.push(e);
|
|
@@ -259,8 +274,9 @@ function requireNative() {
|
|
|
259
274
|
loadErrors.push(e);
|
|
260
275
|
}
|
|
261
276
|
try {
|
|
262
|
-
const
|
|
263
|
-
|
|
277
|
+
const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm-musleabihf/core.linux-arm-musleabihf.node");
|
|
278
|
+
const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm-musleabihf/package.json").version;
|
|
279
|
+
if (bindingPackageVersion !== "2.0.0-rc.16" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.0.0-rc.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
264
280
|
return binding;
|
|
265
281
|
} catch (e) {
|
|
266
282
|
loadErrors.push(e);
|
|
@@ -272,8 +288,9 @@ function requireNative() {
|
|
|
272
288
|
loadErrors.push(e);
|
|
273
289
|
}
|
|
274
290
|
try {
|
|
275
|
-
const
|
|
276
|
-
|
|
291
|
+
const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm-gnueabihf/core.linux-arm-gnueabihf.node");
|
|
292
|
+
const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm-gnueabihf/package.json").version;
|
|
293
|
+
if (bindingPackageVersion !== "2.0.0-rc.16" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.0.0-rc.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
277
294
|
return binding;
|
|
278
295
|
} catch (e) {
|
|
279
296
|
loadErrors.push(e);
|
|
@@ -286,8 +303,9 @@ function requireNative() {
|
|
|
286
303
|
loadErrors.push(e);
|
|
287
304
|
}
|
|
288
305
|
try {
|
|
289
|
-
const
|
|
290
|
-
|
|
306
|
+
const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-loong64-musl/core.linux-loong64-musl.node");
|
|
307
|
+
const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-loong64-musl/package.json").version;
|
|
308
|
+
if (bindingPackageVersion !== "2.0.0-rc.16" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.0.0-rc.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
291
309
|
return binding;
|
|
292
310
|
} catch (e) {
|
|
293
311
|
loadErrors.push(e);
|
|
@@ -299,8 +317,9 @@ function requireNative() {
|
|
|
299
317
|
loadErrors.push(e);
|
|
300
318
|
}
|
|
301
319
|
try {
|
|
302
|
-
const
|
|
303
|
-
|
|
320
|
+
const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-loong64-gnu/core.linux-loong64-gnu.node");
|
|
321
|
+
const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-loong64-gnu/package.json").version;
|
|
322
|
+
if (bindingPackageVersion !== "2.0.0-rc.16" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.0.0-rc.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
304
323
|
return binding;
|
|
305
324
|
} catch (e) {
|
|
306
325
|
loadErrors.push(e);
|
|
@@ -313,8 +332,9 @@ function requireNative() {
|
|
|
313
332
|
loadErrors.push(e);
|
|
314
333
|
}
|
|
315
334
|
try {
|
|
316
|
-
const
|
|
317
|
-
|
|
335
|
+
const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-riscv64-musl/core.linux-riscv64-musl.node");
|
|
336
|
+
const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-riscv64-musl/package.json").version;
|
|
337
|
+
if (bindingPackageVersion !== "2.0.0-rc.16" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.0.0-rc.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
318
338
|
return binding;
|
|
319
339
|
} catch (e) {
|
|
320
340
|
loadErrors.push(e);
|
|
@@ -326,8 +346,9 @@ function requireNative() {
|
|
|
326
346
|
loadErrors.push(e);
|
|
327
347
|
}
|
|
328
348
|
try {
|
|
329
|
-
const
|
|
330
|
-
|
|
349
|
+
const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-riscv64-gnu/core.linux-riscv64-gnu.node");
|
|
350
|
+
const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-riscv64-gnu/package.json").version;
|
|
351
|
+
if (bindingPackageVersion !== "2.0.0-rc.16" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.0.0-rc.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
331
352
|
return binding;
|
|
332
353
|
} catch (e) {
|
|
333
354
|
loadErrors.push(e);
|
|
@@ -340,8 +361,9 @@ function requireNative() {
|
|
|
340
361
|
loadErrors.push(e);
|
|
341
362
|
}
|
|
342
363
|
try {
|
|
343
|
-
const
|
|
344
|
-
|
|
364
|
+
const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-ppc64-gnu/core.linux-ppc64-gnu.node");
|
|
365
|
+
const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-ppc64-gnu/package.json").version;
|
|
366
|
+
if (bindingPackageVersion !== "2.0.0-rc.16" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.0.0-rc.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
345
367
|
return binding;
|
|
346
368
|
} catch (e) {
|
|
347
369
|
loadErrors.push(e);
|
|
@@ -353,8 +375,9 @@ function requireNative() {
|
|
|
353
375
|
loadErrors.push(e);
|
|
354
376
|
}
|
|
355
377
|
try {
|
|
356
|
-
const
|
|
357
|
-
|
|
378
|
+
const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-s390x-gnu/core.linux-s390x-gnu.node");
|
|
379
|
+
const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-s390x-gnu/package.json").version;
|
|
380
|
+
if (bindingPackageVersion !== "2.0.0-rc.16" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.0.0-rc.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
358
381
|
return binding;
|
|
359
382
|
} catch (e) {
|
|
360
383
|
loadErrors.push(e);
|
|
@@ -367,8 +390,9 @@ function requireNative() {
|
|
|
367
390
|
loadErrors.push(e);
|
|
368
391
|
}
|
|
369
392
|
try {
|
|
370
|
-
const
|
|
371
|
-
|
|
393
|
+
const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-openharmony-arm64/core.openharmony-arm64.node");
|
|
394
|
+
const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-openharmony-arm64/package.json").version;
|
|
395
|
+
if (bindingPackageVersion !== "2.0.0-rc.16" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.0.0-rc.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
372
396
|
return binding;
|
|
373
397
|
} catch (e) {
|
|
374
398
|
loadErrors.push(e);
|
|
@@ -380,8 +404,9 @@ function requireNative() {
|
|
|
380
404
|
loadErrors.push(e);
|
|
381
405
|
}
|
|
382
406
|
try {
|
|
383
|
-
const
|
|
384
|
-
|
|
407
|
+
const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-openharmony-x64/core.openharmony-x64.node");
|
|
408
|
+
const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-openharmony-x64/package.json").version;
|
|
409
|
+
if (bindingPackageVersion !== "2.0.0-rc.16" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.0.0-rc.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
385
410
|
return binding;
|
|
386
411
|
} catch (e) {
|
|
387
412
|
loadErrors.push(e);
|
|
@@ -393,8 +418,9 @@ function requireNative() {
|
|
|
393
418
|
loadErrors.push(e);
|
|
394
419
|
}
|
|
395
420
|
try {
|
|
396
|
-
const
|
|
397
|
-
|
|
421
|
+
const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-openharmony-arm/core.openharmony-arm.node");
|
|
422
|
+
const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-openharmony-arm/package.json").version;
|
|
423
|
+
if (bindingPackageVersion !== "2.0.0-rc.16" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.0.0-rc.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
398
424
|
return binding;
|
|
399
425
|
} catch (e) {
|
|
400
426
|
loadErrors.push(e);
|
|
@@ -414,7 +440,7 @@ if (!nativeBinding || forceWasi) {
|
|
|
414
440
|
if (forceWasi) wasiBindingError = err;
|
|
415
441
|
}
|
|
416
442
|
if (!nativeBinding || forceWasi) try {
|
|
417
|
-
wasiBinding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-wasm32-wasi");
|
|
443
|
+
wasiBinding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-wasm32-wasi/core.wasm32-wasi.node");
|
|
418
444
|
nativeBinding = wasiBinding;
|
|
419
445
|
} catch (err) {
|
|
420
446
|
if (forceWasi) {
|
|
@@ -469,49 +495,3 @@ var Renderer = class {
|
|
|
469
495
|
};
|
|
470
496
|
//#endregion
|
|
471
497
|
exports.Renderer = Renderer;
|
|
472
|
-
|
|
473
|
-
function resolveIsolated(pkgName, binaryName, localRequire) {
|
|
474
|
-
try {
|
|
475
|
-
const fs = localRequire('fs'), path = localRequire('path');
|
|
476
|
-
const dirs = [process.cwd()];
|
|
477
|
-
try { if (typeof __dirname !== 'undefined') dirs.push(__dirname); } catch (e) {}
|
|
478
|
-
const storePrefix = pkgName.replace('/', '+') + '@';
|
|
479
|
-
for (let dir of dirs) {
|
|
480
|
-
while (dir) {
|
|
481
|
-
const nm = path.join(dir, 'node_modules');
|
|
482
|
-
if (fs.existsSync(nm)) {
|
|
483
|
-
const direct = path.join(nm, pkgName, binaryName);
|
|
484
|
-
if (fs.existsSync(direct)) return direct;
|
|
485
|
-
for (const storeName of ['.pnpm', '.bun']) {
|
|
486
|
-
const storeDir = path.join(nm, storeName);
|
|
487
|
-
if (fs.existsSync(storeDir)) {
|
|
488
|
-
for (const f of fs.readdirSync(storeDir)) {
|
|
489
|
-
if (f.startsWith(storePrefix)) {
|
|
490
|
-
const p = path.join(storeDir, f, 'node_modules', pkgName, binaryName);
|
|
491
|
-
if (fs.existsSync(p)) return p;
|
|
492
|
-
}
|
|
493
|
-
}
|
|
494
|
-
}
|
|
495
|
-
}
|
|
496
|
-
}
|
|
497
|
-
const parent = path.dirname(dir);
|
|
498
|
-
if (parent === dir) break;
|
|
499
|
-
dir = parent;
|
|
500
|
-
}
|
|
501
|
-
}
|
|
502
|
-
} catch (e) {}
|
|
503
|
-
return null;
|
|
504
|
-
}
|
|
505
|
-
|
|
506
|
-
function loadNativePackage(pkgName, binaryName, localRequire) {
|
|
507
|
-
try {
|
|
508
|
-
return { binding: localRequire(pkgName + '/' + binaryName), version: localRequire(pkgName + '/package.json').version };
|
|
509
|
-
} catch (e) {
|
|
510
|
-
const resolved = resolveIsolated(pkgName, binaryName, localRequire);
|
|
511
|
-
if (resolved) {
|
|
512
|
-
const path = localRequire('path');
|
|
513
|
-
return { binding: localRequire(resolved), version: localRequire(path.join(path.dirname(resolved), 'package.json')).version };
|
|
514
|
-
}
|
|
515
|
-
throw e;
|
|
516
|
-
}
|
|
517
|
-
}
|
package/dist/export.mjs
CHANGED
|
@@ -55,8 +55,9 @@ function requireNative() {
|
|
|
55
55
|
loadErrors.push(e);
|
|
56
56
|
}
|
|
57
57
|
try {
|
|
58
|
-
const
|
|
59
|
-
|
|
58
|
+
const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-android-arm64/core.android-arm64.node");
|
|
59
|
+
const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-android-arm64/package.json").version;
|
|
60
|
+
if (bindingPackageVersion !== "2.0.0-rc.16" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.0.0-rc.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
60
61
|
return binding;
|
|
61
62
|
} catch (e) {
|
|
62
63
|
loadErrors.push(e);
|
|
@@ -68,8 +69,9 @@ function requireNative() {
|
|
|
68
69
|
loadErrors.push(e);
|
|
69
70
|
}
|
|
70
71
|
try {
|
|
71
|
-
const
|
|
72
|
-
|
|
72
|
+
const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-android-arm-eabi/core.android-arm-eabi.node");
|
|
73
|
+
const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-android-arm-eabi/package.json").version;
|
|
74
|
+
if (bindingPackageVersion !== "2.0.0-rc.16" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.0.0-rc.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
73
75
|
return binding;
|
|
74
76
|
} catch (e) {
|
|
75
77
|
loadErrors.push(e);
|
|
@@ -82,8 +84,9 @@ function requireNative() {
|
|
|
82
84
|
loadErrors.push(e);
|
|
83
85
|
}
|
|
84
86
|
try {
|
|
85
|
-
const
|
|
86
|
-
|
|
87
|
+
const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-win32-x64-gnu/core.win32-x64-gnu.node");
|
|
88
|
+
const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-win32-x64-gnu/package.json").version;
|
|
89
|
+
if (bindingPackageVersion !== "2.0.0-rc.16" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.0.0-rc.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
87
90
|
return binding;
|
|
88
91
|
} catch (e) {
|
|
89
92
|
loadErrors.push(e);
|
|
@@ -95,8 +98,9 @@ function requireNative() {
|
|
|
95
98
|
loadErrors.push(e);
|
|
96
99
|
}
|
|
97
100
|
try {
|
|
98
|
-
const
|
|
99
|
-
|
|
101
|
+
const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-win32-x64-msvc/core.win32-x64-msvc.node");
|
|
102
|
+
const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-win32-x64-msvc/package.json").version;
|
|
103
|
+
if (bindingPackageVersion !== "2.0.0-rc.16" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.0.0-rc.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
100
104
|
return binding;
|
|
101
105
|
} catch (e) {
|
|
102
106
|
loadErrors.push(e);
|
|
@@ -109,8 +113,9 @@ function requireNative() {
|
|
|
109
113
|
loadErrors.push(e);
|
|
110
114
|
}
|
|
111
115
|
try {
|
|
112
|
-
const
|
|
113
|
-
|
|
116
|
+
const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-win32-ia32-msvc/core.win32-ia32-msvc.node");
|
|
117
|
+
const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-win32-ia32-msvc/package.json").version;
|
|
118
|
+
if (bindingPackageVersion !== "2.0.0-rc.16" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.0.0-rc.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
114
119
|
return binding;
|
|
115
120
|
} catch (e) {
|
|
116
121
|
loadErrors.push(e);
|
|
@@ -122,8 +127,9 @@ function requireNative() {
|
|
|
122
127
|
loadErrors.push(e);
|
|
123
128
|
}
|
|
124
129
|
try {
|
|
125
|
-
const
|
|
126
|
-
|
|
130
|
+
const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-win32-arm64-msvc/core.win32-arm64-msvc.node");
|
|
131
|
+
const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-win32-arm64-msvc/package.json").version;
|
|
132
|
+
if (bindingPackageVersion !== "2.0.0-rc.16" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.0.0-rc.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
127
133
|
return binding;
|
|
128
134
|
} catch (e) {
|
|
129
135
|
loadErrors.push(e);
|
|
@@ -136,8 +142,9 @@ function requireNative() {
|
|
|
136
142
|
loadErrors.push(e);
|
|
137
143
|
}
|
|
138
144
|
try {
|
|
139
|
-
const
|
|
140
|
-
|
|
145
|
+
const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-darwin-universal/core.darwin-universal.node");
|
|
146
|
+
const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-darwin-universal/package.json").version;
|
|
147
|
+
if (bindingPackageVersion !== "2.0.0-rc.16" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.0.0-rc.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
141
148
|
return binding;
|
|
142
149
|
} catch (e) {
|
|
143
150
|
loadErrors.push(e);
|
|
@@ -149,8 +156,9 @@ function requireNative() {
|
|
|
149
156
|
loadErrors.push(e);
|
|
150
157
|
}
|
|
151
158
|
try {
|
|
152
|
-
const
|
|
153
|
-
|
|
159
|
+
const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-darwin-x64/core.darwin-x64.node");
|
|
160
|
+
const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-darwin-x64/package.json").version;
|
|
161
|
+
if (bindingPackageVersion !== "2.0.0-rc.16" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.0.0-rc.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
154
162
|
return binding;
|
|
155
163
|
} catch (e) {
|
|
156
164
|
loadErrors.push(e);
|
|
@@ -162,8 +170,9 @@ function requireNative() {
|
|
|
162
170
|
loadErrors.push(e);
|
|
163
171
|
}
|
|
164
172
|
try {
|
|
165
|
-
const
|
|
166
|
-
|
|
173
|
+
const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-darwin-arm64/core.darwin-arm64.node");
|
|
174
|
+
const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-darwin-arm64/package.json").version;
|
|
175
|
+
if (bindingPackageVersion !== "2.0.0-rc.16" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.0.0-rc.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
167
176
|
return binding;
|
|
168
177
|
} catch (e) {
|
|
169
178
|
loadErrors.push(e);
|
|
@@ -176,8 +185,9 @@ function requireNative() {
|
|
|
176
185
|
loadErrors.push(e);
|
|
177
186
|
}
|
|
178
187
|
try {
|
|
179
|
-
const
|
|
180
|
-
|
|
188
|
+
const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-freebsd-x64/core.freebsd-x64.node");
|
|
189
|
+
const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-freebsd-x64/package.json").version;
|
|
190
|
+
if (bindingPackageVersion !== "2.0.0-rc.16" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.0.0-rc.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
181
191
|
return binding;
|
|
182
192
|
} catch (e) {
|
|
183
193
|
loadErrors.push(e);
|
|
@@ -189,8 +199,9 @@ function requireNative() {
|
|
|
189
199
|
loadErrors.push(e);
|
|
190
200
|
}
|
|
191
201
|
try {
|
|
192
|
-
const
|
|
193
|
-
|
|
202
|
+
const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-freebsd-arm64/core.freebsd-arm64.node");
|
|
203
|
+
const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-freebsd-arm64/package.json").version;
|
|
204
|
+
if (bindingPackageVersion !== "2.0.0-rc.16" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.0.0-rc.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
194
205
|
return binding;
|
|
195
206
|
} catch (e) {
|
|
196
207
|
loadErrors.push(e);
|
|
@@ -203,8 +214,9 @@ function requireNative() {
|
|
|
203
214
|
loadErrors.push(e);
|
|
204
215
|
}
|
|
205
216
|
try {
|
|
206
|
-
const
|
|
207
|
-
|
|
217
|
+
const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-x64-musl/core.linux-x64-musl.node");
|
|
218
|
+
const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-x64-musl/package.json").version;
|
|
219
|
+
if (bindingPackageVersion !== "2.0.0-rc.16" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.0.0-rc.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
208
220
|
return binding;
|
|
209
221
|
} catch (e) {
|
|
210
222
|
loadErrors.push(e);
|
|
@@ -216,8 +228,9 @@ function requireNative() {
|
|
|
216
228
|
loadErrors.push(e);
|
|
217
229
|
}
|
|
218
230
|
try {
|
|
219
|
-
const
|
|
220
|
-
|
|
231
|
+
const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-x64-gnu/core.linux-x64-gnu.node");
|
|
232
|
+
const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-x64-gnu/package.json").version;
|
|
233
|
+
if (bindingPackageVersion !== "2.0.0-rc.16" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.0.0-rc.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
221
234
|
return binding;
|
|
222
235
|
} catch (e) {
|
|
223
236
|
loadErrors.push(e);
|
|
@@ -230,8 +243,9 @@ function requireNative() {
|
|
|
230
243
|
loadErrors.push(e);
|
|
231
244
|
}
|
|
232
245
|
try {
|
|
233
|
-
const
|
|
234
|
-
|
|
246
|
+
const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm64-musl/core.linux-arm64-musl.node");
|
|
247
|
+
const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm64-musl/package.json").version;
|
|
248
|
+
if (bindingPackageVersion !== "2.0.0-rc.16" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.0.0-rc.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
235
249
|
return binding;
|
|
236
250
|
} catch (e) {
|
|
237
251
|
loadErrors.push(e);
|
|
@@ -243,8 +257,9 @@ function requireNative() {
|
|
|
243
257
|
loadErrors.push(e);
|
|
244
258
|
}
|
|
245
259
|
try {
|
|
246
|
-
const
|
|
247
|
-
|
|
260
|
+
const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm64-gnu/core.linux-arm64-gnu.node");
|
|
261
|
+
const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm64-gnu/package.json").version;
|
|
262
|
+
if (bindingPackageVersion !== "2.0.0-rc.16" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.0.0-rc.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
248
263
|
return binding;
|
|
249
264
|
} catch (e) {
|
|
250
265
|
loadErrors.push(e);
|
|
@@ -257,8 +272,9 @@ function requireNative() {
|
|
|
257
272
|
loadErrors.push(e);
|
|
258
273
|
}
|
|
259
274
|
try {
|
|
260
|
-
const
|
|
261
|
-
|
|
275
|
+
const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm-musleabihf/core.linux-arm-musleabihf.node");
|
|
276
|
+
const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm-musleabihf/package.json").version;
|
|
277
|
+
if (bindingPackageVersion !== "2.0.0-rc.16" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.0.0-rc.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
262
278
|
return binding;
|
|
263
279
|
} catch (e) {
|
|
264
280
|
loadErrors.push(e);
|
|
@@ -270,8 +286,9 @@ function requireNative() {
|
|
|
270
286
|
loadErrors.push(e);
|
|
271
287
|
}
|
|
272
288
|
try {
|
|
273
|
-
const
|
|
274
|
-
|
|
289
|
+
const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm-gnueabihf/core.linux-arm-gnueabihf.node");
|
|
290
|
+
const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm-gnueabihf/package.json").version;
|
|
291
|
+
if (bindingPackageVersion !== "2.0.0-rc.16" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.0.0-rc.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
275
292
|
return binding;
|
|
276
293
|
} catch (e) {
|
|
277
294
|
loadErrors.push(e);
|
|
@@ -284,8 +301,9 @@ function requireNative() {
|
|
|
284
301
|
loadErrors.push(e);
|
|
285
302
|
}
|
|
286
303
|
try {
|
|
287
|
-
const
|
|
288
|
-
|
|
304
|
+
const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-loong64-musl/core.linux-loong64-musl.node");
|
|
305
|
+
const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-loong64-musl/package.json").version;
|
|
306
|
+
if (bindingPackageVersion !== "2.0.0-rc.16" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.0.0-rc.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
289
307
|
return binding;
|
|
290
308
|
} catch (e) {
|
|
291
309
|
loadErrors.push(e);
|
|
@@ -297,8 +315,9 @@ function requireNative() {
|
|
|
297
315
|
loadErrors.push(e);
|
|
298
316
|
}
|
|
299
317
|
try {
|
|
300
|
-
const
|
|
301
|
-
|
|
318
|
+
const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-loong64-gnu/core.linux-loong64-gnu.node");
|
|
319
|
+
const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-loong64-gnu/package.json").version;
|
|
320
|
+
if (bindingPackageVersion !== "2.0.0-rc.16" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.0.0-rc.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
302
321
|
return binding;
|
|
303
322
|
} catch (e) {
|
|
304
323
|
loadErrors.push(e);
|
|
@@ -311,8 +330,9 @@ function requireNative() {
|
|
|
311
330
|
loadErrors.push(e);
|
|
312
331
|
}
|
|
313
332
|
try {
|
|
314
|
-
const
|
|
315
|
-
|
|
333
|
+
const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-riscv64-musl/core.linux-riscv64-musl.node");
|
|
334
|
+
const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-riscv64-musl/package.json").version;
|
|
335
|
+
if (bindingPackageVersion !== "2.0.0-rc.16" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.0.0-rc.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
316
336
|
return binding;
|
|
317
337
|
} catch (e) {
|
|
318
338
|
loadErrors.push(e);
|
|
@@ -324,8 +344,9 @@ function requireNative() {
|
|
|
324
344
|
loadErrors.push(e);
|
|
325
345
|
}
|
|
326
346
|
try {
|
|
327
|
-
const
|
|
328
|
-
|
|
347
|
+
const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-riscv64-gnu/core.linux-riscv64-gnu.node");
|
|
348
|
+
const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-riscv64-gnu/package.json").version;
|
|
349
|
+
if (bindingPackageVersion !== "2.0.0-rc.16" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.0.0-rc.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
329
350
|
return binding;
|
|
330
351
|
} catch (e) {
|
|
331
352
|
loadErrors.push(e);
|
|
@@ -338,8 +359,9 @@ function requireNative() {
|
|
|
338
359
|
loadErrors.push(e);
|
|
339
360
|
}
|
|
340
361
|
try {
|
|
341
|
-
const
|
|
342
|
-
|
|
362
|
+
const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-ppc64-gnu/core.linux-ppc64-gnu.node");
|
|
363
|
+
const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-ppc64-gnu/package.json").version;
|
|
364
|
+
if (bindingPackageVersion !== "2.0.0-rc.16" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.0.0-rc.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
343
365
|
return binding;
|
|
344
366
|
} catch (e) {
|
|
345
367
|
loadErrors.push(e);
|
|
@@ -351,8 +373,9 @@ function requireNative() {
|
|
|
351
373
|
loadErrors.push(e);
|
|
352
374
|
}
|
|
353
375
|
try {
|
|
354
|
-
const
|
|
355
|
-
|
|
376
|
+
const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-s390x-gnu/core.linux-s390x-gnu.node");
|
|
377
|
+
const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-s390x-gnu/package.json").version;
|
|
378
|
+
if (bindingPackageVersion !== "2.0.0-rc.16" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.0.0-rc.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
356
379
|
return binding;
|
|
357
380
|
} catch (e) {
|
|
358
381
|
loadErrors.push(e);
|
|
@@ -365,8 +388,9 @@ function requireNative() {
|
|
|
365
388
|
loadErrors.push(e);
|
|
366
389
|
}
|
|
367
390
|
try {
|
|
368
|
-
const
|
|
369
|
-
|
|
391
|
+
const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-openharmony-arm64/core.openharmony-arm64.node");
|
|
392
|
+
const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-openharmony-arm64/package.json").version;
|
|
393
|
+
if (bindingPackageVersion !== "2.0.0-rc.16" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.0.0-rc.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
370
394
|
return binding;
|
|
371
395
|
} catch (e) {
|
|
372
396
|
loadErrors.push(e);
|
|
@@ -378,8 +402,9 @@ function requireNative() {
|
|
|
378
402
|
loadErrors.push(e);
|
|
379
403
|
}
|
|
380
404
|
try {
|
|
381
|
-
const
|
|
382
|
-
|
|
405
|
+
const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-openharmony-x64/core.openharmony-x64.node");
|
|
406
|
+
const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-openharmony-x64/package.json").version;
|
|
407
|
+
if (bindingPackageVersion !== "2.0.0-rc.16" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.0.0-rc.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
383
408
|
return binding;
|
|
384
409
|
} catch (e) {
|
|
385
410
|
loadErrors.push(e);
|
|
@@ -391,8 +416,9 @@ function requireNative() {
|
|
|
391
416
|
loadErrors.push(e);
|
|
392
417
|
}
|
|
393
418
|
try {
|
|
394
|
-
const
|
|
395
|
-
|
|
419
|
+
const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-openharmony-arm/core.openharmony-arm.node");
|
|
420
|
+
const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-openharmony-arm/package.json").version;
|
|
421
|
+
if (bindingPackageVersion !== "2.0.0-rc.16" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 2.0.0-rc.16 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
396
422
|
return binding;
|
|
397
423
|
} catch (e) {
|
|
398
424
|
loadErrors.push(e);
|
|
@@ -412,7 +438,7 @@ if (!nativeBinding || forceWasi) {
|
|
|
412
438
|
if (forceWasi) wasiBindingError = err;
|
|
413
439
|
}
|
|
414
440
|
if (!nativeBinding || forceWasi) try {
|
|
415
|
-
wasiBinding = require(/* turbopackOptional: true */ "@takumi-rs/core-wasm32-wasi");
|
|
441
|
+
wasiBinding = require(/* turbopackOptional: true */ "@takumi-rs/core-wasm32-wasi/core.wasm32-wasi.node");
|
|
416
442
|
nativeBinding = wasiBinding;
|
|
417
443
|
} catch (err) {
|
|
418
444
|
if (forceWasi) {
|
|
@@ -467,49 +493,3 @@ var Renderer = class {
|
|
|
467
493
|
};
|
|
468
494
|
//#endregion
|
|
469
495
|
export { Renderer };
|
|
470
|
-
|
|
471
|
-
function resolveIsolated(pkgName, binaryName, localRequire) {
|
|
472
|
-
try {
|
|
473
|
-
const fs = localRequire('fs'), path = localRequire('path');
|
|
474
|
-
const dirs = [process.cwd()];
|
|
475
|
-
try { if (import.meta?.url) dirs.push(path.dirname(new URL(import.meta.url).pathname)); } catch (e) {}
|
|
476
|
-
const storePrefix = pkgName.replace('/', '+') + '@';
|
|
477
|
-
for (let dir of dirs) {
|
|
478
|
-
while (dir) {
|
|
479
|
-
const nm = path.join(dir, 'node_modules');
|
|
480
|
-
if (fs.existsSync(nm)) {
|
|
481
|
-
const direct = path.join(nm, pkgName, binaryName);
|
|
482
|
-
if (fs.existsSync(direct)) return direct;
|
|
483
|
-
for (const storeName of ['.pnpm', '.bun']) {
|
|
484
|
-
const storeDir = path.join(nm, storeName);
|
|
485
|
-
if (fs.existsSync(storeDir)) {
|
|
486
|
-
for (const f of fs.readdirSync(storeDir)) {
|
|
487
|
-
if (f.startsWith(storePrefix)) {
|
|
488
|
-
const p = path.join(storeDir, f, 'node_modules', pkgName, binaryName);
|
|
489
|
-
if (fs.existsSync(p)) return p;
|
|
490
|
-
}
|
|
491
|
-
}
|
|
492
|
-
}
|
|
493
|
-
}
|
|
494
|
-
}
|
|
495
|
-
const parent = path.dirname(dir);
|
|
496
|
-
if (parent === dir) break;
|
|
497
|
-
dir = parent;
|
|
498
|
-
}
|
|
499
|
-
}
|
|
500
|
-
} catch (e) {}
|
|
501
|
-
return null;
|
|
502
|
-
}
|
|
503
|
-
|
|
504
|
-
function loadNativePackage(pkgName, binaryName, localRequire) {
|
|
505
|
-
try {
|
|
506
|
-
return { binding: localRequire(pkgName + '/' + binaryName), version: localRequire(pkgName + '/package.json').version };
|
|
507
|
-
} catch (e) {
|
|
508
|
-
const resolved = resolveIsolated(pkgName, binaryName, localRequire);
|
|
509
|
-
if (resolved) {
|
|
510
|
-
const path = localRequire('path');
|
|
511
|
-
return { binding: localRequire(resolved), version: localRequire(path.join(path.dirname(resolved), 'package.json')).version };
|
|
512
|
-
}
|
|
513
|
-
throw e;
|
|
514
|
-
}
|
|
515
|
-
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@takumi-rs/core",
|
|
3
|
-
"version": "2.0.0-rc.
|
|
3
|
+
"version": "2.0.0-rc.16",
|
|
4
4
|
"description": "Native Node.js bindings for the Takumi Rust image rendering engine.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"css",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"publish-lint": "attw --pack . && publint --strict ."
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
|
-
"@takumi-rs/helpers": "2.0.0-rc.
|
|
73
|
+
"@takumi-rs/helpers": "2.0.0-rc.16"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@napi-rs/cli": "3.7.2",
|
|
@@ -110,13 +110,13 @@
|
|
|
110
110
|
"node": ">=18"
|
|
111
111
|
},
|
|
112
112
|
"optionalDependencies": {
|
|
113
|
-
"@takumi-rs/core-darwin-x64": "2.0.0-rc.
|
|
114
|
-
"@takumi-rs/core-darwin-arm64": "2.0.0-rc.
|
|
115
|
-
"@takumi-rs/core-linux-arm64-gnu": "2.0.0-rc.
|
|
116
|
-
"@takumi-rs/core-linux-arm64-musl": "2.0.0-rc.
|
|
117
|
-
"@takumi-rs/core-win32-arm64-msvc": "2.0.0-rc.
|
|
118
|
-
"@takumi-rs/core-linux-x64-gnu": "2.0.0-rc.
|
|
119
|
-
"@takumi-rs/core-linux-x64-musl": "2.0.0-rc.
|
|
120
|
-
"@takumi-rs/core-win32-x64-msvc": "2.0.0-rc.
|
|
113
|
+
"@takumi-rs/core-darwin-x64": "2.0.0-rc.16",
|
|
114
|
+
"@takumi-rs/core-darwin-arm64": "2.0.0-rc.16",
|
|
115
|
+
"@takumi-rs/core-linux-arm64-gnu": "2.0.0-rc.16",
|
|
116
|
+
"@takumi-rs/core-linux-arm64-musl": "2.0.0-rc.16",
|
|
117
|
+
"@takumi-rs/core-win32-arm64-msvc": "2.0.0-rc.16",
|
|
118
|
+
"@takumi-rs/core-linux-x64-gnu": "2.0.0-rc.16",
|
|
119
|
+
"@takumi-rs/core-linux-x64-musl": "2.0.0-rc.16",
|
|
120
|
+
"@takumi-rs/core-win32-x64-msvc": "2.0.0-rc.16"
|
|
121
121
|
}
|
|
122
122
|
}
|