universal-parcel-scraper 0.1289.0-main.8613 → 0.1289.2-main.8617
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 +1 -1
- package/dist/browser/scraper.js +1 -1
- package/dist/carriers/skif-cargo/carrier.json +1 -1
- package/dist/data/catalog.json +1 -1
- package/dist/generated/catalog.js +1 -1
- package/dist/providers/shared/result.js +6 -2
- package/dist/providers/status.js +1 -1
- package/dist/scripts/carrier-canary.js +2 -0
- package/dist/server/openapi.json +1 -1
- package/package.json +1 -1
package/data/catalog.json
CHANGED
|
@@ -57433,7 +57433,7 @@
|
|
|
57433
57433
|
"dateOnlyScans": true
|
|
57434
57434
|
},
|
|
57435
57435
|
"canaryUrl": "https://www.skif-cargo.ru/tracking/",
|
|
57436
|
-
"trackingUrlTemplate": "https://www.skif-cargo.ru/tracking/
|
|
57436
|
+
"trackingUrlTemplate": "https://www.skif-cargo.ru/tracking/",
|
|
57437
57437
|
"trackingSearchUrl": "https://www.skif-cargo.ru/tracking/",
|
|
57438
57438
|
"helpUrl": "https://www.skif-cargo.ru/contacts/",
|
|
57439
57439
|
"linkRules": [
|
package/dist/browser/scraper.js
CHANGED
|
@@ -44128,7 +44128,7 @@ var t = {
|
|
|
44128
44128
|
dateOnlyScans: !0
|
|
44129
44129
|
},
|
|
44130
44130
|
canaryUrl: "https://www.skif-cargo.ru/tracking/",
|
|
44131
|
-
trackingUrlTemplate: "https://www.skif-cargo.ru/tracking/
|
|
44131
|
+
trackingUrlTemplate: "https://www.skif-cargo.ru/tracking/",
|
|
44132
44132
|
trackingSearchUrl: "https://www.skif-cargo.ru/tracking/",
|
|
44133
44133
|
helpUrl: "https://www.skif-cargo.ru/contacts/",
|
|
44134
44134
|
linkRules: [{
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"weight"
|
|
33
33
|
],
|
|
34
34
|
"portal": {
|
|
35
|
-
"url": "https://www.skif-cargo.ru/tracking/
|
|
35
|
+
"url": "https://www.skif-cargo.ru/tracking/",
|
|
36
36
|
"searchUrl": "https://www.skif-cargo.ru/tracking/",
|
|
37
37
|
"helpUrl": "https://www.skif-cargo.ru/contacts/",
|
|
38
38
|
"canaryUrl": "https://www.skif-cargo.ru/tracking/",
|
package/dist/data/catalog.json
CHANGED
|
@@ -57433,7 +57433,7 @@
|
|
|
57433
57433
|
"dateOnlyScans": true
|
|
57434
57434
|
},
|
|
57435
57435
|
"canaryUrl": "https://www.skif-cargo.ru/tracking/",
|
|
57436
|
-
"trackingUrlTemplate": "https://www.skif-cargo.ru/tracking/
|
|
57436
|
+
"trackingUrlTemplate": "https://www.skif-cargo.ru/tracking/",
|
|
57437
57437
|
"trackingSearchUrl": "https://www.skif-cargo.ru/tracking/",
|
|
57438
57438
|
"helpUrl": "https://www.skif-cargo.ru/contacts/",
|
|
57439
57439
|
"linkRules": [
|
|
@@ -57434,7 +57434,7 @@ export const CARRIER_CATALOG = {
|
|
|
57434
57434
|
"dateOnlyScans": true
|
|
57435
57435
|
},
|
|
57436
57436
|
"canaryUrl": "https://www.skif-cargo.ru/tracking/",
|
|
57437
|
-
"trackingUrlTemplate": "https://www.skif-cargo.ru/tracking/
|
|
57437
|
+
"trackingUrlTemplate": "https://www.skif-cargo.ru/tracking/",
|
|
57438
57438
|
"trackingSearchUrl": "https://www.skif-cargo.ru/tracking/",
|
|
57439
57439
|
"helpUrl": "https://www.skif-cargo.ru/contacts/",
|
|
57440
57440
|
"linkRules": [
|
|
@@ -1058,9 +1058,13 @@ const SCHEDULE = /^(?:estimated vessel (?:departure|arrival)|cfs\/cy cut-off dat
|
|
|
1058
1058
|
const BARE_TIME = /^[((]\s*\d{1,2}\s*[::..]\s*\d{1,2}\s*[))]$/;
|
|
1059
1059
|
// A language's label with nothing after it, as 17TRACK relayed a JCEX row beside the warehouse's receipt.
|
|
1060
1060
|
const EMPTY_LABEL = /^[((]\s*(?:中文|英文|chinese|english)\s*[::]\s*[))]$/i;
|
|
1061
|
-
// A label
|
|
1061
|
+
// A label with no letter or digit, as ParcelsApp relayed a lone "@" beside a place on a Juxi Express parcel: like
|
|
1062
|
+
// an empty one, it names nothing.
|
|
1063
|
+
const WORDLESS = /^[^\p{L}\p{N}]+$/u;
|
|
1064
|
+
// A label the providers leave out of a history: a notice, a flight or schedule still to come, a bare time, an empty
|
|
1065
|
+
// language label or one without words.
|
|
1062
1066
|
const leftOut = (label) => isNotice(label) || flightToCome(label) || SCHEDULE.test(label) || BARE_TIME.test(label)
|
|
1063
|
-
|| EMPTY_LABEL.test(label);
|
|
1067
|
+
|| EMPTY_LABEL.test(label) || WORDLESS.test(label);
|
|
1064
1068
|
/** A relayed row's wording before the providers' own changes to it: SunYou's departure without the last-mile number, as SunYou's own result has it. */
|
|
1065
1069
|
const relayedText = (description) => sunYouWording(relayedNotice(text(description)).replace(CLEARANCE_STATUS, ''));
|
|
1066
1070
|
/** A relayed row's wording as shown: a Cainiao step without the carrier's note, as Cainiao's tracker shows it. */
|
package/dist/providers/status.js
CHANGED
|
@@ -158,7 +158,7 @@ export const statusMap = {
|
|
|
158
158
|
}
|
|
159
159
|
// Rows recorded before the providers left them out.
|
|
160
160
|
return relayedRowLeftOut(wording)
|
|
161
|
-
? 'A notice, a flight or schedule still to come, or a
|
|
161
|
+
? 'A notice, a flight or schedule still to come, a bare time or a label without words, which the providers leave out of a history: not a scan, so it keeps the stage the parcel already had.'
|
|
162
162
|
: undefined;
|
|
163
163
|
},
|
|
164
164
|
};
|
|
@@ -12,12 +12,14 @@ import { DEFAULT_USER_AGENT } from '../core/transport/userAgent.js';
|
|
|
12
12
|
*/
|
|
13
13
|
export const unreachableFrontDoors = {
|
|
14
14
|
'aaa-cooper': 'www.aaacooper.com drops connections from outside the Americas and from the runner\'s network; other networks in the United States get its home page',
|
|
15
|
+
'algerie-poste': 'www.ems.dz answers only Algerian networks',
|
|
15
16
|
'asyad-express': 'www.asyadexpress.om answers only Omani networks',
|
|
16
17
|
azerpost: 'www.azerpost.az does not answer connections from the United States; European networks get its tracking page',
|
|
17
18
|
'cargo-expreso': 'cargoexpreso.com does not answer connections from European and American networks; the Internet Archive reaches it',
|
|
18
19
|
cupost: 'www.cupost.co.kr does not answer connections from European and American networks; the Internet Archive reaches it',
|
|
19
20
|
flyking: 'www.flyking.in resets every HTTPS connection and serves its tracker over plain HTTP to Indian networks only',
|
|
20
21
|
'iran-post': 'tracking.post.ir answers only Iranian networks',
|
|
22
|
+
jcex: 'track.jcex.com\'s CDN refuses connections from Europe, the Americas and most of Asia',
|
|
21
23
|
'kerry-tj': 'www.kerrytj.com answers only Taiwanese networks',
|
|
22
24
|
'la-poste-tunisienne': 'www.poste.tn answers only Tunisian networks',
|
|
23
25
|
slgtrax: 'sonic.pk drops connections from the runner\'s network and some others; European and other American networks get its tracking page',
|
package/dist/server/openapi.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "universal-parcel-scraper",
|
|
3
|
-
"version": "0.1289.
|
|
3
|
+
"version": "0.1289.2-main.8617",
|
|
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",
|