@middy/validator 5.4.3 → 5.4.5

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/package.json +6 -7
  2. package/transpile.js +2 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@middy/validator",
3
- "version": "5.4.3",
3
+ "version": "5.4.5",
4
4
  "description": "Validator middleware for the middy framework",
5
5
  "type": "module",
6
6
  "engines": {
@@ -67,20 +67,19 @@
67
67
  "url": "https://github.com/sponsors/willfarrell"
68
68
  },
69
69
  "dependencies": {
70
- "@middy/util": "5.4.2",
71
- "ajv": "8.16.0",
70
+ "@middy/util": "5.4.5",
71
+ "ajv": "8.17.1",
72
72
  "ajv-errors": "3.0.0",
73
73
  "ajv-formats": "3.0.1",
74
74
  "ajv-formats-draft2019": "1.6.1",
75
75
  "ajv-ftl-i18n": "0.1.1",
76
- "ajv-keywords": "5.1.0",
77
- "fast-uri": "3.0.1"
76
+ "ajv-keywords": "5.1.0"
78
77
  },
79
78
  "devDependencies": {
80
- "@middy/core": "5.4.2",
79
+ "@middy/core": "5.4.5",
81
80
  "@types/http-errors": "^2.0.0",
82
81
  "ajv-bsontype": "^1.0.7",
83
- "ajv-cmd": "0.4.0"
82
+ "ajv-cmd": "0.5.0"
84
83
  },
85
84
  "gitHead": "7a6c0fbb8ab71d6a2171e678697de9f237568431"
86
85
  }
package/transpile.js CHANGED
@@ -25,7 +25,6 @@ import ajvFormats from 'ajv-formats'
25
25
  import ajvFormatsDraft2019 from 'ajv-formats-draft2019'
26
26
  import ajvKeywords from 'ajv-keywords'
27
27
  import ajvErrors from 'ajv-errors'
28
- import uriResolver from 'fast-uri'
29
28
 
30
29
  import { transpile } from 'ajv-ftl-i18n'
31
30
 
@@ -35,12 +34,8 @@ export const transpileFTL = transpile
35
34
  // *** Start `ajv-cmd/compile` *** //
36
35
  // import compileSchema from 'ajv-cmd/compile'
37
36
 
38
- const defaultOptions = {
39
- uriResolver // faster than default
40
- }
41
-
42
37
  const instance = (options = {}) => {
43
- options = { ...defaultOptions, ...options, keywords: [] }
38
+ options = { ...options, keywords: [] }
44
39
 
45
40
  const ajv = new Ajv(options)
46
41
  ajvFormats(ajv)
@@ -51,7 +46,7 @@ const instance = (options = {}) => {
51
46
  }
52
47
 
53
48
  const compileSchema = (schema, options = {}) => {
54
- options = { ...defaultOptions, ...options, keywords: [] }
49
+ options = { ...options, keywords: [] }
55
50
  const ajv = instance(options)
56
51
  return ajv.compile(schema)
57
52
  }