UNPKG

@cloud-copilot/iam-simulate

Version:
9 lines 408 B
import { getGlobalConditionKeyByName, getGlobalConditionKeyByPrefix } from '@cloud-copilot/iam-data'; export function getGlobalConditionKeyWithOrWithoutPrefix(key) { const slashIndex = key.indexOf('/'); if (slashIndex !== -1) { return getGlobalConditionKeyByPrefix(key.slice(0, slashIndex)); } return getGlobalConditionKeyByName(key); } //# sourceMappingURL=globalConditionKeys.js.map