@live-change/framework
Advanced tools
Comparing version 0.3.10 to 0.3.11
@@ -14,5 +14,4 @@ const ReaderModel = require("./ReaderModel.js") | ||
const res = await this.service.dao.request( | ||
['database', 'update'], this.service.databaseName, this.tableName, id, operations) | ||
const [newObj, oldObj] = res | ||
return [newObj, oldObj] | ||
['database', 'update'], this.service.databaseName, this.tableName, id, operations, options) | ||
return res | ||
} | ||
@@ -23,3 +22,3 @@ | ||
const res = await this.service.dao.request( | ||
['database', 'delete'], this.service.databaseName, this.tableName, id) | ||
['database', 'delete'], this.service.databaseName, this.tableName, id, options) | ||
} | ||
@@ -29,3 +28,3 @@ | ||
if(!data.id) throw new Error("id must be generated before creation of object") | ||
let prepData = {...data} | ||
let prepData = { ...data } | ||
for(let key in this.definition.properties) { | ||
@@ -41,3 +40,3 @@ if(!prepData.hasOwnProperty(key)) { | ||
const res = await this.service.dao.request( | ||
['database', 'put'], this.service.databaseName, this.tableName, prepData) | ||
['database', 'put'], this.service.databaseName, this.tableName, prepData, options) | ||
return res | ||
@@ -44,0 +43,0 @@ } |
{ | ||
"name": "@live-change/framework", | ||
"version": "0.3.10", | ||
"version": "0.3.11", | ||
"description": "Live Change Framework - ultimate solution for real time mobile/web apps", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
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
118185
3284