File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff 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
468468Export targets ** must not** resolve to a location outside the package's root
469469directory. 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.
You can’t perform that action at this time.
0 commit comments