chore: change assert to with for import attributes (#2231)
This commit is contained in:
@@ -48,7 +48,7 @@ async function fetchLatestVersion() {
|
||||
|
||||
async function readCurrentVersion() {
|
||||
const versions = (await import("../../versions.json", {
|
||||
"assert": { type: "json" },
|
||||
with: { type: "json" },
|
||||
})).default as string[];
|
||||
return versions[0];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user