@takumi-rs/core 1.0.0-rc.8 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/export.cjs CHANGED
@@ -1,6 +1,8 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ let node_module = require(/* turbopackOptional: true */ "node:module");
3
+ let _takumi_rs_helpers = require(/* turbopackOptional: true */ "@takumi-rs/helpers");
2
4
  //#region index.js
3
- const require$1 = (0, require(/* turbopackOptional: true */ "node:module").createRequire)(require(/* turbopackOptional: true */ "url").pathToFileURL(__filename).href);
5
+ const require$1 = (0, node_module.createRequire)(require(/* turbopackOptional: true */ "url").pathToFileURL(__filename).href);
4
6
  new URL(".", require(/* turbopackOptional: true */ "url").pathToFileURL(__filename).href).pathname;
5
7
  const { readFileSync } = require$1(/* turbopackOptional: true */ "node:fs");
6
8
  let nativeBinding = null;
@@ -58,7 +60,7 @@ function requireNative() {
58
60
  try {
59
61
  const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-android-arm64/core.android-arm64.node");
60
62
  const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-android-arm64/package.json").version;
61
- if (bindingPackageVersion !== "1.0.0-rc.8" && 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.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
63
+ if (bindingPackageVersion !== "1.0.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 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
62
64
  return binding;
63
65
  } catch (e) {
64
66
  loadErrors.push(e);
@@ -72,7 +74,7 @@ function requireNative() {
72
74
  try {
73
75
  const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-android-arm-eabi/core.android-arm-eabi.node");
74
76
  const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-android-arm-eabi/package.json").version;
75
- if (bindingPackageVersion !== "1.0.0-rc.8" && 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.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
77
+ if (bindingPackageVersion !== "1.0.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 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
76
78
  return binding;
77
79
  } catch (e) {
78
80
  loadErrors.push(e);
@@ -89,7 +91,7 @@ function requireNative() {
89
91
  try {
90
92
  const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-win32-x64-gnu/core.win32-x64-gnu.node");
91
93
  const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-win32-x64-gnu/package.json").version;
92
- if (bindingPackageVersion !== "1.0.0-rc.8" && 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.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
94
+ if (bindingPackageVersion !== "1.0.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 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
93
95
  return binding;
94
96
  } catch (e) {
95
97
  loadErrors.push(e);
@@ -103,7 +105,7 @@ function requireNative() {
103
105
  try {
104
106
  const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-win32-x64-msvc/core.win32-x64-msvc.node");
105
107
  const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-win32-x64-msvc/package.json").version;
106
- if (bindingPackageVersion !== "1.0.0-rc.8" && 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.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
108
+ if (bindingPackageVersion !== "1.0.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 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
107
109
  return binding;
108
110
  } catch (e) {
109
111
  loadErrors.push(e);
@@ -118,7 +120,7 @@ function requireNative() {
118
120
  try {
119
121
  const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-win32-ia32-msvc/core.win32-ia32-msvc.node");
120
122
  const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-win32-ia32-msvc/package.json").version;
121
- if (bindingPackageVersion !== "1.0.0-rc.8" && 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.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
123
+ if (bindingPackageVersion !== "1.0.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 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
122
124
  return binding;
123
125
  } catch (e) {
124
126
  loadErrors.push(e);
@@ -132,7 +134,7 @@ function requireNative() {
132
134
  try {
133
135
  const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-win32-arm64-msvc/core.win32-arm64-msvc.node");
134
136
  const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-win32-arm64-msvc/package.json").version;
135
- if (bindingPackageVersion !== "1.0.0-rc.8" && 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.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
137
+ if (bindingPackageVersion !== "1.0.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 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
136
138
  return binding;
137
139
  } catch (e) {
138
140
  loadErrors.push(e);
@@ -147,7 +149,7 @@ function requireNative() {
147
149
  try {
148
150
  const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-darwin-universal/core.darwin-universal.node");
149
151
  const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-darwin-universal/package.json").version;
150
- if (bindingPackageVersion !== "1.0.0-rc.8" && 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.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
152
+ if (bindingPackageVersion !== "1.0.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 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
151
153
  return binding;
152
154
  } catch (e) {
153
155
  loadErrors.push(e);
@@ -161,7 +163,7 @@ function requireNative() {
161
163
  try {
162
164
  const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-darwin-x64/core.darwin-x64.node");
163
165
  const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-darwin-x64/package.json").version;
164
- if (bindingPackageVersion !== "1.0.0-rc.8" && 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.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
166
+ if (bindingPackageVersion !== "1.0.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 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
165
167
  return binding;
166
168
  } catch (e) {
167
169
  loadErrors.push(e);
@@ -175,7 +177,7 @@ function requireNative() {
175
177
  try {
176
178
  const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-darwin-arm64/core.darwin-arm64.node");
177
179
  const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-darwin-arm64/package.json").version;
178
- if (bindingPackageVersion !== "1.0.0-rc.8" && 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.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
180
+ if (bindingPackageVersion !== "1.0.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 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
179
181
  return binding;
180
182
  } catch (e) {
181
183
  loadErrors.push(e);
@@ -190,7 +192,7 @@ function requireNative() {
190
192
  try {
191
193
  const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-freebsd-x64/core.freebsd-x64.node");
192
194
  const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-freebsd-x64/package.json").version;
193
- if (bindingPackageVersion !== "1.0.0-rc.8" && 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.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
195
+ if (bindingPackageVersion !== "1.0.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 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
194
196
  return binding;
195
197
  } catch (e) {
196
198
  loadErrors.push(e);
@@ -204,7 +206,7 @@ function requireNative() {
204
206
  try {
205
207
  const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-freebsd-arm64/core.freebsd-arm64.node");
206
208
  const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-freebsd-arm64/package.json").version;
207
- if (bindingPackageVersion !== "1.0.0-rc.8" && 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.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
209
+ if (bindingPackageVersion !== "1.0.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 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
208
210
  return binding;
209
211
  } catch (e) {
210
212
  loadErrors.push(e);
@@ -219,7 +221,7 @@ function requireNative() {
219
221
  try {
220
222
  const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-x64-musl/core.linux-x64-musl.node");
221
223
  const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-x64-musl/package.json").version;
222
- if (bindingPackageVersion !== "1.0.0-rc.8" && 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.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
224
+ if (bindingPackageVersion !== "1.0.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 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
223
225
  return binding;
224
226
  } catch (e) {
225
227
  loadErrors.push(e);
@@ -233,7 +235,7 @@ function requireNative() {
233
235
  try {
234
236
  const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-x64-gnu/core.linux-x64-gnu.node");
235
237
  const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-x64-gnu/package.json").version;
236
- if (bindingPackageVersion !== "1.0.0-rc.8" && 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.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
238
+ if (bindingPackageVersion !== "1.0.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 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
237
239
  return binding;
238
240
  } catch (e) {
239
241
  loadErrors.push(e);
@@ -248,7 +250,7 @@ function requireNative() {
248
250
  try {
249
251
  const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm64-musl/core.linux-arm64-musl.node");
250
252
  const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm64-musl/package.json").version;
251
- if (bindingPackageVersion !== "1.0.0-rc.8" && 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.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
253
+ if (bindingPackageVersion !== "1.0.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 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
252
254
  return binding;
253
255
  } catch (e) {
254
256
  loadErrors.push(e);
@@ -262,7 +264,7 @@ function requireNative() {
262
264
  try {
263
265
  const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm64-gnu/core.linux-arm64-gnu.node");
264
266
  const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm64-gnu/package.json").version;
265
- if (bindingPackageVersion !== "1.0.0-rc.8" && 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.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
267
+ if (bindingPackageVersion !== "1.0.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 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
266
268
  return binding;
267
269
  } catch (e) {
268
270
  loadErrors.push(e);
@@ -277,7 +279,7 @@ function requireNative() {
277
279
  try {
278
280
  const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm-musleabihf/core.linux-arm-musleabihf.node");
279
281
  const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm-musleabihf/package.json").version;
280
- if (bindingPackageVersion !== "1.0.0-rc.8" && 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.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
282
+ if (bindingPackageVersion !== "1.0.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 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
281
283
  return binding;
282
284
  } catch (e) {
283
285
  loadErrors.push(e);
@@ -291,7 +293,7 @@ function requireNative() {
291
293
  try {
292
294
  const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm-gnueabihf/core.linux-arm-gnueabihf.node");
293
295
  const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm-gnueabihf/package.json").version;
294
- if (bindingPackageVersion !== "1.0.0-rc.8" && 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.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
296
+ if (bindingPackageVersion !== "1.0.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 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
295
297
  return binding;
296
298
  } catch (e) {
297
299
  loadErrors.push(e);
@@ -306,7 +308,7 @@ function requireNative() {
306
308
  try {
307
309
  const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-loong64-musl/core.linux-loong64-musl.node");
308
310
  const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-loong64-musl/package.json").version;
309
- if (bindingPackageVersion !== "1.0.0-rc.8" && 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.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
311
+ if (bindingPackageVersion !== "1.0.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 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
310
312
  return binding;
311
313
  } catch (e) {
312
314
  loadErrors.push(e);
@@ -320,7 +322,7 @@ function requireNative() {
320
322
  try {
321
323
  const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-loong64-gnu/core.linux-loong64-gnu.node");
322
324
  const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-loong64-gnu/package.json").version;
323
- if (bindingPackageVersion !== "1.0.0-rc.8" && 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.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
325
+ if (bindingPackageVersion !== "1.0.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 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
324
326
  return binding;
325
327
  } catch (e) {
326
328
  loadErrors.push(e);
@@ -335,7 +337,7 @@ function requireNative() {
335
337
  try {
336
338
  const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-riscv64-musl/core.linux-riscv64-musl.node");
337
339
  const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-riscv64-musl/package.json").version;
338
- if (bindingPackageVersion !== "1.0.0-rc.8" && 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.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
340
+ if (bindingPackageVersion !== "1.0.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 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
339
341
  return binding;
340
342
  } catch (e) {
341
343
  loadErrors.push(e);
@@ -349,7 +351,7 @@ function requireNative() {
349
351
  try {
350
352
  const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-riscv64-gnu/core.linux-riscv64-gnu.node");
351
353
  const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-riscv64-gnu/package.json").version;
352
- if (bindingPackageVersion !== "1.0.0-rc.8" && 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.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
354
+ if (bindingPackageVersion !== "1.0.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 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
353
355
  return binding;
354
356
  } catch (e) {
355
357
  loadErrors.push(e);
@@ -364,7 +366,7 @@ function requireNative() {
364
366
  try {
365
367
  const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-ppc64-gnu/core.linux-ppc64-gnu.node");
366
368
  const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-ppc64-gnu/package.json").version;
367
- if (bindingPackageVersion !== "1.0.0-rc.8" && 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.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
369
+ if (bindingPackageVersion !== "1.0.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 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
368
370
  return binding;
369
371
  } catch (e) {
370
372
  loadErrors.push(e);
@@ -378,7 +380,7 @@ function requireNative() {
378
380
  try {
379
381
  const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-s390x-gnu/core.linux-s390x-gnu.node");
380
382
  const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-linux-s390x-gnu/package.json").version;
381
- if (bindingPackageVersion !== "1.0.0-rc.8" && 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.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
383
+ if (bindingPackageVersion !== "1.0.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 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
382
384
  return binding;
383
385
  } catch (e) {
384
386
  loadErrors.push(e);
@@ -393,7 +395,7 @@ function requireNative() {
393
395
  try {
394
396
  const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-openharmony-arm64/core.openharmony-arm64.node");
395
397
  const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-openharmony-arm64/package.json").version;
396
- if (bindingPackageVersion !== "1.0.0-rc.8" && 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.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
398
+ if (bindingPackageVersion !== "1.0.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 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
397
399
  return binding;
398
400
  } catch (e) {
399
401
  loadErrors.push(e);
@@ -407,7 +409,7 @@ function requireNative() {
407
409
  try {
408
410
  const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-openharmony-x64/core.openharmony-x64.node");
409
411
  const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-openharmony-x64/package.json").version;
410
- if (bindingPackageVersion !== "1.0.0-rc.8" && 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.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
412
+ if (bindingPackageVersion !== "1.0.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 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
411
413
  return binding;
412
414
  } catch (e) {
413
415
  loadErrors.push(e);
@@ -421,7 +423,7 @@ function requireNative() {
421
423
  try {
422
424
  const binding = require$1(/* turbopackOptional: true */ "@takumi-rs/core-openharmony-arm/core.openharmony-arm.node");
423
425
  const bindingPackageVersion = require$1(/* turbopackOptional: true */ "@takumi-rs/core-openharmony-arm/package.json").version;
424
- if (bindingPackageVersion !== "1.0.0-rc.8" && 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.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
426
+ if (bindingPackageVersion !== "1.0.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 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
425
427
  return binding;
426
428
  } catch (e) {
427
429
  loadErrors.push(e);
@@ -462,7 +464,7 @@ if (!nativeBinding) {
462
464
  }) });
463
465
  throw new Error(`Failed to load native binding`);
464
466
  }
465
- const { Renderer: Renderer$1, AnimationOutputFormat, DitheringAlgorithm, extractResourceUrls, OutputFormat } = nativeBinding;
467
+ const { Renderer: Renderer$1, AnimationOutputFormat, DitheringAlgorithm, OutputFormat } = nativeBinding;
466
468
  //#endregion
467
469
  //#region src/export.ts
468
470
  var Renderer = class extends Renderer$1 {
@@ -552,4 +554,9 @@ function isBuffer(data) {
552
554
  }
553
555
  //#endregion
554
556
  exports.Renderer = Renderer;
555
- exports.extractResourceUrls = extractResourceUrls;
557
+ Object.defineProperty(exports, "extractResourceUrls", {
558
+ enumerable: true,
559
+ get: function() {
560
+ return _takumi_rs_helpers.extractResourceUrls;
561
+ }
562
+ });
package/dist/export.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { ContainerNode, ImageNode, Node, NodeMetadata, TextNode } from "@takumi-rs/helpers";
1
+ import { ContainerNode, ImageNode, Node, NodeMetadata, TextNode, extractResourceUrls } from "@takumi-rs/helpers";
2
2
  import { Properties } from "csstype";
3
3
 
4
4
  //#region index.d.ts
@@ -104,8 +104,6 @@ interface EncodeFramesOptions {
104
104
  */
105
105
  devicePixelRatio?: number;
106
106
  }
107
- /** Collects the fetch task urls from the node. */
108
- declare function extractResourceUrls(node: Node): Array<string>;
109
107
  /** An image source with its URL and raw data. */
110
108
  interface ImageSource {
111
109
  /** The source URL of the image. */
@@ -140,7 +138,7 @@ interface MeasuredTextRun {
140
138
  height: number;
141
139
  }
142
140
  /** Output format for static images. */
143
- type OutputFormat = /** WebP format. */'webp' | /** PNG format. */'png' | /** JPEG format. */'jpeg' | /** Raw pixels format. */'raw';
141
+ type OutputFormat = /** WebP format. */'webp' | /** PNG format. */'png' | /** JPEG format. */'jpeg' | /** ICO format. */'ico' | /** Raw pixels format. */'raw';
144
142
  /** Options for rendering a sequential scene animation. */
145
143
  interface RenderAnimationOptions {
146
144
  /** The scenes to render sequentially. */
@@ -202,14 +200,14 @@ type ImageSourceLoader = Omit<ImageSource, "data"> & {
202
200
  };
203
201
  type FontLoader = Font | (Omit<FontDetails, "data"> & {
204
202
  key?: string;
205
- data: (() => Promise<FontDetails["data"]>) | (() => FontDetails["data"]);
203
+ data: FontDetails["data"] | (() => Promise<FontDetails["data"]> | FontDetails["data"]);
206
204
  });
207
205
  type ImageSourceLoaderSync = Omit<ImageSource, "data"> & {
208
206
  data: ImageSource["data"] | (() => ImageSource["data"]);
209
207
  };
210
208
  type FontLoaderSync = Font | (Omit<FontDetails, "data"> & {
211
209
  key?: string;
212
- data: () => FontDetails["data"];
210
+ data: FontDetails["data"] | (() => FontDetails["data"]);
213
211
  });
214
212
  declare class Renderer extends Renderer$1 {
215
213
  private fontsMark;
package/dist/export.d.mts CHANGED
@@ -1,8 +1,9 @@
1
+ import { extractResourceUrls } from "@takumi-rs/helpers";
2
+
1
3
  //#region index.d.ts
2
4
  declare const Renderer$1: any;
3
5
  declare const AnimationOutputFormat: any;
4
6
  declare const DitheringAlgorithm: any;
5
- declare const extractResourceUrls: any;
6
7
  declare const OutputFormat: any;
7
8
  //#endregion
8
9
  //#region src/export.d.ts
@@ -11,14 +12,14 @@ type ImageSourceLoader = Omit<ImageSource, "data"> & {
11
12
  };
12
13
  type FontLoader = Font | (Omit<FontDetails, "data"> & {
13
14
  key?: string;
14
- data: (() => Promise<FontDetails["data"]>) | (() => FontDetails["data"]);
15
+ data: FontDetails["data"] | (() => Promise<FontDetails["data"]> | FontDetails["data"]);
15
16
  });
16
17
  type ImageSourceLoaderSync = Omit<ImageSource, "data"> & {
17
18
  data: ImageSource["data"] | (() => ImageSource["data"]);
18
19
  };
19
20
  type FontLoaderSync = Font | (Omit<FontDetails, "data"> & {
20
21
  key?: string;
21
- data: () => FontDetails["data"];
22
+ data: FontDetails["data"] | (() => FontDetails["data"]);
22
23
  });
23
24
  declare class Renderer extends Renderer$1 {
24
25
  private fontsMark;
package/dist/export.mjs CHANGED
@@ -1,4 +1,5 @@
1
1
  import { createRequire } from "node:module";
2
+ import { extractResourceUrls } from "@takumi-rs/helpers";
2
3
  //#region index.js
3
4
  const require = createRequire(import.meta.url);
4
5
  new URL(".", import.meta.url).pathname;
@@ -58,7 +59,7 @@ function requireNative() {
58
59
  try {
59
60
  const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-android-arm64/core.android-arm64.node");
60
61
  const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-android-arm64/package.json").version;
61
- if (bindingPackageVersion !== "1.0.0-rc.8" && 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.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
62
+ if (bindingPackageVersion !== "1.0.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 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
62
63
  return binding;
63
64
  } catch (e) {
64
65
  loadErrors.push(e);
@@ -72,7 +73,7 @@ function requireNative() {
72
73
  try {
73
74
  const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-android-arm-eabi/core.android-arm-eabi.node");
74
75
  const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-android-arm-eabi/package.json").version;
75
- if (bindingPackageVersion !== "1.0.0-rc.8" && 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.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
76
+ if (bindingPackageVersion !== "1.0.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 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
76
77
  return binding;
77
78
  } catch (e) {
78
79
  loadErrors.push(e);
@@ -89,7 +90,7 @@ function requireNative() {
89
90
  try {
90
91
  const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-win32-x64-gnu/core.win32-x64-gnu.node");
91
92
  const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-win32-x64-gnu/package.json").version;
92
- if (bindingPackageVersion !== "1.0.0-rc.8" && 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.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
93
+ if (bindingPackageVersion !== "1.0.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 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
93
94
  return binding;
94
95
  } catch (e) {
95
96
  loadErrors.push(e);
@@ -103,7 +104,7 @@ function requireNative() {
103
104
  try {
104
105
  const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-win32-x64-msvc/core.win32-x64-msvc.node");
105
106
  const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-win32-x64-msvc/package.json").version;
106
- if (bindingPackageVersion !== "1.0.0-rc.8" && 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.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
107
+ if (bindingPackageVersion !== "1.0.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 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
107
108
  return binding;
108
109
  } catch (e) {
109
110
  loadErrors.push(e);
@@ -118,7 +119,7 @@ function requireNative() {
118
119
  try {
119
120
  const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-win32-ia32-msvc/core.win32-ia32-msvc.node");
120
121
  const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-win32-ia32-msvc/package.json").version;
121
- if (bindingPackageVersion !== "1.0.0-rc.8" && 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.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
122
+ if (bindingPackageVersion !== "1.0.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 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
122
123
  return binding;
123
124
  } catch (e) {
124
125
  loadErrors.push(e);
@@ -132,7 +133,7 @@ function requireNative() {
132
133
  try {
133
134
  const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-win32-arm64-msvc/core.win32-arm64-msvc.node");
134
135
  const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-win32-arm64-msvc/package.json").version;
135
- if (bindingPackageVersion !== "1.0.0-rc.8" && 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.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
136
+ if (bindingPackageVersion !== "1.0.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 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
136
137
  return binding;
137
138
  } catch (e) {
138
139
  loadErrors.push(e);
@@ -147,7 +148,7 @@ function requireNative() {
147
148
  try {
148
149
  const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-darwin-universal/core.darwin-universal.node");
149
150
  const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-darwin-universal/package.json").version;
150
- if (bindingPackageVersion !== "1.0.0-rc.8" && 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.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
151
+ if (bindingPackageVersion !== "1.0.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 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
151
152
  return binding;
152
153
  } catch (e) {
153
154
  loadErrors.push(e);
@@ -161,7 +162,7 @@ function requireNative() {
161
162
  try {
162
163
  const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-darwin-x64/core.darwin-x64.node");
163
164
  const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-darwin-x64/package.json").version;
164
- if (bindingPackageVersion !== "1.0.0-rc.8" && 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.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
165
+ if (bindingPackageVersion !== "1.0.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 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
165
166
  return binding;
166
167
  } catch (e) {
167
168
  loadErrors.push(e);
@@ -175,7 +176,7 @@ function requireNative() {
175
176
  try {
176
177
  const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-darwin-arm64/core.darwin-arm64.node");
177
178
  const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-darwin-arm64/package.json").version;
178
- if (bindingPackageVersion !== "1.0.0-rc.8" && 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.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
179
+ if (bindingPackageVersion !== "1.0.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 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
179
180
  return binding;
180
181
  } catch (e) {
181
182
  loadErrors.push(e);
@@ -190,7 +191,7 @@ function requireNative() {
190
191
  try {
191
192
  const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-freebsd-x64/core.freebsd-x64.node");
192
193
  const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-freebsd-x64/package.json").version;
193
- if (bindingPackageVersion !== "1.0.0-rc.8" && 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.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
194
+ if (bindingPackageVersion !== "1.0.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 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
194
195
  return binding;
195
196
  } catch (e) {
196
197
  loadErrors.push(e);
@@ -204,7 +205,7 @@ function requireNative() {
204
205
  try {
205
206
  const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-freebsd-arm64/core.freebsd-arm64.node");
206
207
  const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-freebsd-arm64/package.json").version;
207
- if (bindingPackageVersion !== "1.0.0-rc.8" && 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.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
208
+ if (bindingPackageVersion !== "1.0.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 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
208
209
  return binding;
209
210
  } catch (e) {
210
211
  loadErrors.push(e);
@@ -219,7 +220,7 @@ function requireNative() {
219
220
  try {
220
221
  const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-x64-musl/core.linux-x64-musl.node");
221
222
  const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-x64-musl/package.json").version;
222
- if (bindingPackageVersion !== "1.0.0-rc.8" && 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.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
223
+ if (bindingPackageVersion !== "1.0.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 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
223
224
  return binding;
224
225
  } catch (e) {
225
226
  loadErrors.push(e);
@@ -233,7 +234,7 @@ function requireNative() {
233
234
  try {
234
235
  const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-x64-gnu/core.linux-x64-gnu.node");
235
236
  const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-x64-gnu/package.json").version;
236
- if (bindingPackageVersion !== "1.0.0-rc.8" && 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.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
237
+ if (bindingPackageVersion !== "1.0.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 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
237
238
  return binding;
238
239
  } catch (e) {
239
240
  loadErrors.push(e);
@@ -248,7 +249,7 @@ function requireNative() {
248
249
  try {
249
250
  const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm64-musl/core.linux-arm64-musl.node");
250
251
  const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm64-musl/package.json").version;
251
- if (bindingPackageVersion !== "1.0.0-rc.8" && 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.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
252
+ if (bindingPackageVersion !== "1.0.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 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
252
253
  return binding;
253
254
  } catch (e) {
254
255
  loadErrors.push(e);
@@ -262,7 +263,7 @@ function requireNative() {
262
263
  try {
263
264
  const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm64-gnu/core.linux-arm64-gnu.node");
264
265
  const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm64-gnu/package.json").version;
265
- if (bindingPackageVersion !== "1.0.0-rc.8" && 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.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
266
+ if (bindingPackageVersion !== "1.0.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 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
266
267
  return binding;
267
268
  } catch (e) {
268
269
  loadErrors.push(e);
@@ -277,7 +278,7 @@ function requireNative() {
277
278
  try {
278
279
  const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm-musleabihf/core.linux-arm-musleabihf.node");
279
280
  const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm-musleabihf/package.json").version;
280
- if (bindingPackageVersion !== "1.0.0-rc.8" && 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.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
281
+ if (bindingPackageVersion !== "1.0.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 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
281
282
  return binding;
282
283
  } catch (e) {
283
284
  loadErrors.push(e);
@@ -291,7 +292,7 @@ function requireNative() {
291
292
  try {
292
293
  const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm-gnueabihf/core.linux-arm-gnueabihf.node");
293
294
  const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-arm-gnueabihf/package.json").version;
294
- if (bindingPackageVersion !== "1.0.0-rc.8" && 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.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
295
+ if (bindingPackageVersion !== "1.0.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 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
295
296
  return binding;
296
297
  } catch (e) {
297
298
  loadErrors.push(e);
@@ -306,7 +307,7 @@ function requireNative() {
306
307
  try {
307
308
  const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-loong64-musl/core.linux-loong64-musl.node");
308
309
  const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-loong64-musl/package.json").version;
309
- if (bindingPackageVersion !== "1.0.0-rc.8" && 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.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
310
+ if (bindingPackageVersion !== "1.0.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 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
310
311
  return binding;
311
312
  } catch (e) {
312
313
  loadErrors.push(e);
@@ -320,7 +321,7 @@ function requireNative() {
320
321
  try {
321
322
  const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-loong64-gnu/core.linux-loong64-gnu.node");
322
323
  const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-loong64-gnu/package.json").version;
323
- if (bindingPackageVersion !== "1.0.0-rc.8" && 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.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
324
+ if (bindingPackageVersion !== "1.0.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 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
324
325
  return binding;
325
326
  } catch (e) {
326
327
  loadErrors.push(e);
@@ -335,7 +336,7 @@ function requireNative() {
335
336
  try {
336
337
  const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-riscv64-musl/core.linux-riscv64-musl.node");
337
338
  const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-riscv64-musl/package.json").version;
338
- if (bindingPackageVersion !== "1.0.0-rc.8" && 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.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
339
+ if (bindingPackageVersion !== "1.0.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 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
339
340
  return binding;
340
341
  } catch (e) {
341
342
  loadErrors.push(e);
@@ -349,7 +350,7 @@ function requireNative() {
349
350
  try {
350
351
  const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-riscv64-gnu/core.linux-riscv64-gnu.node");
351
352
  const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-riscv64-gnu/package.json").version;
352
- if (bindingPackageVersion !== "1.0.0-rc.8" && 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.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
353
+ if (bindingPackageVersion !== "1.0.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 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
353
354
  return binding;
354
355
  } catch (e) {
355
356
  loadErrors.push(e);
@@ -364,7 +365,7 @@ function requireNative() {
364
365
  try {
365
366
  const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-ppc64-gnu/core.linux-ppc64-gnu.node");
366
367
  const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-ppc64-gnu/package.json").version;
367
- if (bindingPackageVersion !== "1.0.0-rc.8" && 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.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
368
+ if (bindingPackageVersion !== "1.0.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 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
368
369
  return binding;
369
370
  } catch (e) {
370
371
  loadErrors.push(e);
@@ -378,7 +379,7 @@ function requireNative() {
378
379
  try {
379
380
  const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-s390x-gnu/core.linux-s390x-gnu.node");
380
381
  const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-linux-s390x-gnu/package.json").version;
381
- if (bindingPackageVersion !== "1.0.0-rc.8" && 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.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
382
+ if (bindingPackageVersion !== "1.0.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 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
382
383
  return binding;
383
384
  } catch (e) {
384
385
  loadErrors.push(e);
@@ -393,7 +394,7 @@ function requireNative() {
393
394
  try {
394
395
  const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-openharmony-arm64/core.openharmony-arm64.node");
395
396
  const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-openharmony-arm64/package.json").version;
396
- if (bindingPackageVersion !== "1.0.0-rc.8" && 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.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
397
+ if (bindingPackageVersion !== "1.0.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 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
397
398
  return binding;
398
399
  } catch (e) {
399
400
  loadErrors.push(e);
@@ -407,7 +408,7 @@ function requireNative() {
407
408
  try {
408
409
  const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-openharmony-x64/core.openharmony-x64.node");
409
410
  const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-openharmony-x64/package.json").version;
410
- if (bindingPackageVersion !== "1.0.0-rc.8" && 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.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
411
+ if (bindingPackageVersion !== "1.0.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 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
411
412
  return binding;
412
413
  } catch (e) {
413
414
  loadErrors.push(e);
@@ -421,7 +422,7 @@ function requireNative() {
421
422
  try {
422
423
  const binding = require(/* turbopackOptional: true */ "@takumi-rs/core-openharmony-arm/core.openharmony-arm.node");
423
424
  const bindingPackageVersion = require(/* turbopackOptional: true */ "@takumi-rs/core-openharmony-arm/package.json").version;
424
- if (bindingPackageVersion !== "1.0.0-rc.8" && 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.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
425
+ if (bindingPackageVersion !== "1.0.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 1.0.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
425
426
  return binding;
426
427
  } catch (e) {
427
428
  loadErrors.push(e);
@@ -462,7 +463,7 @@ if (!nativeBinding) {
462
463
  }) });
463
464
  throw new Error(`Failed to load native binding`);
464
465
  }
465
- const { Renderer: Renderer$1, AnimationOutputFormat, DitheringAlgorithm, extractResourceUrls, OutputFormat } = nativeBinding;
466
+ const { Renderer: Renderer$1, AnimationOutputFormat, DitheringAlgorithm, OutputFormat } = nativeBinding;
466
467
  //#endregion
467
468
  //#region src/export.ts
468
469
  var Renderer = class extends Renderer$1 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@takumi-rs/core",
3
- "version": "1.0.0-rc.8",
3
+ "version": "1.0.0",
4
4
  "keywords": [
5
5
  "css",
6
6
  "image",
@@ -46,10 +46,10 @@
46
46
  "bench": "bun tests/bench/index.tsx"
47
47
  },
48
48
  "dependencies": {
49
- "@takumi-rs/helpers": "1.0.0-rc.8"
49
+ "@takumi-rs/helpers": "1.0.0"
50
50
  },
51
51
  "devDependencies": {
52
- "@napi-rs/cli": "3.5.1",
52
+ "@napi-rs/cli": "3.6.1",
53
53
  "@types/bun": "catalog:",
54
54
  "@types/react": "catalog:",
55
55
  "@types/react-dom": "catalog:",
@@ -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.8",
82
- "@takumi-rs/core-darwin-arm64": "1.0.0-rc.8",
83
- "@takumi-rs/core-linux-arm64-gnu": "1.0.0-rc.8",
84
- "@takumi-rs/core-linux-arm64-musl": "1.0.0-rc.8",
85
- "@takumi-rs/core-win32-arm64-msvc": "1.0.0-rc.8",
86
- "@takumi-rs/core-linux-x64-gnu": "1.0.0-rc.8",
87
- "@takumi-rs/core-linux-x64-musl": "1.0.0-rc.8",
88
- "@takumi-rs/core-win32-x64-msvc": "1.0.0-rc.8"
81
+ "@takumi-rs/core-darwin-x64": "1.0.0",
82
+ "@takumi-rs/core-darwin-arm64": "1.0.0",
83
+ "@takumi-rs/core-linux-arm64-gnu": "1.0.0",
84
+ "@takumi-rs/core-linux-arm64-musl": "1.0.0",
85
+ "@takumi-rs/core-win32-arm64-msvc": "1.0.0",
86
+ "@takumi-rs/core-linux-x64-gnu": "1.0.0",
87
+ "@takumi-rs/core-linux-x64-musl": "1.0.0",
88
+ "@takumi-rs/core-win32-x64-msvc": "1.0.0"
89
89
  }
90
90
  }