Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes standalone module exports for compatibility with esm modules. #1757

Merged
merged 2 commits into from Sep 12, 2021
Merged

fixes standalone module exports for compatibility with esm modules. #1757

merged 2 commits into from Sep 12, 2021

Conversation

bhvngt
Copy link
Contributor

@bhvngt bhvngt commented Sep 10, 2021

What issue does this pull request resolve?
#1754.

What changes did you make?

Is there anything that requires more attention while reviewing?
I have tried importing fixed standalone module on both commonjs as well as esm module projects. They both work fine.

…odules without explicitly accessing default property.

fix(lib/runtime/parseJson.ts): added `any` to error object in order to fix the type checking error.
@epoberezkin epoberezkin merged commit 6ef0c66 into ajv-validator:master Sep 12, 2021
@epoberezkin
Copy link
Member

Thank you - it's in 8.6.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

ESM module import requires using .default property
3 participants