Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

yach.nim.util

Package Overview
Dependencies
Maintainers
9
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yach.nim.util - npm Package Compare versions

Comparing version 0.3.1 to 1.0.0

23

lib/yach.nim.util.js

@@ -10,3 +10,4 @@ // elk

import yachDB from 'yach.util.indexeddb';
import _yachDB from 'yach.util.indexeddb';
const yachDB = _yachDB('team')

@@ -68,6 +69,10 @@ // get user

if (!doNotUseYachCache) {
const team = await yachDB.team.get(id);
if (team) {
util.logTime(`[${tag}]:===getTeamTime${id}`, true);
return resolve(team);
try {
const team = await yachDB.getItem(id);
if (team) {
util.logTime(`[${tag}]:===getTeamTime${id}`, true);
return resolve(team);
}
} catch (error) {
console.error('yach.nim.util getTeam缓存获取异常', error)
}

@@ -83,6 +88,6 @@ }

if (err) return reject(err);
!doNotUseYachCache &&
yachDB.team.add({
...obj,
}); //更新下缓存
// !doNotUseYachCache &&
// yachDB.team.add({
// ...obj,
// }); //更新下缓存
return resolve(obj);

@@ -89,0 +94,0 @@ },

{
"name": "yach.nim.util",
"version": "0.3.1",
"version": "1.0.0",
"license": "MIT",

@@ -12,4 +12,4 @@ "description": "yach nim: util",

"yach.util.data": "0.0.5",
"yach.util.indexeddb": "^2.0.0"
"yach.util.indexeddb": "^3.0.0"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc