UNPKG

kkt

Version:

Create React apps with no build configuration, Cli tool for creating react apps.

26 lines (23 loc) 488 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getCacheData = exports.cacheData = void 0; var data = {}; /** * Cache data */ var cacheData = exports.cacheData = function cacheData(ops) { Object.keys(ops).forEach(function (keyname) { data[keyname] = ops[keyname]; }); }; /** * Get cache data */ var getCacheData = exports.getCacheData = function getCacheData(keyName) { if (keyName) { return data[keyName]; } return data; };