@sebspark/health-check 3.0.10 → 3.0.11

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/CHANGELOG.md ADDED
@@ -0,0 +1,427 @@
1
+ # @sebspark/health-check
2
+
3
+ ## 3.0.11
4
+
5
+ ### Patch Changes
6
+
7
+ - 66ac832: * Upgraded to TypeScript 7
8
+ - Replaced tsup with tsdown for package builds
9
+ - Fixed cli-tester stdout parsing, resolving flaky e2e tests across the repo
10
+ - Patched vulnerable transitive dependencies (uuid, socket.io-parser, and others)
11
+ - Updated dependencies [66ac832]
12
+ - @sebspark/hyper-media@0.1.5
13
+ - @sebspark/promise-cache@8.1.6
14
+
15
+ ## 3.0.10
16
+
17
+ ### Patch Changes
18
+
19
+ - eefb531: Updated dependencies
20
+ - Updated dependencies [eefb531]
21
+ - @sebspark/promise-cache@8.1.5
22
+
23
+ ## 3.0.9
24
+
25
+ ### Patch Changes
26
+
27
+ - 5e9fc45: Bump dependencies. Security fixes:
28
+
29
+ - **form-data** 2.5.6 / 4.0.6 — CRLF injection via unescaped multipart field names and filenames (High)
30
+ - **vite** 8.1.2 — `server.fs.deny` bypass on Windows alternate paths; NTLMv2 hash disclosure via launch-editor (High/Moderate)
31
+ - **ws** 8.21.0 — Memory exhaustion DoS from tiny fragments; uninitialized memory disclosure (High/Moderate)
32
+ - **undici** 8.5.0 — Multiple DoS and information disclosure CVEs (High/Moderate/Low)
33
+ - **tar** 7.5.19 — PAX size override causes tar parser differential / file smuggling (Moderate)
34
+ - **qs** 6.15.3 — DoS via `qs.stringify` crash on null/undefined entries (Moderate)
35
+ - **@opentelemetry/core** 2.8.0 — Unbounded memory allocation in W3C Baggage propagation (Moderate)
36
+ - **@babel/core** 7.29.7 — Arbitrary file read via sourceMappingURL comment (Low)
37
+ - **protobufjs** 8.6.5
38
+
39
+ Other dependency updates:
40
+
41
+ - `@google-cloud/spanner` 8.8.0
42
+ - `@testcontainers/*` 12.0.4
43
+ - `google-auth-library` 10.9.0
44
+ - `mockserver-client` 7.3.0
45
+ - `nock` 14.0.16
46
+ - `prettier` 3.9.4
47
+ - `redis` 6.1.0
48
+ - `webpack` 5.108.3 / `webpack-cli` 7.1.0
49
+
50
+ - Updated dependencies [5e9fc45]
51
+ - @sebspark/promise-cache@8.1.4
52
+
53
+ ## 3.0.8
54
+
55
+ ### Patch Changes
56
+
57
+ - e0eda57: Updated dependencies
58
+ - Updated dependencies [e0eda57]
59
+ - @sebspark/promise-cache@8.1.3
60
+
61
+ ## 3.0.7
62
+
63
+ ### Patch Changes
64
+
65
+ - 26d55f0: Fix `@sebspark/memredis` so Redis clients are assignable to `IPersistor` by widening the pub/sub subscription return types to accept both MemRedis and node-redis implementations.
66
+
67
+ Also update supporting dependencies across the affected packages.
68
+
69
+ - Updated dependencies [26d55f0]
70
+ - @sebspark/promise-cache@8.1.2
71
+
72
+ ## 3.0.6
73
+
74
+ ### Patch Changes
75
+
76
+ - a6c27f3: Updated dependencies
77
+ - Updated dependencies [a6c27f3]
78
+ - @sebspark/promise-cache@8.1.1
79
+
80
+ ## 3.0.5
81
+
82
+ ### Patch Changes
83
+
84
+ - Updated dependencies [0fad123]
85
+ - @sebspark/promise-cache@8.1.0
86
+
87
+ ## 3.0.4
88
+
89
+ ### Patch Changes
90
+
91
+ - 97fe7da: Updated dependencies
92
+ - @sebspark/promise-cache@8.0.2
93
+
94
+ ## 3.0.3
95
+
96
+ ### Patch Changes
97
+
98
+ - Updated dependencies [494f9b3]
99
+ - @sebspark/promise-cache@8.0.1
100
+
101
+ ## 3.0.2
102
+
103
+ ### Patch Changes
104
+
105
+ - 264e665: Upgrade `redis` to v6 in `@sebspark/promise-cache` and bump minor dependencies across the workspace.
106
+
107
+ **Breaking change (`@sebspark/promise-cache`):**
108
+ `redis` upgraded from `5.12.1` → `6.0.0`. Redis v6 contains breaking changes in its API — see the [redis v6 migration guide](https://github.com/redis/node-redis/blob/master/docs/v4-to-v6.md) if your code uses the client directly.
109
+
110
+ **Dependency updates across packages:**
111
+ - `testcontainers` / `@testcontainers/*`: `12.0.0` → `12.0.1` (health-check, opensearch, opentelemetry-instrumentation-opensearch, otel, promise-cache, socket.io-gcp-pubsub-emitter, spanner-migrate, test-iap)
112
+ - `redis`: `5.12.1` → `6.0.0` (otel, promise-cache)
113
+ - `tsdown`: `0.22.0` → `0.22.1` (tsconfig)
114
+ - `turbo` / `@turbo/gen`: `2.9.15` → `2.9.16`
115
+ - `webpack-cli`: `7.0.2` → `7.0.3` (avsc-isometric)
116
+
117
+ **Test fix (`@sebspark/promise-cache`):**
118
+ Pinned Redis container image tag to `redis:8.8-alpine` (was `redis:8-alpine`) to prevent floating-tag drift in e2e tests.
119
+
120
+ - Updated dependencies [264e665]
121
+ - @sebspark/promise-cache@8.0.0
122
+
123
+ ## 3.0.1
124
+
125
+ ### Patch Changes
126
+
127
+ - 242eb33: This release primarily updates dependencies across the listed packages, including:
128
+ - Testcontainers v12 upgrades in packages that run integration/e2e tests.
129
+ - Vitest/Biome/Turbo and related tooling updates.
130
+ - Runtime dependency updates such as `date-fns`, `@inquirer/*`, `socket.io-adapter`, and `ws`.
131
+
132
+ It also includes two targeted fixes:
133
+ - `@sebspark/opensearch`: fixed TypeScript compatibility so strict `SearchRequest<T>` / `SearchRequestBody<T>` can be assigned to OpenSearch API request types, and added a compile-time compatibility test.
134
+ - `@sebspark/health-check`: updated the e2e readiness payload assertions and type-only import usage to match current runtime output and TypeScript expectations.
135
+
136
+ - Updated dependencies [242eb33]
137
+ - @sebspark/promise-cache@7.0.4
138
+
139
+ ## 3.0.0
140
+
141
+ ### Major Changes
142
+
143
+ - 48ffa3b: **Breaking:** The `System` and `Process` types returned by the `/health/live` endpoint no longer include fingerprinting fields that could be exploited by an attacker.
144
+
145
+ Removed from `system`: `hostname`, `platform`, `release`, `arch`, `cpus.model`, `cpus.speedMHz`.
146
+
147
+ Removed from `process`: `pid`, `node`.
148
+
149
+ These fields were accessible without authentication and disclosed OS version, kernel release, CPU model, Node.js version, and process ID — all useful for targeted exploitation. The endpoint now only exposes load metrics: `uptime`, `loadavg`, `totalmem`, `freemem`, `memUsedRatio`, `cpus.count`, `process.uptime`, and `process.memory`.
150
+
151
+ ## 2.3.12
152
+
153
+ ### Patch Changes
154
+
155
+ - c5e9c99: Resolve protobufjs CVE by pinning to `8.3.0` across all affected packages via root resolutions. Upgraded OpenTelemetry packages to `0.218.0` (which also eliminates the previous hardpin on `protobufjs@8.0.1`), `axios` to `1.16.1`, `ws` to `8.20.1`, `qs` to `6.15.2`, and `@opentelemetry/semantic-conventions` to `1.41.1`.
156
+ - Updated dependencies [c5e9c99]
157
+ - @sebspark/promise-cache@7.0.3
158
+
159
+ ## 2.3.11
160
+
161
+ ### Patch Changes
162
+
163
+ - @sebspark/promise-cache@7.0.2
164
+
165
+ ## 2.3.10
166
+
167
+ ### Patch Changes
168
+
169
+ - @sebspark/promise-cache@7.0.1
170
+
171
+ ## 2.3.9
172
+
173
+ ### Patch Changes
174
+
175
+ - Updated dependencies [55e3708]
176
+ - @sebspark/promise-cache@7.0.0
177
+
178
+ ## 2.3.8
179
+
180
+ ### Patch Changes
181
+
182
+ - Updated dependencies [5ed6ece]
183
+ - @sebspark/promise-cache@6.6.0
184
+
185
+ ## 2.3.7
186
+
187
+ ### Patch Changes
188
+
189
+ - Updated dependencies [2cff3d4]
190
+ - @sebspark/promise-cache@6.5.0
191
+
192
+ ## 2.3.6
193
+
194
+ ### Patch Changes
195
+
196
+ - @sebspark/promise-cache@6.4.29
197
+
198
+ ## 2.3.5
199
+
200
+ ### Patch Changes
201
+
202
+ - 7d8cc98: Dependabot dependency updates
203
+ - Updated dependencies [7d8cc98]
204
+ - @sebspark/hyper-media@0.1.4
205
+ - @sebspark/promise-cache@6.4.28
206
+
207
+ ## 2.3.4
208
+
209
+ ### Patch Changes
210
+
211
+ - @sebspark/promise-cache@6.4.27
212
+
213
+ ## 2.3.3
214
+
215
+ ### Patch Changes
216
+
217
+ - Updated dependencies [764bac9]
218
+ - @sebspark/promise-cache@6.4.26
219
+
220
+ ## 2.3.2
221
+
222
+ ### Patch Changes
223
+
224
+ - e9a7a28: Updated dependencies
225
+ - @sebspark/promise-cache@6.4.25
226
+
227
+ ## 2.3.1
228
+
229
+ ### Patch Changes
230
+
231
+ - @sebspark/promise-cache@6.4.24
232
+
233
+ ## 2.3.0
234
+
235
+ ### Minor Changes
236
+
237
+ - 6399280: Health check now has ddos protection. Type fix in promise-cache.
238
+
239
+ ### Patch Changes
240
+
241
+ - Updated dependencies [6399280]
242
+ - @sebspark/promise-cache@6.4.23
243
+
244
+ ## 2.2.4
245
+
246
+ ### Patch Changes
247
+
248
+ - 4e12590: Updated dependencies
249
+
250
+ ## 2.2.3
251
+
252
+ ### Patch Changes
253
+
254
+ - 6db0b94: fix: do not count degraded as failing for critical dependencies
255
+
256
+ ## 2.2.2
257
+
258
+ ### Patch Changes
259
+
260
+ - 574264d: Updated dependencies
261
+
262
+ ## 2.2.1
263
+
264
+ ### Patch Changes
265
+
266
+ - acb0290: Changed import to type
267
+
268
+ ## 2.2.0
269
+
270
+ ### Minor Changes
271
+
272
+ - 6d72f97: Dependency monitors can now report status details
273
+
274
+ ## 2.1.1
275
+
276
+ ### Patch Changes
277
+
278
+ - 736a0b3: No bundling of packages in packages
279
+ - Updated dependencies [736a0b3]
280
+ - @sebspark/hyper-media@0.1.3
281
+
282
+ ## 2.1.0
283
+
284
+ ### Minor Changes
285
+
286
+ - 903a0fb: chore: /ready should not return 200 if not ready
287
+
288
+ ## 2.0.3
289
+
290
+ ### Patch Changes
291
+
292
+ - 112a381: Updated dependencies
293
+
294
+ ## 2.0.2
295
+
296
+ ### Patch Changes
297
+
298
+ - Updated dependencies [695837c]
299
+ - @sebspark/hyper-media@0.1.2
300
+
301
+ ## 2.0.1
302
+
303
+ ### Patch Changes
304
+
305
+ - aaa50ea: Healthcheck now uses Hypermedia. Hypermedia got better jsdocs.
306
+ - Updated dependencies [aaa50ea]
307
+ - @sebspark/hyper-media@0.1.1
308
+
309
+ ## 2.0.0
310
+
311
+ ### Major Changes
312
+
313
+ - 6037a11: Links changed to entities with hypermedia links
314
+
315
+ ## 1.0.14
316
+
317
+ ### Patch Changes
318
+
319
+ - 35ec1a0: Updated dependencies
320
+
321
+ ## 1.0.13
322
+
323
+ ### Patch Changes
324
+
325
+ - c8dcadb: Updated dependencies
326
+
327
+ ## 1.0.12
328
+
329
+ ### Patch Changes
330
+
331
+ - 11a11ce: Updated dependencies
332
+
333
+ ## 1.0.10
334
+
335
+ ### Patch Changes
336
+
337
+ - 48ab717: Updated dependencies
338
+
339
+ ## 1.0.9
340
+
341
+ ### Patch Changes
342
+
343
+ - 87c769d: Updated dependencies
344
+
345
+ ## 1.0.8
346
+
347
+ ### Patch Changes
348
+
349
+ - e0cb5ee: Updated build from tsup to tsdown
350
+
351
+ ## 1.0.7
352
+
353
+ ### Patch Changes
354
+
355
+ - 8626deb: Updated vulnerable, transitive jws dependency
356
+
357
+ ## 1.0.6
358
+
359
+ ### Patch Changes
360
+
361
+ - 7df8217: Updated dependencies
362
+
363
+ ## 1.0.5
364
+
365
+ ### Patch Changes
366
+
367
+ - ef9ccdc: Updated to latest express version
368
+
369
+ ## 1.0.4
370
+
371
+ ### Patch Changes
372
+
373
+ - 5bf3ac7: chore: update dependencies for express-serve-static-core
374
+
375
+ ## 1.0.3
376
+
377
+ ### Patch Changes
378
+
379
+ - 4b210c2: Standardized on a common build script
380
+
381
+ ## 1.0.2
382
+
383
+ ### Patch Changes
384
+
385
+ - 7e5c2e9: Switched to new tsconfig with moduleResolution=bundler
386
+
387
+ ## 1.0.1
388
+
389
+ ### Patch Changes
390
+
391
+ - 512cdc5: DependencyMonitor is now exposed
392
+
393
+ ## 1.0.0
394
+
395
+ ### Major Changes
396
+
397
+ - 0864ec2: Minimum node version 22
398
+
399
+ ## 0.1.4
400
+
401
+ ### Patch Changes
402
+
403
+ - 3a40e49: Cleaned up dependencies
404
+
405
+ ## 0.1.3
406
+
407
+ ### Patch Changes
408
+
409
+ - 604c94a: Updated dependencies
410
+
411
+ ## 0.1.2
412
+
413
+ ### Patch Changes
414
+
415
+ - 29b9b20: Updated dependencies
416
+
417
+ ## 0.1.1
418
+
419
+ ### Patch Changes
420
+
421
+ - 5c6e183: Updated dependencies
422
+
423
+ ## 0.1.0
424
+
425
+ ### Minor Changes
426
+
427
+ - d6970ac: A health check handler for your API
package/dist/index.d.mts CHANGED
@@ -1,26 +1,26 @@
1
1
  import { Router } from "express";
2
2
  //#region src/types.d.ts
3
- type DependencyStatusValue = 'ok' | 'degraded' | 'error';
4
- type DependencyStatus = {
3
+ export type DependencyStatusValue = 'ok' | 'degraded' | 'error';
4
+ export type DependencyStatus = {
5
5
  status: DependencyStatusValue;
6
6
  details?: Record<string, unknown> | undefined;
7
7
  };
8
- type StatusValue = DependencyStatusValue | 'unknown' | 'draining';
9
- type Impact = 'critical' | 'non_critical';
10
- type Mode = 'inline' | 'polled' | 'async';
11
- type Verb = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
12
- type Link = {
8
+ export type StatusValue = DependencyStatusValue | 'unknown' | 'draining';
9
+ export type Impact = 'critical' | 'non_critical';
10
+ export type Mode = 'inline' | 'polled' | 'async';
11
+ export type Verb = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
12
+ export type Link = {
13
13
  method: Verb;
14
14
  href: string;
15
15
  };
16
- interface Entity<T> {
16
+ export interface Entity<T> {
17
17
  data: T;
18
18
  links: Record<string, Link>;
19
19
  }
20
- type Status = {
20
+ export type Status = {
21
21
  status: StatusValue;
22
22
  };
23
- type System = {
23
+ export type System = {
24
24
  uptime: number;
25
25
  loadavg: [number, number, number];
26
26
  totalmem: number;
@@ -30,28 +30,28 @@ type System = {
30
30
  count: number;
31
31
  };
32
32
  };
33
- type Process = {
33
+ export type Process = {
34
34
  uptime: number;
35
35
  memory: NodeJS.MemoryUsage;
36
36
  };
37
- type Liveness = Status & {
37
+ export type Liveness = Status & {
38
38
  timestamp: string;
39
39
  system: System;
40
40
  process: Process;
41
41
  };
42
- type Freshness = {
42
+ export type Freshness = {
43
43
  lastChecked: string;
44
44
  lastSuccess: string | null;
45
45
  };
46
- type Observed = {
46
+ export type Observed = {
47
47
  latencyMs: number | null;
48
48
  [k: string]: unknown;
49
49
  };
50
- type CheckError = {
50
+ export type CheckError = {
51
51
  code: string;
52
52
  message: string;
53
53
  };
54
- type DependencyCheck = Status & {
54
+ export type DependencyCheck = Status & {
55
55
  impact: Impact;
56
56
  mode: Mode;
57
57
  freshness: Freshness;
@@ -60,7 +60,7 @@ type DependencyCheck = Status & {
60
60
  error?: CheckError | null;
61
61
  since?: string | null;
62
62
  };
63
- type ReadinessSummary = {
63
+ export type ReadinessSummary = {
64
64
  critical: {
65
65
  ok: number;
66
66
  degraded: number;
@@ -73,7 +73,7 @@ type ReadinessSummary = {
73
73
  };
74
74
  degradedReasons: string[];
75
75
  };
76
- type ReadinessPayload = Status & {
76
+ export type ReadinessPayload = Status & {
77
77
  timestamp: string;
78
78
  service?: {
79
79
  name?: string;
@@ -83,13 +83,13 @@ type ReadinessPayload = Status & {
83
83
  summary: ReadinessSummary;
84
84
  checks: Record<string, DependencyCheck>;
85
85
  };
86
- type HealthSummary = Status & Pick<ReadinessPayload, 'summary' | 'checks'> & Pick<Liveness, 'system' | 'process'> & {
86
+ export type HealthSummary = Status & Pick<ReadinessPayload, 'summary' | 'checks'> & Pick<Liveness, 'system' | 'process'> & {
87
87
  timestamp: string;
88
88
  };
89
- declare class TimeoutError extends Error {
89
+ export declare class TimeoutError extends Error {
90
90
  constructor();
91
91
  }
92
- declare class UnknownError extends Error {
92
+ export declare class UnknownError extends Error {
93
93
  constructor();
94
94
  }
95
95
  //#endregion
@@ -134,7 +134,7 @@ type BaseConfig = {
134
134
  * Inline mode configuration (no polling).
135
135
  * `syncCall` runs **only** when {@link DependencyMonitor.check} is invoked.
136
136
  */
137
- type SyncInlineConfig = BaseConfig & {
137
+ export type SyncInlineConfig = BaseConfig & {
138
138
  /** Performs the check immediately when {@link DependencyMonitor.check} is called. */
139
139
  syncCall: () => Promise<DependencyStatus | DependencyStatusValue | Error>;
140
140
  asyncCall?: never;
@@ -145,7 +145,7 @@ type SyncInlineConfig = BaseConfig & {
145
145
  * Polled mode configuration.
146
146
  * `syncCall` runs on an interval (`pollRate`) and results are cached.
147
147
  */
148
- type SyncPolledConfig = BaseConfig & {
148
+ export type SyncPolledConfig = BaseConfig & {
149
149
  /** Performs the check at each poll interval. */
150
150
  syncCall: () => Promise<DependencyStatus | DependencyStatusValue | Error>;
151
151
  /** Polling interval in milliseconds. */
@@ -156,7 +156,7 @@ type SyncPolledConfig = BaseConfig & {
156
156
  * Async mode configuration.
157
157
  * `asyncCall` starts a check and must report via the provided callback.
158
158
  */
159
- type AsyncConfig = BaseConfig & {
159
+ export type AsyncConfig = BaseConfig & {
160
160
  /**
161
161
  * Starts an asynchronous check. Must call `reportResponse` once a result is available.
162
162
  * The callback may be invoked with a `DependencyStatus | DependencyStatusValue` or an `Error`.
@@ -172,7 +172,7 @@ type AsyncConfig = BaseConfig & {
172
172
  * - {@link SyncPolledConfig} → synchronous checks on a fixed interval
173
173
  * - {@link AsyncConfig} → asynchronous checks that report back via callback
174
174
  */
175
- type DependencyMonitorConfig = SyncInlineConfig | SyncPolledConfig | AsyncConfig;
175
+ export type DependencyMonitorConfig = SyncInlineConfig | SyncPolledConfig | AsyncConfig;
176
176
  /**
177
177
  * Tracks the health of a single dependency in one of three modes:
178
178
  *
@@ -191,7 +191,7 @@ type DependencyMonitorConfig = SyncInlineConfig | SyncPolledConfig | AsyncConfig
191
191
  * - `"error"` if returned `"error"`, an `Error`, or exceeded `timeoutLimitMs`
192
192
  * - `"unknown"` is the initial state before first successful/failed result (polled/async)
193
193
  */
194
- declare class DependencyMonitor {
194
+ export declare class DependencyMonitor {
195
195
  /** Immutable configuration for this monitor. */
196
196
  private readonly config;
197
197
  /** Operational mode determined from the configuration. */
@@ -267,7 +267,7 @@ declare class DependencyMonitor {
267
267
  }
268
268
  //#endregion
269
269
  //#region src/health-monitor.d.ts
270
- interface HealthMonitorConfig {
270
+ export interface HealthMonitorConfig {
271
271
  throttle: number;
272
272
  }
273
273
  /**
@@ -302,7 +302,7 @@ interface HealthMonitorConfig {
302
302
  * app.listen(3000)
303
303
  * ```
304
304
  */
305
- declare class HealthMonitor {
305
+ export declare class HealthMonitor {
306
306
  private readonly _router;
307
307
  private readonly dependencies;
308
308
  private isDisposed;
@@ -386,5 +386,4 @@ declare class HealthMonitor {
386
386
  dispose(): void;
387
387
  }
388
388
  //#endregion
389
- export { AsyncConfig, CheckError, DependencyCheck, DependencyMonitor, DependencyMonitorConfig, DependencyStatus, DependencyStatusValue, Entity, Freshness, HealthMonitor, HealthMonitorConfig, HealthSummary, Impact, Link, Liveness, Mode, Observed, Process, ReadinessPayload, ReadinessSummary, Status, StatusValue, SyncInlineConfig, SyncPolledConfig, System, TimeoutError, UnknownError, Verb };
390
389
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/types.ts","../src/dependency-monitor.ts","../src/health-monitor.ts"],"mappings":";;KAAY;KACA;EACV,QAAQ;EACR,UAAU;;KAEA,cAAc;KACd;KACA;KAEA;KAEA;EACV,QAAQ;EACR;;UAGe,OAAO;EACtB,MAAM;EACN,OAAO,eAAe;;KAGZ;EACV,QAAQ;;KAGE;EACV;EACA;EACA;EACA;EACA;EACA;IACE;;;KAIQ;EACV;EACA,QAAQ,OAAO;;KAGL,WAAW;EACrB;EACA,QAAQ;EACR,SAAS;;KAGC;EACV;EACA;;KAGU;EACV;GACC;;KAGS;EACV;EACA;;KAGU,kBAAkB;EAC5B,QAAQ;EACR,MAAM;EACN,WAAW;EACX,WAAW;EACX,UAAU;EACV,QAAQ;EACR;;KAGU;EACV;IAAY;IAAY;IAAkB;;EAC1C;IAAe;IAAY;IAAkB;;EAC7C;;KAGU,mBAAmB;EAC7B;EACA;IAAY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;;;;;;;;;;;qBAmCW;mBACM;mBACA;UACT;;;;EAKR,YAAY,SAAS;;;;;;;;;;;;;;;;;EA0Bd,cAAc,cAAc,YAAY;;;;UAQvC;;;;EAmGD,QA3GwC;;;;EAkHxC,QAPI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwCE,SAAS,QAAQ;EAkHjB,UAAM,QAAA;;;;MAiBR,UAAM;;;;GAOT,OAAO;;;;;;EASR"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sebspark/health-check",
3
- "version": "3.0.10",
3
+ "version": "3.0.11",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "main": "dist/index.mjs",
@@ -19,27 +19,32 @@
19
19
  "dev": "tsc --watch --noEmit",
20
20
  "lint": "biome check .",
21
21
  "test": "vitest run --passWithNoTests --coverage",
22
- "test:e2e": "vitest run --config ../../vitest.e2e.config.ts",
23
- "typecheck": "vitest --typecheck.only --passWithNoTests"
22
+ "test:e2e": "vitest run --config ../../vitest.e2e.config.mts",
23
+ "typecheck": "vitest --typecheck.only --passWithNoTests --run"
24
24
  },
25
25
  "dependencies": {
26
- "@sebspark/hyper-media": "0.1.4",
27
- "@sebspark/promise-cache": "8.1.5",
26
+ "@sebspark/hyper-media": "0.1.5",
27
+ "@sebspark/promise-cache": "8.1.6",
28
28
  "express": "5.2.1"
29
29
  },
30
30
  "devDependencies": {
31
- "@google-cloud/pubsub": "6.0.0",
31
+ "@biomejs/biome": "2.5.12",
32
+ "@google-cloud/pubsub": "6.0.1",
33
+ "@sebspark/tsconfig": "*",
32
34
  "@testcontainers/gcloud": "12.1.0",
33
35
  "@testcontainers/mockserver": "12.1.0",
34
36
  "@testcontainers/redis": "12.1.0",
35
- "mockserver-client": "7.5.0",
36
- "supertest": "7.2.2"
37
+ "mockserver-client": "7.6.0",
38
+ "supertest": "7.2.2",
39
+ "typescript": "7.0.2",
40
+ "vite": "8.2.2",
41
+ "vitest": "5.0.0"
37
42
  },
38
43
  "resolutions": {
39
- "protobufjs": "8.6.5"
44
+ "protobufjs": "8.8.0"
40
45
  },
41
46
  "repository": {
42
47
  "type": "git",
43
48
  "url": "https://github.com/seb-oss/Spark-packages.git"
44
49
  }
45
- }
50
+ }