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.0.0 to 0.1.0

67

dist/index.d.ts
/**
* Port from https://github.com/stacktracejs/error-stack-parser-es
*/
interface StackFrameOptions {
isConstructor?: boolean;
isEval?: boolean;
isNative?: boolean;
isToplevel?: boolean;
columnNumber?: number;
lineNumber?: number;
fileName?: string;
functionName?: string;
source?: string;
args?: any[];
evalOrigin?: StackFrame;
}
interface StackFrame {
new (obj: StackFrameOptions): StackFrame;
args?: any[];
getArgs(): any[] | undefined;
setArgs(args: any[]): void;
evalOrigin?: StackFrame;
getEvalOrigin(): StackFrame | undefined;
setEvalOrigin(stackframe: StackFrame): void;
isConstructor?: boolean;
getIsConstructor(): boolean | undefined;
setIsConstructor(isConstructor: boolean): void;
isEval?: boolean;
getIsEval(): boolean | undefined;
setIsEval(isEval: boolean): void;
isNative?: boolean;
getIsNative(): boolean | undefined;
setIsNative(isNative: boolean): void;
isToplevel?: boolean;
getIsToplevel(): boolean | undefined;
setIsToplevel(isToplevel: boolean): void;
columnNumber?: number;
getColumnNumber(): number | undefined;
setColumnNumber(columnNumber: number): void;
lineNumber?: number;
getLineNumber(): number | undefined;
setLineNumber(lineNumber: number): void;
fileName?: string;
getFileName(): string | undefined;
setFileName(fileName: string): void;
functionName?: string;
getFunctionName(): string | undefined;
setFunctionName(functionName: string): void;
source?: string;
getSource(): string | undefined;
setSource(source: string): void;
toString(): string;
}

@@ -60,11 +22,32 @@ /**

*/
declare function parse(error: Error): StackFrame[];
declare function parse(error: Error): StackFrame[] | {
functionName: string | undefined;
args: string[] | undefined;
fileName: string;
lineNumber: number | undefined;
columnNumber: number | undefined;
source: string;
}[];
declare function extractLocation(urlLike: string): string[] | readonly [string, string | undefined, string | undefined];
declare function parseV8OrIE(error: Error): StackFrame[];
declare function parseFFOrSafari(error: Error): StackFrame[];
declare function parseOpera(e: Error): StackFrame[];
declare function parseOpera(e: Error): StackFrame[] | {
functionName: string | undefined;
args: string[] | undefined;
fileName: string;
lineNumber: number | undefined;
columnNumber: number | undefined;
source: string;
}[];
declare function parseOpera9(e: Error): StackFrame[];
declare function parseOpera10(e: Error): StackFrame[];
declare function parseOpera11(error: Error): StackFrame[];
declare function parseOpera11(error: Error): {
functionName: string | undefined;
args: string[] | undefined;
fileName: string;
lineNumber: number | undefined;
columnNumber: number | undefined;
source: string;
}[];
export { StackFrame, StackFrameOptions, extractLocation, parse, parseFFOrSafari, parseOpera, parseOpera10, parseOpera11, parseOpera9, parseV8OrIE };
export { StackFrame, extractLocation, parse, parseFFOrSafari, parseOpera, parseOpera10, parseOpera11, parseOpera9, parseV8OrIE };
{
"name": "error-stack-parser-es",
"type": "module",
"version": "0.0.0",
"version": "0.1.0",
"packageManager": "pnpm@8.6.7",

@@ -67,3 +67,2 @@ "description": "Cross-browser Error parser",

"simple-git-hooks": "^2.8.1",
"stackframe": "^1.3.4",
"typescript": "^5.1.6",

@@ -74,7 +73,2 @@ "unbuild": "^1.2.1",

},
"pnpm": {
"patchedDependencies": {
"stackframe@1.3.4": "patches/stackframe@1.3.4.patch"
}
},
"simple-git-hooks": {

@@ -81,0 +75,0 @@ "pre-commit": "pnpm lint-staged"

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