@noy-db/core 0.1.1 → 0.2.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/dist/index.cjs CHANGED
@@ -393,7 +393,6 @@ async function rotateKeys(adapter, compartment, callerKeyring, collections) {
393
393
  const userEnvelope = await adapter.get(compartment, "_keyring", userId);
394
394
  if (!userEnvelope) continue;
395
395
  const userKeyringFile = JSON.parse(userEnvelope._data);
396
- const userKek = null;
397
396
  const updatedDeks = { ...userKeyringFile.deks };
398
397
  for (const collName of collections) {
399
398
  delete updatedDeks[collName];
@@ -525,7 +524,7 @@ async function saveHistory(adapter, compartment, collection, recordId, envelope)
525
524
  async function getHistory(adapter, compartment, collection, recordId, options) {
526
525
  const allIds = await adapter.list(compartment, HISTORY_COLLECTION);
527
526
  const matchingIds = allIds.filter((id) => matchesPrefix(id, collection, recordId)).sort().reverse();
528
- let entries = [];
527
+ const entries = [];
529
528
  for (const id of matchingIds) {
530
529
  const envelope = await adapter.get(compartment, HISTORY_COLLECTION, id);
531
530
  if (!envelope) continue;