jazz-napi 2.0.0-alpha.14 → 2.0.0-alpha.15

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.
Files changed (3) hide show
  1. package/index.d.ts +3 -3
  2. package/index.js +52 -52
  3. package/package.json +5 -5
package/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /* auto-generated by NAPI-RS */
2
2
  /* eslint-disable */
3
3
  export declare class NapiRuntime {
4
- /** Create a new NapiRuntime with SurrealKV-backed persistent storage. */
4
+ /** Create a new NapiRuntime with Fjall-backed persistent storage. */
5
5
  constructor(
6
6
  schemaJson: string,
7
7
  appId: string,
@@ -18,7 +18,7 @@ export declare class NapiRuntime {
18
18
  userBranch: string,
19
19
  tier?: string | undefined | null,
20
20
  ): NapiRuntime;
21
- insert(table: string, values: any): string;
21
+ insert(table: string, values: any): any;
22
22
  update(objectId: string, values: any): void;
23
23
  delete(objectId: string): void;
24
24
  query(
@@ -44,7 +44,7 @@ export declare class NapiRuntime {
44
44
  ): number;
45
45
  /** Phase 2 of 2-phase subscribe: compile, register, sync, attach callback, tick. */
46
46
  executeSubscription(handle: number, onUpdate: (...args: any[]) => any): void;
47
- insertDurable(table: string, values: any, tier: string): Promise<string>;
47
+ insertDurable(table: string, values: any, tier: string): Promise<any>;
48
48
  updateDurable(objectId: string, values: any, tier: string): Promise<void>;
49
49
  deleteDurable(objectId: string, tier: string): Promise<void>;
50
50
  onSyncMessageReceived(messageJson: string): void;
package/index.js CHANGED
@@ -80,12 +80,12 @@ function requireNative() {
80
80
  const binding = require("jazz-napi-android-arm64");
81
81
  const bindingPackageVersion = require("jazz-napi-android-arm64/package.json").version;
82
82
  if (
83
- bindingPackageVersion !== "2.0.0-alpha.13" &&
83
+ bindingPackageVersion !== "2.0.0-alpha.14" &&
84
84
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
85
85
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
86
86
  ) {
87
87
  throw new Error(
88
- `Native binding package version mismatch, expected 2.0.0-alpha.13 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
88
+ `Native binding package version mismatch, expected 2.0.0-alpha.14 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
89
89
  );
90
90
  }
91
91
  return binding;
@@ -102,12 +102,12 @@ function requireNative() {
102
102
  const binding = require("jazz-napi-android-arm-eabi");
103
103
  const bindingPackageVersion = require("jazz-napi-android-arm-eabi/package.json").version;
104
104
  if (
105
- bindingPackageVersion !== "2.0.0-alpha.13" &&
105
+ bindingPackageVersion !== "2.0.0-alpha.14" &&
106
106
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
107
107
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
108
108
  ) {
109
109
  throw new Error(
110
- `Native binding package version mismatch, expected 2.0.0-alpha.13 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
110
+ `Native binding package version mismatch, expected 2.0.0-alpha.14 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
111
111
  );
112
112
  }
113
113
  return binding;
@@ -132,12 +132,12 @@ function requireNative() {
132
132
  const binding = require("jazz-napi-win32-x64-gnu");
133
133
  const bindingPackageVersion = require("jazz-napi-win32-x64-gnu/package.json").version;
134
134
  if (
135
- bindingPackageVersion !== "2.0.0-alpha.13" &&
135
+ bindingPackageVersion !== "2.0.0-alpha.14" &&
136
136
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
137
137
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
138
138
  ) {
139
139
  throw new Error(
140
- `Native binding package version mismatch, expected 2.0.0-alpha.13 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
140
+ `Native binding package version mismatch, expected 2.0.0-alpha.14 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
141
141
  );
142
142
  }
143
143
  return binding;
@@ -154,12 +154,12 @@ function requireNative() {
154
154
  const binding = require("jazz-napi-win32-x64-msvc");
155
155
  const bindingPackageVersion = require("jazz-napi-win32-x64-msvc/package.json").version;
156
156
  if (
157
- bindingPackageVersion !== "2.0.0-alpha.13" &&
157
+ bindingPackageVersion !== "2.0.0-alpha.14" &&
158
158
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
159
159
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
160
160
  ) {
161
161
  throw new Error(
162
- `Native binding package version mismatch, expected 2.0.0-alpha.13 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
162
+ `Native binding package version mismatch, expected 2.0.0-alpha.14 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
163
163
  );
164
164
  }
165
165
  return binding;
@@ -177,12 +177,12 @@ function requireNative() {
177
177
  const binding = require("jazz-napi-win32-ia32-msvc");
178
178
  const bindingPackageVersion = require("jazz-napi-win32-ia32-msvc/package.json").version;
179
179
  if (
180
- bindingPackageVersion !== "2.0.0-alpha.13" &&
180
+ bindingPackageVersion !== "2.0.0-alpha.14" &&
181
181
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
182
182
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
183
183
  ) {
184
184
  throw new Error(
185
- `Native binding package version mismatch, expected 2.0.0-alpha.13 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
185
+ `Native binding package version mismatch, expected 2.0.0-alpha.14 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
186
186
  );
187
187
  }
188
188
  return binding;
@@ -199,12 +199,12 @@ function requireNative() {
199
199
  const binding = require("jazz-napi-win32-arm64-msvc");
200
200
  const bindingPackageVersion = require("jazz-napi-win32-arm64-msvc/package.json").version;
201
201
  if (
202
- bindingPackageVersion !== "2.0.0-alpha.13" &&
202
+ bindingPackageVersion !== "2.0.0-alpha.14" &&
203
203
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
204
204
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
205
205
  ) {
206
206
  throw new Error(
207
- `Native binding package version mismatch, expected 2.0.0-alpha.13 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
207
+ `Native binding package version mismatch, expected 2.0.0-alpha.14 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
208
208
  );
209
209
  }
210
210
  return binding;
@@ -224,12 +224,12 @@ function requireNative() {
224
224
  const binding = require("jazz-napi-darwin-universal");
225
225
  const bindingPackageVersion = require("jazz-napi-darwin-universal/package.json").version;
226
226
  if (
227
- bindingPackageVersion !== "2.0.0-alpha.13" &&
227
+ bindingPackageVersion !== "2.0.0-alpha.14" &&
228
228
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
229
229
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
230
230
  ) {
231
231
  throw new Error(
232
- `Native binding package version mismatch, expected 2.0.0-alpha.13 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
232
+ `Native binding package version mismatch, expected 2.0.0-alpha.14 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
233
233
  );
234
234
  }
235
235
  return binding;
@@ -246,12 +246,12 @@ function requireNative() {
246
246
  const binding = require("jazz-napi-darwin-x64");
247
247
  const bindingPackageVersion = require("jazz-napi-darwin-x64/package.json").version;
248
248
  if (
249
- bindingPackageVersion !== "2.0.0-alpha.13" &&
249
+ bindingPackageVersion !== "2.0.0-alpha.14" &&
250
250
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
251
251
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
252
252
  ) {
253
253
  throw new Error(
254
- `Native binding package version mismatch, expected 2.0.0-alpha.13 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
254
+ `Native binding package version mismatch, expected 2.0.0-alpha.14 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
255
255
  );
256
256
  }
257
257
  return binding;
@@ -268,12 +268,12 @@ function requireNative() {
268
268
  const binding = require("jazz-napi-darwin-arm64");
269
269
  const bindingPackageVersion = require("jazz-napi-darwin-arm64/package.json").version;
270
270
  if (
271
- bindingPackageVersion !== "2.0.0-alpha.13" &&
271
+ bindingPackageVersion !== "2.0.0-alpha.14" &&
272
272
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
273
273
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
274
274
  ) {
275
275
  throw new Error(
276
- `Native binding package version mismatch, expected 2.0.0-alpha.13 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
276
+ `Native binding package version mismatch, expected 2.0.0-alpha.14 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
277
277
  );
278
278
  }
279
279
  return binding;
@@ -294,12 +294,12 @@ function requireNative() {
294
294
  const binding = require("jazz-napi-freebsd-x64");
295
295
  const bindingPackageVersion = require("jazz-napi-freebsd-x64/package.json").version;
296
296
  if (
297
- bindingPackageVersion !== "2.0.0-alpha.13" &&
297
+ bindingPackageVersion !== "2.0.0-alpha.14" &&
298
298
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
299
299
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
300
300
  ) {
301
301
  throw new Error(
302
- `Native binding package version mismatch, expected 2.0.0-alpha.13 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
302
+ `Native binding package version mismatch, expected 2.0.0-alpha.14 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
303
303
  );
304
304
  }
305
305
  return binding;
@@ -316,12 +316,12 @@ function requireNative() {
316
316
  const binding = require("jazz-napi-freebsd-arm64");
317
317
  const bindingPackageVersion = require("jazz-napi-freebsd-arm64/package.json").version;
318
318
  if (
319
- bindingPackageVersion !== "2.0.0-alpha.13" &&
319
+ bindingPackageVersion !== "2.0.0-alpha.14" &&
320
320
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
321
321
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
322
322
  ) {
323
323
  throw new Error(
324
- `Native binding package version mismatch, expected 2.0.0-alpha.13 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
324
+ `Native binding package version mismatch, expected 2.0.0-alpha.14 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
325
325
  );
326
326
  }
327
327
  return binding;
@@ -343,12 +343,12 @@ function requireNative() {
343
343
  const binding = require("jazz-napi-linux-x64-musl");
344
344
  const bindingPackageVersion = require("jazz-napi-linux-x64-musl/package.json").version;
345
345
  if (
346
- bindingPackageVersion !== "2.0.0-alpha.13" &&
346
+ bindingPackageVersion !== "2.0.0-alpha.14" &&
347
347
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
348
348
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
349
349
  ) {
350
350
  throw new Error(
351
- `Native binding package version mismatch, expected 2.0.0-alpha.13 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
351
+ `Native binding package version mismatch, expected 2.0.0-alpha.14 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
352
352
  );
353
353
  }
354
354
  return binding;
@@ -365,12 +365,12 @@ function requireNative() {
365
365
  const binding = require("jazz-napi-linux-x64-gnu");
366
366
  const bindingPackageVersion = require("jazz-napi-linux-x64-gnu/package.json").version;
367
367
  if (
368
- bindingPackageVersion !== "2.0.0-alpha.13" &&
368
+ bindingPackageVersion !== "2.0.0-alpha.14" &&
369
369
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
370
370
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
371
371
  ) {
372
372
  throw new Error(
373
- `Native binding package version mismatch, expected 2.0.0-alpha.13 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
373
+ `Native binding package version mismatch, expected 2.0.0-alpha.14 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
374
374
  );
375
375
  }
376
376
  return binding;
@@ -389,12 +389,12 @@ function requireNative() {
389
389
  const binding = require("jazz-napi-linux-arm64-musl");
390
390
  const bindingPackageVersion = require("jazz-napi-linux-arm64-musl/package.json").version;
391
391
  if (
392
- bindingPackageVersion !== "2.0.0-alpha.13" &&
392
+ bindingPackageVersion !== "2.0.0-alpha.14" &&
393
393
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
394
394
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
395
395
  ) {
396
396
  throw new Error(
397
- `Native binding package version mismatch, expected 2.0.0-alpha.13 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
397
+ `Native binding package version mismatch, expected 2.0.0-alpha.14 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
398
398
  );
399
399
  }
400
400
  return binding;
@@ -411,12 +411,12 @@ function requireNative() {
411
411
  const binding = require("jazz-napi-linux-arm64-gnu");
412
412
  const bindingPackageVersion = require("jazz-napi-linux-arm64-gnu/package.json").version;
413
413
  if (
414
- bindingPackageVersion !== "2.0.0-alpha.13" &&
414
+ bindingPackageVersion !== "2.0.0-alpha.14" &&
415
415
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
416
416
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
417
417
  ) {
418
418
  throw new Error(
419
- `Native binding package version mismatch, expected 2.0.0-alpha.13 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
419
+ `Native binding package version mismatch, expected 2.0.0-alpha.14 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
420
420
  );
421
421
  }
422
422
  return binding;
@@ -436,12 +436,12 @@ function requireNative() {
436
436
  const bindingPackageVersion =
437
437
  require("jazz-napi-linux-arm-musleabihf/package.json").version;
438
438
  if (
439
- bindingPackageVersion !== "2.0.0-alpha.13" &&
439
+ bindingPackageVersion !== "2.0.0-alpha.14" &&
440
440
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
441
441
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
442
442
  ) {
443
443
  throw new Error(
444
- `Native binding package version mismatch, expected 2.0.0-alpha.13 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
444
+ `Native binding package version mismatch, expected 2.0.0-alpha.14 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
445
445
  );
446
446
  }
447
447
  return binding;
@@ -459,12 +459,12 @@ function requireNative() {
459
459
  const bindingPackageVersion =
460
460
  require("jazz-napi-linux-arm-gnueabihf/package.json").version;
461
461
  if (
462
- bindingPackageVersion !== "2.0.0-alpha.13" &&
462
+ bindingPackageVersion !== "2.0.0-alpha.14" &&
463
463
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
464
464
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
465
465
  ) {
466
466
  throw new Error(
467
- `Native binding package version mismatch, expected 2.0.0-alpha.13 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
467
+ `Native binding package version mismatch, expected 2.0.0-alpha.14 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
468
468
  );
469
469
  }
470
470
  return binding;
@@ -484,12 +484,12 @@ function requireNative() {
484
484
  const bindingPackageVersion =
485
485
  require("jazz-napi-linux-loong64-musl/package.json").version;
486
486
  if (
487
- bindingPackageVersion !== "2.0.0-alpha.13" &&
487
+ bindingPackageVersion !== "2.0.0-alpha.14" &&
488
488
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
489
489
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
490
490
  ) {
491
491
  throw new Error(
492
- `Native binding package version mismatch, expected 2.0.0-alpha.13 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
492
+ `Native binding package version mismatch, expected 2.0.0-alpha.14 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
493
493
  );
494
494
  }
495
495
  return binding;
@@ -506,12 +506,12 @@ function requireNative() {
506
506
  const binding = require("jazz-napi-linux-loong64-gnu");
507
507
  const bindingPackageVersion = require("jazz-napi-linux-loong64-gnu/package.json").version;
508
508
  if (
509
- bindingPackageVersion !== "2.0.0-alpha.13" &&
509
+ bindingPackageVersion !== "2.0.0-alpha.14" &&
510
510
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
511
511
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
512
512
  ) {
513
513
  throw new Error(
514
- `Native binding package version mismatch, expected 2.0.0-alpha.13 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
514
+ `Native binding package version mismatch, expected 2.0.0-alpha.14 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
515
515
  );
516
516
  }
517
517
  return binding;
@@ -531,12 +531,12 @@ function requireNative() {
531
531
  const bindingPackageVersion =
532
532
  require("jazz-napi-linux-riscv64-musl/package.json").version;
533
533
  if (
534
- bindingPackageVersion !== "2.0.0-alpha.13" &&
534
+ bindingPackageVersion !== "2.0.0-alpha.14" &&
535
535
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
536
536
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
537
537
  ) {
538
538
  throw new Error(
539
- `Native binding package version mismatch, expected 2.0.0-alpha.13 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
539
+ `Native binding package version mismatch, expected 2.0.0-alpha.14 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
540
540
  );
541
541
  }
542
542
  return binding;
@@ -553,12 +553,12 @@ function requireNative() {
553
553
  const binding = require("jazz-napi-linux-riscv64-gnu");
554
554
  const bindingPackageVersion = require("jazz-napi-linux-riscv64-gnu/package.json").version;
555
555
  if (
556
- bindingPackageVersion !== "2.0.0-alpha.13" &&
556
+ bindingPackageVersion !== "2.0.0-alpha.14" &&
557
557
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
558
558
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
559
559
  ) {
560
560
  throw new Error(
561
- `Native binding package version mismatch, expected 2.0.0-alpha.13 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
561
+ `Native binding package version mismatch, expected 2.0.0-alpha.14 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
562
562
  );
563
563
  }
564
564
  return binding;
@@ -576,12 +576,12 @@ function requireNative() {
576
576
  const binding = require("jazz-napi-linux-ppc64-gnu");
577
577
  const bindingPackageVersion = require("jazz-napi-linux-ppc64-gnu/package.json").version;
578
578
  if (
579
- bindingPackageVersion !== "2.0.0-alpha.13" &&
579
+ bindingPackageVersion !== "2.0.0-alpha.14" &&
580
580
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
581
581
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
582
582
  ) {
583
583
  throw new Error(
584
- `Native binding package version mismatch, expected 2.0.0-alpha.13 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
584
+ `Native binding package version mismatch, expected 2.0.0-alpha.14 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
585
585
  );
586
586
  }
587
587
  return binding;
@@ -598,12 +598,12 @@ function requireNative() {
598
598
  const binding = require("jazz-napi-linux-s390x-gnu");
599
599
  const bindingPackageVersion = require("jazz-napi-linux-s390x-gnu/package.json").version;
600
600
  if (
601
- bindingPackageVersion !== "2.0.0-alpha.13" &&
601
+ bindingPackageVersion !== "2.0.0-alpha.14" &&
602
602
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
603
603
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
604
604
  ) {
605
605
  throw new Error(
606
- `Native binding package version mismatch, expected 2.0.0-alpha.13 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
606
+ `Native binding package version mismatch, expected 2.0.0-alpha.14 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
607
607
  );
608
608
  }
609
609
  return binding;
@@ -624,12 +624,12 @@ function requireNative() {
624
624
  const binding = require("jazz-napi-openharmony-arm64");
625
625
  const bindingPackageVersion = require("jazz-napi-openharmony-arm64/package.json").version;
626
626
  if (
627
- bindingPackageVersion !== "2.0.0-alpha.13" &&
627
+ bindingPackageVersion !== "2.0.0-alpha.14" &&
628
628
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
629
629
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
630
630
  ) {
631
631
  throw new Error(
632
- `Native binding package version mismatch, expected 2.0.0-alpha.13 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
632
+ `Native binding package version mismatch, expected 2.0.0-alpha.14 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
633
633
  );
634
634
  }
635
635
  return binding;
@@ -646,12 +646,12 @@ function requireNative() {
646
646
  const binding = require("jazz-napi-openharmony-x64");
647
647
  const bindingPackageVersion = require("jazz-napi-openharmony-x64/package.json").version;
648
648
  if (
649
- bindingPackageVersion !== "2.0.0-alpha.13" &&
649
+ bindingPackageVersion !== "2.0.0-alpha.14" &&
650
650
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
651
651
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
652
652
  ) {
653
653
  throw new Error(
654
- `Native binding package version mismatch, expected 2.0.0-alpha.13 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
654
+ `Native binding package version mismatch, expected 2.0.0-alpha.14 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
655
655
  );
656
656
  }
657
657
  return binding;
@@ -668,12 +668,12 @@ function requireNative() {
668
668
  const binding = require("jazz-napi-openharmony-arm");
669
669
  const bindingPackageVersion = require("jazz-napi-openharmony-arm/package.json").version;
670
670
  if (
671
- bindingPackageVersion !== "2.0.0-alpha.13" &&
671
+ bindingPackageVersion !== "2.0.0-alpha.14" &&
672
672
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
673
673
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0"
674
674
  ) {
675
675
  throw new Error(
676
- `Native binding package version mismatch, expected 2.0.0-alpha.13 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
676
+ `Native binding package version mismatch, expected 2.0.0-alpha.14 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
677
677
  );
678
678
  }
679
679
  return binding;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jazz-napi",
3
- "version": "2.0.0-alpha.14",
3
+ "version": "2.0.0-alpha.15",
4
4
  "description": "Native Node.js bindings for Jazz runtime",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -30,10 +30,10 @@
30
30
  ]
31
31
  },
32
32
  "optionalDependencies": {
33
- "@garden-co/jazz-napi-darwin-arm64": "2.0.0-alpha.14",
34
- "@garden-co/jazz-napi-darwin-x64": "2.0.0-alpha.14",
35
- "@garden-co/jazz-napi-linux-x64-gnu": "2.0.0-alpha.14",
36
- "@garden-co/jazz-napi-win32-x64-msvc": "2.0.0-alpha.14"
33
+ "@garden-co/jazz-napi-darwin-arm64": "2.0.0-alpha.15",
34
+ "@garden-co/jazz-napi-darwin-x64": "2.0.0-alpha.15",
35
+ "@garden-co/jazz-napi-linux-x64-gnu": "2.0.0-alpha.15",
36
+ "@garden-co/jazz-napi-win32-x64-msvc": "2.0.0-alpha.15"
37
37
  },
38
38
  "scripts": {
39
39
  "build": "node scripts/build.js",