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 CHANGED
@@ -2613,6 +2613,11 @@
2613
2613
  "brt": {
2614
2614
  "displayName": "BRT",
2615
2615
  "color": "#dc0032",
2616
+ "aliases": [
2617
+ "BRT Bartolini",
2618
+ "BRT Bartolini (Parcel ID)",
2619
+ "BRT Bartolini (DPD)"
2620
+ ],
2616
2621
  "countries": [
2617
2622
  "IT"
2618
2623
  ],
@@ -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",
@@ -1,7 +1,11 @@
1
1
  {
2
2
  "id": "brt",
3
3
  "displayName": "BRT",
4
- "aliases": [],
4
+ "aliases": [
5
+ "BRT Bartolini",
6
+ "BRT Bartolini (Parcel ID)",
7
+ "BRT Bartolini (DPD)"
8
+ ],
5
9
  "region": {
6
10
  "countries": [
7
11
  "IT"
@@ -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))
@@ -2613,6 +2613,11 @@
2613
2613
  "brt": {
2614
2614
  "displayName": "BRT",
2615
2615
  "color": "#dc0032",
2616
+ "aliases": [
2617
+ "BRT Bartolini",
2618
+ "BRT Bartolini (Parcel ID)",
2619
+ "BRT Bartolini (DPD)"
2620
+ ],
2616
2621
  "countries": [
2617
2622
  "IT"
2618
2623
  ],
@@ -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
  ],
@@ -2,7 +2,7 @@
2
2
  "openapi": "3.1.0",
3
3
  "info": {
4
4
  "title": "Universal Parcel Scraper",
5
- "version": "0.134.0"
5
+ "version": "0.134.2"
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.134.0",
3
+ "version": "0.134.2-main.1121",
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",