data-prism
Advanced tools
Comparing version 0.0.33 to 0.0.34
@@ -5,5 +5,5 @@ import Ajv from "ajv"; | ||
import { columnTypeModifiers } from "./lib/column-type-modifiers.js"; | ||
import geojsonSchema from "../schemas/geojson.schema.js"; | ||
import { geoJSONSchema } from "../schemas/geojson.schema.js"; | ||
export const defaultValidator = new Ajv(); | ||
defaultValidator.addSchema(geojsonSchema); | ||
defaultValidator.addSchema(geoJSONSchema); | ||
addFormats(defaultValidator); | ||
@@ -15,3 +15,3 @@ export const createValidator = ({ schemas = [] } = {}) => { | ||
if (!("https://data-prism.dev/schemas/geojson.schema.json" in ajv.schemas)) { | ||
ajv.addSchema(geojsonSchema); | ||
ajv.addSchema(geoJSONSchema); | ||
} | ||
@@ -18,0 +18,0 @@ return ajv; |
{ | ||
"name": "data-prism", | ||
"version": "0.0.33", | ||
"version": "0.0.34", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -8,3 +8,3 @@ import Ajv, { ErrorObject, Schema as AjvSchema } from "ajv"; | ||
import { columnTypeModifiers } from "./lib/column-type-modifiers.js"; | ||
import geojsonSchema from "../schemas/geojson.schema.js"; | ||
import { geoJSONSchema } from "../schemas/geojson.schema.js"; | ||
@@ -32,3 +32,3 @@ type CreateResource = { | ||
export const defaultValidator = new Ajv(); | ||
defaultValidator.addSchema(geojsonSchema); | ||
defaultValidator.addSchema(geoJSONSchema); | ||
addFormats(defaultValidator); | ||
@@ -42,3 +42,3 @@ | ||
if (!("https://data-prism.dev/schemas/geojson.schema.json" in ajv.schemas)) { | ||
ajv.addSchema(geojsonSchema); | ||
ajv.addSchema(geoJSONSchema); | ||
} | ||
@@ -45,0 +45,0 @@ |
Sorry, the diff of this file is not supported yet
470558