chore(deps): dedupe ajv (#4744)
This commit is contained in:
@@ -18,7 +18,6 @@ import type { JsonSchema, UISchemaElement } from '@jsonforms/core'
|
||||
import { JsonForms, type JsonFormsChangeEvent } from '@jsonforms/vue'
|
||||
import type { Nullable, Optional } from '@speckle/shared'
|
||||
import { useMounted } from '@vueuse/core'
|
||||
import type Ajv from 'ajv'
|
||||
import { omit } from 'lodash-es'
|
||||
import { useForm } from 'vee-validate'
|
||||
import { renderers } from '~/lib/form/jsonRenderers'
|
||||
@@ -42,8 +41,7 @@ const { validate } = useForm()
|
||||
const isMounted = useMounted()
|
||||
const internalRef = ref<Nullable<{ jsonforms: { core: JsonFormsChangeEvent } }>>(null)
|
||||
const data = defineModel<Record<string, unknown>>('data')
|
||||
// @jsonforms/core vendors ajv with incorrect types for this util
|
||||
const ajv = createAjv({ useDefaults: true }) as unknown as Ajv
|
||||
const ajv = createAjv({ useDefaults: true })
|
||||
|
||||
const finalSchema = computed(() => {
|
||||
const base = props.schema
|
||||
|
||||
@@ -116,7 +116,6 @@
|
||||
"@types/ua-parser-js": "^0.7.39",
|
||||
"@typescript-eslint/eslint-plugin": "^7.12.0",
|
||||
"@typescript-eslint/parser": "^7.12.0",
|
||||
"ajv": "^8.17.1",
|
||||
"autoprefixer": "^10.4.14",
|
||||
"browserify-zlib": "^0.2.0",
|
||||
"chromatic": "^6.11.4",
|
||||
|
||||
@@ -15721,7 +15721,6 @@ __metadata:
|
||||
"@vue/apollo-composable": "npm:@speckle/apollo-composable@4.2.1-patch.1"
|
||||
"@vue/apollo-ssr": "npm:4.0.0"
|
||||
"@vueuse/core": "npm:^10.9.0"
|
||||
ajv: "npm:^8.17.1"
|
||||
apollo-upload-client: "npm:^18.0.1"
|
||||
autoprefixer: "npm:^10.4.14"
|
||||
browserify-zlib: "npm:^0.2.0"
|
||||
@@ -21792,19 +21791,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"ajv@npm:^8.0.0, ajv@npm:^8.0.1":
|
||||
version: 8.11.0
|
||||
resolution: "ajv@npm:8.11.0"
|
||||
dependencies:
|
||||
fast-deep-equal: "npm:^3.1.1"
|
||||
json-schema-traverse: "npm:^1.0.0"
|
||||
require-from-string: "npm:^2.0.2"
|
||||
uri-js: "npm:^4.2.2"
|
||||
checksum: 10/aa0dfd6cebdedde8e77747e84e7b7c55921930974b8547f54b4156164ff70445819398face32dafda4bd4c61bbc7513d308d4c2bf769f8ea6cb9c8449f9faf54
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"ajv@npm:^8.12.0, ajv@npm:~8.13.0":
|
||||
"ajv@npm:^8.0.0, ajv@npm:^8.0.1, ajv@npm:^8.12.0, ajv@npm:^8.6.1, ajv@npm:~8.13.0":
|
||||
version: 8.13.0
|
||||
resolution: "ajv@npm:8.13.0"
|
||||
dependencies:
|
||||
@@ -21816,19 +21803,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"ajv@npm:^8.17.1":
|
||||
version: 8.17.1
|
||||
resolution: "ajv@npm:8.17.1"
|
||||
dependencies:
|
||||
fast-deep-equal: "npm:^3.1.3"
|
||||
fast-uri: "npm:^3.0.1"
|
||||
json-schema-traverse: "npm:^1.0.0"
|
||||
require-from-string: "npm:^2.0.2"
|
||||
checksum: 10/ee3c62162c953e91986c838f004132b6a253d700f1e51253b99791e2dbfdb39161bc950ebdc2f156f8568035bb5ed8be7bd78289cd9ecbf3381fe8f5b82e3f33
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"ajv@npm:^8.6.1, ajv@npm:~8.12.0":
|
||||
"ajv@npm:~8.12.0":
|
||||
version: 8.12.0
|
||||
resolution: "ajv@npm:8.12.0"
|
||||
dependencies:
|
||||
@@ -29372,13 +29347,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"fast-uri@npm:^3.0.1":
|
||||
version: 3.0.6
|
||||
resolution: "fast-uri@npm:3.0.6"
|
||||
checksum: 10/43c87cd03926b072a241590e49eca0e2dfe1d347ddffd4b15307613b42b8eacce00a315cf3c7374736b5f343f27e27ec88726260eb03a758336d507d6fbaba0a
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"fast-url-parser@npm:^1.1.3":
|
||||
version: 1.1.3
|
||||
resolution: "fast-url-parser@npm:1.1.3"
|
||||
|
||||
Reference in New Issue
Block a user