universal-parcel-scraper 0.134.0 → 0.134.2-main.1121
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 +5 -0
- package/dist/browser/scraper.js +5 -0
- package/dist/carriers/brt/carrier.json +5 -1
- package/dist/carriers/ecoscooting/parser.js +1 -1
- package/dist/data/catalog.json +5 -0
- package/dist/generated/catalog.d.ts +1 -0
- package/dist/generated/catalog.js +5 -0
- package/dist/server/openapi.json +1 -1
- package/package.json +1 -1
package/data/catalog.json
CHANGED
package/dist/browser/scraper.js
CHANGED
|
@@ -2251,6 +2251,11 @@ var De = {
|
|
|
2251
2251
|
brt: {
|
|
2252
2252
|
displayName: "BRT",
|
|
2253
2253
|
color: "#dc0032",
|
|
2254
|
+
aliases: [
|
|
2255
|
+
"BRT Bartolini",
|
|
2256
|
+
"BRT Bartolini (Parcel ID)",
|
|
2257
|
+
"BRT Bartolini (DPD)"
|
|
2258
|
+
],
|
|
2254
2259
|
countries: ["IT"],
|
|
2255
2260
|
selectable: !0,
|
|
2256
2261
|
timezone: "UTC",
|
|
@@ -30,7 +30,7 @@ export function parseEcoscooting(payload, rawNumber) {
|
|
|
30
30
|
// The same query error is returned for absent and unavailable orders. It
|
|
31
31
|
// neither identifies a parcel nor proves that Ecoscooting does not know it.
|
|
32
32
|
if (payload.success !== 'true')
|
|
33
|
-
throw new IndeterminateError('Ecoscooting', 'Ecoscooting could not complete the tracking query');
|
|
33
|
+
throw new IndeterminateError('Ecoscooting', 'Ecoscooting could not complete the tracking query', payload.errorMsg === 'query logisticOrder by mailNo error' ? { reason: 'portal_not_found' } : {});
|
|
34
34
|
if (!isRecord(payload.packageParam) || payload.packageParam.trackingNumber !== number)
|
|
35
35
|
throw new SchemaError('Ecoscooting', 'Ecoscooting returned a different parcel');
|
|
36
36
|
if (!Array.isArray(payload.statuses) || payload.statuses.length > 500 || !payload.statuses.every(isRecord))
|
package/dist/data/catalog.json
CHANGED
|
@@ -1765,6 +1765,7 @@ export declare const CARRIER_CATALOG: {
|
|
|
1765
1765
|
readonly brt: {
|
|
1766
1766
|
readonly displayName: "BRT";
|
|
1767
1767
|
readonly color: "#dc0032";
|
|
1768
|
+
readonly aliases: readonly ["BRT Bartolini", "BRT Bartolini (Parcel ID)", "BRT Bartolini (DPD)"];
|
|
1768
1769
|
readonly countries: readonly ["IT"];
|
|
1769
1770
|
readonly selectable: true;
|
|
1770
1771
|
readonly timezone: "UTC";
|
|
@@ -2614,6 +2614,11 @@ export const CARRIER_CATALOG = {
|
|
|
2614
2614
|
"brt": {
|
|
2615
2615
|
"displayName": "BRT",
|
|
2616
2616
|
"color": "#dc0032",
|
|
2617
|
+
"aliases": [
|
|
2618
|
+
"BRT Bartolini",
|
|
2619
|
+
"BRT Bartolini (Parcel ID)",
|
|
2620
|
+
"BRT Bartolini (DPD)"
|
|
2621
|
+
],
|
|
2617
2622
|
"countries": [
|
|
2618
2623
|
"IT"
|
|
2619
2624
|
],
|
package/dist/server/openapi.json
CHANGED
package/package.json
CHANGED