@spytecgps/lambda-utils 2.3.22 → 2.3.23

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/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -559,7 +559,7 @@ const validatorMiddleware = ({ schema, allowUnknown = true }) => {
559
559
  },
560
560
  });
561
561
  if (error) {
562
- sdkLogger.logger.error('Validation error', { error });
562
+ sdkLogger.logger.error({ error }, 'Validation error');
563
563
  throw error.isJoi ? new BadRequestError(error.message) : error;
564
564
  }
565
565
  request.event = value;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spytecgps/lambda-utils",
3
- "version": "2.3.22",
3
+ "version": "2.3.23",
4
4
  "description": "Lambda Utils",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",