liekodb 0.1.6 → 0.1.7

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.
Files changed (2) hide show
  1. package/liekodb.js +2 -2
  2. package/package.json +1 -1
package/liekodb.js CHANGED
@@ -1093,7 +1093,7 @@ class LocalAdapter {
1093
1093
  const response = {
1094
1094
  data: {
1095
1095
  //foundCount: documents.length,
1096
- documents,
1096
+ documents: structuredClone(documents),
1097
1097
  //totalDocuments: collection.documents.length
1098
1098
  }
1099
1099
  };
@@ -1178,7 +1178,7 @@ class LocalAdapter {
1178
1178
  this.logRequest('find_By_Id', details, duration, Utils.getDataSize(document));
1179
1179
 
1180
1180
  return {
1181
- data: document ?? null
1181
+ data: structuredClone(document) ?? null
1182
1182
  };
1183
1183
 
1184
1184
  } catch (err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "liekodb",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/eiwSrvt/liekodb"