delivery-tracker
Advanced tools
Comparing version 0.8.4 to 0.8.5
@@ -0,1 +1,4 @@ | ||
# 0.8.5 | ||
* fixed timeout pantos. | ||
# 0.8.4 | ||
@@ -2,0 +5,0 @@ * update pantos shiment error handle. |
@@ -102,6 +102,6 @@ 'use strict' | ||
return { | ||
cb(null, { | ||
courier: externalCourier, | ||
number: externalNumber | ||
} | ||
}) | ||
} | ||
@@ -108,0 +108,0 @@ |
@@ -48,2 +48,10 @@ 'use strict' | ||
var ERROR_MESSAGE = { | ||
20: 'shipment does not support.', | ||
10: 'invalid trace number.', | ||
11: 'invalid trace number.', | ||
12: 'invalid trace number.', | ||
13: 'invalid trace number.' | ||
} | ||
var STATUS = { | ||
@@ -79,10 +87,5 @@ INFO_RECEIVED: 'InfoReceived', | ||
switch (code) { | ||
case ERROR.INVALID_NUMBER: | ||
case ERROR.INVALID_NUMBER_LENGTH: | ||
case ERROR.INVALID_NUMBER_HEADER: | ||
case ERROR.INVALID_NUMBER_COUNTRY: | ||
error.code = code | ||
error.message = 'invalid trace number.' | ||
break | ||
if (ERROR_MESSAGE[code]) { | ||
error.code = code | ||
error.message = ERROR_MESSAGE[code] | ||
} | ||
@@ -89,0 +92,0 @@ |
{ | ||
"name": "delivery-tracker", | ||
"version": "0.8.4", | ||
"version": "0.8.5", | ||
"author": { | ||
@@ -5,0 +5,0 @@ "name": "egg", |
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
35428
883