@cap-js/audit-logging
Advanced tools
Comparing version
@@ -7,4 +7,12 @@ # Change Log | ||
## Version 0.9.0 - 2025-06-05 | ||
### Added | ||
- Support for `@sap/cds^9` | ||
## Version 0.8.3 - 2025-04-09 | ||
### Fixed | ||
- Preperation for `@sap/cds^9` | ||
@@ -11,0 +19,0 @@ |
@@ -126,3 +126,4 @@ const cds = require('@sap/cds') | ||
if (!('_relations' in relative)) { | ||
// REVISIT: there seems to be a caching issue in cds^9 when elemets are renamed | ||
if (!('_relations' in relative) || !relative._relations[element.name]) { | ||
const newRelation = Relation.to(relative) | ||
@@ -129,0 +130,0 @@ relative._relations = new Proxy(exposeRelation(newRelation), relationHandler(newRelation)) |
{ | ||
"name": "@cap-js/audit-logging", | ||
"version": "0.8.3", | ||
"version": "0.9.0", | ||
"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.", | ||
@@ -8,3 +8,3 @@ "repository": "cap-js/audit-logging", | ||
"homepage": "https://cap.cloud.sap/", | ||
"license": "SEE LICENSE IN LICENSE", | ||
"license": "Apache-2.0", | ||
"main": "cds-plugin.js", | ||
@@ -18,17 +18,15 @@ "files": [ | ||
"lint": "npx eslint .", | ||
"test": "npm run test-new-db && npm run test-old-db", | ||
"test-new-db": "CDS_ENV='better-sqlite' npx jest --silent", | ||
"test-old-db": "CDS_ENV='legacy-sqlite' npx jest --silent" | ||
"test": "npx jest --silent" | ||
}, | ||
"peerDependencies": { | ||
"@sap/cds": ">=7" | ||
"@sap/cds": ">=8" | ||
}, | ||
"devDependencies": { | ||
"@cap-js/audit-logging": "file:.", | ||
"@cap-js/sqlite": "^1", | ||
"@cap-js/cds-test": ">=0", | ||
"@cap-js/sqlite": ">=1", | ||
"axios": "^1", | ||
"eslint": "^9", | ||
"express": "^4", | ||
"jest": "^29", | ||
"sqlite3": "^5.1.6" | ||
"jest": "^29" | ||
}, | ||
@@ -35,0 +33,0 @@ "cds": { |
const cds = require('@sap/cds') | ||
const Base = cds.outboxed ? cds.Service : require('@sap/cds/libx/_runtime/messaging/Outbox') | ||
module.exports = class AuditLogService extends Base { | ||
module.exports = class AuditLogService extends cds.Service { | ||
async init() { | ||
@@ -7,0 +5,0 @@ // add common audit log entry fields |
Misc. License Issues
License(Experimental) A package's licensing information has fine-grained problems.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
0
-100%0
-100%60750
-0.07%