courier_tracking_auspost
Advanced tools
Comparing version 0.0.1 to 0.0.2
11
index.js
@@ -51,2 +51,13 @@ const request = require("request"); | ||
if ( | ||
response_body.QueryTrackEventsResponse.TrackingResults[0].Consignment | ||
.Articles[0].Events.length === 0 | ||
) { | ||
return cb({ | ||
connote: connote, | ||
statusCode: 404, | ||
message: "No scans found" | ||
}); | ||
} | ||
if (response.statusCode === 200) { | ||
@@ -53,0 +64,0 @@ return cb(null, normalize(response_body)); |
{ | ||
"name": "courier_tracking_auspost", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Courier tracking from provided connote for Australia Post", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
95102
231