diff --git a/lib/internal/modules/esm/resolve.js b/lib/internal/modules/esm/resolve.js index 308eacd306bc28..1a634189090570 100644 --- a/lib/internal/modules/esm/resolve.js +++ b/lib/internal/modules/esm/resolve.js @@ -78,7 +78,7 @@ function emitLegacyIndexDeprecation(url, packageJSONUrl, base, main) { basePath}.\n Automatic extension resolution of the "main" field is` + 'deprecated for ES modules.', 'DeprecationWarning', - 'DEP0150' + 'DEP0151' ); else process.emitWarning( @@ -87,7 +87,7 @@ function emitLegacyIndexDeprecation(url, packageJSONUrl, base, main) { StringPrototypeSlice(path, pkgPath.length)}", imported from ${basePath }.\nDefault "index" lookups for the main are deprecated for ES modules.`, 'DeprecationWarning', - 'DEP0150' + 'DEP0151' ); }