@evervault/eql 0.1.0 → 0.2.2

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/index.js CHANGED
@@ -1,4 +1,4 @@
1
- // @generated by Peggy 4.0.2.
1
+ // @generated by Peggy 4.2.0.
2
2
  //
3
3
  // https://peggyjs.org/
4
4
 
@@ -187,17 +187,16 @@ function peg$parse(input, options) {
187
187
  var peg$c7 = "!=";
188
188
  var peg$c8 = ":";
189
189
  var peg$c9 = "!:";
190
- var peg$c10 = ">";
191
- var peg$c11 = ">=";
192
- var peg$c12 = "<";
193
- var peg$c13 = "<=";
194
- var peg$c14 = ".";
195
- var peg$c15 = "\"";
196
-
197
- var peg$r0 = /^[a-zA-Z0-9_]/;
198
- var peg$r1 = /^[0-9]/;
199
- var peg$r2 = /^[^"]/;
200
- var peg$r3 = /^[ \t\n\r]/;
190
+ var peg$c10 = ">=";
191
+ var peg$c11 = "<=";
192
+ var peg$c12 = ".";
193
+ var peg$c13 = "\"";
194
+
195
+ var peg$r0 = /^[<>]/;
196
+ var peg$r1 = /^[a-zA-Z0-9_]/;
197
+ var peg$r2 = /^[0-9]/;
198
+ var peg$r3 = /^[^"]/;
199
+ var peg$r4 = /^[ \t\n\r]/;
201
200
 
202
201
  var peg$e0 = peg$literalExpectation("OR", false);
203
202
  var peg$e1 = peg$literalExpectation("or", false);
@@ -209,18 +208,17 @@ function peg$parse(input, options) {
209
208
  var peg$e7 = peg$literalExpectation("!=", false);
210
209
  var peg$e8 = peg$literalExpectation(":", false);
211
210
  var peg$e9 = peg$literalExpectation("!:", false);
212
- var peg$e10 = peg$literalExpectation(">", false);
213
- var peg$e11 = peg$literalExpectation(">=", false);
214
- var peg$e12 = peg$literalExpectation("<", false);
215
- var peg$e13 = peg$literalExpectation("<=", false);
216
- var peg$e14 = peg$classExpectation([["a", "z"], ["A", "Z"], ["0", "9"], "_"], false, false);
217
- var peg$e15 = peg$literalExpectation(".", false);
218
- var peg$e16 = peg$otherExpectation("integer");
219
- var peg$e17 = peg$classExpectation([["0", "9"]], false, false);
220
- var peg$e18 = peg$literalExpectation("\"", false);
221
- var peg$e19 = peg$classExpectation(["\""], true, false);
222
- var peg$e20 = peg$otherExpectation("whitespace");
223
- var peg$e21 = peg$classExpectation([" ", "\t", "\n", "\r"], false, false);
211
+ var peg$e10 = peg$literalExpectation(">=", false);
212
+ var peg$e11 = peg$literalExpectation("<=", false);
213
+ var peg$e12 = peg$classExpectation(["<", ">"], false, false);
214
+ var peg$e13 = peg$classExpectation([["a", "z"], ["A", "Z"], ["0", "9"], "_"], false, false);
215
+ var peg$e14 = peg$literalExpectation(".", false);
216
+ var peg$e15 = peg$otherExpectation("integer");
217
+ var peg$e16 = peg$classExpectation([["0", "9"]], false, false);
218
+ var peg$e17 = peg$literalExpectation("\"", false);
219
+ var peg$e18 = peg$classExpectation(["\""], true, false);
220
+ var peg$e19 = peg$otherExpectation("whitespace");
221
+ var peg$e20 = peg$classExpectation([" ", "\t", "\n", "\r"], false, false);
224
222
 
225
223
  var peg$f0 = function(left, right) {
226
224
  return { type: 'compound', operator: 'OR', left, right }
@@ -665,9 +663,9 @@ function peg$parse(input, options) {
665
663
  if (peg$silentFails === 0) { peg$fail(peg$e9); }
666
664
  }
667
665
  if (s0 === peg$FAILED) {
668
- if (input.charCodeAt(peg$currPos) === 62) {
666
+ if (input.substr(peg$currPos, 2) === peg$c10) {
669
667
  s0 = peg$c10;
670
- peg$currPos++;
668
+ peg$currPos += 2;
671
669
  } else {
672
670
  s0 = peg$FAILED;
673
671
  if (peg$silentFails === 0) { peg$fail(peg$e10); }
@@ -681,22 +679,13 @@ function peg$parse(input, options) {
681
679
  if (peg$silentFails === 0) { peg$fail(peg$e11); }
682
680
  }
683
681
  if (s0 === peg$FAILED) {
684
- if (input.charCodeAt(peg$currPos) === 60) {
685
- s0 = peg$c12;
682
+ s0 = input.charAt(peg$currPos);
683
+ if (peg$r0.test(s0)) {
686
684
  peg$currPos++;
687
685
  } else {
688
686
  s0 = peg$FAILED;
689
687
  if (peg$silentFails === 0) { peg$fail(peg$e12); }
690
688
  }
691
- if (s0 === peg$FAILED) {
692
- if (input.substr(peg$currPos, 2) === peg$c13) {
693
- s0 = peg$c13;
694
- peg$currPos += 2;
695
- } else {
696
- s0 = peg$FAILED;
697
- if (peg$silentFails === 0) { peg$fail(peg$e13); }
698
- }
699
- }
700
689
  }
701
690
  }
702
691
  }
@@ -713,21 +702,21 @@ function peg$parse(input, options) {
713
702
  s0 = peg$currPos;
714
703
  s1 = [];
715
704
  s2 = input.charAt(peg$currPos);
716
- if (peg$r0.test(s2)) {
705
+ if (peg$r1.test(s2)) {
717
706
  peg$currPos++;
718
707
  } else {
719
708
  s2 = peg$FAILED;
720
- if (peg$silentFails === 0) { peg$fail(peg$e14); }
709
+ if (peg$silentFails === 0) { peg$fail(peg$e13); }
721
710
  }
722
711
  if (s2 !== peg$FAILED) {
723
712
  while (s2 !== peg$FAILED) {
724
713
  s1.push(s2);
725
714
  s2 = input.charAt(peg$currPos);
726
- if (peg$r0.test(s2)) {
715
+ if (peg$r1.test(s2)) {
727
716
  peg$currPos++;
728
717
  } else {
729
718
  s2 = peg$FAILED;
730
- if (peg$silentFails === 0) { peg$fail(peg$e14); }
719
+ if (peg$silentFails === 0) { peg$fail(peg$e13); }
731
720
  }
732
721
  }
733
722
  } else {
@@ -747,11 +736,11 @@ function peg$parse(input, options) {
747
736
 
748
737
  s0 = peg$currPos;
749
738
  if (input.charCodeAt(peg$currPos) === 46) {
750
- s1 = peg$c14;
739
+ s1 = peg$c12;
751
740
  peg$currPos++;
752
741
  } else {
753
742
  s1 = peg$FAILED;
754
- if (peg$silentFails === 0) { peg$fail(peg$e15); }
743
+ if (peg$silentFails === 0) { peg$fail(peg$e14); }
755
744
  }
756
745
  if (s1 !== peg$FAILED) {
757
746
  s2 = peg$parseIdentifier();
@@ -814,21 +803,21 @@ function peg$parse(input, options) {
814
803
  s1 = peg$parse_();
815
804
  s2 = [];
816
805
  s3 = input.charAt(peg$currPos);
817
- if (peg$r1.test(s3)) {
806
+ if (peg$r2.test(s3)) {
818
807
  peg$currPos++;
819
808
  } else {
820
809
  s3 = peg$FAILED;
821
- if (peg$silentFails === 0) { peg$fail(peg$e17); }
810
+ if (peg$silentFails === 0) { peg$fail(peg$e16); }
822
811
  }
823
812
  if (s3 !== peg$FAILED) {
824
813
  while (s3 !== peg$FAILED) {
825
814
  s2.push(s3);
826
815
  s3 = input.charAt(peg$currPos);
827
- if (peg$r1.test(s3)) {
816
+ if (peg$r2.test(s3)) {
828
817
  peg$currPos++;
829
818
  } else {
830
819
  s3 = peg$FAILED;
831
- if (peg$silentFails === 0) { peg$fail(peg$e17); }
820
+ if (peg$silentFails === 0) { peg$fail(peg$e16); }
832
821
  }
833
822
  }
834
823
  } else {
@@ -844,7 +833,7 @@ function peg$parse(input, options) {
844
833
  peg$silentFails--;
845
834
  if (s0 === peg$FAILED) {
846
835
  s1 = peg$FAILED;
847
- if (peg$silentFails === 0) { peg$fail(peg$e16); }
836
+ if (peg$silentFails === 0) { peg$fail(peg$e15); }
848
837
  }
849
838
 
850
839
  return s0;
@@ -855,37 +844,37 @@ function peg$parse(input, options) {
855
844
 
856
845
  s0 = peg$currPos;
857
846
  if (input.charCodeAt(peg$currPos) === 34) {
858
- s1 = peg$c15;
847
+ s1 = peg$c13;
859
848
  peg$currPos++;
860
849
  } else {
861
850
  s1 = peg$FAILED;
862
- if (peg$silentFails === 0) { peg$fail(peg$e18); }
851
+ if (peg$silentFails === 0) { peg$fail(peg$e17); }
863
852
  }
864
853
  if (s1 !== peg$FAILED) {
865
854
  s2 = [];
866
855
  s3 = input.charAt(peg$currPos);
867
- if (peg$r2.test(s3)) {
856
+ if (peg$r3.test(s3)) {
868
857
  peg$currPos++;
869
858
  } else {
870
859
  s3 = peg$FAILED;
871
- if (peg$silentFails === 0) { peg$fail(peg$e19); }
860
+ if (peg$silentFails === 0) { peg$fail(peg$e18); }
872
861
  }
873
862
  while (s3 !== peg$FAILED) {
874
863
  s2.push(s3);
875
864
  s3 = input.charAt(peg$currPos);
876
- if (peg$r2.test(s3)) {
865
+ if (peg$r3.test(s3)) {
877
866
  peg$currPos++;
878
867
  } else {
879
868
  s3 = peg$FAILED;
880
- if (peg$silentFails === 0) { peg$fail(peg$e19); }
869
+ if (peg$silentFails === 0) { peg$fail(peg$e18); }
881
870
  }
882
871
  }
883
872
  if (input.charCodeAt(peg$currPos) === 34) {
884
- s3 = peg$c15;
873
+ s3 = peg$c13;
885
874
  peg$currPos++;
886
875
  } else {
887
876
  s3 = peg$FAILED;
888
- if (peg$silentFails === 0) { peg$fail(peg$e18); }
877
+ if (peg$silentFails === 0) { peg$fail(peg$e17); }
889
878
  }
890
879
  if (s3 !== peg$FAILED) {
891
880
  peg$savedPos = s0;
@@ -908,25 +897,25 @@ function peg$parse(input, options) {
908
897
  peg$silentFails++;
909
898
  s0 = [];
910
899
  s1 = input.charAt(peg$currPos);
911
- if (peg$r3.test(s1)) {
900
+ if (peg$r4.test(s1)) {
912
901
  peg$currPos++;
913
902
  } else {
914
903
  s1 = peg$FAILED;
915
- if (peg$silentFails === 0) { peg$fail(peg$e21); }
904
+ if (peg$silentFails === 0) { peg$fail(peg$e20); }
916
905
  }
917
906
  while (s1 !== peg$FAILED) {
918
907
  s0.push(s1);
919
908
  s1 = input.charAt(peg$currPos);
920
- if (peg$r3.test(s1)) {
909
+ if (peg$r4.test(s1)) {
921
910
  peg$currPos++;
922
911
  } else {
923
912
  s1 = peg$FAILED;
924
- if (peg$silentFails === 0) { peg$fail(peg$e21); }
913
+ if (peg$silentFails === 0) { peg$fail(peg$e20); }
925
914
  }
926
915
  }
927
916
  peg$silentFails--;
928
917
  s1 = peg$FAILED;
929
- if (peg$silentFails === 0) { peg$fail(peg$e20); }
918
+ if (peg$silentFails === 0) { peg$fail(peg$e19); }
930
919
 
931
920
  return s0;
932
921
  }
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- // @generated by Peggy 4.0.2.
1
+ // @generated by Peggy 4.2.0.
2
2
  //
3
3
  // https://peggyjs.org/
4
4
 
@@ -185,17 +185,16 @@ function peg$parse(input, options) {
185
185
  var peg$c7 = "!=";
186
186
  var peg$c8 = ":";
187
187
  var peg$c9 = "!:";
188
- var peg$c10 = ">";
189
- var peg$c11 = ">=";
190
- var peg$c12 = "<";
191
- var peg$c13 = "<=";
192
- var peg$c14 = ".";
193
- var peg$c15 = "\"";
194
-
195
- var peg$r0 = /^[a-zA-Z0-9_]/;
196
- var peg$r1 = /^[0-9]/;
197
- var peg$r2 = /^[^"]/;
198
- var peg$r3 = /^[ \t\n\r]/;
188
+ var peg$c10 = ">=";
189
+ var peg$c11 = "<=";
190
+ var peg$c12 = ".";
191
+ var peg$c13 = "\"";
192
+
193
+ var peg$r0 = /^[<>]/;
194
+ var peg$r1 = /^[a-zA-Z0-9_]/;
195
+ var peg$r2 = /^[0-9]/;
196
+ var peg$r3 = /^[^"]/;
197
+ var peg$r4 = /^[ \t\n\r]/;
199
198
 
200
199
  var peg$e0 = peg$literalExpectation("OR", false);
201
200
  var peg$e1 = peg$literalExpectation("or", false);
@@ -207,18 +206,17 @@ function peg$parse(input, options) {
207
206
  var peg$e7 = peg$literalExpectation("!=", false);
208
207
  var peg$e8 = peg$literalExpectation(":", false);
209
208
  var peg$e9 = peg$literalExpectation("!:", false);
210
- var peg$e10 = peg$literalExpectation(">", false);
211
- var peg$e11 = peg$literalExpectation(">=", false);
212
- var peg$e12 = peg$literalExpectation("<", false);
213
- var peg$e13 = peg$literalExpectation("<=", false);
214
- var peg$e14 = peg$classExpectation([["a", "z"], ["A", "Z"], ["0", "9"], "_"], false, false);
215
- var peg$e15 = peg$literalExpectation(".", false);
216
- var peg$e16 = peg$otherExpectation("integer");
217
- var peg$e17 = peg$classExpectation([["0", "9"]], false, false);
218
- var peg$e18 = peg$literalExpectation("\"", false);
219
- var peg$e19 = peg$classExpectation(["\""], true, false);
220
- var peg$e20 = peg$otherExpectation("whitespace");
221
- var peg$e21 = peg$classExpectation([" ", "\t", "\n", "\r"], false, false);
209
+ var peg$e10 = peg$literalExpectation(">=", false);
210
+ var peg$e11 = peg$literalExpectation("<=", false);
211
+ var peg$e12 = peg$classExpectation(["<", ">"], false, false);
212
+ var peg$e13 = peg$classExpectation([["a", "z"], ["A", "Z"], ["0", "9"], "_"], false, false);
213
+ var peg$e14 = peg$literalExpectation(".", false);
214
+ var peg$e15 = peg$otherExpectation("integer");
215
+ var peg$e16 = peg$classExpectation([["0", "9"]], false, false);
216
+ var peg$e17 = peg$literalExpectation("\"", false);
217
+ var peg$e18 = peg$classExpectation(["\""], true, false);
218
+ var peg$e19 = peg$otherExpectation("whitespace");
219
+ var peg$e20 = peg$classExpectation([" ", "\t", "\n", "\r"], false, false);
222
220
 
223
221
  var peg$f0 = function(left, right) {
224
222
  return { type: 'compound', operator: 'OR', left, right }
@@ -663,9 +661,9 @@ function peg$parse(input, options) {
663
661
  if (peg$silentFails === 0) { peg$fail(peg$e9); }
664
662
  }
665
663
  if (s0 === peg$FAILED) {
666
- if (input.charCodeAt(peg$currPos) === 62) {
664
+ if (input.substr(peg$currPos, 2) === peg$c10) {
667
665
  s0 = peg$c10;
668
- peg$currPos++;
666
+ peg$currPos += 2;
669
667
  } else {
670
668
  s0 = peg$FAILED;
671
669
  if (peg$silentFails === 0) { peg$fail(peg$e10); }
@@ -679,22 +677,13 @@ function peg$parse(input, options) {
679
677
  if (peg$silentFails === 0) { peg$fail(peg$e11); }
680
678
  }
681
679
  if (s0 === peg$FAILED) {
682
- if (input.charCodeAt(peg$currPos) === 60) {
683
- s0 = peg$c12;
680
+ s0 = input.charAt(peg$currPos);
681
+ if (peg$r0.test(s0)) {
684
682
  peg$currPos++;
685
683
  } else {
686
684
  s0 = peg$FAILED;
687
685
  if (peg$silentFails === 0) { peg$fail(peg$e12); }
688
686
  }
689
- if (s0 === peg$FAILED) {
690
- if (input.substr(peg$currPos, 2) === peg$c13) {
691
- s0 = peg$c13;
692
- peg$currPos += 2;
693
- } else {
694
- s0 = peg$FAILED;
695
- if (peg$silentFails === 0) { peg$fail(peg$e13); }
696
- }
697
- }
698
687
  }
699
688
  }
700
689
  }
@@ -711,21 +700,21 @@ function peg$parse(input, options) {
711
700
  s0 = peg$currPos;
712
701
  s1 = [];
713
702
  s2 = input.charAt(peg$currPos);
714
- if (peg$r0.test(s2)) {
703
+ if (peg$r1.test(s2)) {
715
704
  peg$currPos++;
716
705
  } else {
717
706
  s2 = peg$FAILED;
718
- if (peg$silentFails === 0) { peg$fail(peg$e14); }
707
+ if (peg$silentFails === 0) { peg$fail(peg$e13); }
719
708
  }
720
709
  if (s2 !== peg$FAILED) {
721
710
  while (s2 !== peg$FAILED) {
722
711
  s1.push(s2);
723
712
  s2 = input.charAt(peg$currPos);
724
- if (peg$r0.test(s2)) {
713
+ if (peg$r1.test(s2)) {
725
714
  peg$currPos++;
726
715
  } else {
727
716
  s2 = peg$FAILED;
728
- if (peg$silentFails === 0) { peg$fail(peg$e14); }
717
+ if (peg$silentFails === 0) { peg$fail(peg$e13); }
729
718
  }
730
719
  }
731
720
  } else {
@@ -745,11 +734,11 @@ function peg$parse(input, options) {
745
734
 
746
735
  s0 = peg$currPos;
747
736
  if (input.charCodeAt(peg$currPos) === 46) {
748
- s1 = peg$c14;
737
+ s1 = peg$c12;
749
738
  peg$currPos++;
750
739
  } else {
751
740
  s1 = peg$FAILED;
752
- if (peg$silentFails === 0) { peg$fail(peg$e15); }
741
+ if (peg$silentFails === 0) { peg$fail(peg$e14); }
753
742
  }
754
743
  if (s1 !== peg$FAILED) {
755
744
  s2 = peg$parseIdentifier();
@@ -812,21 +801,21 @@ function peg$parse(input, options) {
812
801
  s1 = peg$parse_();
813
802
  s2 = [];
814
803
  s3 = input.charAt(peg$currPos);
815
- if (peg$r1.test(s3)) {
804
+ if (peg$r2.test(s3)) {
816
805
  peg$currPos++;
817
806
  } else {
818
807
  s3 = peg$FAILED;
819
- if (peg$silentFails === 0) { peg$fail(peg$e17); }
808
+ if (peg$silentFails === 0) { peg$fail(peg$e16); }
820
809
  }
821
810
  if (s3 !== peg$FAILED) {
822
811
  while (s3 !== peg$FAILED) {
823
812
  s2.push(s3);
824
813
  s3 = input.charAt(peg$currPos);
825
- if (peg$r1.test(s3)) {
814
+ if (peg$r2.test(s3)) {
826
815
  peg$currPos++;
827
816
  } else {
828
817
  s3 = peg$FAILED;
829
- if (peg$silentFails === 0) { peg$fail(peg$e17); }
818
+ if (peg$silentFails === 0) { peg$fail(peg$e16); }
830
819
  }
831
820
  }
832
821
  } else {
@@ -842,7 +831,7 @@ function peg$parse(input, options) {
842
831
  peg$silentFails--;
843
832
  if (s0 === peg$FAILED) {
844
833
  s1 = peg$FAILED;
845
- if (peg$silentFails === 0) { peg$fail(peg$e16); }
834
+ if (peg$silentFails === 0) { peg$fail(peg$e15); }
846
835
  }
847
836
 
848
837
  return s0;
@@ -853,37 +842,37 @@ function peg$parse(input, options) {
853
842
 
854
843
  s0 = peg$currPos;
855
844
  if (input.charCodeAt(peg$currPos) === 34) {
856
- s1 = peg$c15;
845
+ s1 = peg$c13;
857
846
  peg$currPos++;
858
847
  } else {
859
848
  s1 = peg$FAILED;
860
- if (peg$silentFails === 0) { peg$fail(peg$e18); }
849
+ if (peg$silentFails === 0) { peg$fail(peg$e17); }
861
850
  }
862
851
  if (s1 !== peg$FAILED) {
863
852
  s2 = [];
864
853
  s3 = input.charAt(peg$currPos);
865
- if (peg$r2.test(s3)) {
854
+ if (peg$r3.test(s3)) {
866
855
  peg$currPos++;
867
856
  } else {
868
857
  s3 = peg$FAILED;
869
- if (peg$silentFails === 0) { peg$fail(peg$e19); }
858
+ if (peg$silentFails === 0) { peg$fail(peg$e18); }
870
859
  }
871
860
  while (s3 !== peg$FAILED) {
872
861
  s2.push(s3);
873
862
  s3 = input.charAt(peg$currPos);
874
- if (peg$r2.test(s3)) {
863
+ if (peg$r3.test(s3)) {
875
864
  peg$currPos++;
876
865
  } else {
877
866
  s3 = peg$FAILED;
878
- if (peg$silentFails === 0) { peg$fail(peg$e19); }
867
+ if (peg$silentFails === 0) { peg$fail(peg$e18); }
879
868
  }
880
869
  }
881
870
  if (input.charCodeAt(peg$currPos) === 34) {
882
- s3 = peg$c15;
871
+ s3 = peg$c13;
883
872
  peg$currPos++;
884
873
  } else {
885
874
  s3 = peg$FAILED;
886
- if (peg$silentFails === 0) { peg$fail(peg$e18); }
875
+ if (peg$silentFails === 0) { peg$fail(peg$e17); }
887
876
  }
888
877
  if (s3 !== peg$FAILED) {
889
878
  peg$savedPos = s0;
@@ -906,25 +895,25 @@ function peg$parse(input, options) {
906
895
  peg$silentFails++;
907
896
  s0 = [];
908
897
  s1 = input.charAt(peg$currPos);
909
- if (peg$r3.test(s1)) {
898
+ if (peg$r4.test(s1)) {
910
899
  peg$currPos++;
911
900
  } else {
912
901
  s1 = peg$FAILED;
913
- if (peg$silentFails === 0) { peg$fail(peg$e21); }
902
+ if (peg$silentFails === 0) { peg$fail(peg$e20); }
914
903
  }
915
904
  while (s1 !== peg$FAILED) {
916
905
  s0.push(s1);
917
906
  s1 = input.charAt(peg$currPos);
918
- if (peg$r3.test(s1)) {
907
+ if (peg$r4.test(s1)) {
919
908
  peg$currPos++;
920
909
  } else {
921
910
  s1 = peg$FAILED;
922
- if (peg$silentFails === 0) { peg$fail(peg$e21); }
911
+ if (peg$silentFails === 0) { peg$fail(peg$e20); }
923
912
  }
924
913
  }
925
914
  peg$silentFails--;
926
915
  s1 = peg$FAILED;
927
- if (peg$silentFails === 0) { peg$fail(peg$e20); }
916
+ if (peg$silentFails === 0) { peg$fail(peg$e19); }
928
917
 
929
918
  return s0;
930
919
  }
package/package.json CHANGED
@@ -1,26 +1,31 @@
1
1
  {
2
2
  "name": "@evervault/eql",
3
- "version": "0.1.0",
3
+ "version": "0.2.2",
4
4
  "private": false,
5
5
  "author": "Evervault (https://evervault.com)",
6
6
  "license": "MIT",
7
7
  "description": "This package contains the grammar for Evervault Query Language (EQL).",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "https://github.com/evervault/evervault-js.git",
11
+ "directory": "packages/eql"
12
+ },
8
13
  "main": "dist/index.js",
9
14
  "module": "dist/index.mjs",
10
15
  "files": [
11
16
  "dist"
12
17
  ],
13
18
  "devDependencies": {
14
- "@types/node": "^18",
15
- "chai": "^4.4.1",
16
- "mocha": "^9.2.2",
17
- "peggy": "^4.0.2"
19
+ "@types/node": "^22",
20
+ "peggy": "^4.0.2",
21
+ "vitest": "^2.1.8"
18
22
  },
19
23
  "scripts": {
20
24
  "build:cjs": "peggy -o dist/index.js --format commonjs src/grammar.peggy",
21
25
  "build:esm": "peggy -o dist/index.mjs --format es src/grammar.peggy",
22
26
  "build": "pnpm run build:cjs && pnpm run build:esm",
27
+ "clean": "rm -rf node_modules dist",
23
28
  "prepublish": "pnpm run build",
24
- "test": "mocha 'src/**/*.test.js'"
29
+ "test": "vitest"
25
30
  }
26
31
  }