@geekbears/gb-mongoose-query-parser 1.3.7 → 1.3.9

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.
@@ -102,11 +102,11 @@ var QueryParser = /** @class */ (function () {
102
102
  * @param count an optional flag that indicates wether a `count` operation should be performed
103
103
  * @returns the result of executing the provided query on the provided model
104
104
  */
105
- QueryParser.docByQuery = function (model, query, count) {
106
- if (count === void 0) { count = false; }
107
- return __awaiter(this, void 0, void 0, function () {
105
+ QueryParser.docByQuery = function (model_1, query_1) {
106
+ return __awaiter(this, arguments, void 0, function (model, query, count) {
108
107
  var error_1;
109
108
  var _a;
109
+ if (count === void 0) { count = false; }
110
110
  return __generator(this, function (_b) {
111
111
  switch (_b.label) {
112
112
  case 0:
@@ -129,11 +129,11 @@ var QueryParser = /** @class */ (function () {
129
129
  * @param count an optional flag that indicates wether a `count` operation should be performed
130
130
  * @returns the result of executing the provided query on the provided model
131
131
  */
132
- QueryParser.docsByQuery = function (model, query, count) {
133
- if (count === void 0) { count = false; }
134
- return __awaiter(this, void 0, void 0, function () {
132
+ QueryParser.docsByQuery = function (model_1, query_1) {
133
+ return __awaiter(this, arguments, void 0, function (model, query, count) {
135
134
  var error_2;
136
135
  var _a;
136
+ if (count === void 0) { count = false; }
137
137
  return __generator(this, function (_b) {
138
138
  switch (_b.label) {
139
139
  case 0:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geekbears/gb-mongoose-query-parser",
3
- "version": "1.3.7",
3
+ "version": "1.3.9",
4
4
  "description": "Convert url query string to MongooseJs friendly query object including advanced filtering, sorting, population, deep population, string template, type casting and many more...",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -32,18 +32,18 @@
32
32
  "homepage": "https://gitlab.com/geekbears/utilities/backend/gb-mongoose-query-parser#readme",
33
33
  "devDependencies": {
34
34
  "@testdeck/mocha": "^0.3.3",
35
- "@types/chai": "^4.3.11",
36
- "@types/lodash": "^4.14.202",
35
+ "@types/chai": "^4.3.16",
36
+ "@types/lodash": "^4.17.1",
37
37
  "@types/mocha": "^10.0.6",
38
- "@types/node": "^20.11.19",
39
- "@types/qs": "^6.9.11",
40
- "chai": "^4.4.0",
41
- "mocha": "^10.3.0",
38
+ "@types/node": "^20.12.12",
39
+ "@types/qs": "^6.9.15",
40
+ "chai": "^4.4.1",
41
+ "mocha": "^10.4.0",
42
42
  "prettier": "^3.2.5",
43
- "rimraf": "^5.0.5",
43
+ "rimraf": "^5.0.7",
44
44
  "ts-node": "^10.9.2",
45
45
  "tslint": "^6.1.3",
46
- "typescript": "^5.3.3"
46
+ "typescript": "^5.4.5"
47
47
  },
48
48
  "dependencies": {
49
49
  "lodash": "^4.17.21",