@takumi-rs/core 1.0.0-rc.2 → 1.0.0-rc.3

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 CHANGED
@@ -1,31 +1,8 @@
1
- Object.defineProperties(exports, {
2
- __esModule: { value: true },
3
- [Symbol.toStringTag]: { value: "Module" }
4
- });
5
- //#region \0rolldown/runtime.js
6
- var __defProp = Object.defineProperty;
7
- var __exportAll = (all, no_symbols) => {
8
- let target = {};
9
- for (var name in all) __defProp(target, name, {
10
- get: all[name],
11
- enumerable: true
12
- });
13
- if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
14
- return target;
15
- };
16
- //#endregion
17
- let node_module = require("node:module");
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
18
2
  //#region index.js
19
- var takumi_napi_core_exports = /* @__PURE__ */ __exportAll({
20
- AnimationOutputFormat: () => AnimationOutputFormat,
21
- DitheringAlgorithm: () => DitheringAlgorithm,
22
- OutputFormat: () => OutputFormat,
23
- Renderer: () => Renderer$1,
24
- extractResourceUrls: () => extractResourceUrls
25
- });
26
- const require$1 = (0, node_module.createRequire)(require("url").pathToFileURL(__filename).href);
27
- new URL(".", require("url").pathToFileURL(__filename).href).pathname;
28
- const { readFileSync } = require$1("node:fs");
3
+ const require$1 = (0, require(/* turbopackOptional: true */ "node:module").createRequire)(require(/* turbopackOptional: true */ "url").pathToFileURL(__filename).href);
4
+ new URL(".", require(/* turbopackOptional: true */ "url").pathToFileURL(__filename).href).pathname;
5
+ const { readFileSync } = require$1(/* turbopackOptional: true */ "node:fs");
29
6
  let nativeBinding = null;
30
7
  const loadErrors = [];
