
Security News
Official Go SDK for MCP in Development, Stable Release Expected in August
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.
get-stack-trace
Advanced tools
V8 stack traces with optional source map resolution.
A lot of NPM packages are transpiled either using Babel or TypeScript.
This means that if you attempt to resolve a CallSite using Error.prepareStackTrace
and Error.captureStackTrace
, the resulting CallSite object will reference the tranpiled file, rather than the original source file. However, if the project was distributed with source maps, then we can use the available source maps to resolve the original CallSite.
In practise, this is useful if the intent is to log the stack trace of an application at a particular time in execution, e.g. Slonik creates a stack trace prior to every asynchronous call for debugging purposes.
For the stack traces to resolve, packages must be distributed with a source map file along with the transpiled file, e.g. such as in the case of this project:
$ cd ./dist && tree .
.
āāā index.js
āāā index.js.flow
āāā index.js.map
āāā test.js
āāā test.js.flow
āāā test.js.map
āāā types.js
āāā types.js.flow
āāā types.js.map
import {
getStackTrace
} from 'get-stack-trace';
const stackTrace = await getStackTrace();
FAQs
Stack traces as an array of stack frames with source maps support.
The npm package get-stack-trace receives a total of 64,578 weekly downloads. As such, get-stack-trace popularity was classified as popular.
We found that get-stack-trace demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.Ā It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.
Security News
New research reveals that LLMs often fake understanding, passing benchmarks but failing to apply concepts or stay internally consistent.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.