@wtfalch/reporting 0.4.0 → 0.5.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/index.d.ts +2 -0
- package/dist/index.js +7 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,8 @@ export * from './analytics/schema.js';
|
|
|
8
8
|
export { createCollector, type CollectorOptions, type Sites } from './analytics/collector.js';
|
|
9
9
|
export { analyticsRecent, analyticsSeries, analyticsWeekly, hideSmallGroups, type Grain, type RecentEvent, type RecentOptions, type SeriesOptions, type SeriesPoint, type WeeklyPoint, } from './analytics/reader.js';
|
|
10
10
|
export type { AnalyticsRow } from './analytics/write.js';
|
|
11
|
+
export { errorsPage } from './errors/reader.js';
|
|
12
|
+
export { errorDetail, setErrorState } from './errors/reader.js';
|
|
11
13
|
/**
|
|
12
14
|
* The host's one instance, built once over its drizzle handle and its
|
|
13
15
|
* logger. Framework-neutral: `defer` is how the host says "after this unit of
|
package/dist/index.js
CHANGED
|
@@ -16,6 +16,13 @@ export { CONSENT_MODES, DEFAULT_SETTINGS, RETENTION_BOUNDS } from './settings.js
|
|
|
16
16
|
export * from './analytics/schema.js';
|
|
17
17
|
export { createCollector } from './analytics/collector.js';
|
|
18
18
|
export { analyticsRecent, analyticsSeries, analyticsWeekly, hideSmallGroups, } from './analytics/reader.js';
|
|
19
|
+
// The error-group list, for a host's triage page: filters, keyset paging and
|
|
20
|
+
// `search` over message and stack. No permission is applied; the host gates.
|
|
21
|
+
export { errorsPage } from './errors/reader.js';
|
|
22
|
+
// One error group by fingerprint, and the state move that opens, resolves
|
|
23
|
+
// or reopens it -- the two calls a host's triage detail page makes once it
|
|
24
|
+
// has a group from errorsPage. No permission is applied; the host gates.
|
|
25
|
+
export { errorDetail, setErrorState } from './errors/reader.js';
|
|
19
26
|
function modeFromEnv() {
|
|
20
27
|
const env = process.env.NODE_ENV;
|
|
21
28
|
return env === 'development' || env === 'test' ? env : 'production';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wtfalch/reporting",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "The estate's operational event log and housekeeping tick: a writer that never fails a request, a claim protocol that needs no scheduler, and the readers an operator opens. Per-app Postgres, host-supplied logger, framework-neutral core with a Next entry.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|