@dnax/core 0.4.3 → 0.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -239,6 +239,12 @@ class useRest {
239
239
 
240
240
  var { valid, output, error } = this.validator(collection, data);
241
241
  if (!valid) fn.error(error, 400);
242
+ data = {
243
+ ...data,
244
+ ...(output || {}),
245
+ };
246
+
247
+ //console.log(data);
242
248
 
243
249
  if (col?.hooks?.beforeOperation && useHook) {
244
250
  await col.hooks.beforeOperation({
@@ -340,6 +346,10 @@ class useRest {
340
346
  d = deepSetId(col, d);
341
347
  var { valid, output, error } = this.validator(collection, d);
342
348
  if (!valid) fn.error(error, 400);
349
+ d = {
350
+ ...d,
351
+ ...(output || {}),
352
+ };
343
353
  }
344
354
 
345
355
  if (col?.hooks?.beforeOperation && useHook) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dnax/core",
3
- "version": "0.4.3",
3
+ "version": "0.4.4",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "bin": {