express-generator-typescript 2.1.7 → 2.1.8

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.
@@ -127,7 +127,7 @@ export function validate(...params: Array<string | TParamArr>): RequestHandler {
127
127
  reqObjProp !== 'params' &&
128
128
  reqObjProp !== 'query'
129
129
  ) {
130
- throw Error('param[1] must be "body", "query", or "params"');
130
+ throw Error('param[2] must be "body", "query", or "params"');
131
131
  }
132
132
  // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
133
133
  const toValidate = req[reqObjProp][paramName] as TAll;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "express-generator-typescript",
3
- "version": "2.1.7",
3
+ "version": "2.1.8",
4
4
  "description": "Generate new Express applications similar to express-generate which but sets it up to use TypeScript instead",
5
5
  "scripts": {
6
6
  "express-generator-typescript": "node bin/cli.js",