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