@bgord/bun 1.20.0 → 1.20.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.
@@ -3,7 +3,7 @@ import { type HealthcheckConfig, type HealthcheckDependencies } from "./healthch
3
3
  export declare class HealthcheckHonoHandler implements HandlerHonoPort {
4
4
  private readonly handler;
5
5
  constructor(config: HealthcheckConfig, deps: HealthcheckDependencies);
6
- handle(): [import("hono/types").H<import("hono").Env, string, {}, Promise<Response & import("hono").TypedResponse<{
6
+ handle(): [import("hono/types").H<import("hono").Env, string, {}, Response & import("hono").TypedResponse<{
7
7
  status: import("./healthcheck.handler").HealthcheckStatusEnum;
8
8
  code: (typeof import("./healthcheck.handler").HealthcheckStatusCode)[keyof typeof import("./healthcheck.handler").HealthcheckStatusCode];
9
9
  deployment: {
@@ -69,6 +69,6 @@ export declare class HealthcheckHonoHandler implements HandlerHonoPort {
69
69
  } | undefined;
70
70
  ms: import("@bgord/tools").Duration["ms"];
71
71
  timestamp: import("@bgord/tools").TimestampValueType;
72
- }, 200 | 207 | 424, "json">>>];
72
+ }, 200 | 207 | 424, "json">>];
73
73
  }
74
74
  //# sourceMappingURL=healthcheck-hono.handler.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"healthcheck-hono.handler.d.ts","sourceRoot":"","sources":["../src/healthcheck-hono.handler.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,uBAAuB,EAE7B,MAAM,uBAAuB,CAAC;AAI/B,qBAAa,sBAAuB,YAAW,eAAe;IAC5D,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAqB;IAE7C,YAAY,MAAM,EAAE,iBAAiB,EAAE,IAAI,EAAE,uBAAuB,EAEnE;IAED,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mCAML;CACF"}
1
+ {"version":3,"file":"healthcheck-hono.handler.d.ts","sourceRoot":"","sources":["../src/healthcheck-hono.handler.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,uBAAuB,EAE7B,MAAM,uBAAuB,CAAC;AAI/B,qBAAa,sBAAuB,YAAW,eAAe;IAC5D,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAqB;IAE7C,YAAY,MAAM,EAAE,iBAAiB,EAAE,IAAI,EAAE,uBAAuB,EAEnE;IAED,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAML;CACF"}
@@ -1,8 +1,8 @@
1
1
  import type { HandlerHonoPort } from "./handler-hono.port";
2
2
  export declare class LivenessHonoHandler implements HandlerHonoPort {
3
3
  private readonly handler;
4
- handle(): [import("hono/types").H<import("hono").Env, string, {}, Promise<Response & import("hono").TypedResponse<{
4
+ handle(): [import("hono/types").H<import("hono").Env, string, {}, Response & import("hono").TypedResponse<{
5
5
  ok: true;
6
- }, 200, "json">>>];
6
+ }, 200, "json">>];
7
7
  }
8
8
  //# sourceMappingURL=liveness-hono.handler.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"liveness-hono.handler.d.ts","sourceRoot":"","sources":["../src/liveness-hono.handler.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAK3D,qBAAa,mBAAoB,YAAW,eAAe;IACzD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAyB;IAEjD,MAAM;;uBAEL;CACF"}
1
+ {"version":3,"file":"liveness-hono.handler.d.ts","sourceRoot":"","sources":["../src/liveness-hono.handler.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAK3D,qBAAa,mBAAoB,YAAW,eAAe;IACzD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAyB;IAEjD,MAAM;;sBAEL;CACF"}
@@ -9,21 +9,27 @@ import type { RetryConfig } from "./retry.service";
9
9
  import type { SleeperPort } from "./sleeper.port";
10
10
  import type { TimeoutRunnerPort } from "./timeout-runner.port";
11
11
  export type PrerequisiteVerifierDecorator = (verifier: PrerequisiteVerifierPort) => PrerequisiteVerifierPort;
12
+ declare const withTimeout: (timeout: tools.Duration, deps: {
13
+ TimeoutRunner: TimeoutRunnerPort;
14
+ }) => PrerequisiteVerifierDecorator;
15
+ declare const withCache: (id: string, deps: {
16
+ CacheResolver: CacheResolverStrategy;
17
+ HashContent: HashContentStrategy;
18
+ }) => PrerequisiteVerifierDecorator;
19
+ declare const withLogger: (deps: {
20
+ Clock: ClockPort;
21
+ Logger: LoggerPort;
22
+ }) => PrerequisiteVerifierDecorator;
23
+ declare const withRetry: (retry: RetryConfig, deps: {
24
+ Sleeper: SleeperPort;
25
+ }) => PrerequisiteVerifierDecorator;
26
+ declare const withFailSafe: (when: PrerequisiteVerifierWithFailSafeAdapterConfig) => PrerequisiteVerifierDecorator;
12
27
  export declare const PrerequisiteDecorator: {
13
- withTimeout: (timeout: tools.Duration, deps: {
14
- TimeoutRunner: TimeoutRunnerPort;
15
- }) => PrerequisiteVerifierDecorator;
16
- withCache: (id: string, deps: {
17
- CacheResolver: CacheResolverStrategy;
18
- HashContent: HashContentStrategy;
19
- }) => PrerequisiteVerifierDecorator;
20
- withLogger: (deps: {
21
- Clock: ClockPort;
22
- Logger: LoggerPort;
23
- }) => PrerequisiteVerifierDecorator;
24
- withRetry: (retry: RetryConfig, deps: {
25
- Sleeper: SleeperPort;
26
- }) => PrerequisiteVerifierDecorator;
27
- withFailSafe: (when: PrerequisiteVerifierWithFailSafeAdapterConfig) => PrerequisiteVerifierDecorator;
28
+ withTimeout: typeof withTimeout;
29
+ withCache: typeof withCache;
30
+ withLogger: typeof withLogger;
31
+ withRetry: typeof withRetry;
32
+ withFailSafe: typeof withFailSafe;
28
33
  };
34
+ export {};
29
35
  //# sourceMappingURL=prerequisite-verifier.decorator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"prerequisite-verifier.decorator.d.ts","sourceRoot":"","sources":["../src/prerequisite-verifier.decorator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AAE7E,OAAO,EAEL,KAAK,6CAA6C,EACnD,MAAM,gDAAgD,CAAC;AAIxD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE/D,MAAM,MAAM,6BAA6B,GAAG,CAAC,QAAQ,EAAE,wBAAwB,KAAK,wBAAwB,CAAC;AA8B7G,eAAO,MAAM,qBAAqB;2BA3BtB,KAAK,CAAC,QAAQ,QAAQ;QAAE,aAAa,EAAE,iBAAiB,CAAA;KAAE,KAAG,6BAA6B;oBAM9F,MAAM,QACJ;QAAE,aAAa,EAAE,qBAAqB,CAAC;QAAC,WAAW,EAAE,mBAAmB,CAAA;KAAE,KAC/E,6BAA6B;uBAKzB;QAAE,KAAK,EAAE,SAAS,CAAC;QAAC,MAAM,EAAE,UAAU,CAAA;KAAE,KAAG,6BAA6B;uBAKvE,WAAW,QAAQ;QAAE,OAAO,EAAE,WAAW,CAAA;K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E,WAAW,CAAA;CAAE,KAAG,6BAEY,CAAC;AAErE,QAAA,MAAM,YAAY,SACT,6CAA6C,KAAG,6BAEO,CAAC;AAEjE,eAAO,MAAM,qBAAqB;;;;;;CAAkE,CAAC"}
@@ -3,12 +3,12 @@ import { type ReadinessConfig } from "./readiness.handler";
3
3
  export declare class ReadinessHonoHandler implements HandlerHonoPort {
4
4
  private readonly handler;
5
5
  constructor(config: ReadinessConfig);
6
- handle(): [import("hono/types").H<import("hono").Env, string, {}, Promise<Response & import("hono").TypedResponse<{
6
+ handle(): [import("hono/types").H<import("hono").Env, string, {}, Response & import("hono").TypedResponse<{
7
7
  ok: boolean;
8
8
  details: readonly {
9
9
  label: import("./prerequisite.vo").PrerequisiteLabelType;
10
10
  outcome: import("./prerequisite-verifier.port").PrerequisiteVerificationResult;
11
11
  }[];
12
- }, 200 | 503, "json">>>];
12
+ }, 200 | 503, "json">>];
13
13
  }
14
14
  //# sourceMappingURL=readiness-hono.handler.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"readiness-hono.handler.d.ts","sourceRoot":"","sources":["../src/readiness-hono.handler.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,KAAK,eAAe,EAAoB,MAAM,qBAAqB,CAAC;AAI7E,qBAAa,oBAAqB,YAAW,eAAe;IAC1D,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAmB;IAE3C,YAAY,MAAM,EAAE,eAAe,EAElC;IAED,MAAM;;;;;;6BAOL;CACF"}
1
+ {"version":3,"file":"readiness-hono.handler.d.ts","sourceRoot":"","sources":["../src/readiness-hono.handler.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,KAAK,eAAe,EAAoB,MAAM,qBAAqB,CAAC;AAI7E,qBAAa,oBAAqB,YAAW,eAAe;IAC1D,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAmB;IAE3C,YAAY,MAAM,EAAE,eAAe,EAElC;IAED,MAAM;;;;;;4BAOL;CACF"}
@@ -3,6 +3,6 @@ import { type SitemapHandlerConfig } from "./sitemap.handler";
3
3
  export declare class SitemapHonoHandler implements HandlerHonoPort {
4
4
  private readonly handler;
5
5
  constructor(config: SitemapHandlerConfig);
6
- handle(): [import("hono/types").H<import("hono").Env, string, {}, Promise<Response & import("hono").TypedResponse<string, 200, "body">>>];
6
+ handle(): [import("hono/types").H<import("hono").Env, string, {}, Response & import("hono").TypedResponse<string, 200, "body">>];
7
7
  }
8
8
  //# sourceMappingURL=sitemap-hono.handler.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sitemap-hono.handler.d.ts","sourceRoot":"","sources":["../src/sitemap-hono.handler.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAkB,KAAK,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAI9E,qBAAa,kBAAmB,YAAW,eAAe;IACxD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAiB;IAEzC,YAAY,MAAM,EAAE,oBAAoB,EAEvC;IAED,MAAM,oIAOL;CACF"}
1
+ {"version":3,"file":"sitemap-hono.handler.d.ts","sourceRoot":"","sources":["../src/sitemap-hono.handler.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAkB,KAAK,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAI9E,qBAAa,kBAAmB,YAAW,eAAe;IACxD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAiB;IAEzC,YAAY,MAAM,EAAE,oBAAoB,EAEvC;IAED,MAAM,2HAOL;CACF"}
@@ -16,7 +16,7 @@ export declare class SseHonoHandler<Messages extends Message> implements Handler
16
16
  private readonly config;
17
17
  private readonly deps;
18
18
  constructor(config: SseHonoHandlerConfig, deps: Dependencies<Messages>);
19
- handle(): [import("hono/types").H<import("hono").Env, string, {}, Promise<Response>>];
19
+ handle(): [import("hono/types").H<import("hono").Env, string, {}, Response>];
20
20
  }
21
21
  export {};
22
22
  //# sourceMappingURL=sse-hono.handler.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sse-hono.handler.d.ts","sourceRoot":"","sources":["../src/sse-hono.handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,cAAc,CAAC;AAG3C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE/C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAE5E,MAAM,MAAM,oBAAoB,GAAG;IAAE,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAA;CAAE,CAAC;AAEjE,KAAK,YAAY,CAAC,QAAQ,SAAS,OAAO,IAAI;IAC5C,QAAQ,EAAE,eAAe,CAAC,QAAQ,CAAC,CAAC;IACpC,QAAQ,EAAE,sBAAsB,CAAC;IACjC,WAAW,EAAE,mBAAmB,CAAC;CAClC,CAAC;AAIF,qBAAa,cAAc,CAAC,QAAQ,SAAS,OAAO,CAAE,YAAW,eAAe;IAE5E,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,IAAI;IAFvB,YACmB,MAAM,EAAE,oBAAoB,EAC5B,IAAI,EAAE,YAAY,CAAC,QAAQ,CAAC,EAC3C;IAEJ,MAAM,gFAsBL;CACF"}
1
+ {"version":3,"file":"sse-hono.handler.d.ts","sourceRoot":"","sources":["../src/sse-hono.handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,cAAc,CAAC;AAG3C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE/C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAE5E,MAAM,MAAM,oBAAoB,GAAG;IAAE,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAA;CAAE,CAAC;AAEjE,KAAK,YAAY,CAAC,QAAQ,SAAS,OAAO,IAAI;IAC5C,QAAQ,EAAE,eAAe,CAAC,QAAQ,CAAC,CAAC;IACpC,QAAQ,EAAE,sBAAsB,CAAC;IACjC,WAAW,EAAE,mBAAmB,CAAC;CAClC,CAAC;AAIF,qBAAa,cAAc,CAAC,QAAQ,SAAS,OAAO,CAAE,YAAW,eAAe;IAE5E,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,IAAI;IAFvB,YACmB,MAAM,EAAE,oBAAoB,EAC5B,IAAI,EAAE,YAAY,CAAC,QAAQ,CAAC,EAC3C;IAEJ,MAAM,uEAsBL;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bgord/bun",
3
- "version": "1.20.0",
3
+ "version": "1.20.1",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "Bartosz Gordon",
@@ -20,34 +20,34 @@
20
20
  "build": "bash scripts/package-build.sh"
21
21
  },
22
22
  "devDependencies": {
23
- "@biomejs/biome": "2.5.2",
23
+ "@biomejs/biome": "2.5.5",
24
24
  "@standard-schema/spec": "1.1.0",
25
25
  "@stryker-mutator/core": "9.6.1",
26
26
  "@stryker-mutator/typescript-checker": "9.6.1",
27
27
  "@types/bun": "1.3.14",
28
28
  "@types/nodemailer": "8.0.1",
29
29
  "@types/yazl": "3.3.1",
30
- "better-auth": "1.6.23",
30
+ "better-auth": "1.6.25",
31
31
  "croner": "10.0.1",
32
32
  "cspell": "10.0.1",
33
33
  "csv": "6.6.1",
34
- "fallow": "3.2.0",
35
- "lefthook": "2.1.9",
34
+ "fallow": "3.8.0",
35
+ "lefthook": "2.1.10",
36
36
  "lockfile-lint": "5.0.0",
37
37
  "nodemailer": "9.0.3",
38
- "publint": "0.3.21",
38
+ "publint": "0.3.22",
39
39
  "shellcheck": "4.1.0",
40
40
  "typescript": "7.0.2",
41
41
  "yazl": "3.3.1"
42
42
  },
43
43
  "dependencies": {
44
- "@bgord/tools": "1.6.0",
44
+ "@bgord/tools": "1.6.1",
45
45
  "emittery": "2.0.0",
46
- "hono": "4.12.28",
46
+ "hono": "4.12.31",
47
47
  "node-cache": "5.1.2"
48
48
  },
49
49
  "peerDependencies": {
50
- "better-auth": "1.6.23",
50
+ "better-auth": "1.6.25",
51
51
  "csv": "6.6.1",
52
52
  "croner": "10.0.1",
53
53
  "nodemailer": "9.0.3",