@hrtips/cvx
Advanced tools
| { | ||
| "srcHash": "efdda2b35b195f5cf5f35f9313d0e342ca9581fe31fc917f0048c0a137f63d8f", | ||
| "srcHash": "c8b755e379c517fff3ab9d6078de4312fa8b942330ad57c274aa5708da0c8479", | ||
| "esbuild": "0.28.1", | ||
@@ -4,0 +4,0 @@ "modules": 44, |
@@ -61,3 +61,2 @@ // @ts-nocheck | ||
| ]; | ||
| if (!icon) return null; | ||
| return /* @__PURE__ */ jsx( | ||
@@ -64,0 +63,0 @@ Svg, |
@@ -251,3 +251,3 @@ // @ts-nocheck | ||
| ); | ||
| if (Array.isArray(docs.experience) && docs.personal) { | ||
| if (errors.length === 0 && Array.isArray(docs.experience) && docs.personal) { | ||
| const theme = THEMES[ | ||
@@ -257,18 +257,21 @@ /** @type {string} */ | ||
| ] ?? THEMES.teal; | ||
| const plan = planTwoColumn({ | ||
| content: ( | ||
| /** @type {import('./types.js').CVContent} */ | ||
| /** @type {unknown} */ | ||
| docs | ||
| ), | ||
| config, | ||
| theme, | ||
| measure | ||
| }); | ||
| for (const w of overflowWarnings(plan, config)) { | ||
| add("warning", w.forcedByConfig ? "config.yaml" : "summary.yaml", "page-overflow", { | ||
| ...w.forcedByConfig ? { path: "/page1ExperienceCount" } : {}, | ||
| message: w.message, | ||
| suggestion: w.forcedByConfig ? "check the rendered page 1; reduce page1ExperienceCount, set page1SplitBullets, or remove both for automatic pagination" : `check page ${w.page} of the render; the fix is to shorten the offending item, since no pagination can fit a single block taller than a page` | ||
| try { | ||
| const plan = planTwoColumn({ | ||
| content: ( | ||
| /** @type {import('./types.js').CVContent} */ | ||
| /** @type {unknown} */ | ||
| docs | ||
| ), | ||
| config, | ||
| theme, | ||
| measure | ||
| }); | ||
| for (const w of overflowWarnings(plan, config)) { | ||
| add("warning", w.forcedByConfig ? "config.yaml" : "summary.yaml", "page-overflow", { | ||
| ...w.forcedByConfig ? { path: "/page1ExperienceCount" } : {}, | ||
| message: w.message, | ||
| suggestion: w.forcedByConfig ? "check the rendered page 1; reduce page1ExperienceCount, set page1SplitBullets, or remove both for automatic pagination" : `check page ${w.page} of the render; the fix is to shorten the offending item, since no pagination can fit a single block taller than a page` | ||
| }); | ||
| } | ||
| } catch { | ||
| } | ||
@@ -275,0 +278,0 @@ } |
+3
-3
| { | ||
| "name": "@hrtips/cvx", | ||
| "version": "1.7.1", | ||
| "version": "1.7.2", | ||
| "description": "CVX — structured input, professional output. YAML content in, pixel-perfect CV PDFs out; swappable themes and layouts, no headless browser. MCP server included. Formerly makecv.", | ||
@@ -76,2 +76,3 @@ "mcpName": "io.github.hrtips/cvx", | ||
| "publint": "^0.3.22", | ||
| "react-dom": "^19.2.8", | ||
| "tsx": "^4.23.1", | ||
@@ -88,5 +89,4 @@ "typescript": "^7.0.2", | ||
| "js-yaml": "^4.3.0", | ||
| "react": "^19.2.8", | ||
| "react-dom": "^19.2.8" | ||
| "react": "^19.2.8" | ||
| } | ||
| } |
+1
-1
@@ -490,3 +490,3 @@ <p align="center"> | ||
| | Types | `npm run typecheck` | `tsc --noEmit` with `checkJs` + full `strict` over the JS/JSX sources (types via JSDoc + `src/pdf/types.d.ts`, derived from the JSON schema) | | ||
| | Coverage | `npm run test:cov` | [Vitest](https://vitest.dev) v8, **per-file ≥ 90%** lines/functions/statements, ≥ 85% branches — no global averaging | | ||
| | Coverage | `npm run test:cov` | [Vitest](https://vitest.dev) v8, **per-file ≥ 90%** lines/functions/statements, ≥ 85% branches — no global averaging, no per-file waivers | | ||
| | Dead code | `npm run knip` | no unused files, exports, or dependencies | | ||
@@ -493,0 +493,0 @@ | Package | `npm run publint` · `npm run attw` | [publint](https://publint.dev) packaging + [arethetypeswrong](https://arethetypeswrong.github.io) resolution | |
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
804363
0.01%6
-14.29%5845
0.03%19
5.56%- Removed
- Removed
- Removed