Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2021-10-29 04:27:26 +0300
committerRich Trott <rtrott@gmail.com>2021-10-31 19:36:02 +0300
commit571e0b1b3f89d05f657355a0d2e8faf19b6b60de (patch)
tree71652c2a44c58cfb5d2417975bfd6920a606d434 /doc/api/esm.md
parent1a6d92728f746914e8e2914adcbf3c082ae13ab5 (diff)
doc: final round of markdown format changes
Once the README and find-inactive-collaborators.mjs changes land here, we can introduce markdown formatting as a step in the toolchain somewhere. Before this lands, https://github.com/nodejs/node-core-utils/pull/578 will need to land and be included in a node-core-utils release. PR-URL: https://github.com/nodejs/node/pull/40645 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Diffstat (limited to 'doc/api/esm.md')
-rw-r--r--doc/api/esm.md32
1 files changed, 16 insertions, 16 deletions
diff --git a/doc/api/esm.md b/doc/api/esm.md
index efe22b49970..6d69b98801b 100644
--- a/doc/api/esm.md
+++ b/doc/api/esm.md
@@ -1116,21 +1116,21 @@ The resolver can throw the following errors:
> **PACKAGE\_SELF\_RESOLVE**(_packageName_, _packageSubpath_, _parentURL_).
> 10. If _selfUrl_ is not **undefined**, return _selfUrl_.
> 11. While _parentURL_ is not the file system root,
-> 1. Let _packageURL_ be the URL resolution of _"node_modules/"_
-> concatenated with _packageSpecifier_, relative to _parentURL_.
-> 2. Set _parentURL_ to the parent folder URL of _parentURL_.
-> 3. If the folder at _packageURL_ does not exist, then
-> 1. Continue the next loop iteration.
-> 4. Let _pjson_ be the result of **READ\_PACKAGE\_JSON**(_packageURL_).
-> 5. If _pjson_ is not **null** and _pjson_._exports_ is not **null** or
-> **undefined**, then
-> 1. Return the result of **PACKAGE\_EXPORTS\_RESOLVE**(_packageURL_,
-> _packageSubpath_, _pjson.exports_, _defaultConditions_).
-> 6. Otherwise, if _packageSubpath_ is equal to _"."_, then
-> 1. If _pjson.main_ is a string, then
-> 1. Return the URL resolution of _main_ in _packageURL_.
-> 7. Otherwise,
-> 1. Return the URL resolution of _packageSubpath_ in _packageURL_.
+> 1. Let _packageURL_ be the URL resolution of _"node\_modules/"_
+> concatenated with _packageSpecifier_, relative to _parentURL_.
+> 2. Set _parentURL_ to the parent folder URL of _parentURL_.
+> 3. If the folder at _packageURL_ does not exist, then
+> 1. Continue the next loop iteration.
+> 4. Let _pjson_ be the result of **READ\_PACKAGE\_JSON**(_packageURL_).
+> 5. If _pjson_ is not **null** and _pjson_._exports_ is not **null** or
+> **undefined**, then
+> 1. Return the result of **PACKAGE\_EXPORTS\_RESOLVE**(_packageURL_,
+> _packageSubpath_, _pjson.exports_, _defaultConditions_).
+> 6. Otherwise, if _packageSubpath_ is equal to _"."_, then
+> 1. If _pjson.main_ is a string, then
+> 1. Return the URL resolution of _main_ in _packageURL_.
+> 7. Otherwise,
+> 1. Return the URL resolution of _packageSubpath_ in _packageURL_.
> 12. Throw a _Module Not Found_ error.
**PACKAGE\_SELF\_RESOLVE**(_packageName_, _packageSubpath_, _parentURL_)
@@ -1242,7 +1242,7 @@ _internal_, _conditions_)
> 1. Return **PACKAGE\_RESOLVE**(_target_ with every instance of
> _"\*"_ replaced by _subpath_, _packageURL_ + _"/"_).
> 2. Return **PACKAGE\_RESOLVE**(_target_ + _subpath_,
-> _packageURL_ + _"/"_)_.
+> _packageURL_ + _"/"_).
> 2. Otherwise, throw an _Invalid Package Target_ error.
> 3. If _target_ split on _"/"_ or _"\\"_ contains any _"."_, _".."_ or
> _"node\_modules"_ segments after the first segment, case insensitive and