liekodb 0.1.4 → 0.1.5

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/liekodb.js +2 -2
  2. package/package.json +7 -2
package/liekodb.js CHANGED
@@ -1898,7 +1898,7 @@ class Validator {
1898
1898
  }
1899
1899
 
1900
1900
  const validOperators = ['$eq', '$ne', '$gt', '$gte', '$lt', '$lte', '$in', '$nin',
1901
- '$exists', '$regex', '$and', '$or', '$not'];
1901
+ '$exists', '$regex', '$and', '$or', '$nor', '$not'];
1902
1902
 
1903
1903
  for (const key in filters) {
1904
1904
  if (key.startsWith('$') && !validOperators.includes(key)) {
@@ -1908,7 +1908,7 @@ class Validator {
1908
1908
  const value = filters[key];
1909
1909
  if (value && typeof value === 'object' && !Array.isArray(value)) {
1910
1910
  this.validateFilters(value);
1911
- } else if (Array.isArray(value) && (key === '$and' || key === '$or' || key === '$in' || key === '$nin')) {
1911
+ } else if (Array.isArray(value) && (key === '$and' || key === '$or' || key === '$nor' || key === '$in' || key === '$nin')) {
1912
1912
  value.forEach(item => {
1913
1913
  if (typeof item === 'object' && item !== null) {
1914
1914
  this.validateFilters(item);
package/package.json CHANGED
@@ -1,6 +1,11 @@
1
1
  {
2
2
  "name": "liekodb",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
+ "repository": {
5
+ "type": "git",
6
+ "url": "https://github.com/eiwSrvt/liekodb"
7
+ },
8
+ "homepage": "https://github.com/eiwSrvt/liekodb",
4
9
  "description": "Lightweight, MongoDB-like JSON database for Node.js",
5
10
  "main": "liekodb.js",
6
11
  "scripts": {
@@ -26,4 +31,4 @@
26
31
  "engines": {
27
32
  "node": ">=14.0.0"
28
33
  }
29
- }
34
+ }