codesesh 0.4.0 → 0.4.1

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.
@@ -4118,6 +4118,12 @@ async function scanSessionsAsync(options = {}, onProgress) {
4118
4118
  }
4119
4119
  var BOOKMARK_DB_FILENAME = "state.db";
4120
4120
  var BOOKMARK_DB_VERSION = 1;
4121
+ var BookmarkStorageUnavailableError = class extends Error {
4122
+ constructor() {
4123
+ super("SQLite state database is unavailable");
4124
+ this.name = "BookmarkStorageUnavailableError";
4125
+ }
4126
+ };
4121
4127
  function getStateDir() {
4122
4128
  const p = platform2();
4123
4129
  if (p === "darwin") {
@@ -4166,7 +4172,7 @@ function ensureSchema2(db) {
4166
4172
  function withStateDb(fn) {
4167
4173
  const db = openDb(getStateDbPath());
4168
4174
  if (!db) {
4169
- throw new Error("SQLite state database is unavailable");
4175
+ throw new BookmarkStorageUnavailableError();
4170
4176
  }
4171
4177
  try {
4172
4178
  ensureSchema2(db);
@@ -4360,9 +4366,10 @@ export {
4360
4366
  filterSessions,
4361
4367
  scanSessions,
4362
4368
  scanSessionsAsync,
4369
+ BookmarkStorageUnavailableError,
4363
4370
  listBookmarks,
4364
4371
  upsertBookmark,
4365
4372
  importBookmarks,
4366
4373
  deleteBookmark
4367
4374
  };
4368
- //# sourceMappingURL=chunk-EIIG7J6V.js.map
4375
+ //# sourceMappingURL=chunk-BGQXQTWM.js.map