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 1.4.0 to 1.4.2

3

CHANGELOG.md

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

# 1.4.2
* update yello express, rincos delivery message
# 1.4.0

@@ -2,0 +5,0 @@ * add EFS.

12

lib/courier/rincos.js

@@ -61,9 +61,7 @@ 'use strict'

checkpoint.message.indexOf('Picked Up') !== -1 && (checkpoint.status = tracker.STATUS.INFO_RECEIVED)
checkpoint.message.indexOf('SUCCEED RECEIVED BY') !== -1 && (checkpoint.status = tracker.STATUS.DELIVERED)
checkpoint.message.indexOf('Delivered') !== -1 && (checkpoint.status = tracker.STATUS.DELIVERED)
checkpoint.message.indexOf('RELEASED TO REPRESENTATIVE') !== -1 && (checkpoint.status = tracker.STATUS.DELIVERED)
checkpoint.location === 'CJ-ASIA' && checkpoint.message === 'FINAL DELIVERY' && (checkpoint.status = tracker.STATUS.DELIVERED)
checkpoint.location === 'SKYNET' && checkpoint.message.indexOf('DELIVERED') !== -1 && (checkpoint.status = tracker.STATUS.DELIVERED)
checkpoint.location === 'Philippines' && checkpoint.message.indexOf('DELIVERED') !== -1 && (checkpoint.status = tracker.STATUS.DELIVERED)
if (/Picked Up/i.test(checkpoint.message) === true) {
checkpoint.status = tracker.STATUS.INFO_RECEIVED
} else if (/SUCCEED RECEIVED BY|Delivered|RELEASED TO REPRESENTATIVE|FINAL DELIVERY|DELIVERD/i.test(checkpoint.message) === true) {
checkpoint.status = tracker.STATUS.DELIVERED
}

@@ -70,0 +68,0 @@ checkpoints.push(checkpoint)

@@ -78,2 +78,6 @@ 'use strict'

if (/Delivered/i.test(checkpoint.message) === true) {
checkpoint.status = tracker.STATUS.DELIVERED
}
result.checkpoints.push(checkpoint)

@@ -80,0 +84,0 @@ })

{
"name": "delivery-tracker",
"version": "1.4.0",
"version": "1.4.2",
"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