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 `./`.
463
463
* ** Encapsulation:** Ensures all exported paths are resolved relative to
464
464
the package root, making the package self-contained.
465
465
466
- ** 2. No Path Traversal and Invalid Segments Disallowed **
466
+ ** 2. No Path Traversal or Invalid Segments**
467
467
468
468
Export targets ** must not** resolve to a location outside the package's root
469
469
directory. Additionally, path segments like ` . ` (single dot), ` .. ` (double dot),
@@ -484,8 +484,6 @@ substituted into a target pattern.
484
484
}
485
485
```
486
486
487
- Node.js resolver (` lib/internal/modules/esm/resolve.js ` ) checks these.
488
-
489
487
* ** Why?**
490
488
* ** Security:** Prevents path manipulation, obfuscation, and exposing
491
489
sensitive files or executing unintended code.
You can’t perform that action at this time.
0 commit comments