From c865d558f6e703de01adfc58287ea1d564850a1e Mon Sep 17 00:00:00 2001 From: Jacob Smith <3012099+JakobJingleheimer@users.noreply.github.com> Date: Wed, 2 Oct 2024 09:26:00 +0200 Subject: [PATCH] fixup: americanize name --- lib/internal/modules/esm/resolve.js | 2 +- lib/internal/modules/package_json_reader.js | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/internal/modules/esm/resolve.js b/lib/internal/modules/esm/resolve.js index ca038673aa3f63..2bbb16dc803387 100644 --- a/lib/internal/modules/esm/resolve.js +++ b/lib/internal/modules/esm/resolve.js @@ -191,7 +191,7 @@ const legacyMainResolveExtensionsIndexes = { * 4. TRY(pkg_url/index.js, pkg_url/index.json, pkg_url/index.node) * 5. NOT_FOUND * @param {URL} packageJSONUrl - * @param {import('typings/internalBinding/modules').RecognisedPackageConfig} packageConfig + * @param {import('typings/internalBinding/modules').RecognizedPackageConfig} packageConfig * @param {string | URL | undefined} base * @returns {URL} */ diff --git a/lib/internal/modules/package_json_reader.js b/lib/internal/modules/package_json_reader.js index 85a780c8bf7289..5ae015f8fa813b 100644 --- a/lib/internal/modules/package_json_reader.js +++ b/lib/internal/modules/package_json_reader.js @@ -16,14 +16,14 @@ const { /** * @typedef {import('typings/internalBinding/modules').FullPackageConfig} FullPackageConfig - * @typedef {import('typings/internalBinding/modules').RecognisedPackageConfig} RecognisedPackageConfig + * @typedef {import('typings/internalBinding/modules').RecognizedPackageConfig} RecognizedPackageConfig * @typedef {import('typings/internalBinding/modules').SerializedPackageConfig} SerializedPackageConfig */ /** * @param {string} path * @param {SerializedPackageConfig} contents - * @returns {RecognisedPackageConfig} + * @returns {RecognizedPackageConfig} */ function deserializePackageJSON(path, contents) { if (contents === undefined) { @@ -88,7 +88,7 @@ function deserializePackageJSON(path, contents) { * specifier?: URL | string, * isESM?: boolean, * }} options - * @returns {RecognisedPackageConfig} + * @returns {RecognizedPackageConfig} */ function read(jsonPath, { base, specifier, isESM } = kEmptyObject) { // This function will be called by both CJS and ESM, so we need to make sure @@ -107,7 +107,7 @@ function read(jsonPath, { base, specifier, isESM } = kEmptyObject) { * @deprecated Expected to be removed in favor of `read` in the future. * Behaves the same was as `read`, but appends package.json to the path. * @param {string} requestPath - * @return {RecognisedPackageConfig} + * @return {RecognizedPackageConfig} */ function readPackage(requestPath) { // TODO(@anonrig): Remove this function. @@ -120,7 +120,7 @@ function readPackage(requestPath) { * @param {URL['href'] | URL['pathname']} startPath The path to start searching from. * @param {boolean} everything Whether to include the full contents of the package.json. * @returns {undefined | { - * data: everything extends true ? FullPackageConfig : RecognisedPackageConfig, + * data: everything extends true ? FullPackageConfig : RecognizedPackageConfig, * path: URL['pathname'], * }} */ @@ -166,7 +166,7 @@ function getNearestParentPackageJSON(startPath, everything = false) { /** * Returns the package configuration for the given resolved URL. * @param {URL | string} resolved - The resolved URL. - * @returns {RecognisedPackageConfig} - The package configuration. + * @returns {RecognizedPackageConfig} - The package configuration. */ function getPackageScopeConfig(resolved) { const result = modulesBinding.getPackageScopeConfig(`${resolved}`);