resuml 1.15.0 → 1.16.0
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/package.json +4 -1
- package/scripts/bundle-themes.js +4 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "resuml",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.16.0",
|
|
4
4
|
"description": "Generate JSON resumes from YAML with theme support",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/api.js",
|
|
@@ -44,6 +44,9 @@
|
|
|
44
44
|
"prepare": "husky"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
+
"@dnd-kit/core": "^6.3.1",
|
|
48
|
+
"@dnd-kit/sortable": "^10.0.0",
|
|
49
|
+
"@dnd-kit/utilities": "^3.2.2",
|
|
47
50
|
"@jsonresume/schema": "^1.0.0",
|
|
48
51
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
49
52
|
"ajv": "^8.12.0",
|
package/scripts/bundle-themes.js
CHANGED
|
@@ -294,7 +294,10 @@ function generateSnapshot(shortName, packageName) {
|
|
|
294
294
|
const render = theme.render || (theme.default && theme.default.render);
|
|
295
295
|
if (typeof render !== 'function') return null;
|
|
296
296
|
|
|
297
|
-
|
|
297
|
+
// Deep-clone SAMPLE_RESUME — some themes preprocess (e.g. markdown-ify)
|
|
298
|
+
// fields and mutate the input, which would then pollute subsequent
|
|
299
|
+
// themes' snapshots (keywords end up as "<p>TypeScript</p>" etc.).
|
|
300
|
+
const paddedResume = padResume(JSON.parse(JSON.stringify(SAMPLE_RESUME)));
|
|
298
301
|
const result = render(paddedResume);
|
|
299
302
|
// render() may return a string or a Promise
|
|
300
303
|
if (typeof result === 'string') {
|