diff --git a/lib/2020.ts b/lib/2020.ts index 6145c2acb..debfb577a 100644 --- a/lib/2020.ts +++ b/lib/2020.ts @@ -37,7 +37,6 @@ 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 477723db8..4c7dd06b8 100644 --- a/lib/draft4.ts +++ b/lib/draft4.ts @@ -40,7 +40,6 @@ 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 80bd7dc0b..a475088b1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@redocly/ajv", - "version": "8.18.1", + "version": "8.18.2", "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 e231c4345..259b43eb6 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") + typeof window == "object" ? (window as any).ajv2020 : require("" + "../dist/2020").Ajv2020 export default AjvClass module.exports = AjvClass