doc: fix link and history of SourceMap sections

PR-URL: https://github.com/nodejs/node/pull/57098
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 Michaël Zasso committed 2025-02-25 17:50:58 +01:00
1 parent 0de128ca97
commit b6960499c8
2 files changed
+15 -2

No files matched your search

+13
View File
@@ -1652,6 +1652,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\[]}
@@ -1714,6 +1721,12 @@ columnNumber)`
#### `sourceMap.findOrigin(lineNumber, columnNumber)`
<!-- YAML
added:
- v20.4.0
- v18.18.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
@@ -1266,9 +1266,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