@atbash/sdk 0.19.2-dev.0 → 0.20.0-dev.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/browser.d.mts +105 -8
- package/dist/browser.mjs +283 -122
- package/dist/index.d.mts +105 -8
- package/dist/index.d.ts +105 -8
- package/dist/index.js +237 -61
- package/dist/index.mjs +246 -75
- package/index.js +58 -54
- package/package.json +8 -6
package/index.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
// @ts-nocheck
|
|
3
3
|
/* auto-generated by NAPI-RS */
|
|
4
|
+
// Every version check below is bumped by release-please (extra-files, generic
|
|
5
|
+
// updater) in the same release PR as package.json; keep them inside this block.
|
|
6
|
+
// x-release-please-start-version
|
|
4
7
|
|
|
5
8
|
const { readFileSync } = require('fs')
|
|
6
9
|
let nativeBinding = null
|
|
@@ -89,8 +92,8 @@ function requireNative() {
|
|
|
89
92
|
try {
|
|
90
93
|
const binding = require('@atbash/sdk-android-arm64')
|
|
91
94
|
const bindingPackageVersion = require('@atbash/sdk-android-arm64/package.json').version
|
|
92
|
-
if (bindingPackageVersion !== '0.
|
|
93
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
95
|
+
if (bindingPackageVersion !== '0.20.0-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
96
|
+
throw new Error(`Native binding package version mismatch, expected 0.20.0-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
94
97
|
}
|
|
95
98
|
return binding
|
|
96
99
|
} catch (e) {
|
|
@@ -105,8 +108,8 @@ function requireNative() {
|
|
|
105
108
|
try {
|
|
106
109
|
const binding = require('@atbash/sdk-android-arm-eabi')
|
|
107
110
|
const bindingPackageVersion = require('@atbash/sdk-android-arm-eabi/package.json').version
|
|
108
|
-
if (bindingPackageVersion !== '0.
|
|
109
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
111
|
+
if (bindingPackageVersion !== '0.20.0-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
112
|
+
throw new Error(`Native binding package version mismatch, expected 0.20.0-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
110
113
|
}
|
|
111
114
|
return binding
|
|
112
115
|
} catch (e) {
|
|
@@ -126,8 +129,8 @@ function requireNative() {
|
|
|
126
129
|
try {
|
|
127
130
|
const binding = require('@atbash/sdk-win32-x64-gnu')
|
|
128
131
|
const bindingPackageVersion = require('@atbash/sdk-win32-x64-gnu/package.json').version
|
|
129
|
-
if (bindingPackageVersion !== '0.
|
|
130
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
132
|
+
if (bindingPackageVersion !== '0.20.0-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
133
|
+
throw new Error(`Native binding package version mismatch, expected 0.20.0-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
131
134
|
}
|
|
132
135
|
return binding
|
|
133
136
|
} catch (e) {
|
|
@@ -142,8 +145,8 @@ function requireNative() {
|
|
|
142
145
|
try {
|
|
143
146
|
const binding = require('@atbash/sdk-win32-x64-msvc')
|
|
144
147
|
const bindingPackageVersion = require('@atbash/sdk-win32-x64-msvc/package.json').version
|
|
145
|
-
if (bindingPackageVersion !== '0.
|
|
146
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
148
|
+
if (bindingPackageVersion !== '0.20.0-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
149
|
+
throw new Error(`Native binding package version mismatch, expected 0.20.0-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
147
150
|
}
|
|
148
151
|
return binding
|
|
149
152
|
} catch (e) {
|
|
@@ -159,8 +162,8 @@ function requireNative() {
|
|
|
159
162
|
try {
|
|
160
163
|
const binding = require('@atbash/sdk-win32-ia32-msvc')
|
|
161
164
|
const bindingPackageVersion = require('@atbash/sdk-win32-ia32-msvc/package.json').version
|
|
162
|
-
if (bindingPackageVersion !== '0.
|
|
163
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
165
|
+
if (bindingPackageVersion !== '0.20.0-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
166
|
+
throw new Error(`Native binding package version mismatch, expected 0.20.0-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
164
167
|
}
|
|
165
168
|
return binding
|
|
166
169
|
} catch (e) {
|
|
@@ -175,8 +178,8 @@ function requireNative() {
|
|
|
175
178
|
try {
|
|
176
179
|
const binding = require('@atbash/sdk-win32-arm64-msvc')
|
|
177
180
|
const bindingPackageVersion = require('@atbash/sdk-win32-arm64-msvc/package.json').version
|
|
178
|
-
if (bindingPackageVersion !== '0.
|
|
179
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
181
|
+
if (bindingPackageVersion !== '0.20.0-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
182
|
+
throw new Error(`Native binding package version mismatch, expected 0.20.0-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
180
183
|
}
|
|
181
184
|
return binding
|
|
182
185
|
} catch (e) {
|
|
@@ -194,8 +197,8 @@ function requireNative() {
|
|
|
194
197
|
try {
|
|
195
198
|
const binding = require('@atbash/sdk-darwin-universal')
|
|
196
199
|
const bindingPackageVersion = require('@atbash/sdk-darwin-universal/package.json').version
|
|
197
|
-
if (bindingPackageVersion !== '0.
|
|
198
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
200
|
+
if (bindingPackageVersion !== '0.20.0-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
201
|
+
throw new Error(`Native binding package version mismatch, expected 0.20.0-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
199
202
|
}
|
|
200
203
|
return binding
|
|
201
204
|
} catch (e) {
|
|
@@ -210,8 +213,8 @@ function requireNative() {
|
|
|
210
213
|
try {
|
|
211
214
|
const binding = require('@atbash/sdk-darwin-x64')
|
|
212
215
|
const bindingPackageVersion = require('@atbash/sdk-darwin-x64/package.json').version
|
|
213
|
-
if (bindingPackageVersion !== '0.
|
|
214
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
216
|
+
if (bindingPackageVersion !== '0.20.0-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
217
|
+
throw new Error(`Native binding package version mismatch, expected 0.20.0-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
215
218
|
}
|
|
216
219
|
return binding
|
|
217
220
|
} catch (e) {
|
|
@@ -226,8 +229,8 @@ function requireNative() {
|
|
|
226
229
|
try {
|
|
227
230
|
const binding = require('@atbash/sdk-darwin-arm64')
|
|
228
231
|
const bindingPackageVersion = require('@atbash/sdk-darwin-arm64/package.json').version
|
|
229
|
-
if (bindingPackageVersion !== '0.
|
|
230
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
232
|
+
if (bindingPackageVersion !== '0.20.0-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
233
|
+
throw new Error(`Native binding package version mismatch, expected 0.20.0-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
231
234
|
}
|
|
232
235
|
return binding
|
|
233
236
|
} catch (e) {
|
|
@@ -246,8 +249,8 @@ function requireNative() {
|
|
|
246
249
|
try {
|
|
247
250
|
const binding = require('@atbash/sdk-freebsd-x64')
|
|
248
251
|
const bindingPackageVersion = require('@atbash/sdk-freebsd-x64/package.json').version
|
|
249
|
-
if (bindingPackageVersion !== '0.
|
|
250
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
252
|
+
if (bindingPackageVersion !== '0.20.0-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
253
|
+
throw new Error(`Native binding package version mismatch, expected 0.20.0-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
251
254
|
}
|
|
252
255
|
return binding
|
|
253
256
|
} catch (e) {
|
|
@@ -262,8 +265,8 @@ function requireNative() {
|
|
|
262
265
|
try {
|
|
263
266
|
const binding = require('@atbash/sdk-freebsd-arm64')
|
|
264
267
|
const bindingPackageVersion = require('@atbash/sdk-freebsd-arm64/package.json').version
|
|
265
|
-
if (bindingPackageVersion !== '0.
|
|
266
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
268
|
+
if (bindingPackageVersion !== '0.20.0-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
269
|
+
throw new Error(`Native binding package version mismatch, expected 0.20.0-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
267
270
|
}
|
|
268
271
|
return binding
|
|
269
272
|
} catch (e) {
|
|
@@ -283,8 +286,8 @@ function requireNative() {
|
|
|
283
286
|
try {
|
|
284
287
|
const binding = require('@atbash/sdk-linux-x64-musl')
|
|
285
288
|
const bindingPackageVersion = require('@atbash/sdk-linux-x64-musl/package.json').version
|
|
286
|
-
if (bindingPackageVersion !== '0.
|
|
287
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
289
|
+
if (bindingPackageVersion !== '0.20.0-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
290
|
+
throw new Error(`Native binding package version mismatch, expected 0.20.0-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
288
291
|
}
|
|
289
292
|
return binding
|
|
290
293
|
} catch (e) {
|
|
@@ -299,8 +302,8 @@ function requireNative() {
|
|
|
299
302
|
try {
|
|
300
303
|
const binding = require('@atbash/sdk-linux-x64-gnu')
|
|
301
304
|
const bindingPackageVersion = require('@atbash/sdk-linux-x64-gnu/package.json').version
|
|
302
|
-
if (bindingPackageVersion !== '0.
|
|
303
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
305
|
+
if (bindingPackageVersion !== '0.20.0-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
306
|
+
throw new Error(`Native binding package version mismatch, expected 0.20.0-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
304
307
|
}
|
|
305
308
|
return binding
|
|
306
309
|
} catch (e) {
|
|
@@ -317,8 +320,8 @@ function requireNative() {
|
|
|
317
320
|
try {
|
|
318
321
|
const binding = require('@atbash/sdk-linux-arm64-musl')
|
|
319
322
|
const bindingPackageVersion = require('@atbash/sdk-linux-arm64-musl/package.json').version
|
|
320
|
-
if (bindingPackageVersion !== '0.
|
|
321
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
323
|
+
if (bindingPackageVersion !== '0.20.0-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
324
|
+
throw new Error(`Native binding package version mismatch, expected 0.20.0-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
322
325
|
}
|
|
323
326
|
return binding
|
|
324
327
|
} catch (e) {
|
|
@@ -333,8 +336,8 @@ function requireNative() {
|
|
|
333
336
|
try {
|
|
334
337
|
const binding = require('@atbash/sdk-linux-arm64-gnu')
|
|
335
338
|
const bindingPackageVersion = require('@atbash/sdk-linux-arm64-gnu/package.json').version
|
|
336
|
-
if (bindingPackageVersion !== '0.
|
|
337
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
339
|
+
if (bindingPackageVersion !== '0.20.0-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
340
|
+
throw new Error(`Native binding package version mismatch, expected 0.20.0-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
338
341
|
}
|
|
339
342
|
return binding
|
|
340
343
|
} catch (e) {
|
|
@@ -351,8 +354,8 @@ function requireNative() {
|
|
|
351
354
|
try {
|
|
352
355
|
const binding = require('@atbash/sdk-linux-arm-musleabihf')
|
|
353
356
|
const bindingPackageVersion = require('@atbash/sdk-linux-arm-musleabihf/package.json').version
|
|
354
|
-
if (bindingPackageVersion !== '0.
|
|
355
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
357
|
+
if (bindingPackageVersion !== '0.20.0-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
358
|
+
throw new Error(`Native binding package version mismatch, expected 0.20.0-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
356
359
|
}
|
|
357
360
|
return binding
|
|
358
361
|
} catch (e) {
|
|
@@ -367,8 +370,8 @@ function requireNative() {
|
|
|
367
370
|
try {
|
|
368
371
|
const binding = require('@atbash/sdk-linux-arm-gnueabihf')
|
|
369
372
|
const bindingPackageVersion = require('@atbash/sdk-linux-arm-gnueabihf/package.json').version
|
|
370
|
-
if (bindingPackageVersion !== '0.
|
|
371
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
373
|
+
if (bindingPackageVersion !== '0.20.0-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
374
|
+
throw new Error(`Native binding package version mismatch, expected 0.20.0-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
372
375
|
}
|
|
373
376
|
return binding
|
|
374
377
|
} catch (e) {
|
|
@@ -385,8 +388,8 @@ function requireNative() {
|
|
|
385
388
|
try {
|
|
386
389
|
const binding = require('@atbash/sdk-linux-loong64-musl')
|
|
387
390
|
const bindingPackageVersion = require('@atbash/sdk-linux-loong64-musl/package.json').version
|
|
388
|
-
if (bindingPackageVersion !== '0.
|
|
389
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
391
|
+
if (bindingPackageVersion !== '0.20.0-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
392
|
+
throw new Error(`Native binding package version mismatch, expected 0.20.0-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
390
393
|
}
|
|
391
394
|
return binding
|
|
392
395
|
} catch (e) {
|
|
@@ -401,8 +404,8 @@ function requireNative() {
|
|
|
401
404
|
try {
|
|
402
405
|
const binding = require('@atbash/sdk-linux-loong64-gnu')
|
|
403
406
|
const bindingPackageVersion = require('@atbash/sdk-linux-loong64-gnu/package.json').version
|
|
404
|
-
if (bindingPackageVersion !== '0.
|
|
405
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
407
|
+
if (bindingPackageVersion !== '0.20.0-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
408
|
+
throw new Error(`Native binding package version mismatch, expected 0.20.0-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
406
409
|
}
|
|
407
410
|
return binding
|
|
408
411
|
} catch (e) {
|
|
@@ -419,8 +422,8 @@ function requireNative() {
|
|
|
419
422
|
try {
|
|
420
423
|
const binding = require('@atbash/sdk-linux-riscv64-musl')
|
|
421
424
|
const bindingPackageVersion = require('@atbash/sdk-linux-riscv64-musl/package.json').version
|
|
422
|
-
if (bindingPackageVersion !== '0.
|
|
423
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
425
|
+
if (bindingPackageVersion !== '0.20.0-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
426
|
+
throw new Error(`Native binding package version mismatch, expected 0.20.0-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
424
427
|
}
|
|
425
428
|
return binding
|
|
426
429
|
} catch (e) {
|
|
@@ -435,8 +438,8 @@ function requireNative() {
|
|
|
435
438
|
try {
|
|
436
439
|
const binding = require('@atbash/sdk-linux-riscv64-gnu')
|
|
437
440
|
const bindingPackageVersion = require('@atbash/sdk-linux-riscv64-gnu/package.json').version
|
|
438
|
-
if (bindingPackageVersion !== '0.
|
|
439
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
441
|
+
if (bindingPackageVersion !== '0.20.0-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
442
|
+
throw new Error(`Native binding package version mismatch, expected 0.20.0-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
440
443
|
}
|
|
441
444
|
return binding
|
|
442
445
|
} catch (e) {
|
|
@@ -452,8 +455,8 @@ function requireNative() {
|
|
|
452
455
|
try {
|
|
453
456
|
const binding = require('@atbash/sdk-linux-ppc64-gnu')
|
|
454
457
|
const bindingPackageVersion = require('@atbash/sdk-linux-ppc64-gnu/package.json').version
|
|
455
|
-
if (bindingPackageVersion !== '0.
|
|
456
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
458
|
+
if (bindingPackageVersion !== '0.20.0-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
459
|
+
throw new Error(`Native binding package version mismatch, expected 0.20.0-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
457
460
|
}
|
|
458
461
|
return binding
|
|
459
462
|
} catch (e) {
|
|
@@ -468,8 +471,8 @@ function requireNative() {
|
|
|
468
471
|
try {
|
|
469
472
|
const binding = require('@atbash/sdk-linux-s390x-gnu')
|
|
470
473
|
const bindingPackageVersion = require('@atbash/sdk-linux-s390x-gnu/package.json').version
|
|
471
|
-
if (bindingPackageVersion !== '0.
|
|
472
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
474
|
+
if (bindingPackageVersion !== '0.20.0-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
475
|
+
throw new Error(`Native binding package version mismatch, expected 0.20.0-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
473
476
|
}
|
|
474
477
|
return binding
|
|
475
478
|
} catch (e) {
|
|
@@ -488,8 +491,8 @@ function requireNative() {
|
|
|
488
491
|
try {
|
|
489
492
|
const binding = require('@atbash/sdk-openharmony-arm64')
|
|
490
493
|
const bindingPackageVersion = require('@atbash/sdk-openharmony-arm64/package.json').version
|
|
491
|
-
if (bindingPackageVersion !== '0.
|
|
492
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
494
|
+
if (bindingPackageVersion !== '0.20.0-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
495
|
+
throw new Error(`Native binding package version mismatch, expected 0.20.0-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
493
496
|
}
|
|
494
497
|
return binding
|
|
495
498
|
} catch (e) {
|
|
@@ -504,8 +507,8 @@ function requireNative() {
|
|
|
504
507
|
try {
|
|
505
508
|
const binding = require('@atbash/sdk-openharmony-x64')
|
|
506
509
|
const bindingPackageVersion = require('@atbash/sdk-openharmony-x64/package.json').version
|
|
507
|
-
if (bindingPackageVersion !== '0.
|
|
508
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
510
|
+
if (bindingPackageVersion !== '0.20.0-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
511
|
+
throw new Error(`Native binding package version mismatch, expected 0.20.0-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
509
512
|
}
|
|
510
513
|
return binding
|
|
511
514
|
} catch (e) {
|
|
@@ -520,8 +523,8 @@ function requireNative() {
|
|
|
520
523
|
try {
|
|
521
524
|
const binding = require('@atbash/sdk-openharmony-arm')
|
|
522
525
|
const bindingPackageVersion = require('@atbash/sdk-openharmony-arm/package.json').version
|
|
523
|
-
if (bindingPackageVersion !== '0.
|
|
524
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
526
|
+
if (bindingPackageVersion !== '0.20.0-dev.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
527
|
+
throw new Error(`Native binding package version mismatch, expected 0.20.0-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
525
528
|
}
|
|
526
529
|
return binding
|
|
527
530
|
} catch (e) {
|
|
@@ -661,8 +664,8 @@ if (!nativeBinding || forceWasi) {
|
|
|
661
664
|
if (!candidateFailed) {
|
|
662
665
|
if (process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
663
666
|
const bindingPackageVersion = require('@atbash/sdk-wasm32-wasi/package.json').version
|
|
664
|
-
if (bindingPackageVersion !== '0.
|
|
665
|
-
throw new Error(`WASI binding package version mismatch, expected 0.
|
|
667
|
+
if (bindingPackageVersion !== '0.20.0-dev.0') {
|
|
668
|
+
throw new Error(`WASI binding package version mismatch, expected 0.20.0-dev.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
666
669
|
}
|
|
667
670
|
}
|
|
668
671
|
wasiBinding = require('@atbash/sdk-wasm32-wasi')
|
|
@@ -859,3 +862,4 @@ module.exports.validateRollbackReason = nativeBinding.validateRollbackReason
|
|
|
859
862
|
module.exports.validateScore = nativeBinding.validateScore
|
|
860
863
|
module.exports.verifyJudgeResponseSignature = nativeBinding.verifyJudgeResponseSignature
|
|
861
864
|
module.exports.verifySignature = nativeBinding.verifySignature
|
|
865
|
+
// x-release-please-end
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atbash/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.0-dev.0",
|
|
4
4
|
"description": "TypeScript SDK for Atbash — the safety layer that evaluates AI agent actions against operator-defined policies before execution.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"atbash",
|
|
@@ -54,7 +54,9 @@
|
|
|
54
54
|
],
|
|
55
55
|
"scripts": {
|
|
56
56
|
"build:native": "napi build --platform --release",
|
|
57
|
+
"postbuild:native": "node scripts/sync-loader-version.mjs",
|
|
57
58
|
"build:native:debug": "napi build --platform",
|
|
59
|
+
"postbuild:native:debug": "node scripts/sync-loader-version.mjs",
|
|
58
60
|
"gen:http": "openapi-typescript ../../spec/openapi.yaml -o src-ts/http/schema.ts",
|
|
59
61
|
"build:ts": "tsup && node scripts/assert-browser-bundle-clean.mjs",
|
|
60
62
|
"build": "npm run build:native && npm run build:ts",
|
|
@@ -95,10 +97,10 @@
|
|
|
95
97
|
"typescript-eslint": "^8.62.1"
|
|
96
98
|
},
|
|
97
99
|
"optionalDependencies": {
|
|
98
|
-
"@atbash/sdk-linux-x64-gnu": "0.
|
|
99
|
-
"@atbash/sdk-linux-arm64-gnu": "0.
|
|
100
|
-
"@atbash/sdk-linux-x64-musl": "0.
|
|
101
|
-
"@atbash/sdk-darwin-arm64": "0.
|
|
102
|
-
"@atbash/sdk-win32-x64-msvc": "0.
|
|
100
|
+
"@atbash/sdk-linux-x64-gnu": "0.20.0-dev.0",
|
|
101
|
+
"@atbash/sdk-linux-arm64-gnu": "0.20.0-dev.0",
|
|
102
|
+
"@atbash/sdk-linux-x64-musl": "0.20.0-dev.0",
|
|
103
|
+
"@atbash/sdk-darwin-arm64": "0.20.0-dev.0",
|
|
104
|
+
"@atbash/sdk-win32-x64-msvc": "0.20.0-dev.0"
|
|
103
105
|
}
|
|
104
106
|
}
|