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 +2 -1
- package/dist/browser/scraper.js +5 -1
- package/dist/carriers/dhl-ecommerce/carrier.json +2 -1
- package/dist/core/catalog/hints.js +5 -2
- package/dist/data/catalog.json +2 -1
- package/dist/generated/catalog.d.ts +1 -1
- package/dist/generated/catalog.js +2 -1
- package/dist/server/openapi.json +1 -1
- package/package.json +1 -1
package/data/catalog.json
CHANGED
package/dist/browser/scraper.js
CHANGED
|
@@ -714,7 +714,11 @@ var Ae = {
|
|
|
714
714
|
"dhl-ecommerce": {
|
|
715
715
|
displayName: "DHL eCommerce",
|
|
716
716
|
color: "#ffcc00",
|
|
717
|
-
aliases: [
|
|
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",
|
|
@@ -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
|
-
|
|
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,
|
package/dist/data/catalog.json
CHANGED
|
@@ -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";
|
package/dist/server/openapi.json
CHANGED
package/package.json
CHANGED