yach.nim.util
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -7,5 +7,2 @@ // yach.nim.common | ||
import _yachDB from "yach.util.indexeddb"; | ||
const yachDB = _yachDB("team"); | ||
// get user | ||
@@ -55,6 +52,9 @@ export function getUser(id) { | ||
try { | ||
const team = await yachDB.getItem(id); | ||
if (team) { | ||
util.logTime(`[${tag}]:===getTeamTime${id}`, true); | ||
return resolve(team); | ||
let cachedTeam = sessionStorage.getItem('teamsCache'); | ||
cachedTeam = util.getJson(cachedTeam, {}); | ||
cachedTeam = cachedTeam[id]; | ||
if (cachedTeam) { | ||
util.logTime(`[${tag}]:===getTeamTime${id}`, true); | ||
return resolve(cachedTeam); | ||
} | ||
@@ -61,0 +61,0 @@ } catch (error) { |
{ | ||
"name": "yach.nim.util", | ||
"version": "1.0.3", | ||
"license": "MIT", | ||
"description": "yach nim: util", | ||
"main": "index.js", | ||
"author": "qiaowenbin", | ||
"scripts": {}, | ||
"dependencies": {}, | ||
"peerDependencies": { | ||
"qiao.ls.js": "0.1.0", | ||
"yach.util.indexeddb": "3.1.1" | ||
} | ||
"name": "yach.nim.util", | ||
"version": "1.0.4", | ||
"license": "MIT", | ||
"description": "yach nim: util", | ||
"main": "index.js", | ||
"author": "qiaowenbin", | ||
"scripts": {}, | ||
"dependencies": {}, | ||
"peerDependencies": { | ||
"qiao.ls.js": "0.1.0" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1
29536