Repository URL to install this package:
|
Version:
4.0.5 ▾
|
import { config } from '../config'
import { getCookie } from './get'
export const entries = (): { [key: string]: any } => {
const results = {}
const cache = config.get('cache')
const keys = Object.keys(cache)
keys.forEach((key: string) => {
const originalKey = key.replace('cookey.', '')
const value = getCookie(originalKey)
results[originalKey] = value
})
return results
}