@cap-js/audit-logging 1.2.2 → 1.3.0

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/lib/utils.js CHANGED
@@ -25,7 +25,7 @@ const hasPersonalData = (entity) => {
25
25
  const hasPersonalData = !!Object.values(entity.elements).some(element =>
26
26
  element['@PersonalData.IsPotentiallyPersonal'] ||
27
27
  element['@PersonalData.IsPotentiallySensitive'] ||
28
- (element['@PersonalData.FieldSemantics'] && element['@PersonalData.FieldSemantics'] === 'DataSubjectID'))
28
+ (element['@PersonalData.FieldSemantics'] && element['@PersonalData.FieldSemantics'] === 'DataSubjectID'));
29
29
  entity.set($hasPersonalData, hasPersonalData);
30
30
  }
31
31
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cap-js/audit-logging",
3
- "version": "1.2.2",
3
+ "version": "1.3.0",
4
4
  "description": "CDS plugin providing integration to the SAP Audit Log service as well as out-of-the-box personal data-related audit logging based on annotations.",
5
5
  "repository": "cap-js/audit-logging",
6
6
  "author": "SAP SE (https://www.sap.com)",
@@ -18,15 +18,15 @@
18
18
  "test": "npx jest --silent --testPathIgnorePatterns=integration"
19
19
  },
20
20
  "peerDependencies": {
21
- "@sap/cds": ">=8"
21
+ "@sap/cds": ">=9"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@cap-js/audit-logging": "file:.",
25
- "@cap-js/cds-test": ">=0",
26
- "@cap-js/sqlite": ">=1",
27
- "@sap/cds-lsp": "^9.9.0",
28
- "@sap/cds-mtxs": "^3.7.1",
29
- "express": "^4 || ^5",
25
+ "@cap-js/cds-test": "^1",
26
+ "@cap-js/sqlite": "^3",
27
+ "@sap/cds-lsp": "^10",
28
+ "@sap/cds-mtxs": "^4",
29
+ "express": "^5",
30
30
  "jest": "^30"
31
31
  },
32
32
  "cds": {
package/srv/log2alsng.js CHANGED
@@ -195,7 +195,7 @@ module.exports = class AuditLog2ALSNG extends AuditLogService {
195
195
  if (res.headers["content-type"]?.match(/json/)) body = JSON.parse(body);
196
196
  if (res.statusCode >= 400) {
197
197
  // prettier-ignore
198
- const err = new Error(`Request failed with${statusMessage ? `: ${statusCode} - ${statusMessage}` : ` status ${statusCode}`}`)
198
+ const err = new Error(`Request failed with${statusMessage ? `: ${statusCode} - ${statusMessage}` : ` status ${statusCode}`}`);
199
199
  err.request = { method: options.method, url, headers: options.headers, body: data };
200
200
  if (err.request.headers.authorization)
201
201
  err.request.headers.authorization =