job-pro 1.0.10 → 1.0.11
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/dist/index.js +14 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -554,6 +554,20 @@ async function runCompany(adapter, company, rawArgs) {
|
|
|
554
554
|
}, compact);
|
|
555
555
|
}
|
|
556
556
|
effectiveProfile = merged.profile;
|
|
557
|
+
// --remember + --form-file: persist the merged answers back to profile.
|
|
558
|
+
if (remember && !compact) {
|
|
559
|
+
const before = JSON.stringify(prof.profile.custom ?? {});
|
|
560
|
+
const after = JSON.stringify(effectiveProfile.custom ?? {});
|
|
561
|
+
if (before !== after) {
|
|
562
|
+
const saved = saveProfile(effectiveProfile);
|
|
563
|
+
if (saved.ok) {
|
|
564
|
+
console.log(`Saved form-file answers to ${saved.path} (custom.*).`);
|
|
565
|
+
}
|
|
566
|
+
else {
|
|
567
|
+
console.error(`--remember failed: ${saved.message}`);
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
}
|
|
557
571
|
}
|
|
558
572
|
// --interactive: prompt stdin for each unanswered required field.
|
|
559
573
|
// Skipped in --compact mode (we'd be polluting JSON output with prompts).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "job-pro",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.11",
|
|
4
4
|
"description": "Query Chinese big-tech campus recruiting from your terminal. 50 companies, all 50 live. 46 via each company's own API; the 4 with no public canonical feed (Hikvision, CICC, Cainiao, WeBank) surfaced via Liepin as a clearly-labeled third-party fallback. No signup, no token, no server.",
|
|
5
5
|
"homepage": "https://job.ha7ch.com",
|
|
6
6
|
"repository": "https://github.com/HA7CH/job-pro",
|