@pithy-sh/audit 0.2.3 → 0.2.5
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/capability.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capability.d.ts","sourceRoot":"","sources":["../src/capability.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,UAAU,EAAoB,MAAM,0CAA0C,CAAC;AAE7F,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,MAAM,CAAC;AAWzC;;;;;;;;;;GAUG;AACH,eAAO,MAAM,WAAW;;;iBAc8B,CAAC;AACvD,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,WAAW,CAAC,CAAC;AACvD,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAE3D,8EAA8E;AAC9E,MAAM,WAAW,eAAgB,SAAQ,UAAU;IACjD,gFAAgF;IAChF,aAAa,EAAE,MAAM,CAAC;CACvB;AAED;;;;;GAKG;AACH,wBAAgB,KAAK,CAAC,MAAM,GAAE,gBAAqB,GAAG,eAAe,
|
|
1
|
+
{"version":3,"file":"capability.d.ts","sourceRoot":"","sources":["../src/capability.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,UAAU,EAAoB,MAAM,0CAA0C,CAAC;AAE7F,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,MAAM,CAAC;AAWzC;;;;;;;;;;GAUG;AACH,eAAO,MAAM,WAAW;;;iBAc8B,CAAC;AACvD,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,WAAW,CAAC,CAAC;AACvD,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAE3D,8EAA8E;AAC9E,MAAM,WAAW,eAAgB,SAAQ,UAAU;IACjD,gFAAgF;IAChF,aAAa,EAAE,MAAM,CAAC;CACvB;AAED;;;;;GAKG;AACH,wBAAgB,KAAK,CAAC,MAAM,GAAE,gBAAqB,GAAG,eAAe,CA4DpE;AAED,mFAAmF;AACnF,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,UAAU,GAAG,UAAU,IAAI,eAAe,CAEvF"}
|
package/dist/capability.js
CHANGED
|
@@ -6,7 +6,7 @@ import { registerAuditRoutes } from "./http/routes.js";
|
|
|
6
6
|
import { audit_0001_init } from "./migrations/0001_init.js";
|
|
7
7
|
import { recordAuditEvent } from "./recorder.js";
|
|
8
8
|
import { auditExampleSeed } from "./seeds/example.js";
|
|
9
|
-
import { PACKAGE_VERSION } from "./version.generated.js";
|
|
9
|
+
import { PACKAGE_NAME, PACKAGE_VERSION } from "./version.generated.js";
|
|
10
10
|
import { defineCapability } from "@pithy-sh/core/src/capability/capability";
|
|
11
11
|
import { workerIdentity } from "@pithy-sh/core/src/worker/identity";
|
|
12
12
|
import { z } from "zod";
|
|
@@ -51,6 +51,7 @@ function audit(config = {}) {
|
|
|
51
51
|
const capability = defineCapability({
|
|
52
52
|
name: "audit",
|
|
53
53
|
version: PACKAGE_VERSION,
|
|
54
|
+
package: PACKAGE_NAME,
|
|
54
55
|
config: AuditConfig,
|
|
55
56
|
requiredBindings: [{
|
|
56
57
|
type: "d1",
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
/** This package's npm name — the join key against a release feed. */
|
|
4
4
|
export declare const PACKAGE_NAME = "@pithy-sh/audit";
|
|
5
5
|
/** This package's version, stamped from its own package.json at generation time. */
|
|
6
|
-
export declare const PACKAGE_VERSION = "0.2.
|
|
6
|
+
export declare const PACKAGE_VERSION = "0.2.5";
|
|
7
7
|
//# sourceMappingURL=version.generated.d.ts.map
|
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
/** This package's npm name — the join key against a release feed. */
|
|
5
5
|
const PACKAGE_NAME = "@pithy-sh/audit";
|
|
6
6
|
/** This package's version, stamped from its own package.json at generation time. */
|
|
7
|
-
const PACKAGE_VERSION = "0.2.
|
|
7
|
+
const PACKAGE_VERSION = "0.2.5";
|
|
8
8
|
//#endregion
|
|
9
9
|
export { PACKAGE_NAME, PACKAGE_VERSION };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pithy-sh/audit",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5",
|
|
4
4
|
"license": "FSL-1.1-MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@hono/zod-validator": "^0.9.0"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@pithy-sh/core": "^0.
|
|
41
|
+
"@pithy-sh/core": "^0.7.3",
|
|
42
42
|
"hono": "^4.13.2",
|
|
43
43
|
"kysely": "^0.29.0",
|
|
44
44
|
"zod": "^4.4.0"
|
package/src/capability.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { registerAuditRoutes } from "./http/routes";
|
|
|
11
11
|
import { audit_0001_init } from "./migrations/0001_init";
|
|
12
12
|
import { recordAuditEvent } from "./recorder";
|
|
13
13
|
import { auditExampleSeed } from "./seeds/example";
|
|
14
|
-
import { PACKAGE_VERSION } from "./version.generated";
|
|
14
|
+
import { PACKAGE_NAME, PACKAGE_VERSION } from "./version.generated";
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* Sort order of the audit migration within the audit database, relative to other capabilities
|
|
@@ -74,9 +74,12 @@ export function audit(config: AuditConfigInput = {}): AuditCapability {
|
|
|
74
74
|
const resolved = AuditConfig.parse(config);
|
|
75
75
|
const capability = defineCapability({
|
|
76
76
|
name: "audit",
|
|
77
|
-
// The package
|
|
78
|
-
// cannot read its own package.json. Reported per capability by
|
|
77
|
+
// The package this capability ships in and the version it ships at, both stamped by
|
|
78
|
+
// `scripts/stampVersions.ts` — a Worker cannot read its own package.json. Reported per capability by
|
|
79
|
+
// the control-plane manifest, and reported together: a release feed is keyed by package name, so the
|
|
80
|
+
// version alone leaves a client guessing the key (#626).
|
|
79
81
|
version: PACKAGE_VERSION,
|
|
82
|
+
package: PACKAGE_NAME,
|
|
80
83
|
config: AuditConfig,
|
|
81
84
|
requiredBindings: [{ type: "d1", name: resolved.database }],
|
|
82
85
|
databases: {
|
package/src/version.generated.ts
CHANGED