universal-parcel-scraper 0.7.2-main.328 → 0.7.2-main.330

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.
@@ -1758,6 +1758,22 @@
1758
1758
  "canada-post"
1759
1759
  ]
1760
1760
  },
1761
+ {
1762
+ "input": "3408372365",
1763
+ "carrier": "unknown",
1764
+ "confidence": "low",
1765
+ "candidates": [
1766
+ "dhl",
1767
+ "mondial-relay",
1768
+ "relais-colis",
1769
+ "tipsa",
1770
+ "estafeta"
1771
+ ],
1772
+ "asked": [
1773
+ "relais-colis",
1774
+ "tipsa"
1775
+ ]
1776
+ },
1761
1777
  {
1762
1778
  "input": "34913932303",
1763
1779
  "carrier": "unknown",
@@ -2154,6 +2170,22 @@
2154
2170
  "estafeta"
2155
2171
  ]
2156
2172
  },
2173
+ {
2174
+ "input": "5126149092",
2175
+ "carrier": "unknown",
2176
+ "confidence": "low",
2177
+ "candidates": [
2178
+ "dhl",
2179
+ "mondial-relay",
2180
+ "relais-colis",
2181
+ "tipsa",
2182
+ "estafeta"
2183
+ ],
2184
+ "asked": [
2185
+ "relais-colis",
2186
+ "tipsa"
2187
+ ]
2188
+ },
2157
2189
  {
2158
2190
  "input": "51963160653",
2159
2191
  "carrier": "unknown",
@@ -2508,6 +2540,22 @@
2508
2540
  "mondial-relay"
2509
2541
  ]
2510
2542
  },
