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.
- package/dist/{chunk-EIIG7J6V.js → chunk-BGQXQTWM.js} +9 -2
- package/dist/{chunk-EIIG7J6V.js.map → chunk-BGQXQTWM.js.map} +1 -1
- package/dist/{dist-2YXXOCZJ.js → dist-5NKHH33A.js} +4 -2
- package/dist/index.js +36 -7
- package/dist/index.js.map +1 -1
- package/dist/web/assets/{index-DJuE5oTj.js → index-B78jpjIp.js} +1 -1
- package/dist/web/index.html +1 -1
- package/package.json +2 -1
- /package/dist/{dist-2YXXOCZJ.js.map → dist-5NKHH33A.js.map} +0 -0
|
@@ -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
|
|
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-
|
|
4375
|
+
//# sourceMappingURL=chunk-BGQXQTWM.js.map
|