Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const isComplete = context.getStatus() === Status.COMPLETE;
if (context.getStatus() === Status.INIT) {
context.updateExternalMeta(CACHE, {
forced,
enabled: !disabled,
[`${name}Enabled`]: enabledSpecific,
[`${name}Force`]: forcedSpecific,
});
}
if (forcedSpecific) {
return isComplete;
}
if (isUndefined(forcedSpecific) && forced) {
return isComplete && dflt;
}
return enabledSpecific;
};