@bgord/bun 1.4.24 → 1.4.26

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bgord/bun",
3
- "version": "1.4.24",
3
+ "version": "1.4.26",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "author": "Bartosz Gordon",
@@ -29,22 +29,22 @@
29
29
  "@types/yazl": "3.3.0",
30
30
  "cspell": "9.4.0",
31
31
  "knip": "5.73.4",
32
- "lefthook": "2.0.11",
32
+ "lefthook": "2.0.12",
33
33
  "only-allow": "1.2.2",
34
34
  "sharp": "0.34.5",
35
35
  "shellcheck": "4.1.0",
36
36
  "typescript": "5.9.3",
37
- "zod": "4.1.13"
37
+ "zod": "4.2.0"
38
38
  },
39
39
  "dependencies": {
40
40
  "@axiomhq/winston": "1.3.1",
41
- "@bgord/tools": "1.2.0",
41
+ "@bgord/tools": "1.2.1",
42
42
  "@hono/ua-blocker": "0.1.21",
43
43
  "better-auth": "1.4.7",
44
44
  "croner": "9.1.0",
45
45
  "csv": "6.4.1",
46
46
  "hcaptcha": "0.2.0",
47
- "hono": "4.11.0",
47
+ "hono": "4.11.1",
48
48
  "isomorphic-dompurify": "2.34.0",
49
49
  "lodash": "4.17.21",
50
50
  "marked": "17.0.1",
@@ -54,7 +54,7 @@
54
54
  "yazl": "3.3.1"
55
55
  },
56
56
  "peerDependencies": {
57
- "zod": "4.1.13",
57
+ "zod": "4.2.0",
58
58
  "sharp": "0.34.5"
59
59
  },
60
60
  "peerDependenciesMeta": {
@@ -10,7 +10,7 @@ import type {
10
10
  RemotePutFromPathResult,
11
11
  } from "./remote-file-storage.port";
12
12
 
13
- type RemoteFileStorageDiskConfig = { root: tools.DirectoryPathAbsoluteType; publicBaseUrl?: string };
13
+ type RemoteFileStorageDiskConfig = { root: tools.DirectoryPathAbsoluteType };
14
14
 
15
15
  type Dependencies = { FileHash: FileHashPort; FileCleaner: FileCleanerPort; FileRenamer: FileRenamerPort };
16
16
 
@@ -29,11 +29,6 @@ export class RemoteFileStorageDiskAdapter implements RemoteFileStoragePort {
29
29
  return tools.FilePathAbsolute.fromPartsSafe(directory, filename);
30
30
  }
31
31
 
32
- publicUrl(key: tools.ObjectKeyType): string {
33
- if (!this.config.publicBaseUrl) return `/${key}`;
34
- return `${this.config.publicBaseUrl}/${key}`;
35
- }
36
-
37
32
  async putFromPath(input: RemotePutFromPathInput): Promise<RemotePutFromPathResult> {
38
33
  const final = this.resolveKeyToAbsoluteFilePath(input.key);
39
34
  const temporary = final.withFilename(final.getFilename().withSuffix("-part"));
@@ -11,7 +11,7 @@ import type {
11
11
 
12
12
  type Dependencies = { Logger: LoggerPort; Clock: ClockPort };
13
13
 
14
- type RemoteFileStorageNoopConfig = { root: tools.DirectoryPathAbsoluteType; publicBaseUrl?: string };
14
+ type RemoteFileStorageNoopConfig = { root: tools.DirectoryPathAbsoluteType };
15
15
 
16
16
  export class RemoteFileStorageNoopAdapter implements RemoteFileStoragePort {
17
17
  private readonly base = { component: "infra", operation: "RemoteFileStorageNoopAdapter" };
@@ -21,11 +21,6 @@ export class RemoteFileStorageNoopAdapter implements RemoteFileStoragePort {
21
21
  private readonly deps: Dependencies,
22
22
  ) {}
23
23
 
24
- publicUrl(key: tools.ObjectKeyType): string {
25
- if (!this.config?.publicBaseUrl) return `/${key}`;
26
- return `${this.config?.publicBaseUrl}/${key}`;
27
- }
28
-
29
24
  async putFromPath(input: RemotePutFromPathInput): Promise<RemotePutFromPathResult> {
30
25
  this.deps.Logger.info({
31
26
  message: "[NOOP] RemoteFileStorageNoopAdapter putFromPath",
@@ -13,6 +13,5 @@ export interface RemoteFileStoragePort {
13
13
  head(key: tools.ObjectKeyType): Promise<RemoteHeadResult>;
14
14
  getStream(key: tools.ObjectKeyType): Promise<ReadableStream | null>;
15
15
  delete(key: tools.ObjectKeyType): Promise<void>;
16
- publicUrl(key: tools.ObjectKeyType): string;
17
16
  get root(): tools.DirectoryPathAbsoluteType;
18
17
  }