doc: fix link and history of SourceMap sections

PR-URL: https://github.com/nodejs/node/pull/57098
Backport-PR-URL: https://github.com/nodejs/node/pull/57129
Fixes: https://github.com/nodejs/node/issues/57094
Refs: https://github.com/nodejs/node/pull/48461
Refs: https://github.com/nodejs/node/pull/47790
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Jacob Smith <jacob@frende.me>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Antoine du Hamel authored and Marco Ippolito committed 2025-02-20 13:35:15 +01:00
1 parent 5c9a397699
commit 9e975f1a7d
2 files changed
+13 -2

No files matched your search

+11
View File
@@ -1033,6 +1033,13 @@ added:
#### `new SourceMap(payload[, { lineLengths }])`
<!-- YAML
changes:
- version: v20.5.0
pr-url: https://github.com/nodejs/node/pull/48461
description: Add support for `lineLengths`.
-->
* `payload` {Object}
* `lineLengths` {number\[]}
@@ -1095,6 +1102,10 @@ columnNumber)`
#### `sourceMap.findOrigin(lineNumber, columnNumber)`
<!-- YAML
added: v20.4.0
-->
* `lineNumber` {number} The 1-indexed line number of the call
site in the generated source
* `columnNumber` {number} The 1-indexed column number
+2 -2
View File
@@ -1262,9 +1262,9 @@ This section was moved to
* <a id="modules_module_findsourcemap_path_error" href="module.html#modulefindsourcemappath">`module.findSourceMap(path)`</a>
* <a id="modules_class_module_sourcemap" href="module.html#class-modulesourcemap">Class: `module.SourceMap`</a>
* <a id="modules_new_sourcemap_payload" href="module.html#new-sourcemappayload">`new SourceMap(payload)`</a>
* <a id="modules_new_sourcemap_payload" href="module.html#new-sourcemappayload--linelengths-">`new SourceMap(payload)`</a>
* <a id="modules_sourcemap_payload" href="module.html#sourcemappayload">`sourceMap.payload`</a>
* <a id="modules_sourcemap_findentry_linenumber_columnnumber" href="module.html#sourcemapfindentrylinenumber-columnnumber">`sourceMap.findEntry(lineNumber, columnNumber)`</a>
* <a id="modules_sourcemap_findentry_linenumber_columnnumber" href="module.html#sourcemapfindentrylineoffset-columnoffset">`sourceMap.findEntry(lineNumber, columnNumber)`</a>
[Determining module system]: packages.md#determining-module-system
[ECMAScript Modules]: esm.md