Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

error-stack-parser-es

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

error-stack-parser-es - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

13

dist/lite.d.ts

@@ -39,5 +39,14 @@ interface StackFrame {

declare function parse(error: Error, options?: ParseOptions): StackFrameLite[];
declare function extractLocation(urlLike: string): string[] | readonly [string, string | undefined, string | undefined];
/**
* Parse stack string from V8, Firefox, or IE into an array of StackFrames.
*/
declare function parseStack(stackString: string, options?: ParseOptions): StackFrameLite[];
/**
* Separate line and column numbers from a string of the form: (URI:Line:Column)
*/
declare function extractLocation(urlLike: string): [string, string | undefined, string | undefined];
declare function parseV8OrIE(error: Error, options?: ParseOptions): StackFrameLite[];
declare function parseV8OrIeString(stack: string, options?: ParseOptions): StackFrameLite[];
declare function parseFFOrSafari(error: Error, options?: ParseOptions): StackFrameLite[];
declare function parseFFOrSafariString(stack: string, options?: ParseOptions): StackFrameLite[];
declare function parseOpera(e: Error, options?: ParseOptions): StackFrameLite[];

@@ -48,2 +57,2 @@ declare function parseOpera9(e: Error, options?: ParseOptions): StackFrameLite[];

export { type ParseOptions, type StackFrame, type StackFrameLite, extractLocation, parse, parseFFOrSafari, parseOpera, parseOpera10, parseOpera11, parseOpera9, parseV8OrIE };
export { type ParseOptions, type StackFrame, type StackFrameLite, extractLocation, parse, parseFFOrSafari, parseFFOrSafariString, parseOpera, parseOpera10, parseOpera11, parseOpera9, parseStack, parseV8OrIE, parseV8OrIeString };

2

package.json
{
"name": "error-stack-parser-es",
"type": "module",
"version": "0.1.3",
"version": "0.1.4",
"packageManager": "pnpm@9.1.1",

@@ -6,0 +6,0 @@ "description": "Cross-browser Error parser",

@@ -28,2 +28,11 @@ # error-stack-parser-es

It also allows you to parse directly from a stacktrace string (which does not support Opera stacktrace format).
```ts
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}]
```
## License

@@ -30,0 +39,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc