JSPM

stack-frame-mapper

0.4.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q46240F
  • License MIT

Maps a stack frame to a sourcemap.

Package Exports

  • stack-frame-mapper

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (stack-frame-mapper) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

stack-frame-mapper

Maps a stack frame to a sourcemap.

API

map

Enhances a set of StackFrames with their original positions and code (when available).

Parameters

  • frames Array<StackFrame> A set of StackFrames which contain (generated) code positions.
  • contextLines number? The number of lines to provide before and after the line specified in the StackFrame. (optional, default 3)

Returns Promise<Array<StackFrame>>