31
8
  const isMusl = () => {
@@ -61,14 +38,14 @@ const isMuslFromReport = () => {
61
38
  };
62
39
  const isMuslFromChildProcess = () => {
63
40
  try {
64
- return require$1("child_process").execSync("ldd --version", { encoding: "utf8" }).includes("musl");
41
+ return require$1(/* turbopackOptional: true */ "child_process").execSync("ldd --version", { encoding: "utf8" }).includes("musl");
65
42
  } catch (e) {
66
43
  return false;
67
44
  }
68
45
  };
69
46
  function requireNative() {
70
47
  if (process.env.TAKUMI_CORE_TARGET) try {
71
- return require$1(process.env.TAKUMI_CORE_TARGET);
48
+ return require$1(/* turbopackOptional: true */ process.env.TAKUMI_CORE_TARGET);
72
49
  } catch (err) {
73
50
  loadErrors.push(err);
74
51
  }
@@ -79,9 +56,9 @@ function requireNative() {
79
56
  loadErrors.push(e);
80
57
  }
81
58
  try {
82
- const binding = require$1("@takumi-rs/core-android-arm64");
83
- const bindingPackageVersion = require$1("@takumi-rs/core-android-arm64/package.json").version;
84
- if (bindingPackageVersion !== "1.0.0-rc.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
59
+ const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-android-arm64/core.android-arm64.node");
60
+ const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-android-arm64/package.json").version;
61
+ if (bindingPackageVersion !== "1.0.0-rc.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
85
62
  return binding;
86
63
  } catch (e) {
87
64
  loadErrors.push(e);
@@ -93,9 +70,9 @@ function requireNative() {
93
70
  loadErrors.push(e);
94
71
  }
95
72
  try {
96
- const binding = require$1("@takumi-rs/core-android-arm-eabi");
97
- const bindingPackageVersion = require$1("@takumi-rs/core-android-arm-eabi/package.json").version;
98
- if (bindingPackageVersion !== "1.0.0-rc.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
73
+ const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-android-arm-eabi/core.android-arm-eabi.node");
74
+ const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-android-arm-eabi/package.json").version;
75
+ if (bindingPackageVersion !== "1.0.0-rc.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
99
76
  return binding;
100
77
  } catch (e) {
101
78
  loadErrors.push(e);
@@ -110,9 +87,9 @@ function requireNative() {
110
87
  loadErrors.push(e);
111
88
  }
112
89
  try {
113
- const binding = require$1("@takumi-rs/core-win32-x64-gnu");
114
- const bindingPackageVersion = require$1("@takumi-rs/core-win32-x64-gnu/package.json").version;
115
- if (bindingPackageVersion !== "1.0.0-rc.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
90
+ const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-win32-x64-gnu/core.win32-x64-gnu.node");
91
+ const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-win32-x64-gnu/package.json").version;
92
+ if (bindingPackageVersion !== "1.0.0-rc.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
116
93
  return binding;
117
94
  } catch (e) {
118
95
  loadErrors.push(e);
@@ -124,9 +101,9 @@ function requireNative() {
124
101
  loadErrors.push(e);
125
102
  }
126
103
  try {
127
- const binding = require$1("@takumi-rs/core-win32-x64-msvc");
128
- const bindingPackageVersion = require$1("@takumi-rs/core-win32-x64-msvc/package.json").version;
129
- if (bindingPackageVersion !== "1.0.0-rc.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
104
+ const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-win32-x64-msvc/core.win32-x64-msvc.node");
105
+ const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-win32-x64-msvc/package.json").version;
106
+ if (bindingPackageVersion !== "1.0.0-rc.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
130
107
  return binding;
131
108
  } catch (e) {
132
109
  loadErrors.push(e);
@@ -139,9 +116,9 @@ function requireNative() {
139
116
  loadErrors.push(e);
140
117
  }
141
118
  try {
142
- const binding = require$1("@takumi-rs/core-win32-ia32-msvc");
143
- const bindingPackageVersion = require$1("@takumi-rs/core-win32-ia32-msvc/package.json").version;
144
- if (bindingPackageVersion !== "1.0.0-rc.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
119
+ const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-win32-ia32-msvc/core.win32-ia32-msvc.node");
120
+ const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-win32-ia32-msvc/package.json").version;
121
+ if (bindingPackageVersion !== "1.0.0-rc.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
145
122
  return binding;
146
123
  } catch (e) {
147
124
  loadErrors.push(e);
@@ -153,9 +130,9 @@ function requireNative() {
153
130
  loadErrors.push(e);
154
131
  }
155
132
  try {
156
- const binding = require$1("@takumi-rs/core-win32-arm64-msvc");
157
- const bindingPackageVersion = require$1("@takumi-rs/core-win32-arm64-msvc/package.json").version;
158
- if (bindingPackageVersion !== "1.0.0-rc.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
133
+ const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-win32-arm64-msvc/core.win32-arm64-msvc.node");
134
+ const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-win32-arm64-msvc/package.json").version;
135
+ if (bindingPackageVersion !== "1.0.0-rc.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
159
136
  return binding;
160
137
  } catch (e) {
161
138
  loadErrors.push(e);
@@ -168,9 +145,9 @@ function requireNative() {
168
145
  loadErrors.push(e);
169
146
  }
170
147
  try {
171
- const binding = require$1("@takumi-rs/core-darwin-universal");
172
- const bindingPackageVersion = require$1("@takumi-rs/core-darwin-universal/package.json").version;
173
- if (bindingPackageVersion !== "1.0.0-rc.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
148
+ const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-darwin-universal/core.darwin-universal.node");
149
+ const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-darwin-universal/package.json").version;
150
+ if (bindingPackageVersion !== "1.0.0-rc.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
174
151
  return binding;
175
152
  } catch (e) {
176
153
  loadErrors.push(e);
@@ -182,9 +159,9 @@ function requireNative() {
182
159
  loadErrors.push(e);
183
160
  }
184
161
  try {
185
- const binding = require$1("@takumi-rs/core-darwin-x64");
186
- const bindingPackageVersion = require$1("@takumi-rs/core-darwin-x64/package.json").version;
187
- if (bindingPackageVersion !== "1.0.0-rc.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
162
+ const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-darwin-x64/core.darwin-x64.node");
163
+ const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-darwin-x64/package.json").version;
164
+ if (bindingPackageVersion !== "1.0.0-rc.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
188
165
  return binding;
189
166
  } catch (e) {
190
167
  loadErrors.push(e);
@@ -196,9 +173,9 @@ function requireNative() {
196
173
  loadErrors.push(e);
197
174
  }
198
175
  try {
199
- const binding = require$1("@takumi-rs/core-darwin-arm64");
200
- const bindingPackageVersion = require$1("@takumi-rs/core-darwin-arm64/package.json").version;
201
- if (bindingPackageVersion !== "1.0.0-rc.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
176
+ const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-darwin-arm64/core.darwin-arm64.node");
177
+ const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-darwin-arm64/package.json").version;
178
+ if (bindingPackageVersion !== "1.0.0-rc.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
202
179
  return binding;
203
180
  } catch (e) {
204
181
  loadErrors.push(e);
@@ -211,9 +188,9 @@ function requireNative() {
211
188
  loadErrors.push(e);
212
189
  }
213
190
  try {
214
- const binding = require$1("@takumi-rs/core-freebsd-x64");
215
- const bindingPackageVersion = require$1("@takumi-rs/core-freebsd-x64/package.json").version;
216
- if (bindingPackageVersion !== "1.0.0-rc.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
191
+ const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-freebsd-x64/core.freebsd-x64.node");
192
+ const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-freebsd-x64/package.json").version;
193
+ if (bindingPackageVersion !== "1.0.0-rc.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
217
194
  return binding;
218
195
  } catch (e) {
219
196
  loadErrors.push(e);
@@ -225,9 +202,9 @@ function requireNative() {
225
202
  loadErrors.push(e);
226
203
  }
227
204
  try {
228
- const binding = require$1("@takumi-rs/core-freebsd-arm64");
229
- const bindingPackageVersion = require$1("@takumi-rs/core-freebsd-arm64/package.json").version;
230
- if (bindingPackageVersion !== "1.0.0-rc.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
205
+ const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-freebsd-arm64/core.freebsd-arm64.node");
206
+ const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-freebsd-arm64/package.json").version;
207
+ if (bindingPackageVersion !== "1.0.0-rc.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
231
208
  return binding;
232
209
  } catch (e) {
233
210
  loadErrors.push(e);
@@ -240,9 +217,9 @@ function requireNative() {
240
217
  loadErrors.push(e);
241
218
  }
242
219
  try {
243
- const binding = require$1("@takumi-rs/core-linux-x64-musl");
244
- const bindingPackageVersion = require$1("@takumi-rs/core-linux-x64-musl/package.json").version;
245
- if (bindingPackageVersion !== "1.0.0-rc.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
220
+ const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-x64-musl/core.linux-x64-musl.node");
221
+ const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-x64-musl/package.json").version;
222
+ if (bindingPackageVersion !== "1.0.0-rc.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
246
223
  return binding;
247
224
  } catch (e) {
248
225
  loadErrors.push(e);
@@ -254,9 +231,9 @@ function requireNative() {
254
231
  loadErrors.push(e);
255
232
  }
256
233
  try {
257
- const binding = require$1("@takumi-rs/core-linux-x64-gnu");
258
- const bindingPackageVersion = require$1("@takumi-rs/core-linux-x64-gnu/package.json").version;
259
- if (bindingPackageVersion !== "1.0.0-rc.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
234
+ const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-x64-gnu/core.linux-x64-gnu.node");
235
+ const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-x64-gnu/package.json").version;
236
+ if (bindingPackageVersion !== "1.0.0-rc.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
260
237
  return binding;
261
238
  } catch (e) {
262
239
  loadErrors.push(e);
@@ -269,9 +246,9 @@ function requireNative() {
269
246
  loadErrors.push(e);
270
247
  }
271
248
  try {
272
- const binding = require$1("@takumi-rs/core-linux-arm64-musl");
273
- const bindingPackageVersion = require$1("@takumi-rs/core-linux-arm64-musl/package.json").version;
274
- if (bindingPackageVersion !== "1.0.0-rc.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
249
+ const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm64-musl/core.linux-arm64-musl.node");
250
+ const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm64-musl/package.json").version;
251
+ if (bindingPackageVersion !== "1.0.0-rc.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
275
252
  return binding;
276
253
  } catch (e) {
277
254
  loadErrors.push(e);
@@ -283,9 +260,9 @@ function requireNative() {
283
260
  loadErrors.push(e);
284
261
  }
285
262
  try {
286
- const binding = require$1("@takumi-rs/core-linux-arm64-gnu");
287
- const bindingPackageVersion = require$1("@takumi-rs/core-linux-arm64-gnu/package.json").version;
288
- if (bindingPackageVersion !== "1.0.0-rc.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
263
+ const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm64-gnu/core.linux-arm64-gnu.node");
264
+ const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm64-gnu/package.json").version;
265
+ if (bindingPackageVersion !== "1.0.0-rc.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
289
266
  return binding;
290
267
  } catch (e) {
291
268
  loadErrors.push(e);
@@ -298,9 +275,9 @@ function requireNative() {
298
275
  loadErrors.push(e);
299
276
  }
300
277
  try {
301
- const binding = require$1("@takumi-rs/core-linux-arm-musleabihf");
302
- const bindingPackageVersion = require$1("@takumi-rs/core-linux-arm-musleabihf/package.json").version;
303
- if (bindingPackageVersion !== "1.0.0-rc.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
278
+ const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm-musleabihf/core.linux-arm-musleabihf.node");
279
+ const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm-musleabihf/package.json").version;
280
+ if (bindingPackageVersion !== "1.0.0-rc.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
304
281
  return binding;
305
282
  } catch (e) {
306
283
  loadErrors.push(e);
@@ -312,9 +289,9 @@ function requireNative() {
312
289
  loadErrors.push(e);
313
290
  }
314
291
  try {
315
- const binding = require$1("@takumi-rs/core-linux-arm-gnueabihf");
316
- const bindingPackageVersion = require$1("@takumi-rs/core-linux-arm-gnueabihf/package.json").version;
317
- if (bindingPackageVersion !== "1.0.0-rc.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
292
+ const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm-gnueabihf/core.linux-arm-gnueabihf.node");
293
+ const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm-gnueabihf/package.json").version;
294
+ if (bindingPackageVersion !== "1.0.0-rc.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
318
295
  return binding;
319
296
  } catch (e) {
320
297
  loadErrors.push(e);
@@ -327,9 +304,9 @@ function requireNative() {
327
304
  loadErrors.push(e);
328
305
  }
329
306
  try {
330
- const binding = require$1("@takumi-rs/core-linux-loong64-musl");
331
- const bindingPackageVersion = require$1("@takumi-rs/core-linux-loong64-musl/package.json").version;
332
- if (bindingPackageVersion !== "1.0.0-rc.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
307
+ const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-loong64-musl/core.linux-loong64-musl.node");
308
+ const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-loong64-musl/package.json").version;
309
+ if (bindingPackageVersion !== "1.0.0-rc.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
333
310
  return binding;
334
311
  } catch (e) {
335
312
  loadErrors.push(e);
@@ -341,9 +318,9 @@ function requireNative() {
341
318
  loadErrors.push(e);
342
319
  }
343
320
  try {
344
- const binding = require$1("@takumi-rs/core-linux-loong64-gnu");
345
- const bindingPackageVersion = require$1("@takumi-rs/core-linux-loong64-gnu/package.json").version;
346
- if (bindingPackageVersion !== "1.0.0-rc.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
321
+ const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-loong64-gnu/core.linux-loong64-gnu.node");
322
+ const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-loong64-gnu/package.json").version;
323
+ if (bindingPackageVersion !== "1.0.0-rc.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
347
324
  return binding;
348
325
  } catch (e) {
349
326
  loadErrors.push(e);
@@ -356,9 +333,9 @@ function requireNative() {
356
333
  loadErrors.push(e);
357
334
  }
358
335
  try {
359
- const binding = require$1("@takumi-rs/core-linux-riscv64-musl");
360
- const bindingPackageVersion = require$1("@takumi-rs/core-linux-riscv64-musl/package.json").version;
361
- if (bindingPackageVersion !== "1.0.0-rc.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
336
+ const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-riscv64-musl/core.linux-riscv64-musl.node");
337
+ const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-riscv64-musl/package.json").version;
338
+ if (bindingPackageVersion !== "1.0.0-rc.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
362
339
  return binding;
363
340
  } catch (e) {
364
341
  loadErrors.push(e);
@@ -370,9 +347,9 @@ function requireNative() {
370
347
  loadErrors.push(e);
371
348
  }
372
349
  try {
373
- const binding = require$1("@takumi-rs/core-linux-riscv64-gnu");
374
- const bindingPackageVersion = require$1("@takumi-rs/core-linux-riscv64-gnu/package.json").version;
375
- if (bindingPackageVersion !== "1.0.0-rc.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
350
+ const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-riscv64-gnu/core.linux-riscv64-gnu.node");
351
+ const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-riscv64-gnu/package.json").version;
352
+ if (bindingPackageVersion !== "1.0.0-rc.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
376
353
  return binding;
377
354
  } catch (e) {
378
355
  loadErrors.push(e);
@@ -385,9 +362,9 @@ function requireNative() {
385
362
  loadErrors.push(e);
386
363
  }
387
364
  try {
388
- const binding = require$1("@takumi-rs/core-linux-ppc64-gnu");
389
- const bindingPackageVersion = require$1("@takumi-rs/core-linux-ppc64-gnu/package.json").version;
390
- if (bindingPackageVersion !== "1.0.0-rc.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
365
+ const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-ppc64-gnu/core.linux-ppc64-gnu.node");
366
+ const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-ppc64-gnu/package.json").version;
367
+ if (bindingPackageVersion !== "1.0.0-rc.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
391
368
  return binding;
392
369
  } catch (e) {
393
370
  loadErrors.push(e);
@@ -399,9 +376,9 @@ function requireNative() {
399
376
  loadErrors.push(e);
400
377
  }
401
378
  try {
402
- const binding = require$1("@takumi-rs/core-linux-s390x-gnu");
403
- const bindingPackageVersion = require$1("@takumi-rs/core-linux-s390x-gnu/package.json").version;
404
- if (bindingPackageVersion !== "1.0.0-rc.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
379
+ const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-s390x-gnu/core.linux-s390x-gnu.node");
380
+ const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-s390x-gnu/package.json").version;
381
+ if (bindingPackageVersion !== "1.0.0-rc.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
405
382
  return binding;
406
383
  } catch (e) {
407
384
  loadErrors.push(e);
@@ -414,9 +391,9 @@ function requireNative() {
414
391
  loadErrors.push(e);
415
392
  }
416
393
  try {
417
- const binding = require$1("@takumi-rs/core-openharmony-arm64");
418
- const bindingPackageVersion = require$1("@takumi-rs/core-openharmony-arm64/package.json").version;
419
- if (bindingPackageVersion !== "1.0.0-rc.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
394
+ const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-openharmony-arm64/core.openharmony-arm64.node");
395
+ const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-openharmony-arm64/package.json").version;
396
+ if (bindingPackageVersion !== "1.0.0-rc.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
420
397
  return binding;
421
398
  } catch (e) {
422
399
  loadErrors.push(e);
@@ -428,9 +405,9 @@ function requireNative() {
428
405
  loadErrors.push(e);
429
406
  }
430
407
  try {
431
- const binding = require$1("@takumi-rs/core-openharmony-x64");
432
- const bindingPackageVersion = require$1("@takumi-rs/core-openharmony-x64/package.json").version;
433
- if (bindingPackageVersion !== "1.0.0-rc.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
408
+ const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-openharmony-x64/core.openharmony-x64.node");
409
+ const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-openharmony-x64/package.json").version;
410
+ if (bindingPackageVersion !== "1.0.0-rc.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
434
411
  return binding;
435
412
  } catch (e) {
436
413
  loadErrors.push(e);
@@ -442,9 +419,9 @@ function requireNative() {
442
419
  loadErrors.push(e);
443
420
  }
444
421
  try {
445
- const binding = require$1("@takumi-rs/core-openharmony-arm");
446
- const bindingPackageVersion = require$1("@takumi-rs/core-openharmony-arm/package.json").version;
447
- if (bindingPackageVersion !== "1.0.0-rc.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
422
+ const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-openharmony-arm/core.openharmony-arm.node");
423
+ const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-openharmony-arm/package.json").version;
424
+ if (bindingPackageVersion !== "1.0.0-rc.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
448
425
  return binding;
449
426
  } catch (e) {
450
427
  loadErrors.push(e);
@@ -457,13 +434,13 @@ if (!nativeBinding || process.env.NAPI_RS_FORCE_WASI) {
457
434
  let wasiBinding = null;
458
435
  let wasiBindingError = null;
459
436
  try {
460
- wasiBinding = require$1("./core.wasi.cjs");
437
+ wasiBinding = require$1(/* turbopackOptional: true */ "./core.wasi.cjs");
461
438
  nativeBinding = wasiBinding;
462
439
  } catch (err) {
463
440
  if (process.env.NAPI_RS_FORCE_WASI) wasiBindingError = err;
464
441
  }
465
442
  if (!nativeBinding || process.env.NAPI_RS_FORCE_WASI) try {
466
- wasiBinding = require$1("@takumi-rs/core-wasm32-wasi");
443
+ wasiBinding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-wasm32-wasi/core.wasm32-wasi.node");
467
444
  nativeBinding = wasiBinding;
468
445
  } catch (err) {
469
446
  if (process.env.NAPI_RS_FORCE_WASI) {
@@ -543,11 +520,6 @@ var Renderer = class extends Renderer$1 {
543
520
  return isBuffer(key) ? !this.fontBuffersMark.has(key) : !this.fontsMark.has(key);
544
521
  }
545
522
  };
546
- const exportedModule = {
547
- ...takumi_napi_core_exports,
548
- Renderer,
549
- extractResourceUrls
550
- };
551
523
  function createFontKey(font) {
552
524
  var _font$name, _font$style, _font$weight;
553
525
  if ("key" in font && font.key) return font.key;
@@ -580,5 +552,4 @@ function isBuffer(data) {
580
552
  }
581
553
  //#endregion
582
554
  exports.Renderer = Renderer;
583
- exports.default = exportedModule;
584
555
  exports.extractResourceUrls = extractResourceUrls;
package/dist/export.d.cts CHANGED
@@ -221,9 +221,5 @@ declare class Renderer extends Renderer$1 {
221
221
  private checkAndMarkFont;
222
222
  private isNewFont;
223
223
  }
224
- declare const exportedModule: {
225
- Renderer: typeof Renderer;
226
- extractResourceUrls: typeof extractResourceUrls;
227
- };
228
224
  //#endregion
229
- export { AnimationFrameSource, AnimationOutputFormat, AnimationSceneSource, ConstructRendererOptions, type ContainerNode, DitheringAlgorithm, EncodeFramesOptions, Font, FontDetails, FontLoader, FontLoaderSync, type ImageNode, ImageSource, ImageSourceLoader, ImageSourceLoaderSync, Keyframes, KeyframesMap, KeyframesRuleList, MeasuredNode, MeasuredTextRun, type Node, type NodeMetadata, OutputFormat, RenderAnimationOptions, RenderOptions, Renderer, type TextNode, exportedModule as default, extractResourceUrls };
225
+ export { AnimationFrameSource, AnimationOutputFormat, AnimationSceneSource, ConstructRendererOptions, type ContainerNode, DitheringAlgorithm, EncodeFramesOptions, Font, FontDetails, FontLoader, FontLoaderSync, type ImageNode, ImageSource, ImageSourceLoader, ImageSourceLoaderSync, Keyframes, KeyframesMap, KeyframesRuleList, MeasuredNode, MeasuredTextRun, type Node, type NodeMetadata, OutputFormat, RenderAnimationOptions, RenderOptions, Renderer, type TextNode, extractResourceUrls };
package/dist/export.d.mts CHANGED
@@ -30,9 +30,5 @@ declare class Renderer extends Renderer$1 {
30
30
  private checkAndMarkFont;
31
31
  private isNewFont;
32
32
  }
33
- declare const exportedModule: {
34
- Renderer: typeof Renderer;
35
- extractResourceUrls: typeof extractResourceUrls;
36
- };
37
33
  //#endregion
38
- export { AnimationOutputFormat, DitheringAlgorithm, FontLoader, FontLoaderSync, ImageSourceLoader, ImageSourceLoaderSync, OutputFormat, Renderer, exportedModule as default, extractResourceUrls };
34
+ export { AnimationOutputFormat, DitheringAlgorithm, FontLoader, FontLoaderSync, ImageSourceLoader, ImageSourceLoaderSync, OutputFormat, Renderer, extractResourceUrls };
package/dist/export.mjs CHANGED
@@ -1,27 +1,8 @@
1
1
  import { createRequire } from "node:module";
2
- //#region \0rolldown/runtime.js
3
- var __defProp = Object.defineProperty;
4
- var __exportAll = (all, no_symbols) => {
5
- let target = {};
6
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: true
9
- });
10
- if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
11
- return target;
12
- };
13
- //#endregion
14
2
  //#region index.js
15
- var takumi_napi_core_exports = /* @__PURE__ */ __exportAll({
16
- AnimationOutputFormat: () => AnimationOutputFormat,
17
- DitheringAlgorithm: () => DitheringAlgorithm,
18
- OutputFormat: () => OutputFormat,
19
- Renderer: () => Renderer$1,
20
- extractResourceUrls: () => extractResourceUrls
21
- });
22
3
  const require = createRequire(import.meta.url);
23
4
  new URL(".", import.meta.url).pathname;
24
- const { readFileSync } = require("node:fs");
5
+ const { readFileSync } = require(/* turbopackOptional: true */ "node:fs");
25
6
  let nativeBinding = null;
26
7
  const loadErrors = [];
27
8
  const isMusl = () => {
@@ -57,14 +38,14 @@ const isMuslFromReport = () => {
57
38
  };
58
39
  const isMuslFromChildProcess = () => {
59
40
  try {
60
- return require("child_process").execSync("ldd --version", { encoding: "utf8" }).includes("musl");
41
+ return require(/* turbopackOptional: true */ "child_process").execSync("ldd --version", { encoding: "utf8" }).includes("musl");
61
42
  } catch (e) {
62
43
  return false;
63
44
  }
64
45
  };
65
46
  function requireNative() {
66
47
  if (process.env.TAKUMI_CORE_TARGET) try {
67
- return require(process.env.TAKUMI_CORE_TARGET);
48
+ return require(/* turbopackOptional: true */ process.env.TAKUMI_CORE_TARGET);
68
49
  } catch (err) {
69
50
  loadErrors.push(err);
70
51
  }
@@ -75,9 +56,9 @@ function requireNative() {
75
56
  loadErrors.push(e);
76
57
  }
77
58
  try {
78
- const binding = require("@takumi-rs/core-android-arm64");
79
- const bindingPackageVersion = require("@takumi-rs/core-android-arm64/package.json").version;
80
- if (bindingPackageVersion !== "1.0.0-rc.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
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 !== "1.0.0-rc.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
81
62
  return binding;
82
63
  } catch (e) {
83
64
  loadErrors.push(e);
@@ -89,9 +70,9 @@ function requireNative() {
89
70
  loadErrors.push(e);
90
71
  }
91
72
  try {
92
- const binding = require("@takumi-rs/core-android-arm-eabi");
93
- const bindingPackageVersion = require("@takumi-rs/core-android-arm-eabi/package.json").version;
94
- if (bindingPackageVersion !== "1.0.0-rc.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
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 !== "1.0.0-rc.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
95
76
  return binding;
96
77
  } catch (e) {
97
78
  loadErrors.push(e);
@@ -106,9 +87,9 @@ function requireNative() {
106
87
  loadErrors.push(e);
107
88
  }
108
89
  try {
109
- const binding = require("@takumi-rs/core-win32-x64-gnu");
110
- const bindingPackageVersion = require("@takumi-rs/core-win32-x64-gnu/package.json").version;
111
- if (bindingPackageVersion !== "1.0.0-rc.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
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 !== "1.0.0-rc.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
112
93
  return binding;
113
94
  } catch (e) {
114
95
  loadErrors.push(e);
@@ -120,9 +101,9 @@ function requireNative() {
120
101
  loadErrors.push(e);
121
102
  }
122
103
  try {
123
- const binding = require("@takumi-rs/core-win32-x64-msvc");
124
- const bindingPackageVersion = require("@takumi-rs/core-win32-x64-msvc/package.json").version;
125
- if (bindingPackageVersion !== "1.0.0-rc.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
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 !== "1.0.0-rc.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
126
107
  return binding;
127
108
  } catch (e) {
128
109
  loadErrors.push(e);
@@ -135,9 +116,9 @@ function requireNative() {
135
116
  loadErrors.push(e);
136
117
  }
137
118
  try {
138
- const binding = require("@takumi-rs/core-win32-ia32-msvc");
139
- const bindingPackageVersion = require("@takumi-rs/core-win32-ia32-msvc/package.json").version;
140
- if (bindingPackageVersion !== "1.0.0-rc.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
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 !== "1.0.0-rc.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
141
122
  return binding;
142
123
  } catch (e) {
143
124
  loadErrors.push(e);
@@ -149,9 +130,9 @@ function requireNative() {
149
130
  loadErrors.push(e);
150
131
  }
151
132
  try {
152
- const binding = require("@takumi-rs/core-win32-arm64-msvc");
153
- const bindingPackageVersion = require("@takumi-rs/core-win32-arm64-msvc/package.json").version;
154
- if (bindingPackageVersion !== "1.0.0-rc.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
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 !== "1.0.0-rc.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
155
136
  return binding;
156
137
  } catch (e) {
157
138
  loadErrors.push(e);
@@ -164,9 +145,9 @@ function requireNative() {
164
145
  loadErrors.push(e);
165
146
  }
166
147
  try {
167
- const binding = require("@takumi-rs/core-darwin-universal");
168
- const bindingPackageVersion = require("@takumi-rs/core-darwin-universal/package.json").version;
169
- if (bindingPackageVersion !== "1.0.0-rc.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
148
+ const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-darwin-universal/core.darwin-universal.node");
149
+ const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-darwin-universal/package.json").version;
150
+ if (bindingPackageVersion !== "1.0.0-rc.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
170
151
  return binding;
171
152
  } catch (e) {
172
153
  loadErrors.push(e);
@@ -178,9 +159,9 @@ function requireNative() {
178
159
  loadErrors.push(e);
179
160
  }
180
161
  try {
181
- const binding = require("@takumi-rs/core-darwin-x64");
182
- const bindingPackageVersion = require("@takumi-rs/core-darwin-x64/package.json").version;
183
- if (bindingPackageVersion !== "1.0.0-rc.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
162
+ const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-darwin-x64/core.darwin-x64.node");
163
+ const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-darwin-x64/package.json").version;
164
+ if (bindingPackageVersion !== "1.0.0-rc.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
184
165
  return binding;
185
166
  } catch (e) {
186
167
  loadErrors.push(e);
@@ -192,9 +173,9 @@ function requireNative() {
192
173
  loadErrors.push(e);
193
174
  }
194
175
  try {
195
- const binding = require("@takumi-rs/core-darwin-arm64");
196
- const bindingPackageVersion = require("@takumi-rs/core-darwin-arm64/package.json").version;
197
- if (bindingPackageVersion !== "1.0.0-rc.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
176
+ const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-darwin-arm64/core.darwin-arm64.node");
177
+ const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-darwin-arm64/package.json").version;
178
+ if (bindingPackageVersion !== "1.0.0-rc.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
198
179
  return binding;
199
180
  } catch (e) {
200
181
  loadErrors.push(e);
@@ -207,9 +188,9 @@ function requireNative() {
207
188
  loadErrors.push(e);
208
189
  }
209
190
  try {
210
- const binding = require("@takumi-rs/core-freebsd-x64");
211
- const bindingPackageVersion = require("@takumi-rs/core-freebsd-x64/package.json").version;
212
- if (bindingPackageVersion !== "1.0.0-rc.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
191
+ const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-freebsd-x64/core.freebsd-x64.node");
192
+ const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-freebsd-x64/package.json").version;
193
+ if (bindingPackageVersion !== "1.0.0-rc.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
213
194
  return binding;
214
195
  } catch (e) {
215
196
  loadErrors.push(e);
@@ -221,9 +202,9 @@ function requireNative() {
221
202
  loadErrors.push(e);
222
203
  }
223
204
  try {
224
- const binding = require("@takumi-rs/core-freebsd-arm64");
225
- const bindingPackageVersion = require("@takumi-rs/core-freebsd-arm64/package.json").version;
226
- if (bindingPackageVersion !== "1.0.0-rc.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
205
+ const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-freebsd-arm64/core.freebsd-arm64.node");
206
+ const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-freebsd-arm64/package.json").version;
207
+ if (bindingPackageVersion !== "1.0.0-rc.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
227
208
  return binding;
228
209
  } catch (e) {
229
210
  loadErrors.push(e);
@@ -236,9 +217,9 @@ function requireNative() {
236
217
  loadErrors.push(e);
237
218
  }
238
219
  try {
239
- const binding = require("@takumi-rs/core-linux-x64-musl");
240
- const bindingPackageVersion = require("@takumi-rs/core-linux-x64-musl/package.json").version;
241
- if (bindingPackageVersion !== "1.0.0-rc.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
220
+ const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-x64-musl/core.linux-x64-musl.node");
221
+ const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-x64-musl/package.json").version;
222
+ if (bindingPackageVersion !== "1.0.0-rc.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
242
223
  return binding;
243
224
  } catch (e) {
244
225
  loadErrors.push(e);
@@ -250,9 +231,9 @@ function requireNative() {
250
231
  loadErrors.push(e);
251
232
  }
252
233
  try {
253
- const binding = require("@takumi-rs/core-linux-x64-gnu");
254
- const bindingPackageVersion = require("@takumi-rs/core-linux-x64-gnu/package.json").version;
255
- if (bindingPackageVersion !== "1.0.0-rc.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
234
+ const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-x64-gnu/core.linux-x64-gnu.node");
235
+ const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-x64-gnu/package.json").version;
236
+ if (bindingPackageVersion !== "1.0.0-rc.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
256
237
  return binding;
257
238
  } catch (e) {
258
239
  loadErrors.push(e);
@@ -265,9 +246,9 @@ function requireNative() {
265
246
  loadErrors.push(e);
266
247
  }
267
248
  try {
268
- const binding = require("@takumi-rs/core-linux-arm64-musl");
269
- const bindingPackageVersion = require("@takumi-rs/core-linux-arm64-musl/package.json").version;
270
- if (bindingPackageVersion !== "1.0.0-rc.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
249
+ const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm64-musl/core.linux-arm64-musl.node");
250
+ const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm64-musl/package.json").version;
251
+ if (bindingPackageVersion !== "1.0.0-rc.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
271
252
  return binding;
272
253
  } catch (e) {
273
254
  loadErrors.push(e);
@@ -279,9 +260,9 @@ function requireNative() {
279
260
  loadErrors.push(e);
280
261
  }
281
262
  try {
282
- const binding = require("@takumi-rs/core-linux-arm64-gnu");
283
- const bindingPackageVersion = require("@takumi-rs/core-linux-arm64-gnu/package.json").version;
284
- if (bindingPackageVersion !== "1.0.0-rc.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
263
+ const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm64-gnu/core.linux-arm64-gnu.node");
264
+ const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm64-gnu/package.json").version;
265
+ if (bindingPackageVersion !== "1.0.0-rc.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
285
266
  return binding;
286
267
  } catch (e) {
287
268
  loadErrors.push(e);
@@ -294,9 +275,9 @@ function requireNative() {
294
275
  loadErrors.push(e);
295
276
  }
296
277
  try {
297
- const binding = require("@takumi-rs/core-linux-arm-musleabihf");
298
- const bindingPackageVersion = require("@takumi-rs/core-linux-arm-musleabihf/package.json").version;
299
- if (bindingPackageVersion !== "1.0.0-rc.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
278
+ const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm-musleabihf/core.linux-arm-musleabihf.node");
279
+ const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm-musleabihf/package.json").version;
280
+ if (bindingPackageVersion !== "1.0.0-rc.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
300
281
  return binding;
301
282
  } catch (e) {
302
283
  loadErrors.push(e);
@@ -308,9 +289,9 @@ function requireNative() {
308
289
  loadErrors.push(e);
309
290
  }
310
291
  try {
311
- const binding = require("@takumi-rs/core-linux-arm-gnueabihf");
312
- const bindingPackageVersion = require("@takumi-rs/core-linux-arm-gnueabihf/package.json").version;
313
- if (bindingPackageVersion !== "1.0.0-rc.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
292
+ const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm-gnueabihf/core.linux-arm-gnueabihf.node");
293
+ const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm-gnueabihf/package.json").version;
294
+ if (bindingPackageVersion !== "1.0.0-rc.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
314
295
  return binding;
315
296
  } catch (e) {
316
297
  loadErrors.push(e);
@@ -323,9 +304,9 @@ function requireNative() {
323
304
  loadErrors.push(e);
324
305
  }
325
306
  try {
326
- const binding = require("@takumi-rs/core-linux-loong64-musl");
327
- const bindingPackageVersion = require("@takumi-rs/core-linux-loong64-musl/package.json").version;
328
- if (bindingPackageVersion !== "1.0.0-rc.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
307
+ const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-loong64-musl/core.linux-loong64-musl.node");
308
+ const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-loong64-musl/package.json").version;
309
+ if (bindingPackageVersion !== "1.0.0-rc.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
329
310
  return binding;
330
311
  } catch (e) {
331
312
  loadErrors.push(e);
@@ -337,9 +318,9 @@ function requireNative() {
337
318
  loadErrors.push(e);
338
319
  }
339
320
  try {
340
- const binding = require("@takumi-rs/core-linux-loong64-gnu");
341
- const bindingPackageVersion = require("@takumi-rs/core-linux-loong64-gnu/package.json").version;
342
- if (bindingPackageVersion !== "1.0.0-rc.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
321
+ const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-loong64-gnu/core.linux-loong64-gnu.node");
322
+ const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-loong64-gnu/package.json").version;
323
+ if (bindingPackageVersion !== "1.0.0-rc.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
343
324
  return binding;
344
325
  } catch (e) {
345
326
  loadErrors.push(e);
@@ -352,9 +333,9 @@ function requireNative() {
352
333
  loadErrors.push(e);
353
334
  }
354
335
  try {
355
- const binding = require("@takumi-rs/core-linux-riscv64-musl");
356
- const bindingPackageVersion = require("@takumi-rs/core-linux-riscv64-musl/package.json").version;
357
- if (bindingPackageVersion !== "1.0.0-rc.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
336
+ const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-riscv64-musl/core.linux-riscv64-musl.node");
337
+ const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-riscv64-musl/package.json").version;
338
+ if (bindingPackageVersion !== "1.0.0-rc.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
358
339
  return binding;
359
340
  } catch (e) {
360
341
  loadErrors.push(e);
@@ -366,9 +347,9 @@ function requireNative() {
366
347
  loadErrors.push(e);
367
348
  }
368
349
  try {
369
- const binding = require("@takumi-rs/core-linux-riscv64-gnu");
370
- const bindingPackageVersion = require("@takumi-rs/core-linux-riscv64-gnu/package.json").version;
371
- if (bindingPackageVersion !== "1.0.0-rc.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
350
+ const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-riscv64-gnu/core.linux-riscv64-gnu.node");
351
+ const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-riscv64-gnu/package.json").version;
352
+ if (bindingPackageVersion !== "1.0.0-rc.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
372
353
  return binding;
373
354
  } catch (e) {
374
355
  loadErrors.push(e);
@@ -381,9 +362,9 @@ function requireNative() {
381
362
  loadErrors.push(e);
382
363
  }
383
364
  try {
384
- const binding = require("@takumi-rs/core-linux-ppc64-gnu");
385
- const bindingPackageVersion = require("@takumi-rs/core-linux-ppc64-gnu/package.json").version;
386
- if (bindingPackageVersion !== "1.0.0-rc.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
365
+ const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-ppc64-gnu/core.linux-ppc64-gnu.node");
366
+ const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-ppc64-gnu/package.json").version;
367
+ if (bindingPackageVersion !== "1.0.0-rc.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
387
368
  return binding;
388
369
  } catch (e) {
389
370
  loadErrors.push(e);
@@ -395,9 +376,9 @@ function requireNative() {
395
376
  loadErrors.push(e);
396
377
  }
397
378
  try {
398
- const binding = require("@takumi-rs/core-linux-s390x-gnu");
399
- const bindingPackageVersion = require("@takumi-rs/core-linux-s390x-gnu/package.json").version;
400
- if (bindingPackageVersion !== "1.0.0-rc.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
379
+ const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-s390x-gnu/core.linux-s390x-gnu.node");
380
+ const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-s390x-gnu/package.json").version;
381
+ if (bindingPackageVersion !== "1.0.0-rc.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
401
382
  return binding;
402
383
  } catch (e) {
403
384
  loadErrors.push(e);
@@ -410,9 +391,9 @@ function requireNative() {
410
391
  loadErrors.push(e);
411
392
  }
412
393
  try {
413
- const binding = require("@takumi-rs/core-openharmony-arm64");
414
- const bindingPackageVersion = require("@takumi-rs/core-openharmony-arm64/package.json").version;
415
- if (bindingPackageVersion !== "1.0.0-rc.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
394
+ const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-openharmony-arm64/core.openharmony-arm64.node");
395
+ const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-openharmony-arm64/package.json").version;
396
+ if (bindingPackageVersion !== "1.0.0-rc.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
416
397
  return binding;
417
398
  } catch (e) {
418
399
  loadErrors.push(e);
@@ -424,9 +405,9 @@ function requireNative() {
424
405
  loadErrors.push(e);
425
406
  }
426
407
  try {
427
- const binding = require("@takumi-rs/core-openharmony-x64");
428
- const bindingPackageVersion = require("@takumi-rs/core-openharmony-x64/package.json").version;
429
- if (bindingPackageVersion !== "1.0.0-rc.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
408
+ const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-openharmony-x64/core.openharmony-x64.node");
409
+ const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-openharmony-x64/package.json").version;
410
+ if (bindingPackageVersion !== "1.0.0-rc.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
430
411
  return binding;
431
412
  } catch (e) {
432
413
  loadErrors.push(e);
@@ -438,9 +419,9 @@ function requireNative() {
438
419
  loadErrors.push(e);
439
420
  }
440
421
  try {
441
- const binding = require("@takumi-rs/core-openharmony-arm");
442
- const bindingPackageVersion = require("@takumi-rs/core-openharmony-arm/package.json").version;
443
- if (bindingPackageVersion !== "1.0.0-rc.2" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
422
+ const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-openharmony-arm/core.openharmony-arm.node");
423
+ const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-openharmony-arm/package.json").version;
424
+ if (bindingPackageVersion !== "1.0.0-rc.3" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 1.0.0-rc.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
444
425
  return binding;
445
426
  } catch (e) {
446
427
  loadErrors.push(e);
@@ -453,13 +434,13 @@ if (!nativeBinding || process.env.NAPI_RS_FORCE_WASI) {
453
434
  let wasiBinding = null;
454
435
  let wasiBindingError = null;
455
436
  try {
456
- wasiBinding = require("./core.wasi.cjs");
437
+ wasiBinding = require(/* turbopackOptional: true */ "./core.wasi.cjs");
457
438
  nativeBinding = wasiBinding;
458
439
  } catch (err) {
459
440
  if (process.env.NAPI_RS_FORCE_WASI) wasiBindingError = err;
460
441
  }
461
442
  if (!nativeBinding || process.env.NAPI_RS_FORCE_WASI) try {
462
- wasiBinding = require("@takumi-rs/core-wasm32-wasi");
443
+ wasiBinding = require(/* turbopackOptional: true */ "@takumi-rs/core-wasm32-wasi/core.wasm32-wasi.node");
463
444
  nativeBinding = wasiBinding;
464
445
  } catch (err) {
465
446
  if (process.env.NAPI_RS_FORCE_WASI) {
@@ -539,11 +520,6 @@ var Renderer = class extends Renderer$1 {
539
520
  return isBuffer(key) ? !this.fontBuffersMark.has(key) : !this.fontsMark.has(key);
540
521
  }
541
522
  };
542
- const exportedModule = {
543
- ...takumi_napi_core_exports,
544
- Renderer,
545
- extractResourceUrls
546
- };
547
523
  function createFontKey(font) {
548
524
  var _font$name, _font$style, _font$weight;
549
525
  if ("key" in font && font.key) return font.key;
@@ -575,4 +551,4 @@ function isBuffer(data) {
575
551
  return data instanceof Uint8Array || data instanceof ArrayBuffer;
576
552
  }
577
553
  //#endregion
578
- export { Renderer, exportedModule as default, extractResourceUrls };
554
+ export { Renderer, extractResourceUrls };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@takumi-rs/core",
3
- "version": "1.0.0-rc.2",
3
+ "version": "1.0.0-rc.3",
4
4
  "keywords": [
5
5
  "css",
6
6
  "image",
@@ -46,7 +46,7 @@
46
46
  "bench": "bun tests/bench/index.tsx"
47
47
  },
48
48
  "dependencies": {
49
- "@takumi-rs/helpers": "1.0.0-rc.2"
49
+ "@takumi-rs/helpers": "1.0.0-rc.3"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@napi-rs/cli": "3.5.1",
@@ -78,13 +78,13 @@
78
78
  "node": ">= 12.22.0 < 13 || >= 14.17.0 < 15 || >= 15.12.0 < 16 || >= 16.0.0"
79
79
  },
80
80
  "optionalDependencies": {
81
- "@takumi-rs/core-darwin-x64": "1.0.0-rc.2",
82
- "@takumi-rs/core-darwin-arm64": "1.0.0-rc.2",
83
- "@takumi-rs/core-linux-arm64-gnu": "1.0.0-rc.2",
84
- "@takumi-rs/core-linux-arm64-musl": "1.0.0-rc.2",
85
- "@takumi-rs/core-win32-arm64-msvc": "1.0.0-rc.2",
86
- "@takumi-rs/core-linux-x64-gnu": "1.0.0-rc.2",
87
- "@takumi-rs/core-linux-x64-musl": "1.0.0-rc.2",
88
- "@takumi-rs/core-win32-x64-msvc": "1.0.0-rc.2"
81
+ "@takumi-rs/core-darwin-x64": "1.0.0-rc.3",
82
+ "@takumi-rs/core-darwin-arm64": "1.0.0-rc.3",
83
+ "@takumi-rs/core-linux-arm64-gnu": "1.0.0-rc.3",
84
+ "@takumi-rs/core-linux-arm64-musl": "1.0.0-rc.3",
85
+ "@takumi-rs/core-win32-arm64-msvc": "1.0.0-rc.3",
86
+ "@takumi-rs/core-linux-x64-gnu": "1.0.0-rc.3",
87
+ "@takumi-rs/core-linux-x64-musl": "1.0.0-rc.3",
88
+ "@takumi-rs/core-win32-x64-msvc": "1.0.0-rc.3"
89
89
  }
90
90
  }