Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
error-stack-parser-es
Advanced tools
A port of stacktracejs/error-stack-parser, rewrite with TypeScript and ES Modules.
import { parse } from 'error-stack-parser-es'
const stacktrace = parse(new Error('BOOM!'))
Refer to stacktracejs/error-stack-parser for more details.
Additionally, this fork added a lite version of the API representation for the stack frames. You can import it from error-stack-parser-es/lite
. For example, line
and col
instead of lineNumber
and columnNumber
.
import { parse } from 'error-stack-parser-es/lite'
const stacktrace = parse(new Error('BOOM!'))
// [{ file: 'file.js', name: 'method', line: 1, col: 2}]
It also allows you to parse directly from a stacktrace string (which does not support Opera stacktrace format).
import { parseStack } from 'error-stack-parser-es/lite'
const stacktrace = parseStack('Error\n at method (file.js:1:2)')
// [{ file: 'file.js', name: 'method', line: 1, col: 2}]
MIT License © 2023-PRESENT Anthony Fu MIT License © 2017 Eric Wendelin
FAQs
Cross-browser Error parser
We found that error-stack-parser-es demonstrated a healthy version release cadence and project activity because the last version was released less than 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
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.