@crawly/grasshopper-parser-avianca
Advanced tools
Comparing version 0.1.4 to 0.1.5
@@ -19,3 +19,3 @@ export declare class FlightsNotFound extends Error { | ||
*/ | ||
constructor(message: string | string[]); | ||
constructor(message: string); | ||
} |
@@ -24,3 +24,3 @@ "use strict"; | ||
function FlightsNotFound(message) { | ||
var _this = _super.call(this) || this; | ||
var _this = _super.call(this, message) || this; | ||
/** | ||
@@ -38,9 +38,2 @@ * Status code from error. | ||
_this.messages = []; | ||
if (typeof message === 'string') { | ||
_this.message = message; | ||
} | ||
else { | ||
_this.message = message[0]; | ||
_this.messages = message; | ||
} | ||
return _this; | ||
@@ -47,0 +40,0 @@ } |
{ | ||
"name": "@crawly/grasshopper-parser-avianca", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "parser.js", |
@@ -22,11 +22,5 @@ export class FlightsNotFound extends Error { | ||
*/ | ||
constructor(message: string | string[]) { | ||
super(); | ||
if (typeof message === 'string') { | ||
this.message = message; | ||
} else { | ||
this.message = message[0]; | ||
this.messages = message; | ||
} | ||
constructor(message: string) { | ||
super(message); | ||
} | ||
} |
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
4114714
3641