dexie-encrypted
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -131,3 +131,2 @@ 'use strict'; | ||
} else { | ||
Object.assign(toEncrypt, entity); | ||
const indices = table.schema.indexes.map(index => index.name); | ||
@@ -257,18 +256,6 @@ const whitelist = rule.type === cryptoOptions.WHITELIST ? rule.fields : []; | ||
}); | ||
table.hook('updating', function( | ||
modifications, | ||
primKey, | ||
obj | ||
) { | ||
const decrypted = decryptWithRule( | ||
{ ...obj }, | ||
newSetting | ||
); | ||
const updates = { | ||
...decrypted, | ||
...modifications, | ||
}; | ||
table.hook('updating', function(modifications) { | ||
const encrypted = encryptWithRule( | ||
table, | ||
updates, | ||
{...this.value}, | ||
newSetting | ||
@@ -275,0 +262,0 @@ ); |
{ | ||
"name": "dexie-encrypted", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "Encryption middleware for Dexie", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
21658
333