@k3000/store 1.4.3 → 1.4.4

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/architect.mjs +8 -2
  2. package/package.json +1 -1
package/architect.mjs CHANGED
@@ -729,6 +729,12 @@ export class Entities extends Array {
729
729
 
730
730
  findByValue2(name, value, value2) {
731
731
 
732
+ if (value.compare(value2) > 0) {
733
+
734
+ [value, value2] = [value2, value]
735
+ }
736
+
737
+
732
738
  }
733
739
 
734
740
  findByValue(name, value) {
@@ -753,14 +759,14 @@ export class Entities extends Array {
753
759
 
754
760
  for (i = m - 1; i >= 0; i--) {
755
761
 
756
- if (this.#storage.getValue(index[i], length) < after) break
762
+ if (this.#storage.getValue(index[i], length).compare(after) < 0) break
757
763
 
758
764
  result.unshift(index[i])
759
765
  }
760
766
 
761
767
  for (i = m + 1; i < index.length; i++) {
762
768
 
763
- if (this.#storage.getValue(index[i], length) > before) break
769
+ if (this.#storage.getValue(index[i], length).compare(before) > 0) break
764
770
 
765
771
  result.push(index[i])
766
772
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@k3000/store",
3
- "version": "1.4.3",
3
+ "version": "1.4.4",
4
4
  "description": "storage",
5
5
  "main": "generator.mjs",
6
6
  "scripts": {