Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); const core = require('@sentry/core'); function targetsCloudflareInternalKey(key, allowlist) { if (!key) { return false; } const isFrameworkKey = key.startsWith("cf_") || key.startsWith("cf:") || key.startsWith("__ps_") || key.startsWith("/"); if (!isFrameworkKey) { return false; } return !allowlist?.length || !core.stringMatchesSomePattern(key, allowlist, true); } function getStorageKeys(methodName, args) { const [first] = args; if (methodName === "get" || methodName === "delete") { if (typeof first === "string") { return [first]; } if (Array.isArray(first)) { return first.filter((k) => typeof k === "string"); } return void 0; } if (methodName === "put") { if (typeof first === "string") { return [first]; } if (first && typeof first === "object" && !Array.isArray(first)) { return Object.keys(first); } return void 0; } if (methodName === "list") { const prefix = first && typeof first === "object" ? first.prefix : void 0; return typeof prefix === "string" ? [prefix] : void 0; } return void 0; } exports.getStorageKeys = getStorageKeys; exports.targetsCloudflareInternalKey = targetsCloudflareInternalKey; //# sourceMappingURL=internalStorageKey.js.map