@usebetterdev/audit 0.5.0 → 0.6.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/dist/drizzle.d.cts +1 -0
- package/dist/drizzle.d.ts +1 -0
- package/dist/next.cjs +49 -0
- package/dist/next.cjs.map +1 -0
- package/dist/next.d.cts +1 -0
- package/dist/next.d.ts +1 -0
- package/dist/next.js +26 -0
- package/dist/next.js.map +1 -0
- package/package.json +14 -6
package/dist/drizzle.d.cts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { AuditLogRow, AuditProxyOptions, DrizzlePgDatabase, MissingRecordIdBehavior, NewAuditLogRow, auditLogs, buildCursorCondition, buildOrderBy, buildWhereConditions, decodeCursor, drizzleAuditAdapter, encodeCursor, withAuditProxy } from '@usebetterdev/audit-drizzle';
|
|
2
2
|
import '@usebetterdev/audit-hono';
|
|
3
3
|
import '@usebetterdev/audit-core';
|
|
4
|
+
import '@usebetterdev/audit-next';
|
|
4
5
|
import '@usebetterdev/audit-prisma';
|
package/dist/drizzle.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { AuditLogRow, AuditProxyOptions, DrizzlePgDatabase, MissingRecordIdBehavior, NewAuditLogRow, auditLogs, buildCursorCondition, buildOrderBy, buildWhereConditions, decodeCursor, drizzleAuditAdapter, encodeCursor, withAuditProxy } from '@usebetterdev/audit-drizzle';
|
|
2
2
|
import '@usebetterdev/audit-hono';
|
|
3
3
|
import '@usebetterdev/audit-core';
|
|
4
|
+
import '@usebetterdev/audit-next';
|
|
4
5
|
import '@usebetterdev/audit-prisma';
|
package/dist/next.cjs
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/next.ts
|
|
21
|
+
var next_exports = {};
|
|
22
|
+
__export(next_exports, {
|
|
23
|
+
AUDIT_ACTOR_HEADER: () => import_audit_next.AUDIT_ACTOR_HEADER,
|
|
24
|
+
betterAuditNext: () => import_audit_next.betterAuditNext,
|
|
25
|
+
createAuditMiddleware: () => import_audit_next.createAuditMiddleware,
|
|
26
|
+
fromBearerToken: () => import_audit_next.fromBearerToken,
|
|
27
|
+
fromCookie: () => import_audit_next.fromCookie,
|
|
28
|
+
fromHeader: () => import_audit_next.fromHeader,
|
|
29
|
+
getAuditContext: () => import_audit_next.getAuditContext,
|
|
30
|
+
runWithAuditContext: () => import_audit_next.runWithAuditContext,
|
|
31
|
+
withAudit: () => import_audit_next.withAudit,
|
|
32
|
+
withAuditRoute: () => import_audit_next.withAuditRoute
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(next_exports);
|
|
35
|
+
var import_audit_next = require("@usebetterdev/audit-next");
|
|
36
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
37
|
+
0 && (module.exports = {
|
|
38
|
+
AUDIT_ACTOR_HEADER,
|
|
39
|
+
betterAuditNext,
|
|
40
|
+
createAuditMiddleware,
|
|
41
|
+
fromBearerToken,
|
|
42
|
+
fromCookie,
|
|
43
|
+
fromHeader,
|
|
44
|
+
getAuditContext,
|
|
45
|
+
runWithAuditContext,
|
|
46
|
+
withAudit,
|
|
47
|
+
withAuditRoute
|
|
48
|
+
});
|
|
49
|
+
//# sourceMappingURL=next.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/next.ts"],"sourcesContent":["export {\n AUDIT_ACTOR_HEADER,\n createAuditMiddleware,\n betterAuditNext,\n withAuditRoute,\n withAudit,\n fromBearerToken,\n fromCookie,\n fromHeader,\n getAuditContext,\n runWithAuditContext,\n} from \"@usebetterdev/audit-next\";\nexport type {\n BaseAuditOptions,\n CreateAuditMiddlewareOptions,\n WithAuditRouteOptions,\n WithAuditOptions,\n RouteContext,\n NextMiddleware,\n AuditContext,\n ContextExtractor,\n ValueExtractor,\n} from \"@usebetterdev/audit-next\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAWO;","names":[]}
|
package/dist/next.d.cts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AUDIT_ACTOR_HEADER, AuditContext, BaseAuditOptions, ContextExtractor, CreateAuditMiddlewareOptions, NextMiddleware, RouteContext, ValueExtractor, WithAuditOptions, WithAuditRouteOptions, betterAuditNext, createAuditMiddleware, fromBearerToken, fromCookie, fromHeader, getAuditContext, runWithAuditContext, withAudit, withAuditRoute } from '@usebetterdev/audit-next';
|
package/dist/next.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AUDIT_ACTOR_HEADER, AuditContext, BaseAuditOptions, ContextExtractor, CreateAuditMiddlewareOptions, NextMiddleware, RouteContext, ValueExtractor, WithAuditOptions, WithAuditRouteOptions, betterAuditNext, createAuditMiddleware, fromBearerToken, fromCookie, fromHeader, getAuditContext, runWithAuditContext, withAudit, withAuditRoute } from '@usebetterdev/audit-next';
|
package/dist/next.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// src/next.ts
|
|
2
|
+
import {
|
|
3
|
+
AUDIT_ACTOR_HEADER,
|
|
4
|
+
createAuditMiddleware,
|
|
5
|
+
betterAuditNext,
|
|
6
|
+
withAuditRoute,
|
|
7
|
+
withAudit,
|
|
8
|
+
fromBearerToken,
|
|
9
|
+
fromCookie,
|
|
10
|
+
fromHeader,
|
|
11
|
+
getAuditContext,
|
|
12
|
+
runWithAuditContext
|
|
13
|
+
} from "@usebetterdev/audit-next";
|
|
14
|
+
export {
|
|
15
|
+
AUDIT_ACTOR_HEADER,
|
|
16
|
+
betterAuditNext,
|
|
17
|
+
createAuditMiddleware,
|
|
18
|
+
fromBearerToken,
|
|
19
|
+
fromCookie,
|
|
20
|
+
fromHeader,
|
|
21
|
+
getAuditContext,
|
|
22
|
+
runWithAuditContext,
|
|
23
|
+
withAudit,
|
|
24
|
+
withAuditRoute
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=next.js.map
|
package/dist/next.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/next.ts"],"sourcesContent":["export {\n AUDIT_ACTOR_HEADER,\n createAuditMiddleware,\n betterAuditNext,\n withAuditRoute,\n withAudit,\n fromBearerToken,\n fromCookie,\n fromHeader,\n getAuditContext,\n runWithAuditContext,\n} from \"@usebetterdev/audit-next\";\nexport type {\n BaseAuditOptions,\n CreateAuditMiddlewareOptions,\n WithAuditRouteOptions,\n WithAuditOptions,\n RouteContext,\n NextMiddleware,\n AuditContext,\n ContextExtractor,\n ValueExtractor,\n} from \"@usebetterdev/audit-next\";\n"],"mappings":";AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@usebetterdev/audit",
|
|
3
3
|
"description": "Compliance-ready audit logging for any database in minutes.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.6.1",
|
|
5
5
|
"repository": "github:usebetter-dev/usebetter",
|
|
6
6
|
"bugs": "https://github.com/usebetter-dev/usebetter/issues",
|
|
7
7
|
"homepage": "https://github.com/usebetter-dev/usebetter#readme",
|
|
@@ -44,6 +44,12 @@
|
|
|
44
44
|
"import": "./dist/prisma.js",
|
|
45
45
|
"require": "./dist/prisma.cjs",
|
|
46
46
|
"default": "./dist/prisma.js"
|
|
47
|
+
},
|
|
48
|
+
"./next": {
|
|
49
|
+
"types": "./dist/next.d.ts",
|
|
50
|
+
"import": "./dist/next.js",
|
|
51
|
+
"require": "./dist/next.cjs",
|
|
52
|
+
"default": "./dist/next.js"
|
|
47
53
|
}
|
|
48
54
|
},
|
|
49
55
|
"files": [
|
|
@@ -51,11 +57,12 @@
|
|
|
51
57
|
"README.md"
|
|
52
58
|
],
|
|
53
59
|
"dependencies": {
|
|
54
|
-
"@usebetterdev/audit-core": "0.
|
|
55
|
-
"@usebetterdev/audit-drizzle": "0.
|
|
56
|
-
"@usebetterdev/audit-express": "0.
|
|
57
|
-
"@usebetterdev/audit-hono": "0.
|
|
58
|
-
"@usebetterdev/audit-
|
|
60
|
+
"@usebetterdev/audit-core": "0.6.1",
|
|
61
|
+
"@usebetterdev/audit-drizzle": "0.6.1",
|
|
62
|
+
"@usebetterdev/audit-express": "0.6.1",
|
|
63
|
+
"@usebetterdev/audit-hono": "0.6.1",
|
|
64
|
+
"@usebetterdev/audit-next": "0.6.1",
|
|
65
|
+
"@usebetterdev/audit-prisma": "0.6.1"
|
|
59
66
|
},
|
|
60
67
|
"devDependencies": {
|
|
61
68
|
"@types/node": "^22.10.0",
|
|
@@ -69,6 +76,7 @@
|
|
|
69
76
|
"scripts": {
|
|
70
77
|
"build": "tsup",
|
|
71
78
|
"build:types": "tsc --build tsconfig.build.json",
|
|
79
|
+
"lint": "oxlint",
|
|
72
80
|
"test": "vitest run",
|
|
73
81
|
"typecheck": "tsc --noEmit"
|
|
74
82
|
}
|