Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Mestery <mestery@pm.me>
  • Loading branch information
aduh95 and Mesteery authored Aug 2, 2021
1 parent 9277bac commit e5fa661
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/internal/modules/esm/resolve.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const DEFAULT_CONDITIONS = ObjectFreeze(['node', 'import', ...userConditions]);
const DEFAULT_CONDITIONS_SET = new SafeSet(DEFAULT_CONDITIONS);

/**
* @typedef {string|string[]|Record<string,unknown>} Exports
* @typedef {string | string[] | Record<string, unknown>} Exports
* @typedef {'module' | 'commonjs'} PackageType
* @typedef {{
* exports?: ExportConfig;
Expand Down Expand Up @@ -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, '/');
Expand Down

0 comments on commit e5fa661

Please sign in to comment.