@coral-xyz/anchor
Version:
Anchor client
12 lines • 344 B
JavaScript
const _AVAILABLE_FEATURES = new Set(["debug-logs"]);
const _FEATURES = new Map();
export function set(key) {
if (!_AVAILABLE_FEATURES.has(key)) {
throw new Error("Invalid feature");
}
_FEATURES.set(key, true);
}
export function isSet(key) {
return _FEATURES.get(key) !== undefined;
}
//# sourceMappingURL=features.js.map