@ewb/mongoose-query-express 1.0.4 → 1.0.6

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.
@@ -337,7 +337,7 @@ export class QueryExpress {
337
337
  }
338
338
  }
339
339
  init(req) {
340
- this.query(req).parameter = this.param;
340
+ this.query(req).model = this.param;
341
341
  }
342
342
  query(req) {
343
343
  if (this.options.queryKey in req) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ewb/mongoose-query-express",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "type": "module",
5
5
  "description": "Routes and controllers for express to handle mongoose queries",
6
6
  "main": "./lib/index.js",
@@ -17,10 +17,10 @@
17
17
  "preversion": "yarn build"
18
18
  },
19
19
  "dependencies": {
20
- "@ewb/mongoose-query": "*",
21
20
  "http-status": "^1.6.2"
22
21
  },
23
22
  "devDependencies": {
23
+ "@ewb/mongoose-query": "*",
24
24
  "@types/express": "^4.17.17",
25
25
  "@vitest/ui": "^0.31.1",
26
26
  "express": "^4.18.2",
@@ -32,7 +32,9 @@
32
32
  "typescript": "^5.0.4",
33
33
  "vitest": "^0.31.1"
34
34
  },
35
- "peerDependencies": {},
35
+ "peerDependencies": {
36
+ "@ewb/mongoose-query": "*"
37
+ },
36
38
  "repository": {
37
39
  "type": "git",
38
40
  "url": "git+https://github.com/emilswebbod/mongoose-query-express.git"