@objectstack/driver-memory 7.3.0 → 7.4.1
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.
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -351,6 +351,8 @@ var _InMemoryDriver = class _InMemoryDriver {
|
|
|
351
351
|
}
|
|
352
352
|
if (query.fields && Array.isArray(query.fields) && query.fields.length > 0) {
|
|
353
353
|
results = results.map((record) => this.projectFields(record, query.fields));
|
|
354
|
+
} else {
|
|
355
|
+
results = results.map((record) => ({ ...record }));
|
|
354
356
|
}
|
|
355
357
|
this.logger.debug("Find completed", { object, resultCount: results.length });
|
|
356
358
|
return results;
|