job-pro 1.0.73 → 1.0.74

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.
Files changed (2) hide show
  1. package/dist/apply.js +8 -1
  2. package/package.json +1 -1
package/dist/apply.js CHANGED
@@ -971,7 +971,14 @@ export async function executeBeisenWecruit(staged, session, target) {
971
971
  const host = url.host;
972
972
  const apiBase = `${url.protocol}//${host}/wecruit`;
973
973
  const debug = target.kind === "debug";
974
- const sessionHeaders = sessionHeaderBag(session, host);
974
+ // X-Requested-With is required for Beisen Wecruit Nginx routing —
975
+ // without it the request falls through to the SPA HTML (verified
976
+ // via probe in 1.0.63). Inject unconditionally even if the captured
977
+ // session.json didn't include it.
978
+ const sessionHeaders = {
979
+ ...sessionHeaderBag(session, host),
980
+ "X-Requested-With": "XMLHttpRequest",
981
+ };
975
982
  const FileCtor = globalThis.File;
976
983
  const steps = [];
977
984
  const applicant = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "job-pro",
3
- "version": "1.0.73",
3
+ "version": "1.0.74",
4
4
  "description": "Query Chinese big-tech campus recruiting + auto-apply from your terminal. 50 companies, all 50 live (46 via official APIs, 4 via Liepin third-party fallback). 45/50 with end-to-end verified apply endpoints; 5 structurally-external (Liepin IM × 4 + Unitree WeChat). No signup, no token, no server.",
5
5
  "homepage": "https://job.ha7ch.com",
6
6
  "repository": "https://github.com/HA7CH/job-pro",