@dynamatix/cat-shared 0.0.92 → 0.0.93

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.
@@ -105,7 +105,7 @@ function applyAuditMiddleware(schema, collectionName) {
105
105
  const contextId = context?.contextId;
106
106
 
107
107
  const entityDescription = await resolveEntityDescription(doc, auditConfig);
108
- const logs = [];
108
+ let logs = [];
109
109
 
110
110
  // Per-field logs
111
111
  if (auditConfig.fields?.length) {
@@ -159,7 +159,7 @@ function applyAuditMiddleware(schema, collectionName) {
159
159
  if (!auditConfig?.fields?.length) return;
160
160
 
161
161
  const update = this.getUpdate();
162
- const logs = [];
162
+ let logs = [];
163
163
  const context = getContext();
164
164
  const userId = context?.userId || 'anonymous';
165
165
  const contextId = context?.contextId;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamatix/cat-shared",
3
- "version": "0.0.92",
3
+ "version": "0.0.93",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"