Socket
Socket
Sign inDemoInstall

delivery-tracker

Package Overview
Dependencies
81
Maintainers
1
Versions
88
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.2 to 2.0.3

3

CHANGELOG.md

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

# 2.0.3
* add message cesco tracking information.
# 2.0.2

@@ -2,0 +5,0 @@ * change cesco host

7

lib/courier/cesco.js

@@ -44,3 +44,3 @@ 'use strict'

if (matches) {
var month = MAP_MONTH[(matches[1] || '').toLowerCase()]
var month = MAP_MONTH[(matches[1]).toLowerCase()] || matches[1]
var date = matches[2]

@@ -72,3 +72,4 @@ var year = matches[3]

var status = $el.find('h2').text()
var time = parseTime($el.text())
var message = $el.text().replace(/\n/gi, '').replace(/\t/gi, '')
var time = parseTime(message)

@@ -79,3 +80,3 @@ if (time) {

location: '',
message: '',
message: message,
status: MAP_STATUS[(status || '').toLowerCase()],

@@ -82,0 +83,0 @@ time: time

@@ -54,4 +54,4 @@ 'use strict'

var parser = {
summary: function (body) {
var item = body.OUT_DS1[0] || {}
summary: function (body, number) {
var item = body.OUT_DS1 ? body.OUT_DS1[0] || { hblNo: number } : { hblNo: number }
return {

@@ -137,3 +137,3 @@ number: item.hblNo

}
var summary = parser.summary(data.summary)
var summary = parser.summary(data.summary, number)
var external = parser.external(data.summary)

@@ -140,0 +140,0 @@ var checkpoints = parser.checkpoints(data.checkpoints)

{
"name": "delivery-tracker",
"version": "2.0.2",
"version": "2.0.3",
"author": {

@@ -5,0 +5,0 @@ "name": "egg",

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc