New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

geartrack

Package Overview
Dependencies
Maintainers
2
Versions
106
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

geartrack - npm Package Compare versions

Comparing version

to
2.5.7

2

package.json
{
"name": "geartrack",
"version": "2.5.6",
"version": "2.5.7",
"description": "Tracking providers for Gearbest and AliExpress Orders.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -75,6 +75,10 @@ 'use strict';

if(table[4].children[0].data) {
state['status'] = table[4].children[0].data.trim()
if(table[4].children.length == 0) {
state['status'] = 'Sem estado'
} else {
state['status'] = table[4].children[0].children[0].data.trim()
if(table[4].children[0].data) {
state['status'] = table[4].children[0].data.trim()
} else {
state['status'] = table[4].children[0].children[0].data.trim()
}
}

@@ -81,0 +85,0 @@

@@ -366,2 +366,47 @@ const assert = require('chai').assert

it('RE845621341SE - must pass', function (done) {
const id = 'RE845621341SE'
ctt.getInfo(id, (err, info) => {
assert.isNull(err)
assert.equal(info.id, id)
assert.equal(info.state.status, 'Sem estado')
assert.deepEqual(info.messages, [
{
"day": "2017-04-26T00:00:00+01:00",
"status": [
{
"time": "2017-04-26T19:34:00+01:00",
"status": "Para apresentação à Alfândega",
"local": "LISBOA"
}
]
},
{
"day": "2017-04-25T00:00:00+01:00",
"status": [
{
"time": "2017-04-25T08:15:00+01:00",
"status": "Receção internacional",
"local": "LISBOA"
}
]
},
{
"day": "2017-04-12T00:00:00+01:00",
"status": [
{
"time": "2017-04-12T13:29:00+01:00",
"status": "Expedição internacional",
"local": "Local não definido"
}
]
}
])
console.log(id + ' attempts: ' + info.retries)
done()
})
});
it('should fail to extract', function (done) {

@@ -368,0 +413,0 @@ const id = '423423424'