@riboseinc/anafero-cli 0.0.30 → 0.0.31
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/bootstrap.js +14 -7
- package/bootstrap.js.map +3 -3
- package/build-site.mjs +22 -1
- package/package.json +1 -1
- package/riboseinc-anafero-cli-0.0.31.tgz +0 -0
- package/riboseinc-anafero-cli-0.0.30.tgz +0 -0
package/build-site.mjs
CHANGED
|
@@ -316996,8 +316996,29 @@ ${inject.head ?? ""}`;
|
|
|
316996
316996
|
}
|
|
316997
316997
|
this.ref("name");
|
|
316998
316998
|
this.field("body");
|
|
316999
|
+
let done12 = 0;
|
|
317000
|
+
const total = Object.keys(contentCache).length + Object.keys(resourceDescriptions).length;
|
|
317001
|
+
for (const [uri, content] of Object.entries(contentCache)) {
|
|
317002
|
+
done12 += 1;
|
|
317003
|
+
if (done12 % 50 === 0) {
|
|
317004
|
+
indexProgress({ state: `adding entry for ${uri}`, total, done: done12 });
|
|
317005
|
+
}
|
|
317006
|
+
const label = content?.content?.labelInPlainText;
|
|
317007
|
+
if (label) {
|
|
317008
|
+
const entry = {
|
|
317009
|
+
name: uri,
|
|
317010
|
+
body: label
|
|
317011
|
+
};
|
|
317012
|
+
this.add(entry);
|
|
317013
|
+
} else {
|
|
317014
|
+
console.warn("No label for", uri);
|
|
317015
|
+
}
|
|
317016
|
+
}
|
|
316999
317017
|
for (const [uri, desc] of Object.entries(resourceDescriptions)) {
|
|
317000
|
-
|
|
317018
|
+
done12 += 1;
|
|
317019
|
+
if (done12 % 50 === 0) {
|
|
317020
|
+
indexProgress({ state: "adding entries for subresources", total, done: done12 });
|
|
317021
|
+
}
|
|
317001
317022
|
const lang = desc.primaryLanguageID;
|
|
317002
317023
|
if (lang && lang !== maybePrimaryLanguageID && lang !== "en" && import_lunr.default.hasOwnProperty(lang)) {
|
|
317003
317024
|
console.warn("Resource language is different from primary language, this may not work");
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|