From e5fa661477fe330c50304e5d36c6b25f23e9b448 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Mon, 2 Aug 2021 10:13:19 +0200 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Mestery --- lib/internal/modules/esm/resolve.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/internal/modules/esm/resolve.js b/lib/internal/modules/esm/resolve.js index 54aff2d2ec6b7a..0a0da107682469 100644 --- a/lib/internal/modules/esm/resolve.js +++ b/lib/internal/modules/esm/resolve.js @@ -60,7 +60,7 @@ const DEFAULT_CONDITIONS = ObjectFreeze(['node', 'import', ...userConditions]); const DEFAULT_CONDITIONS_SET = new SafeSet(DEFAULT_CONDITIONS); /** - * @typedef {string|string[]|Record} Exports + * @typedef {string | string[] | Record} Exports * @typedef {'module' | 'commonjs'} PackageType * @typedef {{ * exports?: ExportConfig; @@ -725,7 +725,7 @@ function getPackageType(url) { /** * @param {string} specifier * @param {string | URL | undefined} base - * @returns {{packageName: string, packageSubpath: string, isScoped: boolean}} + * @returns {{ packageName: string, packageSubpath: string, isScoped: boolean }} */ function parsePackageName(specifier, base) { let separatorIndex = StringPrototypeIndexOf(specifier, '/');