iobroker.parcel 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/io-package.json +2 -2
- package/main.js +9 -1
- package/package.json +5 -5
package/io-package.json
CHANGED
package/main.js
CHANGED
|
@@ -907,7 +907,9 @@ class Parcel extends utils.Adapter {
|
|
|
907
907
|
if (res.data.indexOf('Amazon Anmelden') !== -1) {
|
|
908
908
|
this.log.error('Login to Amazon failed, please login to Amazon manually and check the login');
|
|
909
909
|
if (res.data.indexOf('captcha-placeholder') !== -1) {
|
|
910
|
-
this.log.warn(
|
|
910
|
+
this.log.warn(
|
|
911
|
+
'Captcha required. Please login into your account to check the state of the account. If this is not wokring please pause the adapter for 24h.',
|
|
912
|
+
);
|
|
911
913
|
}
|
|
912
914
|
this.log.info(
|
|
913
915
|
'Amazon cookie are removed. Please restart the adapter to trigger a relogin. If this is not working please manually delete parcel.0.auth.cookie',
|
|
@@ -1428,7 +1430,12 @@ class Parcel extends utils.Adapter {
|
|
|
1428
1430
|
dataDhl = await this.requestClient({
|
|
1429
1431
|
method: 'get',
|
|
1430
1432
|
url: 'https://www.dhl.de/int-verfolgen/data/search?noRedirect=true&language=de&cid=app',
|
|
1433
|
+
accept: 'application/json',
|
|
1434
|
+
'content-type': 'application/json',
|
|
1435
|
+
'user-agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 14_8 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148',
|
|
1436
|
+
'accept-language': 'de-de',
|
|
1431
1437
|
})
|
|
1438
|
+
|
|
1432
1439
|
.then(async (res) => {
|
|
1433
1440
|
this.log.debug(JSON.stringify(res.data));
|
|
1434
1441
|
if (res.data && res.data.sendungen) {
|
|
@@ -1441,6 +1448,7 @@ class Parcel extends utils.Adapter {
|
|
|
1441
1448
|
return [];
|
|
1442
1449
|
})
|
|
1443
1450
|
.catch((error) => {
|
|
1451
|
+
this.log.error('Failed to get https://www.dhl.de/int-verfolgen/data/search?noRedirect=true&language=de&cid=app');
|
|
1444
1452
|
this.log.error(error);
|
|
1445
1453
|
error.response && this.log.error(JSON.stringify(error.response.data));
|
|
1446
1454
|
return [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "iobroker.parcel",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "Parcel tracking",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "TA2k",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"url": "https://github.com/TA2k/ioBroker.parcel"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@iobroker/adapter-core": "^3.0.
|
|
28
|
+
"@iobroker/adapter-core": "^3.0.4",
|
|
29
29
|
"axios": "^1.5.1",
|
|
30
30
|
"http-cookie-agent": "^5.0.4",
|
|
31
31
|
"jsdom": "^21.1.2",
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@iobroker/testing": "^4.1.0",
|
|
39
|
-
"@types/chai": "^4.3.
|
|
40
|
-
"@types/chai-as-promised": "^7.1.
|
|
39
|
+
"@types/chai": "^4.3.9",
|
|
40
|
+
"@types/chai-as-promised": "^7.1.7",
|
|
41
41
|
"@types/mocha": "^10.0.2",
|
|
42
|
-
"@types/node": "^20.8.
|
|
42
|
+
"@types/node": "^20.8.6",
|
|
43
43
|
"@types/proxyquire": "^1.3.29",
|
|
44
44
|
"@types/sinon": "^10.0.19",
|
|
45
45
|
"@types/sinon-chai": "^3.2.10",
|