diff --git a/lib/2020.ts b/lib/2020.ts index debfb577a..6145c2acb 100644 --- a/lib/2020.ts +++ b/lib/2020.ts @@ -37,6 +37,7 @@ export class Ajv2020 extends AjvCore { } } +module.exports = exports = Ajv2020 module.exports.Ajv2020 = Ajv2020 Object.defineProperty(exports, "__esModule", {value: true}) diff --git a/lib/draft4.ts b/lib/draft4.ts index 4c7dd06b8..477723db8 100644 --- a/lib/draft4.ts +++ b/lib/draft4.ts @@ -40,6 +40,7 @@ export class Ajv extends AjvCore { } } +module.exports = exports = Ajv Object.defineProperty(exports, "__esModule", {value: true}) export default Ajv diff --git a/package.json b/package.json index a475088b1..02b88210e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@redocly/ajv", - "version": "8.18.2", + "version": "8.18.3", "description": "Another JSON Schema Validator", "main": "dist/ajv.js", "types": "dist/ajv.d.ts", diff --git a/spec/ajv2020.ts b/spec/ajv2020.ts index 259b43eb6..e231c4345 100644 --- a/spec/ajv2020.ts +++ b/spec/ajv2020.ts @@ -1,6 +1,6 @@ import type Ajv2020 from "../dist/2019" const AjvClass: typeof Ajv2020 = - typeof window == "object" ? (window as any).ajv2020 : require("" + "../dist/2020").Ajv2020 + typeof window == "object" ? (window as any).ajv2020 : require("" + "../dist/2020") export default AjvClass module.exports = AjvClass