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 1.0.3 to 1.0.4

14

lib/yach.nim.util.js

@@ -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"
}
}
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