@takumi-rs/core 2.12.0 → 2.13.1

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.mjs CHANGED
@@ -48,94 +48,97 @@ function requireNative() {
48
48
  } catch (err) {
49
49
  loadErrors.push(err);
50
50
  }
51
- else if (process.platform === "android") if (process.arch === "arm64") {
52
- try {
53
- return require(/* turbopackOptional: true */ "../core.android-arm64.node");
54
- } catch (e) {
55
- loadErrors.push(e);
56
- }
57
- try {
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.12.0" && 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.12.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
61
- return binding;
62
- } catch (e) {
63
- loadErrors.push(e);
64
- }
65
- } else if (process.arch === "arm") {
66
- try {
67
- return require(/* turbopackOptional: true */ "../core.android-arm-eabi.node");
68
- } catch (e) {
69
- loadErrors.push(e);
70
- }
71
- try {
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.12.0" && 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.12.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
75
- return binding;
76
- } catch (e) {
77
- loadErrors.push(e);
78
- }
79
- } else loadErrors.push(/* @__PURE__ */ new Error(`Unsupported architecture on Android ${process.arch}`));
80
- else if (process.platform === "win32") if (process.arch === "x64") if (process.config && process.config.variables && process.config.variables.shlib_suffix === "dll.a" || process.config && process.config.variables && process.config.variables.node_target_type === "shared_library") {
81
- try {
82
- return require(/* turbopackOptional: true */ "../core.win32-x64-gnu.node");
83
- } catch (e) {
84
- loadErrors.push(e);
85
- }
86
- try {
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.12.0" && 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.12.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
90
- return binding;
91
- } catch (e) {
92
- loadErrors.push(e);
93
- }
94
- } else {
95
- try {
96
- return require(/* turbopackOptional: true */ "../core.win32-x64-msvc.node");
97
- } catch (e) {
98
- loadErrors.push(e);
99
- }
100
- try {
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.12.0" && 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.12.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
104
- return binding;
105
- } catch (e) {
106
- loadErrors.push(e);
107
- }
108
- }
109
- else if (process.arch === "ia32") {
110
- try {
111
- return require(/* turbopackOptional: true */ "../core.win32-ia32-msvc.node");
112
- } catch (e) {
113
- loadErrors.push(e);
114
- }
115
- try {
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.12.0" && 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.12.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
119
- return binding;
120
- } catch (e) {
121
- loadErrors.push(e);
122
- }
123
- } else if (process.arch === "arm64") {
124
- try {
125
- return require(/* turbopackOptional: true */ "../core.win32-arm64-msvc.node");
126
- } catch (e) {
127
- loadErrors.push(e);
128
- }
129
- try {
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.12.0" && 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.12.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
133
- return binding;
134
- } catch (e) {
135
- loadErrors.push(e);
136
- }
137
- } else loadErrors.push(/* @__PURE__ */ new Error(`Unsupported architecture on Windows: ${process.arch}`));
138
- else if (process.platform === "darwin") {
51
+ else if (process.platform === "android") {
52
+ if (process.arch === "arm64") {
53
+ try {
54
+ return require(/* turbopackOptional: true */ "../core.android-arm64.node");
55
+ } catch (e) {
56
+ loadErrors.push(e);
57
+ }
58
+ try {
59
+ const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-android-arm64/core.android-arm64.node");
60
+ const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-android-arm64/package.json").version;
61
+ if (bindingPackageVersion !== "2.13.1" && 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.13.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
62
+ return binding;
63
+ } catch (e) {
64
+ loadErrors.push(e);
65
+ }
66
+ } else if (process.arch === "arm") {
67
+ try {
68
+ return require(/* turbopackOptional: true */ "../core.android-arm-eabi.node");
69
+ } catch (e) {
70
+ loadErrors.push(e);
71
+ }
72
+ try {
73
+ const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-android-arm-eabi/core.android-arm-eabi.node");
74
+ const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-android-arm-eabi/package.json").version;
75
+ if (bindingPackageVersion !== "2.13.1" && 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.13.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
76
+ return binding;
77
+ } catch (e) {
78
+ loadErrors.push(e);
79
+ }
80
+ } else loadErrors.push(/* @__PURE__ */ new Error(`Unsupported architecture on Android ${process.arch}`));
81
+ } else if (process.platform === "win32") {
82
+ if (process.arch === "x64") {
83
+ if (process.config && process.config.variables && process.config.variables.shlib_suffix === "dll.a" || process.config && process.config.variables && process.config.variables.node_target_type === "shared_library") {
84
+ try {
85
+ return require(/* turbopackOptional: true */ "../core.win32-x64-gnu.node");
86
+ } catch (e) {
87
+ loadErrors.push(e);
88
+ }
89
+ try {
90
+ const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-win32-x64-gnu/core.win32-x64-gnu.node");
91
+ const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-win32-x64-gnu/package.json").version;
92
+ if (bindingPackageVersion !== "2.13.1" && 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.13.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
93
+ return binding;
94
+ } catch (e) {
95
+ loadErrors.push(e);
96
+ }
97
+ } else {
98
+ try {
99
+ return require(/* turbopackOptional: true */ "../core.win32-x64-msvc.node");
100
+ } catch (e) {
101
+ loadErrors.push(e);
102
+ }
103
+ try {
104
+ const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-win32-x64-msvc/core.win32-x64-msvc.node");
105
+ const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-win32-x64-msvc/package.json").version;
106
+ if (bindingPackageVersion !== "2.13.1" && 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.13.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
107
+ return binding;
108
+ } catch (e) {
109
+ loadErrors.push(e);
110
+ }
111
+ }
112
+ } else if (process.arch === "ia32") {
113
+ try {
114
+ return require(/* turbopackOptional: true */ "../core.win32-ia32-msvc.node");
115
+ } catch (e) {
116
+ loadErrors.push(e);
117
+ }
118
+ try {
119
+ const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-win32-ia32-msvc/core.win32-ia32-msvc.node");
120
+ const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-win32-ia32-msvc/package.json").version;
121
+ if (bindingPackageVersion !== "2.13.1" && 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.13.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
122
+ return binding;
123
+ } catch (e) {
124
+ loadErrors.push(e);
125
+ }
126
+ } else if (process.arch === "arm64") {
127
+ try {
128
+ return require(/* turbopackOptional: true */ "../core.win32-arm64-msvc.node");
129
+ } catch (e) {
130
+ loadErrors.push(e);
131
+ }
132
+ try {
133
+ const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-win32-arm64-msvc/core.win32-arm64-msvc.node");
134
+ const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-win32-arm64-msvc/package.json").version;
135
+ if (bindingPackageVersion !== "2.13.1" && 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.13.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
136
+ return binding;
137
+ } catch (e) {
138
+ loadErrors.push(e);
139
+ }
140
+ } else loadErrors.push(/* @__PURE__ */ new Error(`Unsupported architecture on Windows: ${process.arch}`));
141
+ } else if (process.platform === "darwin") {
139
142
  try {
140
143
  return require(/* turbopackOptional: true */ "../core.darwin-universal.node");
141
144
  } catch (e) {
@@ -144,7 +147,7 @@ function requireNative() {
144
147
  try {
145
148
  const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-darwin-universal/core.darwin-universal.node");
146
149
  const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-darwin-universal/package.json").version;
147
- if (bindingPackageVersion !== "2.12.0" && 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.12.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
150
+ if (bindingPackageVersion !== "2.13.1" && 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.13.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
148
151
  return binding;
149
152
  } catch (e) {
150
153
  loadErrors.push(e);
@@ -158,7 +161,7 @@ function requireNative() {
158
161
  try {
159
162
  const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-darwin-x64/core.darwin-x64.node");
160
163
  const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-darwin-x64/package.json").version;
161
- if (bindingPackageVersion !== "2.12.0" && 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.12.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
164
+ if (bindingPackageVersion !== "2.13.1" && 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.13.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
162
165
  return binding;
163
166
  } catch (e) {
164
167
  loadErrors.push(e);
@@ -172,259 +175,267 @@ function requireNative() {
172
175
  try {
173
176
  const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-darwin-arm64/core.darwin-arm64.node");
174
177
  const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-darwin-arm64/package.json").version;
175
- if (bindingPackageVersion !== "2.12.0" && 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.12.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
178
+ if (bindingPackageVersion !== "2.13.1" && 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.13.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
176
179
  return binding;
177
180
  } catch (e) {
178
181
  loadErrors.push(e);
179
182
  }
180
183
  } else loadErrors.push(/* @__PURE__ */ new Error(`Unsupported architecture on macOS: ${process.arch}`));
181
- } else if (process.platform === "freebsd") if (process.arch === "x64") {
182
- try {
183
- return require(/* turbopackOptional: true */ "../core.freebsd-x64.node");
184
- } catch (e) {
185
- loadErrors.push(e);
186
- }
187
- try {
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.12.0" && 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.12.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
191
- return binding;
192
- } catch (e) {
193
- loadErrors.push(e);
194
- }
195
- } else if (process.arch === "arm64") {
196
- try {
197
- return require(/* turbopackOptional: true */ "../core.freebsd-arm64.node");
198
- } catch (e) {
199
- loadErrors.push(e);
200
- }
201
- try {
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.12.0" && 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.12.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
205
- return binding;
206
- } catch (e) {
207
- loadErrors.push(e);
208
- }
209
- } else loadErrors.push(/* @__PURE__ */ new Error(`Unsupported architecture on FreeBSD: ${process.arch}`));
210
- else if (process.platform === "linux") if (process.arch === "x64") if (isMusl()) {
211
- try {
212
- return require(/* turbopackOptional: true */ "../core.linux-x64-musl.node");
213
- } catch (e) {
214
- loadErrors.push(e);
215
- }
216
- try {
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.12.0" && 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.12.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
220
- return binding;
221
- } catch (e) {
222
- loadErrors.push(e);
223
- }
224
- } else {
225
- try {
226
- return require(/* turbopackOptional: true */ "../core.linux-x64-gnu.node");
227
- } catch (e) {
228
- loadErrors.push(e);
229
- }
230
- try {
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.12.0" && 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.12.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
234
- return binding;
235
- } catch (e) {
236
- loadErrors.push(e);
237
- }
238
- }
239
- else if (process.arch === "arm64") if (isMusl()) {
240
- try {
241
- return require(/* turbopackOptional: true */ "../core.linux-arm64-musl.node");
242
- } catch (e) {
243
- loadErrors.push(e);
244
- }
245
- try {
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.12.0" && 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.12.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
249
- return binding;
250
- } catch (e) {
251
- loadErrors.push(e);
252
- }
253
- } else {
254
- try {
255
- return require(/* turbopackOptional: true */ "../core.linux-arm64-gnu.node");
256
- } catch (e) {
257
- loadErrors.push(e);
258
- }
259
- try {
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.12.0" && 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.12.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
263
- return binding;
264
- } catch (e) {
265
- loadErrors.push(e);
266
- }
267
- }
268
- else if (process.arch === "arm") if (isMusl()) {
269
- try {
270
- return require(/* turbopackOptional: true */ "../core.linux-arm-musleabihf.node");
271
- } catch (e) {
272
- loadErrors.push(e);
273
- }
274
- try {
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.12.0" && 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.12.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
278
- return binding;
279
- } catch (e) {
280
- loadErrors.push(e);
281
- }
282
- } else {
283
- try {
284
- return require(/* turbopackOptional: true */ "../core.linux-arm-gnueabihf.node");
285
- } catch (e) {
286
- loadErrors.push(e);
287
- }
288
- try {
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.12.0" && 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.12.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
292
- return binding;
293
- } catch (e) {
294
- loadErrors.push(e);
295
- }
296
- }
297
- else if (process.arch === "loong64") if (isMusl()) {
298
- try {
299
- return require(/* turbopackOptional: true */ "../core.linux-loong64-musl.node");
300
- } catch (e) {
301
- loadErrors.push(e);
302
- }
303
- try {
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.12.0" && 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.12.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
307
- return binding;
308
- } catch (e) {
309
- loadErrors.push(e);
310
- }
311
- } else {
312
- try {
313
- return require(/* turbopackOptional: true */ "../core.linux-loong64-gnu.node");
314
- } catch (e) {
315
- loadErrors.push(e);
316
- }
317
- try {
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.12.0" && 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.12.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
321
- return binding;
322
- } catch (e) {
323
- loadErrors.push(e);
324
- }
325
- }
326
- else if (process.arch === "riscv64") if (isMusl()) {
327
- try {
328
- return require(/* turbopackOptional: true */ "../core.linux-riscv64-musl.node");
329
- } catch (e) {
330
- loadErrors.push(e);
331
- }
332
- try {
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.12.0" && 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.12.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
336
- return binding;
337
- } catch (e) {
338
- loadErrors.push(e);
339
- }
340
- } else {
341
- try {
342
- return require(/* turbopackOptional: true */ "../core.linux-riscv64-gnu.node");
343
- } catch (e) {
344
- loadErrors.push(e);
345
- }
346
- try {
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.12.0" && 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.12.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
350
- return binding;
351
- } catch (e) {
352
- loadErrors.push(e);
353
- }
354
- }
355
- else if (process.arch === "ppc64") {
356
- try {
357
- return require(/* turbopackOptional: true */ "../core.linux-ppc64-gnu.node");
358
- } catch (e) {
359
- loadErrors.push(e);
360
- }
361
- try {
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.12.0" && 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.12.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
365
- return binding;
366
- } catch (e) {
367
- loadErrors.push(e);
368
- }
369
- } else if (process.arch === "s390x") {
370
- try {
371
- return require(/* turbopackOptional: true */ "../core.linux-s390x-gnu.node");
372
- } catch (e) {
373
- loadErrors.push(e);
374
- }
375
- try {
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.12.0" && 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.12.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
379
- return binding;
380
- } catch (e) {
381
- loadErrors.push(e);
382
- }
383
- } else loadErrors.push(/* @__PURE__ */ new Error(`Unsupported architecture on Linux: ${process.arch}`));
384
- else if (process.platform === "openharmony") if (process.arch === "arm64") {
385
- try {
386
- return require(/* turbopackOptional: true */ "../core.openharmony-arm64.node");
387
- } catch (e) {
388
- loadErrors.push(e);
389
- }
390
- try {
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.12.0" && 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.12.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
394
- return binding;
395
- } catch (e) {
396
- loadErrors.push(e);
397
- }
398
- } else if (process.arch === "x64") {
399
- try {
400
- return require(/* turbopackOptional: true */ "../core.openharmony-x64.node");
401
- } catch (e) {
402
- loadErrors.push(e);
403
- }
404
- try {
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.12.0" && 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.12.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
408
- return binding;
409
- } catch (e) {
410
- loadErrors.push(e);
411
- }
412
- } else if (process.arch === "arm") {
413
- try {
414
- return require(/* turbopackOptional: true */ "../core.openharmony-arm.node");
415
- } catch (e) {
416
- loadErrors.push(e);
417
- }
418
- try {
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.12.0" && 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.12.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
422
- return binding;
423
- } catch (e) {
424
- loadErrors.push(e);
425
- }
426
- } else loadErrors.push(/* @__PURE__ */ new Error(`Unsupported architecture on OpenHarmony: ${process.arch}`));
427
- else loadErrors.push(/* @__PURE__ */ new Error(`Unsupported OS: ${process.platform}, architecture: ${process.arch}`));
184
+ } else if (process.platform === "freebsd") {
185
+ if (process.arch === "x64") {
186
+ try {
187
+ return require(/* turbopackOptional: true */ "../core.freebsd-x64.node");
188
+ } catch (e) {
189
+ loadErrors.push(e);
190
+ }
191
+ try {
192
+ const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-freebsd-x64/core.freebsd-x64.node");
193
+ const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-freebsd-x64/package.json").version;
194
+ if (bindingPackageVersion !== "2.13.1" && 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.13.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
195
+ return binding;
196
+ } catch (e) {
197
+ loadErrors.push(e);
198
+ }
199
+ } else if (process.arch === "arm64") {
200
+ try {
201
+ return require(/* turbopackOptional: true */ "../core.freebsd-arm64.node");
202
+ } catch (e) {
203
+ loadErrors.push(e);
204
+ }
205
+ try {
206
+ const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-freebsd-arm64/core.freebsd-arm64.node");
207
+ const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-freebsd-arm64/package.json").version;
208
+ if (bindingPackageVersion !== "2.13.1" && 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.13.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
209
+ return binding;
210
+ } catch (e) {
211
+ loadErrors.push(e);
212
+ }
213
+ } else loadErrors.push(/* @__PURE__ */ new Error(`Unsupported architecture on FreeBSD: ${process.arch}`));
214
+ } else if (process.platform === "linux") {
215
+ if (process.arch === "x64") {
216
+ if (isMusl()) {
217
+ try {
218
+ return require(/* turbopackOptional: true */ "../core.linux-x64-musl.node");
219
+ } catch (e) {
220
+ loadErrors.push(e);
221
+ }
222
+ try {
223
+ const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-x64-musl/core.linux-x64-musl.node");
224
+ const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-x64-musl/package.json").version;
225
+ if (bindingPackageVersion !== "2.13.1" && 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.13.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
226
+ return binding;
227
+ } catch (e) {
228
+ loadErrors.push(e);
229
+ }
230
+ } else {
231
+ try {
232
+ return require(/* turbopackOptional: true */ "../core.linux-x64-gnu.node");
233
+ } catch (e) {
234
+ loadErrors.push(e);
235
+ }
236
+ try {
237
+ const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-x64-gnu/core.linux-x64-gnu.node");
238
+ const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-x64-gnu/package.json").version;
239
+ if (bindingPackageVersion !== "2.13.1" && 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.13.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
240
+ return binding;
241
+ } catch (e) {
242
+ loadErrors.push(e);
243
+ }
244
+ }
245
+ } else if (process.arch === "arm64") {
246
+ if (isMusl()) {
247
+ try {
248
+ return require(/* turbopackOptional: true */ "../core.linux-arm64-musl.node");
249
+ } catch (e) {
250
+ loadErrors.push(e);
251
+ }
252
+ try {
253
+ const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm64-musl/core.linux-arm64-musl.node");
254
+ const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm64-musl/package.json").version;
255
+ if (bindingPackageVersion !== "2.13.1" && 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.13.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
256
+ return binding;
257
+ } catch (e) {
258
+ loadErrors.push(e);
259
+ }
260
+ } else {
261
+ try {
262
+ return require(/* turbopackOptional: true */ "../core.linux-arm64-gnu.node");
263
+ } catch (e) {
264
+ loadErrors.push(e);
265
+ }
266
+ try {
267
+ const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm64-gnu/core.linux-arm64-gnu.node");
268
+ const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm64-gnu/package.json").version;
269
+ if (bindingPackageVersion !== "2.13.1" && 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.13.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
270
+ return binding;
271
+ } catch (e) {
272
+ loadErrors.push(e);
273
+ }
274
+ }
275
+ } else if (process.arch === "arm") {
276
+ if (isMusl()) {
277
+ try {
278
+ return require(/* turbopackOptional: true */ "../core.linux-arm-musleabihf.node");
279
+ } catch (e) {
280
+ loadErrors.push(e);
281
+ }
282
+ try {
283
+ const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm-musleabihf/core.linux-arm-musleabihf.node");
284
+ const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm-musleabihf/package.json").version;
285
+ if (bindingPackageVersion !== "2.13.1" && 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.13.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
286
+ return binding;
287
+ } catch (e) {
288
+ loadErrors.push(e);
289
+ }
290
+ } else {
291
+ try {
292
+ return require(/* turbopackOptional: true */ "../core.linux-arm-gnueabihf.node");
293
+ } catch (e) {
294
+ loadErrors.push(e);
295
+ }
296
+ try {
297
+ const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm-gnueabihf/core.linux-arm-gnueabihf.node");
298
+ const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm-gnueabihf/package.json").version;
299
+ if (bindingPackageVersion !== "2.13.1" && 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.13.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
300
+ return binding;
301
+ } catch (e) {
302
+ loadErrors.push(e);
303
+ }
304
+ }
305
+ } else if (process.arch === "loong64") {
306
+ if (isMusl()) {
307
+ try {
308
+ return require(/* turbopackOptional: true */ "../core.linux-loong64-musl.node");
309
+ } catch (e) {
310
+ loadErrors.push(e);
311
+ }
312
+ try {
313
+ const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-loong64-musl/core.linux-loong64-musl.node");
314
+ const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-loong64-musl/package.json").version;
315
+ if (bindingPackageVersion !== "2.13.1" && 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.13.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
316
+ return binding;
317
+ } catch (e) {
318
+ loadErrors.push(e);
319
+ }
320
+ } else {
321
+ try {
322
+ return require(/* turbopackOptional: true */ "../core.linux-loong64-gnu.node");
323
+ } catch (e) {
324
+ loadErrors.push(e);
325
+ }
326
+ try {
327
+ const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-loong64-gnu/core.linux-loong64-gnu.node");
328
+ const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-loong64-gnu/package.json").version;
329
+ if (bindingPackageVersion !== "2.13.1" && 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.13.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
330
+ return binding;
331
+ } catch (e) {
332
+ loadErrors.push(e);
333
+ }
334
+ }
335
+ } else if (process.arch === "riscv64") {
336
+ if (isMusl()) {
337
+ try {
338
+ return require(/* turbopackOptional: true */ "../core.linux-riscv64-musl.node");
339
+ } catch (e) {
340
+ loadErrors.push(e);
341
+ }
342
+ try {
343
+ const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-riscv64-musl/core.linux-riscv64-musl.node");
344
+ const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-riscv64-musl/package.json").version;
345
+ if (bindingPackageVersion !== "2.13.1" && 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.13.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
346
+ return binding;
347
+ } catch (e) {
348
+ loadErrors.push(e);
349
+ }
350
+ } else {
351
+ try {
352
+ return require(/* turbopackOptional: true */ "../core.linux-riscv64-gnu.node");
353
+ } catch (e) {
354
+ loadErrors.push(e);
355
+ }
356
+ try {
357
+ const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-riscv64-gnu/core.linux-riscv64-gnu.node");
358
+ const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-riscv64-gnu/package.json").version;
359
+ if (bindingPackageVersion !== "2.13.1" && 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.13.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
360
+ return binding;
361
+ } catch (e) {
362
+ loadErrors.push(e);
363
+ }
364
+ }
365
+ } else if (process.arch === "ppc64") {
366
+ try {
367
+ return require(/* turbopackOptional: true */ "../core.linux-ppc64-gnu.node");
368
+ } catch (e) {
369
+ loadErrors.push(e);
370
+ }
371
+ try {
372
+ const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-ppc64-gnu/core.linux-ppc64-gnu.node");
373
+ const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-ppc64-gnu/package.json").version;
374
+ if (bindingPackageVersion !== "2.13.1" && 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.13.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
375
+ return binding;
376
+ } catch (e) {
377
+ loadErrors.push(e);
378
+ }
379
+ } else if (process.arch === "s390x") {
380
+ try {
381
+ return require(/* turbopackOptional: true */ "../core.linux-s390x-gnu.node");
382
+ } catch (e) {
383
+ loadErrors.push(e);
384
+ }
385
+ try {
386
+ const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-s390x-gnu/core.linux-s390x-gnu.node");
387
+ const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-s390x-gnu/package.json").version;
388
+ if (bindingPackageVersion !== "2.13.1" && 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.13.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
389
+ return binding;
390
+ } catch (e) {
391
+ loadErrors.push(e);
392
+ }
393
+ } else loadErrors.push(/* @__PURE__ */ new Error(`Unsupported architecture on Linux: ${process.arch}`));
394
+ } else if (process.platform === "openharmony") {
395
+ if (process.arch === "arm64") {
396
+ try {
397
+ return require(/* turbopackOptional: true */ "../core.openharmony-arm64.node");
398
+ } catch (e) {
399
+ loadErrors.push(e);
400
+ }
401
+ try {
402
+ const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-openharmony-arm64/core.openharmony-arm64.node");
403
+ const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-openharmony-arm64/package.json").version;
404
+ if (bindingPackageVersion !== "2.13.1" && 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.13.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
405
+ return binding;
406
+ } catch (e) {
407
+ loadErrors.push(e);
408
+ }
409
+ } else if (process.arch === "x64") {
410
+ try {
411
+ return require(/* turbopackOptional: true */ "../core.openharmony-x64.node");
412
+ } catch (e) {
413
+ loadErrors.push(e);
414
+ }
415
+ try {
416
+ const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-openharmony-x64/core.openharmony-x64.node");
417
+ const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-openharmony-x64/package.json").version;
418
+ if (bindingPackageVersion !== "2.13.1" && 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.13.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
419
+ return binding;
420
+ } catch (e) {
421
+ loadErrors.push(e);
422
+ }
423
+ } else if (process.arch === "arm") {
424
+ try {
425
+ return require(/* turbopackOptional: true */ "../core.openharmony-arm.node");
426
+ } catch (e) {
427
+ loadErrors.push(e);
428
+ }
429
+ try {
430
+ const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-openharmony-arm/core.openharmony-arm.node");
431
+ const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-openharmony-arm/package.json").version;
432
+ if (bindingPackageVersion !== "2.13.1" && 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.13.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
433
+ return binding;
434
+ } catch (e) {
435
+ loadErrors.push(e);
436
+ }
437
+ } else loadErrors.push(/* @__PURE__ */ new Error(`Unsupported architecture on OpenHarmony: ${process.arch}`));
438
+ } else loadErrors.push(/* @__PURE__ */ new Error(`Unsupported OS: ${process.platform}, architecture: ${process.arch}`));
428
439
  }
429
440
  function createLoadErrorChain(errors) {
430
441
  return errors.reduce((previous, current) => {
@@ -508,7 +519,7 @@ if (!nativeBinding || forceWasi) {
508
519
  if (!candidateFailed) {
509
520
  if (process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") {
510
521
  const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-wasm32-wasi/package.json").version;
511
- if (bindingPackageVersion !== "2.12.0") throw new Error(`WASI binding package version mismatch, expected 2.12.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
522
+ if (bindingPackageVersion !== "2.13.1") throw new Error(`WASI binding package version mismatch, expected 2.13.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
512
523
  }
513
524
  wasiBinding = require(/* turbopackOptional: true */ "@takumi-rs/core-wasm32-wasi/core.wasm32-wasi.node");
514
525
  nativeBinding = wasiBinding;