Socket
Socket
Sign inDemoInstall

delivery-tracker

Package Overview
Dependencies
Maintainers
1
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

delivery-tracker - npm Package Compare versions

Comparing version 0.8.4 to 0.8.5

3

CHANGELOG.md

@@ -0,1 +1,4 @@

# 0.8.5
* fixed timeout pantos.
# 0.8.4

@@ -2,0 +5,0 @@ * update pantos shiment error handle.

4

lib/courier/pantos.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc