@getattestly/storage-pg 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/migration.d.ts +2 -0
- package/dist/migration.js +8 -0
- package/dist/pg-storage-adapter.d.ts +17 -0
- package/dist/pg-storage-adapter.js +151 -0
- package/migrations/0001_init.sql +124 -0
- package/package.json +55 -3
- package/README.md +0 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 m.i. SAAD
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { readFileSync } from 'node:fs';
|
|
2
|
+
import { dirname, join } from 'node:path';
|
|
3
|
+
import { fileURLToPath } from 'node:url';
|
|
4
|
+
const packageRoot = join(dirname(fileURLToPath(import.meta.url)), '..');
|
|
5
|
+
export function readMigrationSql() {
|
|
6
|
+
return readFileSync(join(packageRoot, 'migrations', '0001_init.sql'), 'utf8');
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=migration.js.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Pool, PoolClient } from 'pg';
|
|
2
|
+
import { type ChainHead, type ChainRow, type Checkpoint, type PendingAuditEvent, type ReadRangeOptions, type StoragePort } from '@getattestly/core';
|
|
3
|
+
export declare class PgStorageAdapter implements StoragePort<PoolClient> {
|
|
4
|
+
private readonly pool;
|
|
5
|
+
constructor(pool: Pool);
|
|
6
|
+
head(tenantId: string): Promise<ChainHead | null>;
|
|
7
|
+
appendInline(event: PendingAuditEvent): Promise<ChainRow>;
|
|
8
|
+
readRange(tenantId: string, options?: ReadRangeOptions): Promise<ChainRow[]>;
|
|
9
|
+
enqueue(tx: PoolClient | undefined, event: PendingAuditEvent): Promise<void>;
|
|
10
|
+
drainOutbox(tenantId: string, batchSize: number): Promise<ChainRow[]>;
|
|
11
|
+
listOutboxTenants(limit: number): Promise<string[]>;
|
|
12
|
+
recordCheckpoint(tenantId: string, anchoredRef: string | null): Promise<Checkpoint>;
|
|
13
|
+
private runInTenantTransaction;
|
|
14
|
+
private loadCurrentHead;
|
|
15
|
+
private insertAuditEventRow;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=pg-storage-adapter.d.ts.map
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { GENESIS_HASH, hashEvent, toCanonicalPayload, } from '@getattestly/core';
|
|
2
|
+
function mapRowToCheckpoint(row) {
|
|
3
|
+
return {
|
|
4
|
+
id: row.id,
|
|
5
|
+
tenantId: row.tenant_id,
|
|
6
|
+
headSeq: Number(row.head_seq),
|
|
7
|
+
headHash: row.head_hash,
|
|
8
|
+
createdAt: row.created_at.toISOString(),
|
|
9
|
+
anchoredRef: row.anchored_ref,
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
function mapRowToChainRow(row) {
|
|
13
|
+
return {
|
|
14
|
+
tenantId: row.tenant_id,
|
|
15
|
+
seq: Number(row.seq),
|
|
16
|
+
occurredAt: row.occurred_at.toISOString(),
|
|
17
|
+
actor: {
|
|
18
|
+
id: row.actor_id,
|
|
19
|
+
type: row.actor_type,
|
|
20
|
+
label: row.actor_label,
|
|
21
|
+
},
|
|
22
|
+
action: row.action,
|
|
23
|
+
entity: { type: row.entity_type, id: row.entity_id },
|
|
24
|
+
changes: row.changes,
|
|
25
|
+
metadata: row.metadata,
|
|
26
|
+
hashVersion: row.hash_version,
|
|
27
|
+
prevHash: row.prev_hash,
|
|
28
|
+
rowHash: row.row_hash,
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
export class PgStorageAdapter {
|
|
32
|
+
pool;
|
|
33
|
+
constructor(pool) {
|
|
34
|
+
this.pool = pool;
|
|
35
|
+
}
|
|
36
|
+
async head(tenantId) {
|
|
37
|
+
return this.runInTenantTransaction(tenantId, (client) => this.loadCurrentHead(client, tenantId));
|
|
38
|
+
}
|
|
39
|
+
async appendInline(event) {
|
|
40
|
+
return this.runInTenantTransaction(event.tenantId, async (client) => {
|
|
41
|
+
await client.query("SELECT pg_advisory_xact_lock(('x' || substr(md5($1), 1, 16))::bit(64)::bigint)", [event.tenantId]);
|
|
42
|
+
const currentHead = await this.loadCurrentHead(client, event.tenantId);
|
|
43
|
+
const seq = currentHead ? currentHead.seq + 1 : 1;
|
|
44
|
+
const prevHash = currentHead ? currentHead.rowHash : GENESIS_HASH;
|
|
45
|
+
const sequencedEvent = { ...event, seq };
|
|
46
|
+
const rowHash = hashEvent(prevHash, toCanonicalPayload(sequencedEvent));
|
|
47
|
+
await this.insertAuditEventRow(client, sequencedEvent, prevHash, rowHash);
|
|
48
|
+
return { ...sequencedEvent, prevHash, rowHash };
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
async readRange(tenantId, options) {
|
|
52
|
+
return this.runInTenantTransaction(tenantId, async (client) => {
|
|
53
|
+
const conditions = ['tenant_id = $1'];
|
|
54
|
+
const params = [tenantId];
|
|
55
|
+
if (options?.fromSeq !== undefined) {
|
|
56
|
+
params.push(options.fromSeq);
|
|
57
|
+
conditions.push(`seq >= $${params.length}`);
|
|
58
|
+
}
|
|
59
|
+
if (options?.toSeq !== undefined) {
|
|
60
|
+
params.push(options.toSeq);
|
|
61
|
+
conditions.push(`seq <= $${params.length}`);
|
|
62
|
+
}
|
|
63
|
+
const queryResult = await client.query(`SELECT * FROM audit_events WHERE ${conditions.join(' AND ')} ORDER BY seq ASC`, params);
|
|
64
|
+
return queryResult.rows.map(mapRowToChainRow);
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
async enqueue(tx, event) {
|
|
68
|
+
const queryable = tx ?? this.pool;
|
|
69
|
+
await queryable.query('INSERT INTO audit_outbox (tenant_id, payload) VALUES ($1, $2)', [
|
|
70
|
+
event.tenantId,
|
|
71
|
+
JSON.stringify(event),
|
|
72
|
+
]);
|
|
73
|
+
}
|
|
74
|
+
async drainOutbox(tenantId, batchSize) {
|
|
75
|
+
return this.runInTenantTransaction(tenantId, async (client) => {
|
|
76
|
+
const pendingResult = await client.query('SELECT id, payload FROM audit_outbox WHERE tenant_id = $1 ORDER BY enqueued_at ASC LIMIT $2', [tenantId, batchSize]);
|
|
77
|
+
if (pendingResult.rows.length === 0) {
|
|
78
|
+
return [];
|
|
79
|
+
}
|
|
80
|
+
const currentHead = await this.loadCurrentHead(client, tenantId);
|
|
81
|
+
let seq = currentHead?.seq ?? 0;
|
|
82
|
+
let prevHash = currentHead?.rowHash ?? GENESIS_HASH;
|
|
83
|
+
const drainedRows = [];
|
|
84
|
+
for (const outboxRow of pendingResult.rows) {
|
|
85
|
+
seq += 1;
|
|
86
|
+
const sequencedEvent = { ...outboxRow.payload, seq };
|
|
87
|
+
const rowHash = hashEvent(prevHash, toCanonicalPayload(sequencedEvent));
|
|
88
|
+
await this.insertAuditEventRow(client, sequencedEvent, prevHash, rowHash);
|
|
89
|
+
await client.query('DELETE FROM audit_outbox WHERE id = $1', [outboxRow.id]);
|
|
90
|
+
drainedRows.push({ ...sequencedEvent, prevHash, rowHash });
|
|
91
|
+
prevHash = rowHash;
|
|
92
|
+
}
|
|
93
|
+
return drainedRows;
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
async listOutboxTenants(limit) {
|
|
97
|
+
const queryResult = await this.pool.query('SELECT tenant_id FROM audit_outbox GROUP BY tenant_id ORDER BY MIN(enqueued_at) ASC LIMIT $1', [limit]);
|
|
98
|
+
return queryResult.rows.map((row) => row.tenant_id);
|
|
99
|
+
}
|
|
100
|
+
async recordCheckpoint(tenantId, anchoredRef) {
|
|
101
|
+
const currentHead = await this.head(tenantId);
|
|
102
|
+
const queryResult = await this.pool.query(`INSERT INTO audit_checkpoints (tenant_id, head_seq, head_hash, anchored_ref)
|
|
103
|
+
VALUES ($1, $2, $3, $4)
|
|
104
|
+
RETURNING id, tenant_id, head_seq, head_hash, created_at, anchored_ref`, [tenantId, currentHead?.seq ?? 0, currentHead?.rowHash ?? GENESIS_HASH, anchoredRef]);
|
|
105
|
+
return mapRowToCheckpoint(queryResult.rows[0]);
|
|
106
|
+
}
|
|
107
|
+
async runInTenantTransaction(tenantId, work) {
|
|
108
|
+
const client = await this.pool.connect();
|
|
109
|
+
try {
|
|
110
|
+
await client.query('BEGIN');
|
|
111
|
+
await client.query("SELECT set_config('vellum.tenant_id', $1, true)", [tenantId]);
|
|
112
|
+
const workResult = await work(client);
|
|
113
|
+
await client.query('COMMIT');
|
|
114
|
+
return workResult;
|
|
115
|
+
}
|
|
116
|
+
catch (err) {
|
|
117
|
+
await client.query('ROLLBACK');
|
|
118
|
+
throw err;
|
|
119
|
+
}
|
|
120
|
+
finally {
|
|
121
|
+
client.release();
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
async loadCurrentHead(client, tenantId) {
|
|
125
|
+
const queryResult = await client.query('SELECT seq, row_hash FROM audit_events WHERE tenant_id = $1 ORDER BY seq DESC LIMIT 1', [tenantId]);
|
|
126
|
+
const headRow = queryResult.rows[0];
|
|
127
|
+
return headRow ? { seq: Number(headRow.seq), rowHash: headRow.row_hash } : null;
|
|
128
|
+
}
|
|
129
|
+
async insertAuditEventRow(client, event, prevHash, rowHash) {
|
|
130
|
+
await client.query(`INSERT INTO audit_events (
|
|
131
|
+
tenant_id, seq, occurred_at, actor_id, actor_type, actor_label,
|
|
132
|
+
action, entity_type, entity_id, changes, metadata, hash_version, prev_hash, row_hash
|
|
133
|
+
) VALUES ($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12,$13,$14)`, [
|
|
134
|
+
event.tenantId,
|
|
135
|
+
event.seq,
|
|
136
|
+
event.occurredAt,
|
|
137
|
+
event.actor.id,
|
|
138
|
+
event.actor.type,
|
|
139
|
+
event.actor.label,
|
|
140
|
+
event.action,
|
|
141
|
+
event.entity.type,
|
|
142
|
+
event.entity.id,
|
|
143
|
+
JSON.stringify(event.changes ?? {}),
|
|
144
|
+
JSON.stringify(event.metadata ?? {}),
|
|
145
|
+
event.hashVersion,
|
|
146
|
+
prevHash,
|
|
147
|
+
rowHash,
|
|
148
|
+
]);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
//# sourceMappingURL=pg-storage-adapter.js.map
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
-- Vellum init migration — ARCHITECTURE.md §2 (schema), §7 (RLS + append-only enforcement).
|
|
2
|
+
-- Idempotent: safe to re-run against an already-migrated database.
|
|
3
|
+
|
|
4
|
+
-- ---------------------------------------------------------------------------
|
|
5
|
+
-- Roles
|
|
6
|
+
-- ---------------------------------------------------------------------------
|
|
7
|
+
-- Passwords are NOT set here — that's an ops/secrets concern, not something a
|
|
8
|
+
-- versioned migration should bake in. Set one with ALTER ROLE ... WITH PASSWORD
|
|
9
|
+
-- (or your platform's equivalent) after running this migration.
|
|
10
|
+
|
|
11
|
+
DO $$
|
|
12
|
+
BEGIN
|
|
13
|
+
IF NOT EXISTS (SELECT 1 FROM pg_roles WHERE rolname = 'vellum_app') THEN
|
|
14
|
+
CREATE ROLE vellum_app WITH LOGIN;
|
|
15
|
+
END IF;
|
|
16
|
+
|
|
17
|
+
IF NOT EXISTS (SELECT 1 FROM pg_roles WHERE rolname = 'vellum_readonly') THEN
|
|
18
|
+
CREATE ROLE vellum_readonly WITH LOGIN;
|
|
19
|
+
END IF;
|
|
20
|
+
END
|
|
21
|
+
$$;
|
|
22
|
+
|
|
23
|
+
-- ---------------------------------------------------------------------------
|
|
24
|
+
-- audit_events — the chain (§2.1)
|
|
25
|
+
-- ---------------------------------------------------------------------------
|
|
26
|
+
|
|
27
|
+
CREATE TABLE IF NOT EXISTS audit_events (
|
|
28
|
+
id uuid NOT NULL DEFAULT gen_random_uuid(),
|
|
29
|
+
tenant_id uuid NOT NULL,
|
|
30
|
+
seq bigint NOT NULL,
|
|
31
|
+
occurred_at timestamptz NOT NULL,
|
|
32
|
+
actor_id text,
|
|
33
|
+
actor_type text NOT NULL DEFAULT 'user',
|
|
34
|
+
actor_label text,
|
|
35
|
+
action text NOT NULL,
|
|
36
|
+
entity_type text NOT NULL,
|
|
37
|
+
entity_id text,
|
|
38
|
+
changes jsonb NOT NULL DEFAULT '{}',
|
|
39
|
+
metadata jsonb NOT NULL DEFAULT '{}',
|
|
40
|
+
hash_version smallint NOT NULL DEFAULT 1,
|
|
41
|
+
prev_hash char(64) NOT NULL,
|
|
42
|
+
row_hash char(64) NOT NULL,
|
|
43
|
+
created_at timestamptz NOT NULL DEFAULT now(),
|
|
44
|
+
|
|
45
|
+
CONSTRAINT audit_events_pkey PRIMARY KEY (id),
|
|
46
|
+
CONSTRAINT audit_events_tenant_seq_uniq UNIQUE (tenant_id, seq)
|
|
47
|
+
);
|
|
48
|
+
|
|
49
|
+
CREATE INDEX IF NOT EXISTS audit_events_tenant_time_idx ON audit_events (tenant_id, occurred_at DESC);
|
|
50
|
+
CREATE INDEX IF NOT EXISTS audit_events_entity_idx ON audit_events (tenant_id, entity_type, entity_id);
|
|
51
|
+
CREATE INDEX IF NOT EXISTS audit_events_actor_idx ON audit_events (tenant_id, actor_id);
|
|
52
|
+
|
|
53
|
+
-- ---------------------------------------------------------------------------
|
|
54
|
+
-- audit_outbox — outbox mode staging table (§2.2)
|
|
55
|
+
-- ---------------------------------------------------------------------------
|
|
56
|
+
|
|
57
|
+
CREATE TABLE IF NOT EXISTS audit_outbox (
|
|
58
|
+
id uuid NOT NULL DEFAULT gen_random_uuid() PRIMARY KEY,
|
|
59
|
+
tenant_id uuid NOT NULL,
|
|
60
|
+
payload jsonb NOT NULL,
|
|
61
|
+
enqueued_at timestamptz NOT NULL DEFAULT now(),
|
|
62
|
+
attempts int NOT NULL DEFAULT 0
|
|
63
|
+
);
|
|
64
|
+
|
|
65
|
+
CREATE INDEX IF NOT EXISTS audit_outbox_tenant_idx ON audit_outbox (tenant_id, enqueued_at);
|
|
66
|
+
|
|
67
|
+
-- ---------------------------------------------------------------------------
|
|
68
|
+
-- audit_checkpoints — external-anchoring support (§2.3)
|
|
69
|
+
-- ---------------------------------------------------------------------------
|
|
70
|
+
|
|
71
|
+
CREATE TABLE IF NOT EXISTS audit_checkpoints (
|
|
72
|
+
id uuid NOT NULL DEFAULT gen_random_uuid() PRIMARY KEY,
|
|
73
|
+
tenant_id uuid NOT NULL,
|
|
74
|
+
head_seq bigint NOT NULL,
|
|
75
|
+
head_hash char(64) NOT NULL,
|
|
76
|
+
created_at timestamptz NOT NULL DEFAULT now(),
|
|
77
|
+
anchored_ref text
|
|
78
|
+
);
|
|
79
|
+
|
|
80
|
+
-- ---------------------------------------------------------------------------
|
|
81
|
+
-- Row-Level Security — tenant isolation (§7)
|
|
82
|
+
-- ---------------------------------------------------------------------------
|
|
83
|
+
|
|
84
|
+
ALTER TABLE audit_events ENABLE ROW LEVEL SECURITY;
|
|
85
|
+
ALTER TABLE audit_events FORCE ROW LEVEL SECURITY;
|
|
86
|
+
|
|
87
|
+
DROP POLICY IF EXISTS vellum_tenant_read ON audit_events;
|
|
88
|
+
CREATE POLICY vellum_tenant_read ON audit_events FOR SELECT
|
|
89
|
+
USING (tenant_id = current_setting('vellum.tenant_id', true)::uuid);
|
|
90
|
+
|
|
91
|
+
DROP POLICY IF EXISTS vellum_tenant_write ON audit_events;
|
|
92
|
+
CREATE POLICY vellum_tenant_write ON audit_events FOR INSERT
|
|
93
|
+
WITH CHECK (tenant_id = current_setting('vellum.tenant_id', true)::uuid);
|
|
94
|
+
|
|
95
|
+
-- ---------------------------------------------------------------------------
|
|
96
|
+
-- Append-only enforcement (§7)
|
|
97
|
+
-- ---------------------------------------------------------------------------
|
|
98
|
+
|
|
99
|
+
REVOKE UPDATE, DELETE, TRUNCATE ON audit_events FROM vellum_app;
|
|
100
|
+
GRANT INSERT, SELECT ON audit_events TO vellum_app;
|
|
101
|
+
|
|
102
|
+
CREATE OR REPLACE FUNCTION vellum_forbid_mutation() RETURNS trigger
|
|
103
|
+
LANGUAGE plpgsql AS $$
|
|
104
|
+
BEGIN
|
|
105
|
+
RAISE EXCEPTION 'audit_events is append-only';
|
|
106
|
+
END
|
|
107
|
+
$$;
|
|
108
|
+
|
|
109
|
+
DROP TRIGGER IF EXISTS vellum_no_mutation ON audit_events;
|
|
110
|
+
CREATE TRIGGER vellum_no_mutation BEFORE UPDATE OR DELETE ON audit_events
|
|
111
|
+
FOR EACH ROW EXECUTE FUNCTION vellum_forbid_mutation();
|
|
112
|
+
|
|
113
|
+
-- ---------------------------------------------------------------------------
|
|
114
|
+
-- Outbox / checkpoint grants for the application role
|
|
115
|
+
-- ---------------------------------------------------------------------------
|
|
116
|
+
|
|
117
|
+
GRANT INSERT, SELECT, DELETE ON audit_outbox TO vellum_app;
|
|
118
|
+
GRANT INSERT, SELECT ON audit_checkpoints TO vellum_app;
|
|
119
|
+
|
|
120
|
+
-- ---------------------------------------------------------------------------
|
|
121
|
+
-- Read-only role for the dashboard (§7) — SELECT only, still subject to RLS.
|
|
122
|
+
-- ---------------------------------------------------------------------------
|
|
123
|
+
|
|
124
|
+
GRANT SELECT ON audit_events TO vellum_readonly;
|
package/package.json
CHANGED
|
@@ -1,6 +1,58 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getattestly/storage-pg",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "node-postgres StoragePort adapter for Attestly.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.js"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"dependencies": {
|
|
15
|
+
"pg": "^8.22.0",
|
|
16
|
+
"@getattestly/core": "0.1.0"
|
|
17
|
+
},
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"@types/pg": "^8.20.0",
|
|
20
|
+
"typescript": "^5.7.0",
|
|
21
|
+
"vitest": "^2.1.0"
|
|
22
|
+
},
|
|
23
|
+
"license": "MIT",
|
|
24
|
+
"files": [
|
|
25
|
+
"dist",
|
|
26
|
+
"migrations",
|
|
27
|
+
"!dist/**/*.test.*",
|
|
28
|
+
"!dist/**/*.map",
|
|
29
|
+
"README.md",
|
|
30
|
+
"!dist/test"
|
|
31
|
+
],
|
|
32
|
+
"repository": {
|
|
33
|
+
"type": "git",
|
|
34
|
+
"url": "git+https://github.com/msaaaad/Vellum.git",
|
|
35
|
+
"directory": "packages/storage-pg"
|
|
36
|
+
},
|
|
37
|
+
"homepage": "https://github.com/msaaaad/Vellum#readme",
|
|
38
|
+
"bugs": {
|
|
39
|
+
"url": "https://github.com/msaaaad/Vellum/issues"
|
|
40
|
+
},
|
|
41
|
+
"engines": {
|
|
42
|
+
"node": ">=18"
|
|
43
|
+
},
|
|
44
|
+
"publishConfig": {
|
|
45
|
+
"access": "public"
|
|
46
|
+
},
|
|
47
|
+
"keywords": [
|
|
48
|
+
"audit-log",
|
|
49
|
+
"tamper-evident",
|
|
50
|
+
"hash-chain",
|
|
51
|
+
"postgres",
|
|
52
|
+
"nestjs"
|
|
53
|
+
],
|
|
54
|
+
"scripts": {
|
|
55
|
+
"build": "tsc -p tsconfig.json",
|
|
56
|
+
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
57
|
+
}
|
|
6
58
|
}
|
package/README.md
DELETED