Skip to content

Commit

Permalink
Bug 1777924 - [devtools] Use legacy wrapper in update_remote_settings…
Browse files Browse the repository at this point in the history
…_records.mjs for forward compatibility with Node 16+ r=nchevobbe

Differential Revision: https://phabricator.services.mozilla.com/D150939
  • Loading branch information
juliandescottes committed Jul 4, 2022
1 parent 55ba207 commit 382e41e
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@
// from the appropriate collection in RemoteSettings.

import fetch from "node-fetch";
import compatData from "@mdn/browser-compat-data";

// Use the legacy wrapper to support all Node 12+ versions.
// If we only support Node 16+, can be updated to:
// import bcd from '@mdn/browser-compat-data' assert { type: 'json' };
// See https://github.com/mdn/browser-compat-data.
import compatData from "@mdn/browser-compat-data/forLegacyNode";

if (!process.env.AUTH) {
throw new Error(`AUTH environment variable needs to be set`);
Expand Down

0 comments on commit 382e41e

Please sign in to comment.