universal-parcel-scraper 0.561.1-main.2610 → 0.561.2-main.2612

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.
@@ -1,5 +1,5 @@
1
1
  import { accepted, recognizeFromLookup } from '../../core/adapter/index.js';
2
- import { BudgetExceededError, ChallengeError, IndeterminateError, InvalidInputError, NotFoundError, RateLimitedError, SchemaError, TransportError, UpstreamHttpError } from '../../core/errors/index.js';
2
+ import { BudgetExceededError, ChallengeError, IndeterminateError, InvalidInputError, NoHistoryError, NotFoundError, RateLimitedError, SchemaError, TransportError, UpstreamHttpError } from '../../core/errors/index.js';
3
3
  import { recoverableByDefault, runSteps } from '../../core/runner/index.js';
4
4
  import { canadaProvinceTimeZone, countryCode, countryTimeZone, explicitOffsetTime, epochMillisTime, isoTime, mislabeledLocalTime, mislabeledWallTime, usStateTimeZone } from '../../core/time/index.js';
5
5
  import { clean, fetchBounded } from '../../core/transport/index.js';
@@ -139,9 +139,10 @@ function articleResult(selected, consignmentId) {
139
139
  if (details.articleId !== selected.articleId || details.consignmentId !== consignmentId) {
140
140
  throw new SchemaError(PROVIDER, 'Australia Post returned mismatched article details');
141
141
  }
142
- // A known article without scans, shown as "Updating Status": its history is gone or never began.
142
+ // A known article without scans, shown as "Updating Status": its history is gone or never began,
143
+ // as for a label not yet scanned. Australia Post has answered for it, so it is no outage.
143
144
  if (Array.isArray(details.events) && !details.events.length)
144
- throw new IndeterminateError(PROVIDER, 'Australia Post shows no history for this article');
145
+ throw new NoHistoryError(PROVIDER, 'Australia Post shows no history for this article');
145
146
  if (!Array.isArray(details.events) || details.events.length > 500) {
146
147
  throw new SchemaError(PROVIDER, 'Australia Post returned incomplete tracking history');
147
148
  }
@@ -2,7 +2,7 @@
2
2
  "openapi": "3.1.0",
3
3
  "info": {
4
4
  "title": "Universal Parcel Scraper",
5
- "version": "0.561.1"
5
+ "version": "0.561.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.561.1-main.2610",
3
+ "version": "0.561.2-main.2612",
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",