Skip to content

Commit

Permalink
fix(standalone/index.ts): makes standalone module importable to esm m…
Browse files Browse the repository at this point in the history
…odules without explicitly accessing default property. (#1757)

fix(lib/runtime/parseJson.ts): added `any` to error object in order to fix the type checking error.

Co-authored-by: Bhavin <bhavinkamani@gmail.com>
  • Loading branch information
bhvngt and bhavinkamani committed Sep 12, 2021
1 parent 9a9656f commit 6ef0c66
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/standalone/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type {SchemaEnv} from "../compile"
import {UsedScopeValues, UsedValueState, ValueScopeName, varKinds} from "../compile/codegen/scope"
import {_, nil, _Code, Code, getProperty} from "../compile/codegen/code"

export default function standaloneCode(
function standaloneCode(
ajv: AjvCore,
refsOrFunc?: {[K in string]?: string} | AnyValidateFunction
): string {
Expand Down Expand Up @@ -86,3 +86,8 @@ export default function standaloneCode(
}
}
}

module.exports = exports = standaloneCode
Object.defineProperty(exports, "__esModule", {value: true})

export default standaloneCode

0 comments on commit 6ef0c66

Please sign in to comment.