@murumets-ee/logging 0.5.0 → 0.6.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/dist/plugin.d.mts +4 -2
- package/dist/plugin.d.mts.map +1 -1
- package/dist/plugin.mjs +1 -1
- package/dist/plugin.mjs.map +1 -1
- package/package.json +2 -2
package/dist/plugin.d.mts
CHANGED
|
@@ -3,7 +3,9 @@ import { PgTable } from "drizzle-orm/pg-core";
|
|
|
3
3
|
//#region src/plugin.d.ts
|
|
4
4
|
interface LoggingPlugin {
|
|
5
5
|
name: string;
|
|
6
|
-
|
|
6
|
+
server: {
|
|
7
|
+
tables: Record<string, PgTable<any>>;
|
|
8
|
+
};
|
|
7
9
|
}
|
|
8
10
|
/**
|
|
9
11
|
* Logging plugin — registers the `toolkit_audit_logs` table so it shows up
|
|
@@ -14,7 +16,7 @@ interface LoggingPlugin {
|
|
|
14
16
|
* ```typescript
|
|
15
17
|
* import { logging } from '@murumets-ee/logging/plugin'
|
|
16
18
|
*
|
|
17
|
-
* export default
|
|
19
|
+
* export default defineLumiConfig({
|
|
18
20
|
* plugins: [logging()],
|
|
19
21
|
* })
|
|
20
22
|
* ```
|
package/dist/plugin.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.mts","names":[],"sources":["../src/plugin.ts"],"mappings":";;;UAMU,aAAA;EACR,IAAA;
|
|
1
|
+
{"version":3,"file":"plugin.d.mts","names":[],"sources":["../src/plugin.ts"],"mappings":";;;UAMU,aAAA;EACR,IAAA;EACA,MAAA;IAEE,MAAA,EAAQ,MAAA,SAAe,OAAA;EAAA;AAAA;;;;;;;;AAkB3B;;;;;;;iBAAgB,OAAA,CAAA,GAAW,aAAA"}
|
package/dist/plugin.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{n as e}from"./schema-D9vWDK2q.mjs";function t(){return{name:`@murumets-ee/logging`,tables:{toolkitAuditLogs:e}}}export{t as logging};
|
|
1
|
+
import{n as e}from"./schema-D9vWDK2q.mjs";function t(){return{name:`@murumets-ee/logging`,server:{tables:{toolkitAuditLogs:e}}}}export{t as logging};
|
|
2
2
|
//# sourceMappingURL=plugin.mjs.map
|
package/dist/plugin.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.mjs","names":[],"sources":["../src/plugin.ts"],"sourcesContent":["// biome-ignore lint/suspicious/noExplicitAny: structural PgTable\nimport type { PgTable } from 'drizzle-orm/pg-core'\nimport { toolkitAuditLogs } from './schema.js'\n\n// Structural Plugin shape — kept in sync with @murumets-ee/core. Not imported\n// from core because core depends on logging (circular dep would fail).\ninterface LoggingPlugin {\n name: string\n // biome-ignore lint/suspicious/noExplicitAny: as above\n
|
|
1
|
+
{"version":3,"file":"plugin.mjs","names":[],"sources":["../src/plugin.ts"],"sourcesContent":["// biome-ignore lint/suspicious/noExplicitAny: structural PgTable\nimport type { PgTable } from 'drizzle-orm/pg-core'\nimport { toolkitAuditLogs } from './schema.js'\n\n// Structural Plugin shape — kept in sync with @murumets-ee/core. Not imported\n// from core because core depends on logging (circular dep would fail).\ninterface LoggingPlugin {\n name: string\n server: {\n // biome-ignore lint/suspicious/noExplicitAny: as above\n tables: Record<string, PgTable<any>>\n }\n}\n\n/**\n * Logging plugin — registers the `toolkit_audit_logs` table so it shows up\n * in generated migrations. Zero runtime behavior; the audit logger is wired\n * up separately via `createAuditLogger()`.\n *\n * @example\n * ```typescript\n * import { logging } from '@murumets-ee/logging/plugin'\n *\n * export default defineLumiConfig({\n * plugins: [logging()],\n * })\n * ```\n */\nexport function logging(): LoggingPlugin {\n return {\n name: '@murumets-ee/logging',\n server: {\n tables: { toolkitAuditLogs },\n },\n }\n}\n"],"mappings":"0CA4BA,SAAgB,GAAyB,CACvC,MAAO,CACL,KAAM,uBACN,OAAQ,CACN,OAAQ,CAAE,mBAAkB,CAC7B,CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@murumets-ee/logging",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"license": "Elastic-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"drizzle-orm": "^0.45.2",
|
|
29
29
|
"pino": "^9.5.0",
|
|
30
30
|
"zod": "^3.24.1",
|
|
31
|
-
"@murumets-ee/db": "0.
|
|
31
|
+
"@murumets-ee/db": "0.6.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"tsdown": "^0.21.7",
|