@kenjura/ursa 0.55.0 → 0.56.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/CHANGELOG.md +5 -0
- package/package.json +1 -1
- package/src/jobs/generate.js +5 -2
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
package/src/jobs/generate.js
CHANGED
|
@@ -275,10 +275,12 @@ export async function generate({
|
|
|
275
275
|
if (!needsRegen) {
|
|
276
276
|
skippedCount++;
|
|
277
277
|
// For directory indices, store minimal data (not full bodyHtml)
|
|
278
|
+
// But include metadata for directory JSON files
|
|
279
|
+
const skippedMeta = extractMetadata(rawBody);
|
|
278
280
|
dirIndexCache.set(file, {
|
|
279
281
|
name: base,
|
|
280
282
|
url,
|
|
281
|
-
|
|
283
|
+
metadata: skippedMeta,
|
|
282
284
|
});
|
|
283
285
|
return; // Skip regenerating this file
|
|
284
286
|
}
|
|
@@ -394,10 +396,11 @@ export async function generate({
|
|
|
394
396
|
transformedMetadata,
|
|
395
397
|
};
|
|
396
398
|
|
|
397
|
-
// Store minimal data for directory indices
|
|
399
|
+
// Store minimal data for directory indices, including metadata
|
|
398
400
|
dirIndexCache.set(file, {
|
|
399
401
|
name: base,
|
|
400
402
|
url,
|
|
403
|
+
metadata: fileMeta,
|
|
401
404
|
});
|
|
402
405
|
|
|
403
406
|
const json = JSON.stringify(jsonObject);
|