@insertish/mutable
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -37,5 +37,8 @@ "use strict"; | ||
return true; | ||
let success = Reflect.set(target, property, value, receiver); | ||
if (!success) | ||
return false; | ||
this.emit('mutation', target, property); | ||
(_a = this.collection) === null || _a === void 0 ? void 0 : _a.update({ _id: target._id }, { $set: { [property]: value } }); | ||
return Reflect.set(target, property, value, receiver); | ||
return true; | ||
} | ||
@@ -42,0 +45,0 @@ create(state) { |
{ | ||
"name": "@insertish/mutable", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Mutable object utilities.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
15450
158