@bitcobblers/wod-wiki-engine 0.62.2264 → 0.62.2265
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/agent.cjs +8 -1
- package/dist/agent.cjs.map +1 -1
- package/dist/agent.mjs +1 -1
- package/dist/{chunk-R2OTL4D6.mjs → chunk-HUURAMN7.mjs} +15 -8
- package/dist/chunk-HUURAMN7.mjs.map +1 -0
- package/dist/index.cjs +13 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.mjs +1 -1
- package/package.json +5 -5
- package/dist/chunk-R2OTL4D6.mjs.map +0 -1
package/dist/agent.cjs
CHANGED
|
@@ -1001,10 +1001,17 @@ async function setNoteNotebooks(storage, input) {
|
|
|
1001
1001
|
const primaryUserNb = finalMemberships.find(
|
|
1002
1002
|
(id) => id !== "notebook/journal" && id !== "notebook/playground"
|
|
1003
1003
|
);
|
|
1004
|
+
const cleanedTags = note.tags ? note.tags.filter((tag) => {
|
|
1005
|
+
if (!tag.startsWith("notebook:") && !tag.startsWith("notebook/")) return true;
|
|
1006
|
+
const slug = wodWikiCore.notebookSlugFromId(tag);
|
|
1007
|
+
if (!slug) return true;
|
|
1008
|
+
return finalMemberships.includes(wodWikiCore.toNotebookId(slug));
|
|
1009
|
+
}) : void 0;
|
|
1004
1010
|
const { notebookId: _priorSingle, ...rest } = note;
|
|
1005
1011
|
const updatedNote = {
|
|
1006
1012
|
...rest,
|
|
1007
1013
|
notebookIds: finalMemberships,
|
|
1014
|
+
...cleanedTags !== void 0 ? { tags: cleanedTags } : {},
|
|
1008
1015
|
...primaryUserNb ? { notebookId: primaryUserNb } : {}
|
|
1009
1016
|
};
|
|
1010
1017
|
await tx.readwrite("notes").put(updatedNote);
|
|
@@ -4359,7 +4366,7 @@ async function ingestPortableFilesIntoStorage(storage, files, options = {}) {
|
|
|
4359
4366
|
}
|
|
4360
4367
|
|
|
4361
4368
|
// src/version.ts
|
|
4362
|
-
var VERSION = "0.62.
|
|
4369
|
+
var VERSION = "0.62.2265";
|
|
4363
4370
|
|
|
4364
4371
|
// src/feed/qr.ts
|
|
4365
4372
|
var APP_ORIGIN = "https://wod.wiki";
|