Skip to content

Commit 2b055fa

Browse files
authored
feat: use fast-uri (#392)
1 parent 9fe74ea commit 2b055fa

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
/* eslint no-prototype-builtins: 0 */
44

55
const Ajv = require('ajv')
6+
const fastUri = require('fast-uri')
67
const ajvFormats = require('ajv-formats')
78
const merge = require('deepmerge')
89
const clone = require('rfdc')({ proto: true })
@@ -52,7 +53,7 @@ function build (schema, options) {
5253

5354
options = options || {}
5455

55-
ajvInstance = new Ajv({ ...options.ajv, strictSchema: false })
56+
ajvInstance = new Ajv({ ...options.ajv, strictSchema: false, uriResolver: fastUri })
5657
ajvFormats(ajvInstance)
5758

5859
isValidSchema(schema)

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,10 @@
4444
"webpack": "^5.40.0"
4545
},
4646
"dependencies": {
47-
"ajv": "^8.6.2",
47+
"ajv": "^8.10.0",
4848
"ajv-formats": "^2.1.1",
4949
"deepmerge": "^4.2.2",
50+
"fast-uri": "^1.0.1",
5051
"rfdc": "^1.2.0",
5152
"string-similarity": "^4.0.1"
5253
},

0 commit comments

Comments
 (0)