.gitignore + untrack build outputs (node_modules, dist) — the nested repo needs its own ignore rules; the pipeline rebuilds anyway
deploy / build-and-publish (push) Successful in 45s

This commit is contained in:
2026-11-21 09:25:25 +01:00
parent 477bf5114f
commit c117a97cd3
14483 changed files with 14 additions and 2443432 deletions
-49
View File
@@ -1,49 +0,0 @@
import { defineDriver } from "./utils/index.mjs";
import {
get,
set,
clear,
del,
keys,
createStore
} from "idb-keyval";
const DRIVER_NAME = "idb-keyval";
export default defineDriver((opts = {}) => {
const base = opts.base && opts.base.length > 0 ? `${opts.base}:` : "";
const makeKey = (key) => base + key;
let customStore;
if (opts.dbName && opts.storeName) {
customStore = createStore(opts.dbName, opts.storeName);
}
return {
name: DRIVER_NAME,
options: opts,
async hasItem(key) {
const item = await get(makeKey(key), customStore);
return item === void 0 ? false : true;
},
async getItem(key) {
const item = await get(makeKey(key), customStore);
return item ?? null;
},
async getItemRaw(key) {
const item = await get(makeKey(key), customStore);
return item ?? null;
},
setItem(key, value) {
return set(makeKey(key), value, customStore);
},
setItemRaw(key, value) {
return set(makeKey(key), value, customStore);
},
removeItem(key) {
return del(makeKey(key), customStore);
},
getKeys() {
return keys(customStore);
},
clear() {
return clear(customStore);
}
};
});