Skip to content

Commit

Permalink
Update import syntax for node 22 in implementations.
Browse files Browse the repository at this point in the history
See e.g. what appears to be nodejs/node#51622.
  • Loading branch information
Julian committed May 2, 2024
1 parent 113a347 commit 2fae5a6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion implementations/js-hyperjump/bowtie_hyperjump.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import "@hyperjump/json-schema/draft-2019-09";
import "@hyperjump/json-schema/draft-07";
import "@hyperjump/json-schema/draft-06";
import "@hyperjump/json-schema/draft-04";
import packageJson from "./node_modules/@hyperjump/json-schema/package.json" assert { type: "json" };
import packageJson from "./node_modules/@hyperjump/json-schema/package.json" with { type: "json" };

const hyperjump_version = packageJson.version;

Expand Down
10 changes: 5 additions & 5 deletions implementations/js-jsonschema/bowtie_jsonschema.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import readline from "readline/promises";
import os from "os";
import process from "process";
import { Validator } from "jsonschema";
import packageJson from "./node_modules/jsonschema/package.json" assert { type: "json" };
import packageJson from "./node_modules/jsonschema/package.json" with { type: "json" };

import draft3 from "json-metaschema/draft-03-schema.json" assert { type: "json" };
import draft4 from "json-metaschema/draft-04-schema.json" assert { type: "json" };
import draft6 from "json-metaschema/draft-06-schema.json" assert { type: "json" };
import draft7 from "json-metaschema/draft-07-schema.json" assert { type: "json" };
import draft3 from "json-metaschema/draft-03-schema.json" with { type: "json" };
import draft4 from "json-metaschema/draft-04-schema.json" with { type: "json" };
import draft6 from "json-metaschema/draft-06-schema.json" with { type: "json" };
import draft7 from "json-metaschema/draft-07-schema.json" with { type: "json" };

const jsonschema_version = packageJson.version;

Expand Down

0 comments on commit 2fae5a6

Please sign in to comment.