openings 0.1.16 → 0.1.17

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,6 +1,6 @@
1
1
  {
2
2
  "name": "openings",
3
- "version": "0.1.16",
3
+ "version": "0.1.17",
4
4
  "description": "Find evidence-grounded jobs, including relevant roles you may not have searched for, without accounts or API keys.",
5
5
  "author": { "name": "Openings contributors" },
6
6
  "license": "MIT",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openings",
3
- "version": "0.1.16",
3
+ "version": "0.1.17",
4
4
  "description": "A free, candidate-safe job-search substrate for AI agents",
5
5
  "license": "MIT",
6
6
  "repository": { "type": "git", "url": "git+https://github.com/abhay-avagama/hiring-agent.git" },
package/src/catalog.ts CHANGED
@@ -227,10 +227,15 @@ async function fetchWorkdayJobs(company: Company, fetcher: Fetch, signal?: Abort
227
227
  for (const code of observer?.workdayCountries ?? []) {
228
228
  const facet = WORKDAY_COUNTRY_FACETS[code.toUpperCase()];
229
229
  if (!facet) continue;
230
- const head = await page(0, { locationCountry: [facet] });
231
- const extra = [head.jobs];
232
- for (let offset = limit; offset < Math.min(head.total, WORKDAY_LISTING_CAP); offset += limit) extra.push((await page(offset, { locationCountry: [facet] })).jobs);
233
- for (const job of extra.flat()) { const key = workdayJobKey(job); if (!seen.has(key)) { seen.add(key); jobs.push(job); } }
230
+ // Best effort: some tenants reject the facet with HTTP 400. The unfiltered 2,000 are still a valid crawl, so a failed pass is skipped, not fatal.
231
+ try {
232
+ const head = await page(0, { locationCountry: [facet] });
233
+ const extra = [head.jobs];
234
+ for (let offset = limit; offset < Math.min(head.total, WORKDAY_LISTING_CAP); offset += limit) extra.push((await page(offset, { locationCountry: [facet] })).jobs);
235
+ for (const job of extra.flat()) { const key = workdayJobKey(job); if (!seen.has(key)) { seen.add(key); jobs.push(job); } }
236
+ } catch (error) {
237
+ if (signal?.aborted) throw error;
238
+ }
234
239
  }
235
240
  }
236
241
  return jobs.map((job) => normalizeWorkday(company, source, job));
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = "0.1.16";
1
+ export const VERSION = "0.1.17";