yach.nim.util
Advanced tools
Comparing version 0.2.2 to 0.3.0
@@ -10,4 +10,3 @@ // elk | ||
import _yachDB from 'yach.util.indexeddb'; | ||
const yachDB = _yachDB('team'); | ||
import yachDB from 'yach.util.indexeddb'; | ||
@@ -69,3 +68,3 @@ // get user | ||
if (!doNotUseYachCache) { | ||
const team = await yachDB.getItem(id); | ||
const team = await yachDB.team.get(id); | ||
if (team) { | ||
@@ -84,3 +83,5 @@ util.logTime(`[${tag}]:===getTeamTime${id}`, true); | ||
if (err) return reject(err); | ||
!doNotUseYachCache && yachDB.setItem(id, obj); //更新下缓存 | ||
!doNotUseYachCache && yachDB.team.add({ | ||
...obj | ||
}); //更新下缓存 | ||
return resolve(obj); | ||
@@ -87,0 +88,0 @@ }, |
{ | ||
"name": "yach.nim.util", | ||
"version": "0.2.2", | ||
"version": "0.3.0", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "yach nim: util", |
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
37007
890