devcode-canavar-pro 3.5.0 → 3.5.1
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/Server.js +15 -0
- package/package.json +1 -1
package/lib/Server.js
CHANGED
|
@@ -186,6 +186,21 @@ class Server {
|
|
|
186
186
|
if (this.auditLogs.length > 100) this.auditLogs.pop();
|
|
187
187
|
}
|
|
188
188
|
|
|
189
|
+
/**
|
|
190
|
+
* Audit log kaydı tutar (Global Bridge).
|
|
191
|
+
*/
|
|
192
|
+
_log(ns, db, col, action) {
|
|
193
|
+
if (!global.devcodeAuditLogs) global.devcodeAuditLogs = [];
|
|
194
|
+
global.devcodeAuditLogs.unshift({
|
|
195
|
+
time: new Date().toLocaleTimeString(),
|
|
196
|
+
ns: ns.substring(0, 8),
|
|
197
|
+
db,
|
|
198
|
+
col,
|
|
199
|
+
action: action.toUpperCase()
|
|
200
|
+
});
|
|
201
|
+
if (global.devcodeAuditLogs.length > 50) global.devcodeAuditLogs.pop();
|
|
202
|
+
}
|
|
203
|
+
|
|
189
204
|
_readBody(req) {
|
|
190
205
|
return new Promise((resolve, reject) => {
|
|
191
206
|
let body = '';
|
package/package.json
CHANGED