2543
+ {
2544
+ "input": "7633033634",
2545
+ "carrier": "unknown",
2546
+ "confidence": "low",
2547
+ "candidates": [
2548
+ "dhl",
2549
+ "mondial-relay",
2550
+ "relais-colis",
2551
+ "tipsa",
2552
+ "estafeta"
2553
+ ],
2554
+ "asked": [
2555
+ "relais-colis",
2556
+ "tipsa"
2557
+ ]
2558
+ },
2511
2559
  {
2512
2560
  "input": "76434219",
2513
2561
  "carrier": "unknown",
@@ -7749,13 +7749,37 @@ var fs = { carriers: [
7749
7749
  carrier: "dhl",
7750
7750
  direct: "Yes",
7751
7751
  sample: "Blocked",
7752
- references: [{ results: {
7753
- Ship24: 10,
7754
- ParcelsApp: 14,
7755
- "17TRACK": "no_history",
7756
- "Postal Ninja": 14,
7757
- UPU: 1
7758
- } }]
7752
+ references: [
7753
+ { results: {
7754
+ Ship24: 10,
7755
+ ParcelsApp: 14,
7756
+ "17TRACK": "no_history",
7757
+ "Postal Ninja": 14,
7758
+ UPU: 1
7759
+ } },
7760
+ {
7761
+ note: "DHL Express waybill: https://www.trustpilot.com/reviews/6aaaf40b0ae5ece3b117fe62",
7762
+ results: {
7763
+ Ship24: 23,
7764
+ ParcelsApp: 23
7765
+ }
7766
+ },
7767
+ {
7768
+ note: "DHL Express waybill: https://www.trustpilot.com/reviews/6a901943246975fa82db1390",
7769
+ results: {
7770
+ Ship24: 14,
7771
+ ParcelsApp: "no_history"
7772
+ }
7773
+ },
7774
+ {
7775
+ note: "Older Apple DHL Express shipment: https://www.trustpilot.com/reviews/6a2c5fdea14e3bff06c7d1ff",
7776
+ stale: !0,
7777
+ results: {
7778
+ Ship24: "no_history",
7779
+ ParcelsApp: "no_history"
7780
+ }
7781
+ }
7782
+ ]
7759
7783
  },
7760
7784
  {
7761
7785
  carrier: "ups",
@@ -15,6 +15,69 @@
15
15
  },
16
16
  "note": "Publicly reported shipment number; the attribution was not independently verified."
17
17
  },
18
+ {
19
+ "number": "3408372365",
20
+ "role": "shipment",
21
+ "evidence": "public_shipment_report",
22
+ "source": {
23
+ "url": "https://www.trustpilot.com/reviews/6a901943246975fa82db1390",
24
+ "date": "2026-08-28"
25
+ },
26
+ "expect": {
27
+ "carrier": "unknown",
28
+ "confidence": "low",
29
+ "candidates": [
30
+ "dhl",
31
+ "mondial-relay",
32
+ "relais-colis",
33
+ "tipsa",
34
+ "estafeta"
35
+ ]
36
+ },
37
+ "note": "Publicly reported waybill in a DHL Express billing dispute. Express is outside the dedicated DHL Paket adapter; the shared shape stays ambiguous."
38
+ },
39
+ {
40
+ "number": "5126149092",
41
+ "role": "shipment",
42
+ "evidence": "public_shipment_report",
43
+ "source": {
44
+ "url": "https://www.trustpilot.com/reviews/6a2c5fdea14e3bff06c7d1ff",
45
+ "date": "2026-06-12"
46
+ },
47
+ "expect": {
48
+ "carrier": "unknown",
49
+ "confidence": "low",
50
+ "candidates": [
51
+ "dhl",
52
+ "mondial-relay",
53
+ "relais-colis",
54
+ "tipsa",
55
+ "estafeta"
56
+ ]
57
+ },
58
+ "note": "Publicly reported Apple shipment in Portugal, attributed to DHL Express. Express is outside the dedicated DHL Paket adapter; the shared shape stays ambiguous."
59
+ },
60
+ {
61
+ "number": "7633033634",
62
+ "role": "shipment",
63
+ "evidence": "public_shipment_report",
64
+ "source": {
65
+ "url": "https://www.trustpilot.com/reviews/6aaaf40b0ae5ece3b117fe62",
66
+ "date": "2026-09-16"
67
+ },
68
+ "expect": {
69
+ "carrier": "unknown",
70
+ "confidence": "low",
71
+ "candidates": [
72
+ "dhl",
73
+ "mondial-relay",
74
+ "relais-colis",
75
+ "tipsa",
76
+ "estafeta"
77
+ ]
78
+ },
79
+ "note": "Publicly reported DHL Express waybill in Toronto. Express is outside the dedicated DHL Paket adapter; the shared shape stays ambiguous."
80
+ },
18
81
  {
19
82
  "number": "8449089972",
20
83
  "role": "shipment",
@@ -63,6 +63,11 @@ export function trackingPlace(location) {
63
63
  if (country)
64
64
  return { country, place: kept ? text.slice(0, fields[kept].index).replace(/[\s,;|(]+$/u, '') : '' };
65
65
  if (fields.length === 1 && text === fields[0][0]) {
66
+ // Aggregators can name a DHL country operation instead of a town.
67
+ const operation = /^DHL\s+(.+)$/i.exec(text);
68
+ const operationCountry = operation ? namedCountry(operation[1], true) : null;
69
+ if (operationCountry)
70
+ return { country: operationCountry, place: '' };
66
71
  const words = text.split(/\s+/);
67
72
  for (let count = Math.min(words.length - 1, 4); count > 0; count -= 1) {
68
73
  const code = namedCountry(words.slice(0, count).join(' '), true);
@@ -13,6 +13,28 @@
13
13
  "Postal Ninja": 14,
14
14
  "UPU": 1
15
15
  }
16
+ },
17
+ {
18
+ "note": "DHL Express waybill: https://www.trustpilot.com/reviews/6aaaf40b0ae5ece3b117fe62",
19
+ "results": {
20
+ "Ship24": 23,
21
+ "ParcelsApp": 23
22
+ }
23
+ },
24
+ {
25
+ "note": "DHL Express waybill: https://www.trustpilot.com/reviews/6a901943246975fa82db1390",
26
+ "results": {
27
+ "Ship24": 14,
28
+ "ParcelsApp": "no_history"
29
+ }
30
+ },
31
+ {
32
+ "note": "Older Apple DHL Express shipment: https://www.trustpilot.com/reviews/6a2c5fdea14e3bff06c7d1ff",
33
+ "stale": true,
34
+ "results": {
35
+ "Ship24": "no_history",
36
+ "ParcelsApp": "no_history"
37
+ }
16
38
  }
17
39
  ]
18
40
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "universal-parcel-scraper",
3
- "version": "0.7.2-main.328",
3
+ "version": "0.7.2-main.330",
4
4
  "description": "Self-hosted parcel tracking: carrier detection, dedicated scrapers and optional universal providers.",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",