Skip to content

Commit 9e13e33

Browse files
Update doc/api/packages.md
Co-authored-by: Jacob Smith <3012099+JakobJingleheimer@users.noreply.github.com>
1 parent c4f45c3 commit 9e13e33

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

doc/api/packages.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ keys) **must** be relative path strings starting with `./`.
463463
* **Encapsulation:** Ensures all exported paths are resolved relative to
464464
the package root, making the package self-contained.
465465

466-
**2. No Path Traversal and Invalid Segments Disallowed**
466+
**2. No Path Traversal or Invalid Segments**
467467

468468
Export targets **must not** resolve to a location outside the package's root
469469
directory. Additionally, path segments like `.` (single dot), `..` (double dot),
@@ -484,8 +484,6 @@ substituted into a target pattern.
484484
}
485485
```
486486

487-
Node.js resolver (`lib/internal/modules/esm/resolve.js`) checks these.
488-
489487
* **Why?**
490488
* **Security:** Prevents path manipulation, obfuscation, and exposing
491489
sensitive files or executing unintended code.

0 commit comments

Comments
 (0)