Commit 6bbce7a5 authored by wildfirecode13's avatar wildfirecode13

1

parent 103999a2
import { getLocalCache, setLocalCache } from "./localCache";
import wait from "./wait"; import wait from "./wait";
export { wait }; export { wait, getLocalCache, setLocalCache };
"use strict"; "use strict";
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
exports.wait = void 0; exports.setLocalCache = exports.getLocalCache = exports.wait = void 0;
var localCache_1 = require("./localCache");
Object.defineProperty(exports, "getLocalCache", { enumerable: true, get: function () { return localCache_1.getLocalCache; } });
Object.defineProperty(exports, "setLocalCache", { enumerable: true, get: function () { return localCache_1.setLocalCache; } });
var wait_1 = require("./wait"); var wait_1 = require("./wait");
exports.wait = wait_1.default; exports.wait = wait_1.default;
export declare const getLocalCache: (key: any) => boolean;
export declare const setLocalCache: (key: any) => boolean;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.setLocalCache = exports.getLocalCache = void 0;
exports.getLocalCache = function (key) {
if (localStorage && localStorage.getItem)
return localStorage.getItem(key) === '1';
return false;
};
exports.setLocalCache = function (key) {
if (localStorage && localStorage.setItem) {
localStorage.setItem(key, '1');
return true;
}
return false;
};
{ {
"name": "teddi", "name": "teddi",
"version": "1.0.7", "version": "1.0.8",
"description": "", "description": "",
"main": "dist/index.js", "main": "dist/index.js",
"types": "dist/index.d.ts", "types": "dist/index.d.ts",
......
import { getLocalCache, setLocalCache } from "./localCache";
import wait from "./wait"; import wait from "./wait";
export { export { wait, getLocalCache, setLocalCache };
wait
}
\ No newline at end of file
export const getLocalCache = (key) => {
if (localStorage && localStorage.getItem)
return localStorage.getItem(key) === '1'
return false;
}
export const setLocalCache = (key) => {
if (localStorage && localStorage.setItem) {
localStorage.setItem(key, '1');
return true;
}
return false;
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment