MCPcopy Index your code
hub / github.com/OneNoteDev/WebClipper / getLastSeenVersion

Function getLastSeenVersion

src/scripts/extensions/extensionBase.ts:179–182  ·  view source on GitHub ↗

* Gets the last seen version from storage, and returns undefined if there is none in storage

()

Source from the content-addressed store, hash-verified

177 * Gets the last seen version from storage, and returns undefined if there is none in storage
178 */
179 protected getLastSeenVersion(): Version {
180 let lastSeenVersionStr = this.clipperData.getValue(ClipperStorageKeys.lastSeenVersion);
181 return lastSeenVersionStr ? new Version(lastSeenVersionStr) : undefined;
182 }
183
184 protected getNewUpdates(lastSeenVersion: Version, currentVersion: Version): Promise<ChangeLog.Update[]> {
185 return new Promise<ChangeLog.Update[]>((resolve, reject) => {

Callers

nothing calls this directly

Calls 1

getValueMethod · 0.65

Tested by

no test coverage detected