Skip to content

Commit

Permalink
fix: Update punycode import path
Browse files Browse the repository at this point in the history
With later Node versions, deprecation warnings began to appear
about changing the import path to avoid using core modules,
instead to use userland modules. This follows the advice for
punycode's most recent version (v2.3.1). This should ideally
be applied for a v3.0.1 tag so a number of active packages
can remove this warning.
  • Loading branch information
wrobinson91 committed Nov 7, 2024
1 parent e937be8 commit 634367c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict";

const punycode = require("punycode");
const punycode = require("punycode/");
const regexes = require("./lib/regexes.js");
const mappingTable = require("./lib/mappingTable.json");
const { STATUS_MAPPING } = require("./lib/statusMapping.js");
Expand Down

0 comments on commit 634367c

Please sign in to comment.