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

qiao.indexeddb.js

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

qiao.indexeddb.js - npm Package Compare versions

Comparing version 0.0.9 to 0.1.0

6

lib/qiao.indexeddb.js

@@ -124,8 +124,8 @@ 'use strict';

* tableName
* key
* data
*/
exports.save = function(db, tableName, data){
exports.save = function(db, tableName, key, data){
return new Promise(function(resolve, reject){
var id = data && data.id;
d.getData(db, tableName, id, function(r){
d.getData(db, tableName, key, function(r){
if(r){

@@ -132,0 +132,0 @@ d.putData(db, tableName, data, function(rr){

{
"name": "qiao.indexeddb.js",
"version": "0.0.9",
"version": "0.1.0",
"license": "MIT",

@@ -5,0 +5,0 @@ "description": "indexeddb tools",

@@ -136,6 +136,6 @@ # qiao.indexeddb.js

var data = { id: 1, name: '张三', age: 24, email: 'zhangsan@example.com' };
await qdb.save(db, tableName, data);
await qdb.save(db, tableName, data.id, data);
data.name = '1';
await qdb.save(db, tableName, data);
await qdb.save(db, tableName, data.id, data);
}catch(e){

@@ -219,2 +219,3 @@ console.log(e);

1. export sync
2. save key

@@ -221,0 +222,0 @@ ### 0.0.6.20200731

@@ -13,6 +13,6 @@ 'use strict';

var data = { id: 1, name: '张三', age: 24, email: 'zhangsan@example.com' };
await qdb.save(db, tableName, data);
await qdb.save(db, tableName, data.id, data);
data.name = '1';
await qdb.save(db, tableName, data);
await qdb.save(db, tableName, data.id, data);
}catch(e){

@@ -19,0 +19,0 @@ console.log(e);

Sorry, the diff of this file is not supported yet

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