From 3d754feb6071c384a2c8bd2b39271079e80772b5 Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Tue, 27 Aug 2024 15:57:22 -0400 Subject: [PATCH] Use Node.js attributes instead of import assertions (removed on v22) See: https://stackoverflow.com/a/78876692 Signed-off-by: Juan Cruz Viotti --- implementations/ajv/main.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/implementations/ajv/main.mjs b/implementations/ajv/main.mjs index 0adffed..2d427d3 100644 --- a/implementations/ajv/main.mjs +++ b/implementations/ajv/main.mjs @@ -1,5 +1,5 @@ import Ajv from 'ajv'; -import draft4schema from 'ajv/lib/refs/json-schema-draft-04.json' assert { type: 'json' }; +import draft4schema from 'ajv/lib/refs/json-schema-draft-04.json' with { type: 'json' }; import fs from 'fs'; import readline from 'readline'; import { performance } from 'perf_hooks';