Skip to content

Commit

Permalink
hopefully fix following google chrome update
Browse files Browse the repository at this point in the history
TC39 has consensus for trying to deprecate and remove the `assert` keyword in favor of the new `with` keyword in import attribute syntax. That is, `import m from 'foo' assert { type: 'json' }` will now throw a SyntaxError, and developers must change to `import m from 'foo' with { type: 'json' }`. tc39/proposal-import-attributes#135
  • Loading branch information
ludoaubert authored Jun 18, 2024
1 parent dc68c4d commit 8f0763b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion diagload.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import sample_contexts from "./contexts.json" assert {type: "json"};
import sample_contexts from "./contexts.json" with {type: "json"};

import {default as createMyModule} from "./latuile-origine.js";
import {init, mydata, data, resetData, displayCurrent, createMutationObserver} from "./table_edit.js";
Expand Down
2 changes: 1 addition & 1 deletion table_edit.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import sample_diagdata from "./diagdata.json" assert {type: "json"};
import sample_diagdata from "./diagdata.json" with {type: "json"};

import {mycontexts, contexts, resetContexts, setContexts, drawDiag, compute_links, ApplyRepartition, enforce_bounding_rectangle, data2contexts} from "./diagload.js";
import {download} from "./iocomponent.js";
Expand Down

0 comments on commit 8f0763b

Please sign in to comment.