@arcote.tech/arc-adapter-db-sqlite 0.4.6 → 0.4.7

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 (2) hide show
  1. package/dist/index.js +54 -50
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -2442,38 +2442,6 @@ class ArcPrimitive extends ArcAbstract {
2442
2442
  return value;
2443
2443
  }
2444
2444
  }
2445
-
2446
- class ArcBoolean extends ArcPrimitive {
2447
- hasToBeTrue() {
2448
- return this.validation("hasToBeTrue", (value) => {
2449
- if (!value)
2450
- return {
2451
- current: value
2452
- };
2453
- });
2454
- }
2455
- validation(name, validator) {
2456
- const instance = this.pipeValidation(name, validator);
2457
- return instance;
2458
- }
2459
- toJsonSchema() {
2460
- const schema = { type: "boolean" };
2461
- if (this._description) {
2462
- schema.description = this._description;
2463
- }
2464
- return schema;
2465
- }
2466
- getColumnData() {
2467
- const storeData = this.getStoreData();
2468
- return {
2469
- type: "boolean",
2470
- storeData: {
2471
- ...storeData,
2472
- isNullable: false
2473
- }
2474
- };
2475
- }
2476
- }
2477
2445
  var stringValidator = typeValidatorBuilder("string");
2478
2446
 
2479
2447
  class ArcString extends ArcPrimitive {
@@ -2625,6 +2593,60 @@ class ArcString extends ArcPrimitive {
2625
2593
  function string() {
2626
2594
  return new ArcString;
2627
2595
  }
2596
+
2597
+ class ArcFragmentBase {
2598
+ is(type) {
2599
+ return this.types.includes(type);
2600
+ }
2601
+ }
2602
+
2603
+ class ArcContextElement extends ArcFragmentBase {
2604
+ name;
2605
+ types = ["context-element"];
2606
+ get id() {
2607
+ return this.name;
2608
+ }
2609
+ constructor(name) {
2610
+ super();
2611
+ this.name = name;
2612
+ }
2613
+ _seeds;
2614
+ getSeeds() {
2615
+ return this._seeds;
2616
+ }
2617
+ }
2618
+
2619
+ class ArcBoolean extends ArcPrimitive {
2620
+ hasToBeTrue() {
2621
+ return this.validation("hasToBeTrue", (value) => {
2622
+ if (!value)
2623
+ return {
2624
+ current: value
2625
+ };
2626
+ });
2627
+ }
2628
+ validation(name, validator) {
2629
+ const instance = this.pipeValidation(name, validator);
2630
+ return instance;
2631
+ }
2632
+ toJsonSchema() {
2633
+ const schema = { type: "boolean" };
2634
+ if (this._description) {
2635
+ schema.description = this._description;
2636
+ }
2637
+ return schema;
2638
+ }
2639
+ getColumnData() {
2640
+ const storeData = this.getStoreData();
2641
+ return {
2642
+ type: "boolean",
2643
+ storeData: {
2644
+ ...storeData,
2645
+ isNullable: false
2646
+ }
2647
+ };
2648
+ }
2649
+ }
2628
2650
  class ArcId extends ArcBranded {
2629
2651
  generateFn;
2630
2652
  constructor(name, generateFn) {
@@ -2694,24 +2716,6 @@ class ArcNumber extends ArcPrimitive {
2694
2716
  };
2695
2717
  }
2696
2718
  }
2697
- class ArcFragmentBase {
2698
- is(type) {
2699
- return this.types.includes(type);
2700
- }
2701
- }
2702
-
2703
- class ArcContextElement extends ArcFragmentBase {
2704
- name;
2705
- types = ["context-element"];
2706
- get id() {
2707
- return this.name;
2708
- }
2709
- constructor(name) {
2710
- super();
2711
- this.name = name;
2712
- }
2713
- }
2714
-
2715
2719
  class ArcEvent extends ArcContextElement {
2716
2720
  data;
2717
2721
  eventId = id("event");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcote.tech/arc-adapter-db-sqlite",
3
- "version": "0.4.6",
3
+ "version": "0.4.7",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -20,7 +20,7 @@
20
20
  "test": "bun test"
21
21
  },
22
22
  "peerDependencies": {
23
- "@arcote.tech/arc": "^0.4.6"
23
+ "@arcote.tech/arc": "^0.4.7"
24
24
  },
25
25
  "devDependencies": {
26
26
  "typescript": "^5.0.0"