MCPcopy
hub / github.com/apache/pouchdb / decodeMetadataCompat

Function decodeMetadataCompat

lib/index-browser.js:6051–6058  ·  view source on GitHub ↗
(storedObject)

Source from the content-addressed store, hash-verified

6049 function migrateMetadata(txn) {
6050
6051 function decodeMetadataCompat(storedObject) {
6052 if (!storedObject.data) {
6053 // old format, when we didn't store it stringified
6054 storedObject.deleted = storedObject.deletedOrLocal === '1';
6055 return storedObject;
6056 }
6057 return decodeMetadata(storedObject);
6058 }
6059
6060 // ensure that every metadata has a winningRev and seq,
6061 // which was previously created on-the-fly but better to migrate

Callers 1

migrateMetadataFunction · 0.70

Calls 1

decodeMetadataFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…