UNPKG

@worker-tools/kv-storage

Version:

Picks the platform-specific Storage Area (1,2,3) implementation for Deno, Cloudflare Workers and the browser.

11 lines 491 B
var _a; import * as dntShim from "./_dnt.shims.js"; import * as dn from '@worker-tools/deno-kv-storage'; import * as cf from '@worker-tools/cloudflare-kv-storage'; import * as br from '@worker-tools/kv-storage-polyfill'; export const StorageArea = 'Deno' in dntShim.dntGlobalThis ? dn.StorageArea : ((_a = navigator.userAgent) === null || _a === void 0 ? void 0 : _a.includes('Cloudflare-Workers')) ? cf.StorageArea : br.StorageArea; //# sourceMappingURL=index.js.map