request-guardian 1.0.8 → 1.0.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.
Files changed (2) hide show
  1. package/index.js +1 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -2,7 +2,7 @@ const { validationResult, ValidationChain } = require('express-validator');
2
2
 
3
3
  async function validate(req, res, next) {
4
4
  try {
5
- let validations = require('../utils/validations/index.js')[req.path];
5
+ let validations = require('../../utils/validations/index.js')[req.path];
6
6
  if (!validations) return next();
7
7
  for (let validation of validations) {
8
8
  const result = await validation.run(req);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "request-guardian",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {