@intelligo-dev/audit 1.0.0-beta.2 → 1.0.0-beta.3
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/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -96,7 +96,7 @@ export declare function queryAuditEvents(options?: QueryAuditEventsOptions): Pro
|
|
|
96
96
|
metadata: Record<string, unknown> | null;
|
|
97
97
|
createdAt: Date;
|
|
98
98
|
}[]>;
|
|
99
|
-
export { auditEvents } from "./db/schema";
|
|
100
|
-
export type { AuditEvent, InsertAuditEvent } from "./db/schema";
|
|
101
|
-
export type { AuditTargetKind as MemoryAuditTargetKind, AuditAction as MemoryAuditAction, AuditActorKind as MemoryAuditActorKind, UserMemoryAuditRow, InsertUserMemoryAudit, RecordMemoryAuditInput, } from "./memory-audit";
|
|
99
|
+
export { auditEvents } from "./db/schema.js";
|
|
100
|
+
export type { AuditEvent, InsertAuditEvent } from "./db/schema.js";
|
|
101
|
+
export type { AuditTargetKind as MemoryAuditTargetKind, AuditAction as MemoryAuditAction, AuditActorKind as MemoryAuditActorKind, UserMemoryAuditRow, InsertUserMemoryAudit, RecordMemoryAuditInput, } from "./memory-audit.js";
|
|
102
102
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
import { db } from "@intelligo-dev/core/db";
|
|
10
10
|
import { createLogger } from "@intelligo-dev/core/logger";
|
|
11
11
|
import { and, desc, eq, lt } from "drizzle-orm";
|
|
12
|
-
import { auditEvents } from "./db/schema";
|
|
12
|
+
import { auditEvents } from "./db/schema.js";
|
|
13
13
|
const log = createLogger("Audit");
|
|
14
14
|
const sinks = new Map();
|
|
15
15
|
/** Register (or replace) a sink under a stable name. */
|
|
@@ -106,5 +106,5 @@ export async function queryAuditEvents(options = {}) {
|
|
|
106
106
|
.orderBy(desc(auditEvents.createdAt))
|
|
107
107
|
.limit(Math.min(options.limit ?? 50, 500));
|
|
108
108
|
}
|
|
109
|
-
export { auditEvents } from "./db/schema";
|
|
109
|
+
export { auditEvents } from "./db/schema.js";
|
|
110
110
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intelligo-dev/audit",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.3",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"drizzle-orm": "^0.45.1",
|
|
27
|
-
"@intelligo-dev/core": "1.0.0-beta.
|
|
27
|
+
"@intelligo-dev/core": "1.0.0-beta.3"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/node": "^22.0.0",
|
|
@@ -39,6 +39,6 @@
|
|
|
39
39
|
"scripts": {
|
|
40
40
|
"type-check": "tsc --noEmit",
|
|
41
41
|
"lint": "eslint .",
|
|
42
|
-
"build": "tsc -p tsconfig.build.json"
|
|
42
|
+
"build": "tsc -p tsconfig.build.json && node ../../scripts/fix-esm-extensions.mjs dist"
|
|
43
43
|
}
|
|
44
44
|
}
|