Skip to content

Commit 9db3304

Browse files
cjihrigtargos
authored andcommitted
esm: update to correct deprecation code
#36918 landed with references to DEP0150, which is already used for a different deprecation. This commit updates the code to use DEP0151. PR-URL: #37147 Refs: #36918 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Zijian Liu <lxxyxzj@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 7378b84 commit 9db3304

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/internal/modules/esm/resolve.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function emitLegacyIndexDeprecation(url, packageJSONUrl, base, main) {
7878
basePath}.\n Automatic extension resolution of the "main" field is` +
7979
'deprecated for ES modules.',
8080
'DeprecationWarning',
81-
'DEP0150'
81+
'DEP0151'
8282
);
8383
else
8484
process.emitWarning(
@@ -87,7 +87,7 @@ function emitLegacyIndexDeprecation(url, packageJSONUrl, base, main) {
8787
StringPrototypeSlice(path, pkgPath.length)}", imported from ${basePath
8888
}.\nDefault "index" lookups for the main are deprecated for ES modules.`,
8989
'DeprecationWarning',
90-
'DEP0150'
90+
'DEP0151'
9191
);
9292
}
9393

0 commit comments

Comments
 (0)