@bitcobblers/wod-wiki-storage 0.59.2246 → 0.60.2248

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/index.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  export { USER_DELETED_SEED_PREFIX, collectUserScopeContext, isSeedMetaKey, isUserOwnedRow, userDeletedSeedKey, userDeletedSeedNoteId } from './chunk-AK7366MO.mjs';
2
- import { parseDomainQueryResult, bufferToOps, isDirty, bufferedGet, bufferSlot, overlayRows } from './chunk-S5RXBUSQ.mjs';
3
- export { DOMAIN_PROJECTION_VERSION, parseDomainQueryResult } from './chunk-S5RXBUSQ.mjs';
4
- import { STORE_DEFS, isRange, rangeFromIDB, keyFromValue, stampUserOwned, rowsEqual, keyInRange, compareKeys, extractKeyPart, validateStorageRow, validateNoteWrite, validateSessionWrite, validateStoredPins, encodeKey } from './chunk-325UJL7V.mjs';
5
- export { COLUMN_TYPES, DB_VERSION, DEFAULT_MEMBERSHIP_ID, STORE_DEFS, USER_OWNED_STORES, compareKeys, createDefaultMembership, encodeKey, extractKeyPart, isRange, keyFromValue, keyInRange, rangeFromIDB, rowsEqual, stampUserOwned, validateNoteWrite, validateSessionWrite, validateStorageRow, validateStoredPins } from './chunk-325UJL7V.mjs';
2
+ import { parseDomainQueryResult, bufferToOps, isDirty, bufferedGet, bufferSlot, overlayRows } from './chunk-WSFEAN7C.mjs';
3
+ export { DOMAIN_PROJECTION_VERSION, parseDomainQueryResult } from './chunk-WSFEAN7C.mjs';
4
+ import { STORE_DEFS, isRange, rangeFromIDB, keyFromValue, stampUserOwned, rowsEqual, keyInRange, compareKeys, extractKeyPart, validateStorageRow, validateNoteWrite, validateSessionWrite, validateStoredPins, encodeKey } from './chunk-W4J74CHN.mjs';
5
+ export { COLUMN_TYPES, DB_VERSION, DEFAULT_MEMBERSHIP_ID, STORE_DEFS, USER_OWNED_STORES, compareKeys, createDefaultMembership, encodeKey, extractKeyPart, isRange, keyFromValue, keyInRange, rangeFromIDB, rowsEqual, stampUserOwned, validateNoteWrite, validateSessionWrite, validateStorageRow, validateStoredPins } from './chunk-W4J74CHN.mjs';
6
6
  import './chunk-XRQKLSOT.mjs';
7
7
 
8
8
  // src/api.ts
@@ -445,7 +445,7 @@ async function validateStoredPins(notes, sessions, getRevisions) {
445
445
  let i = 0;
446
446
  for (const note of notes) for (const block of Object.values(note.blocks)) {
447
447
  const revision = revisions[i++];
448
- if (!revision || revision.kind !== block.kind || revision.rawContent !== note.rawContent.slice(block.from, block.to) || revision.dialect !== block.dialect || revision.sport !== block.sport) throw new StorageError(409, "Note block has no matching immutable revision", "invalid_note_blocks");
448
+ if (revision && (revision.kind !== block.kind || revision.rawContent !== note.rawContent.slice(block.from, block.to) || revision.dialect !== block.dialect || revision.sport !== block.sport)) throw new StorageError(409, "Note block has no matching immutable revision", "invalid_note_blocks");
449
449
  }
450
450
  for (let sessionIndex = 0; sessionIndex < sessions.length; sessionIndex++) {
451
451
  const revision = revisions[i++];