@live-change/framework
Advanced tools
Comparing version 0.8.40 to 0.8.41
@@ -5,2 +5,5 @@ import * as utils from "../utils.js" | ||
const cartesian = | ||
(...a) => a.reduce((a, b) => a.flatMap(d => b.map(e => [d, e].flat()))); | ||
async function update(changes, service, app, force) { | ||
@@ -65,3 +68,3 @@ | ||
if(index.multi) { | ||
if(Array.isArray(index.property)) throw new Error("multi indexes on multiple properties are not supported!") | ||
// if(Array.isArray(index.property)) throw new Error("multi indexes on multiple properties are not supported!") | ||
const properties = (Array.isArray(index.property) ? index.property : [index.property]).map(p => p.split('.')) | ||
@@ -74,5 +77,5 @@ const func = async function(input, output, { table, properties }) { | ||
if(Array.isArray(at)) return at.map(v => JSON.stringify(v)) | ||
return [at] | ||
return [JSON.stringify(at)] | ||
} | ||
const keys = (obj, id) => { | ||
const keys = (obj, id = 0) => { | ||
const values = value(obj, properties[id]) | ||
@@ -79,0 +82,0 @@ if(id === properties.length - 1) return values |
{ | ||
"name": "@live-change/framework", | ||
"version": "0.8.40", | ||
"version": "0.8.41", | ||
"description": "Live Change Framework - ultimate solution for real time mobile/web apps", | ||
@@ -25,6 +25,6 @@ "main": "index.js", | ||
"devDependencies": { | ||
"@live-change/dao": "^0.8.40", | ||
"@live-change/uid": "^0.8.40" | ||
"@live-change/dao": "^0.8.41", | ||
"@live-change/uid": "^0.8.41" | ||
}, | ||
"gitHead": "5a12ec795f6fa16f30203aef3ad1534660fa5146" | ||
"gitHead": "e4f888357087065749a7cdb331a4eefa089b9aef" | ||
} |
186462
5073