@attlaz/client 1.106.0 → 1.106.1

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.
@@ -13,7 +13,10 @@ export class CrawlJobPage {
13
13
  this.url = url;
14
14
  }
15
15
  static parse(raw) {
16
- const page = new CrawlJobPage(raw.id, raw.crawl_job_id ?? raw.crawl_job ?? '', raw.url ?? '');
16
+ // `crawl_job`, not `crawl_job_id`: the API's output serializer snake_cases every key and then
17
+ // strips a trailing `_id` (ApiOutputSerializer.formatKey), so `crawlJobId` arrives as
18
+ // `crawl_job` — the same shape CrawlJob's own `vendorId` takes.
19
+ const page = new CrawlJobPage(raw.id, (raw.crawl_job ?? raw.crawl_job_id), raw.url);
17
20
  page.status = (raw.status ?? 'pending');
18
21
  page.claimedAt = raw.claimed_at === undefined || raw.claimed_at === null ? null : new Date(raw.claimed_at);
19
22
  page.attempts = Number(raw.attempts ?? 0);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "1.105.0";
1
+ export declare const VERSION = "1.106.0";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const VERSION = "1.105.0";
1
+ export const VERSION = "1.106.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@attlaz/client",
3
- "version": "1.106.0",
3
+ "version": "1.106.1",
4
4
  "description": "Javascript Client to access Attlaz API",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",