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

yach.util.indexeddb

Package Overview
Dependencies
Maintainers
9
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yach.util.indexeddb - npm Package Compare versions

Comparing version 3.1.0 to 3.1.1

16

lib/index.js

@@ -30,3 +30,3 @@ /**

tablesReady = dbReday.then((db) => {
return QDB.createTable(db, tables).then(({db: newDB}) => {
return QDB.createTable(db, tables).then(({ db: newDB }) => {
this.db = newDB;

@@ -83,3 +83,3 @@ return newDB;

getItemByIndexCursor(indexName, values, callback){
getItemByIndexCursor(indexName, values, callback) {
try {

@@ -94,13 +94,13 @@ return tablesReady.then((db) => {

if (cursor) {
callback(cursor.value)
callback(cursor.value);
cursor.continue();
} else {
callback(null)
return db
callback(null);
return db;
}
}
})
};
});
} catch (error) {
console.error('yach.util.indexeddb getItemByIndexCursor: ', error);
return db
return db;
}

@@ -107,0 +107,0 @@ }

{
"name": "yach.util.indexeddb",
"version": "3.1.0",
"version": "3.1.1",
"license": "MIT",

@@ -10,10 +10,12 @@ "description": "封装indexeddb方法 用于yach的缓存",

"dependencies": {
"qiao.indexeddb.js": "^0.1.3",
"qiao.ls.js": "^0.1.0"
"qiao.indexeddb.js": "0.1.3"
},
"devDependencies": {
"@babel/cli": "^7.10.4",
"@babel/core": "^7.10.4",
"@babel/preset-env": "^7.10.4"
"@babel/cli": "^7.12.1",
"@babel/core": "^7.12.3",
"@babel/preset-env": "^7.12.1"
},
"peerDependencies": {
"qiao.ls.js": "0.1.0"
}
}

@@ -5,3 +5,3 @@ # yach.util.indexeddb

基于qiao.indexeddb.js ,统一管理库表
基于 qiao.indexeddb.js ,统一管理库表

@@ -30,12 +30,17 @@ ## Owner

await yachDB.clear();
yachDB.getItemByIndexCursor(indexName, values, callback)
yachDB.getItemByIndexCursor(indexName, values, callback);
```
## 版本记录
### 3.1.0.2020.10.29
### 3.1.1.20201103
1. ncu
### 3.1.0.20201029
1. 基本定型
### 0.0.1.2020.10.21
### 0.0.1.20201021
1. init project
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