yach.util.indexeddb
Advanced tools
Comparing version 3.1.0 to 3.1.1
@@ -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 |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
16606
45
1
+ Addedqiao.indexeddb.js@0.1.3(transitive)
+ Addedqiao.ls.js@0.1.0(transitive)
- Removedqiao.ls.js@^0.1.0
- Removedqiao.indexeddb.js@0.1.4(transitive)
- Removedqiao.ls.js@0.1.9(transitive)
Updatedqiao.indexeddb.js@0.1.3