🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@cap-js/audit-logging

Package Overview
Dependencies
Maintainers
2
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cap-js/audit-logging - npm Package Compare versions

Comparing version

to
0.9.0

8

CHANGELOG.md

@@ -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 @@

3

lib/utils.js

@@ -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