mentie 0.2.35 → 0.2.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/modules/cache.js +1 -1
- package/package.json +1 -1
package/modules/cache.js
CHANGED
|
@@ -24,7 +24,7 @@ export function cache( key, value ) {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
// Warn if the key contains 'undefined'
|
|
27
|
-
if( key
|
|
27
|
+
if( `${ key }`.includes( 'undefined' ) ) {
|
|
28
28
|
log.warn( `The cache key ${ key } contains 'undefined', this may indicate a bug in your cache logic` )
|
|
29
29
|
}
|
|
30
30
|
|