@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.js CHANGED
@@ -337,7 +337,6 @@ async function rotateKeys(adapter, compartment, callerKeyring, collections) {
337
337
  const userEnvelope = await adapter.get(compartment, "_keyring", userId);
338
338
  if (!userEnvelope) continue;
339
339
  const userKeyringFile = JSON.parse(userEnvelope._data);
340
- const userKek = null;
341
340
  const updatedDeks = { ...userKeyringFile.deks };
342
341
  for (const collName of collections) {
343
342
  delete updatedDeks[collName];
@@ -469,7 +468,7 @@ async function saveHistory(adapter, compartment, collection, recordId, envelope)
469
468
  async function getHistory(adapter, compartment, collection, recordId, options) {
470
469
  const allIds = await adapter.list(compartment, HISTORY_COLLECTION);
471
470
  const matchingIds = allIds.filter((id) => matchesPrefix(id, collection, recordId)).sort().reverse();
472
- let entries = [];
471
+ const entries = [];
473
472
  for (const id of matchingIds) {
474
473
  const envelope = await adapter.get(compartment, HISTORY_COLLECTION, id);
475
474
  if (!envelope) continue;