Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
set(newValue, key) {
const derivable = cache.get(key) || derivableFactory(key);
if (!isSettableDerivable(derivable)) {
throw _internal.augmentStack(new Error('Cached derivable is not settable'), derivable);
}
derivable.set(newValue);
},
};