universal-parcel-scraper 0.236.0 → 0.237.0-main.1502

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/data/catalog.json CHANGED
@@ -589,7 +589,8 @@
589
589
  "color": "#ffcc00",
590
590
  "aliases": [
591
591
  "DHL eCommerce Solutions",
592
- "DHL Global Mail"
592
+ "DHL Global Mail",
593
+ "DHL eCommerce Global Mail"
593
594
  ],
594
595
  "countries": [
595
596
  "DE",
@@ -714,7 +714,11 @@ var Ae = {
714
714
  "dhl-ecommerce": {
715
715
  displayName: "DHL eCommerce",
716
716
  color: "#ffcc00",
717
- aliases: ["DHL eCommerce Solutions", "DHL Global Mail"],
717
+ aliases: [
718
+ "DHL eCommerce Solutions",
719
+ "DHL Global Mail",
720
+ "DHL eCommerce Global Mail"
721
+ ],
718
722
  countries: ["DE", "US"],
719
723
  selectable: !0,
720
724
  timezone: "UTC",
@@ -3,7 +3,8 @@
3
3
  "displayName": "DHL eCommerce",
4
4
  "aliases": [
5
5
  "DHL eCommerce Solutions",
6
- "DHL Global Mail"
6
+ "DHL Global Mail",
7
+ "DHL eCommerce Global Mail"
7
8
  ],
8
9
  "region": {
9
10
  "countries": [
@@ -111,11 +111,14 @@ export function carrierIdFromName(name) {
111
111
  return exact;
112
112
  // The carrier's own country names the same carrier; another country can be a
113
113
  // different company under the brand, and a multi-zone country cannot tell. A
114
- // brand with several networks names its network there.
114
+ // brand with several networks names its network there. A carrier whose scans
115
+ // are instants keeps no clock of its country, so its home country decides.
115
116
  const qualified = countryQualified(name);
116
117
  const carrier = qualified && (catalogCarrier(key(qualified.base)) ?? brandNetwork(qualified.base, qualified.country));
117
118
  const zone = qualified && countryTimeZone(qualified.country);
118
- return carrier && zone && CARRIER_DEFINITIONS[carrier]?.timezone === zone ? carrier : undefined;
119
+ const definition = carrier ? CARRIER_DEFINITIONS[carrier] : undefined;
120
+ return carrier && zone && (definition?.timezone === zone || definition?.countries?.[0] === qualified.country)
121
+ ? carrier : undefined;
119
122
  }
120
123
  /**
121
124
  * Whether a reported carrier name is already in the catalog: a carrier or alias,
@@ -589,7 +589,8 @@
589
589
  "color": "#ffcc00",
590
590
  "aliases": [
591
591
  "DHL eCommerce Solutions",
592
- "DHL Global Mail"
592
+ "DHL Global Mail",
593
+ "DHL eCommerce Global Mail"
593
594
  ],
594
595
  "countries": [
595
596
  "DE",
@@ -399,7 +399,7 @@ export declare const CARRIER_CATALOG: {
399
399
  readonly "dhl-ecommerce": {
400
400
  readonly displayName: "DHL eCommerce";
401
401
  readonly color: "#ffcc00";
402
- readonly aliases: readonly ["DHL eCommerce Solutions", "DHL Global Mail"];
402
+ readonly aliases: readonly ["DHL eCommerce Solutions", "DHL Global Mail", "DHL eCommerce Global Mail"];
403
403
  readonly countries: readonly ["DE", "US"];
404
404
  readonly selectable: true;
405
405
  readonly timezone: "UTC";
@@ -590,7 +590,8 @@ export const CARRIER_CATALOG = {
590
590
  "color": "#ffcc00",
591
591
  "aliases": [
592
592
  "DHL eCommerce Solutions",
593
- "DHL Global Mail"
593
+ "DHL Global Mail",
594
+ "DHL eCommerce Global Mail"
594
595
  ],
595
596
  "countries": [
596
597
  "DE",
@@ -2,7 +2,7 @@
2
2
  "openapi": "3.1.0",
3
3
  "info": {
4
4
  "title": "Universal Parcel Scraper",
5
- "version": "0.236.0"
5
+ "version": "0.237.0"
6
6
  },
7
7
  "paths": {
8
8
  "/health": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "universal-parcel-scraper",
3
- "version": "0.236.0",
3
+ "version": "0.237.0-main.1502",
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",