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.
- package/liekodb.js +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) {
|