@jymfony/exceptions
Advanced tools
Comparing version 0.1.0-alpha.30 to 0.1.0-alpha.31
@@ -125,3 +125,3 @@ const UNKNOWN_FUNCTION = '?'; | ||
if ('Object.construct' === element.function && element.file.match(/Namespace\.js$/)) { | ||
if ('Object.construct' === element.function && element.file.match(/(Namespace|ManagedProxy)\.js$/)) { | ||
continue; | ||
@@ -128,0 +128,0 @@ } |
{ | ||
"name": "@jymfony/exceptions", | ||
"version": "0.1.0-alpha.30", | ||
"version": "0.1.0-alpha.31", | ||
"description": "Jymfony exception (core package)", | ||
@@ -18,3 +18,3 @@ "main": "index.js", | ||
"engines": { | ||
"node": ">=8.10.0" | ||
"node": ">=12.0.0" | ||
}, | ||
@@ -25,3 +25,3 @@ "devDependencies": { | ||
"chai": "^4.2", | ||
"mocha": "^6.0" | ||
"mocha": "^10.2" | ||
}, | ||
@@ -28,0 +28,0 @@ "config": { |
@@ -7,45 +7,44 @@ /// <reference lib="es2015" /> | ||
declare class Exception extends Error { | ||
name: string; | ||
previous?: Exception|Error; | ||
code: number; | ||
declare global { | ||
class Exception extends Error { | ||
name: string; | ||
previous?: Exception | Error; | ||
code: number; | ||
/** | ||
* The parsed stack trace for this exception. | ||
*/ | ||
readonly stackTrace: StackTraceRecord[]; | ||
/** | ||
* The parsed stack trace for this exception. | ||
*/ | ||
readonly stackTrace: StackTraceRecord[]; | ||
/** | ||
* The exception message. | ||
*/ | ||
message: string; | ||
/** | ||
* The exception message. | ||
*/ | ||
message: string; | ||
/** | ||
* Constructor. | ||
*/ | ||
__construct(message?: string, code?: number, previous?: Error): void; | ||
constructor(message?: string, code?: number, previous?: Error); | ||
/** | ||
* Constructor. | ||
*/ | ||
__construct(message?: string, code?: number, previous?: Error): void; | ||
constructor(message?: string, code?: number, previous?: Error); | ||
/** | ||
* Parses the stack trace of the given error and | ||
* returns it as an key-value object. | ||
*/ | ||
static parseStackTrace(error: Error): StackTraceRecord[]; | ||
/** | ||
* Parses the stack trace of the given error and | ||
* returns it as an key-value object. | ||
*/ | ||
static parseStackTrace(error: Error): StackTraceRecord[]; | ||
private _message: string; | ||
private _stackTrace: Record<string, string>[]; | ||
private _originalStack: string; | ||
} | ||
private _message: string; | ||
private _stackTrace: Record<string, string>[]; | ||
private _originalStack: string; | ||
} | ||
declare class BadMethodCallException extends Exception {} | ||
declare class DomainException extends Exception {} | ||
declare class InvalidArgumentException extends Exception {} | ||
declare class LogicException extends Exception {} | ||
declare class OutOfBoundsException extends Exception {} | ||
declare class RuntimeException extends Exception {} | ||
declare class UnderflowException extends Exception {} | ||
declare class UnexpectedValueException extends Exception {} | ||
class BadMethodCallException extends Exception {} | ||
class DomainException extends Exception {} | ||
class InvalidArgumentException extends Exception {} | ||
class LogicException extends Exception {} | ||
class OutOfBoundsException extends Exception {} | ||
class RuntimeException extends Exception {} | ||
class UnderflowException extends Exception {} | ||
class UnexpectedValueException extends Exception {} | ||
export {}; | ||
declare global { | ||
namespace NodeJS { | ||
@@ -65,1 +64,3 @@ interface Global { | ||
} | ||
export {}; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8611