@crawly/grasshopper-parser-avianca
Advanced tools
Comparing version 0.1.5 to 0.1.6
@@ -11,6 +11,2 @@ export declare class FlightsNotFound extends Error { | ||
/** | ||
* Message list of errors generated. | ||
*/ | ||
messages: string[]; | ||
/** | ||
* FlightsNotFound constructor. | ||
@@ -20,3 +16,3 @@ * | ||
*/ | ||
constructor(message: string); | ||
constructor(message?: string); | ||
} |
@@ -24,2 +24,3 @@ "use strict"; | ||
function FlightsNotFound(message) { | ||
if (message === void 0) { message = 'A consulta não retornou dados'; } | ||
var _this = _super.call(this, message) || this; | ||
@@ -34,6 +35,2 @@ /** | ||
_this.ignoreOnTrack = true; | ||
/** | ||
* Message list of errors generated. | ||
*/ | ||
_this.messages = []; | ||
return _this; | ||
@@ -40,0 +37,0 @@ } |
@@ -338,3 +338,3 @@ "use strict"; | ||
if (E[0].code === '10031') { | ||
throw new FlightsNotFound_1.FlightsNotFound('A data da partida solicitada não está correta.'); | ||
throw new FlightsNotFound_1.FlightsNotFound('A data da partida solicitada não está correta'); | ||
} | ||
@@ -341,0 +341,0 @@ } |
{ | ||
"name": "@crawly/grasshopper-parser-avianca", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "parser.js", |
@@ -13,7 +13,2 @@ export class FlightsNotFound extends Error { | ||
/** | ||
* Message list of errors generated. | ||
*/ | ||
messages: string[] = []; | ||
/** | ||
* FlightsNotFound constructor. | ||
@@ -23,5 +18,5 @@ * | ||
*/ | ||
constructor(message: string) { | ||
constructor(message: string = 'A consulta não retornou dados') { | ||
super(message); | ||
} | ||
} |
@@ -510,3 +510,3 @@ import { Constants } from './lib/constants'; | ||
if (E[0].code === '10031') { | ||
throw new FlightsNotFound('A data da partida solicitada não está correta.'); | ||
throw new FlightsNotFound('A data da partida solicitada não está correta'); | ||
} | ||
@@ -513,0 +513,0 @@ } |
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
4114570
3630