UNPKG

sqlocal

Version:

SQLocal makes it easy to run SQLite3 in the browser, backed by the origin private file system.

9 lines 312 B
export async function mutationLock(options, mutation) { if (!options.bypass && 'locks' in navigator) { return navigator.locks.request(`_sqlocal_mutation_(${options.key})`, { mode: options.mode }, mutation); } else { return mutation(); } } //# sourceMappingURL=mutation-lock.js.map