@florajs/datasource-solr 5.0.0 → 5.0.1
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/index.js +5 -1
- package/package.json +8 -8
package/index.js
CHANGED
|
@@ -64,7 +64,11 @@ function rangify(filters) {
|
|
|
64
64
|
const operator1 = filters[0].operator;
|
|
65
65
|
const operator2 = filters[1].operator;
|
|
66
66
|
|
|
67
|
-
return
|
|
67
|
+
return (
|
|
68
|
+
rangeOperators.includes(operator1) &&
|
|
69
|
+
rangeOperators.includes(operator2) &&
|
|
70
|
+
operator1.substring(0, 4) !== operator2.substring(0, 4)
|
|
71
|
+
);
|
|
68
72
|
});
|
|
69
73
|
|
|
70
74
|
if (!rangeQueries.length) return filters;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@florajs/datasource-solr",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.1",
|
|
4
4
|
"description": "Solr connection for Flora",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -43,16 +43,16 @@
|
|
|
43
43
|
"@florajs/errors": "^3.0.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@types/chai": "^4.3.
|
|
47
|
-
"@types/mocha": "^10.0.
|
|
46
|
+
"@types/chai": "^4.3.5",
|
|
47
|
+
"@types/mocha": "^10.0.1",
|
|
48
48
|
"@types/nock": "^11.1.0",
|
|
49
49
|
"chai": "^4.3.7",
|
|
50
|
-
"eslint": "^8.
|
|
51
|
-
"eslint-config-prettier": "^8.
|
|
50
|
+
"eslint": "^8.43.0",
|
|
51
|
+
"eslint-config-prettier": "^8.8.0",
|
|
52
52
|
"eslint-plugin-prettier": "^4.2.1",
|
|
53
|
-
"mocha": "^10.
|
|
54
|
-
"nock": "^13.
|
|
53
|
+
"mocha": "^10.2.0",
|
|
54
|
+
"nock": "^13.3.1",
|
|
55
55
|
"pre-commit": "^1.2.2",
|
|
56
|
-
"prettier": "^2.
|
|
56
|
+
"prettier": "^2.8.8"
|
|
57
57
|
}
|
|
58
58
|
}
|