@live-change/framework
Advanced tools
Comparing version 0.2.6 to 0.2.7
@@ -163,2 +163,3 @@ const utils = require("../utils.js") | ||
daoPath({ draft }) { | ||
if(!draft) return null | ||
return modelRuntime().path(draft) | ||
@@ -165,0 +166,0 @@ } |
@@ -35,3 +35,3 @@ const ReactiveDao = require("@live-change/dao") | ||
const mapper = async (res) => input.table(tableName).object(res.to).get() | ||
await input.index(indexName).range(range).onChange(async (obj, oldObj) => { | ||
await (await input.index(indexName)).range(range).onChange(async (obj, oldObj) => { | ||
output.change(obj && await mapper(obj), oldObj && await mapper(oldObj)) | ||
@@ -38,0 +38,0 @@ }) |
@@ -181,3 +181,3 @@ const Model = require("./Model.js") | ||
await emit.commit() | ||
return resultpodpie | ||
return result | ||
}) | ||
@@ -184,0 +184,0 @@ } |
@@ -37,2 +37,3 @@ const ReactiveDao = require('@live-change/dao') | ||
const preparedParameters = await prepareParameters(parameters, this.definition.properties, this.service) | ||
if(!this.definition.get) throw new Error(`get method undefined in view ${this.service.name}/${this.name}`) | ||
return this.definition.get(preparedParameters, context) | ||
@@ -39,0 +40,0 @@ } |
{ | ||
"name": "@live-change/framework", | ||
"version": "0.2.6", | ||
"version": "0.2.7", | ||
"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
100529
2806