@bgord/bun 1.15.5 → 1.16.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/antivirus-clamav.adapter.js +1 -1
- package/dist/antivirus-clamav.adapter.js.map +1 -1
- package/dist/api-version-hono.middleware.d.ts +3 -2
- package/dist/api-version-hono.middleware.d.ts.map +1 -1
- package/dist/api-version-hono.middleware.js.map +1 -1
- package/dist/api-version.middleware.d.ts +4 -3
- package/dist/api-version.middleware.d.ts.map +1 -1
- package/dist/api-version.middleware.js +1 -1
- package/dist/api-version.middleware.js.map +1 -1
- package/dist/build-info.vo.d.ts +11 -0
- package/dist/build-info.vo.d.ts.map +1 -0
- package/dist/build-info.vo.js +11 -0
- package/dist/build-info.vo.js.map +1 -0
- package/dist/error-normalizer.service.js +1 -1
- package/dist/error-normalizer.service.js.map +1 -1
- package/dist/healthcheck-hono.handler.d.ts +3 -2
- package/dist/healthcheck-hono.handler.d.ts.map +1 -1
- package/dist/healthcheck-hono.handler.js.map +1 -1
- package/dist/healthcheck.handler.d.ts +3 -2
- package/dist/healthcheck.handler.d.ts.map +1 -1
- package/dist/healthcheck.handler.js +6 -6
- package/dist/healthcheck.handler.js.map +1 -1
- package/dist/image-alpha-sharp.adapter.js +76 -14
- package/dist/image-alpha-sharp.adapter.js.map +1 -1
- package/dist/image-blur-sharp.adapter.js +72 -10
- package/dist/image-blur-sharp.adapter.js.map +1 -1
- package/dist/image-compressor-sharp.adapter.js +73 -11
- package/dist/image-compressor-sharp.adapter.js.map +1 -1
- package/dist/image-exif-clear-sharp.adapter.js +70 -8
- package/dist/image-exif-clear-sharp.adapter.js.map +1 -1
- package/dist/image-formatter-sharp.adapter.js +75 -13
- package/dist/image-formatter-sharp.adapter.js.map +1 -1
- package/dist/image-grayscale-sharp.adapter.js +70 -8
- package/dist/image-grayscale-sharp.adapter.js.map +1 -1
- package/dist/image-info-sharp.adapter.js +73 -11
- package/dist/image-info-sharp.adapter.js.map +1 -1
- package/dist/image-processor-sharp.adapter.js +86 -24
- package/dist/image-processor-sharp.adapter.js.map +1 -1
- package/dist/image-resizer-sharp.adapter.js +81 -19
- package/dist/image-resizer-sharp.adapter.js.map +1 -1
- package/dist/index.d.ts +6 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -4
- package/dist/index.js.map +1 -1
- package/dist/reactive-config-file-json.adapter.d.ts +15 -0
- package/dist/reactive-config-file-json.adapter.d.ts.map +1 -0
- package/dist/reactive-config-file-json.adapter.js +21 -0
- package/dist/reactive-config-file-json.adapter.js.map +1 -0
- package/dist/reactive-config-noop.adapter.d.ts +8 -0
- package/dist/reactive-config-noop.adapter.d.ts.map +1 -0
- package/dist/reactive-config-noop.adapter.js +18 -0
- package/dist/reactive-config-noop.adapter.js.map +1 -0
- package/dist/reactive-config-with-cache.adapter.d.ts +16 -0
- package/dist/reactive-config-with-cache.adapter.d.ts.map +1 -0
- package/dist/reactive-config-with-cache.adapter.js +15 -0
- package/dist/reactive-config-with-cache.adapter.js.map +1 -0
- package/dist/reactive-config-with-fallback.adapter.d.ts +9 -0
- package/dist/reactive-config-with-fallback.adapter.d.ts.map +1 -0
- package/dist/reactive-config-with-fallback.adapter.js +25 -0
- package/dist/reactive-config-with-fallback.adapter.js.map +1 -0
- package/dist/reactive-config.port.d.ts +9 -0
- package/dist/reactive-config.port.d.ts.map +1 -0
- package/dist/reactive-config.port.js +2 -0
- package/dist/reactive-config.port.js.map +1 -0
- package/dist/redactor-error-cause-depth-limit.strategy.d.ts.map +1 -1
- package/dist/redactor-error-cause-depth-limit.strategy.js +2 -2
- package/dist/redactor-error-cause-depth-limit.strategy.js.map +1 -1
- package/dist/redactor-error-stack-hide.strategy.d.ts.map +1 -1
- package/dist/redactor-error-stack-hide.strategy.js +2 -2
- package/dist/redactor-error-stack-hide.strategy.js.map +1 -1
- package/dist/redactor-metadata-compact-array.strategy.js +1 -1
- package/dist/redactor-metadata-compact-array.strategy.js.map +1 -1
- package/dist/redactor-metadata-compact-object.strategy.js +1 -1
- package/dist/redactor-metadata-compact-object.strategy.js.map +1 -1
- package/dist/setup-hono.service.d.ts +3 -2
- package/dist/setup-hono.service.d.ts.map +1 -1
- package/dist/setup-hono.service.js.map +1 -1
- package/dist/shield-recaptcha.strategy.js +1 -1
- package/dist/shield-recaptcha.strategy.js.map +1 -1
- package/package.json +10 -9
- package/readme.md +6 -4
- package/src/antivirus-clamav.adapter.ts +1 -1
- package/src/api-version-hono.middleware.ts +3 -2
- package/src/api-version.middleware.ts +5 -4
- package/src/build-info.vo.ts +14 -0
- package/src/error-normalizer.service.ts +1 -1
- package/src/healthcheck-hono.handler.ts +3 -2
- package/src/healthcheck.handler.ts +9 -8
- package/src/index.ts +6 -4
- package/src/reactive-config-file-json.adapter.ts +26 -0
- package/src/reactive-config-noop.adapter.ts +19 -0
- package/src/reactive-config-with-cache.adapter.ts +19 -0
- package/src/reactive-config-with-fallback.adapter.ts +24 -0
- package/src/reactive-config.port.ts +9 -0
- package/src/redactor-error-cause-depth-limit.strategy.ts +2 -3
- package/src/redactor-error-stack-hide.strategy.ts +2 -3
- package/src/redactor-metadata-compact-array.strategy.ts +1 -1
- package/src/redactor-metadata-compact-object.strategy.ts +1 -1
- package/src/setup-hono.service.ts +3 -2
- package/src/shield-recaptcha.strategy.ts +1 -1
- package/dist/build-info-repository-file.strategy.d.ts +0 -14
- package/dist/build-info-repository-file.strategy.d.ts.map +0 -1
- package/dist/build-info-repository-file.strategy.js +0 -18
- package/dist/build-info-repository-file.strategy.js.map +0 -1
- package/dist/build-info-repository-noop.strategy.d.ts +0 -12
- package/dist/build-info-repository-noop.strategy.d.ts.map +0 -1
- package/dist/build-info-repository-noop.strategy.js +0 -16
- package/dist/build-info-repository-noop.strategy.js.map +0 -1
- package/dist/build-info-repository-package-json.strategy.d.ts +0 -14
- package/dist/build-info-repository-package-json.strategy.d.ts.map +0 -1
- package/dist/build-info-repository-package-json.strategy.js +0 -21
- package/dist/build-info-repository-package-json.strategy.js.map +0 -1
- package/dist/build-info-repository.strategy.d.ts +0 -12
- package/dist/build-info-repository.strategy.d.ts.map +0 -1
- package/dist/build-info-repository.strategy.js +0 -2
- package/dist/build-info-repository.strategy.js.map +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
- package/src/build-info-repository-file.strategy.ts +0 -23
- package/src/build-info-repository-noop.strategy.ts +0 -16
- package/src/build-info-repository-package-json.strategy.ts +0 -25
- package/src/build-info-repository.strategy.ts +0 -13
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import * as tools from "@bgord/tools";
|
|
2
|
-
import type { BuildInfoRepositoryStrategy, BuildInfoType } from "./build-info-repository.strategy";
|
|
3
|
-
import { CommitSha } from "./commit-sha.vo";
|
|
4
|
-
import type { FileReaderJsonPort } from "./file-reader-json.port";
|
|
5
|
-
|
|
6
|
-
type Dependencies = { FileReaderJson: FileReaderJsonPort };
|
|
7
|
-
|
|
8
|
-
export const BUILD_INFO_REPOSITORY_FILE_PATH = tools.FilePathRelative.fromString("infra/build-info.json");
|
|
9
|
-
|
|
10
|
-
export class BuildInfoRepositoryFileStrategy implements BuildInfoRepositoryStrategy {
|
|
11
|
-
constructor(private readonly deps: Dependencies) {}
|
|
12
|
-
|
|
13
|
-
async extract(): Promise<BuildInfoType> {
|
|
14
|
-
const file = await this.deps.FileReaderJson.read(BUILD_INFO_REPOSITORY_FILE_PATH.get());
|
|
15
|
-
|
|
16
|
-
const version = tools.PackageVersion.fromString(file.version);
|
|
17
|
-
const timestamp = tools.Timestamp.fromNumber(file.timestamp);
|
|
18
|
-
const sha = CommitSha.fromString(file.sha);
|
|
19
|
-
const size = tools.Size.fromBytes(file.size);
|
|
20
|
-
|
|
21
|
-
return { version, timestamp, sha, size };
|
|
22
|
-
}
|
|
23
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type * as tools from "@bgord/tools";
|
|
2
|
-
import type { BuildInfoRepositoryStrategy, BuildInfoType } from "./build-info-repository.strategy";
|
|
3
|
-
import type { CommitSha } from "./commit-sha.vo";
|
|
4
|
-
|
|
5
|
-
export class BuildInfoRepositoryNoopStrategy implements BuildInfoRepositoryStrategy {
|
|
6
|
-
constructor(
|
|
7
|
-
private readonly timestamp: tools.Timestamp,
|
|
8
|
-
private readonly version: tools.PackageVersion,
|
|
9
|
-
private readonly sha: CommitSha,
|
|
10
|
-
private readonly size: tools.Size,
|
|
11
|
-
) {}
|
|
12
|
-
|
|
13
|
-
async extract(): Promise<BuildInfoType> {
|
|
14
|
-
return { timestamp: this.timestamp, version: this.version, sha: this.sha, size: this.size };
|
|
15
|
-
}
|
|
16
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import * as tools from "@bgord/tools";
|
|
2
|
-
import type { BuildInfoRepositoryStrategy, BuildInfoType } from "./build-info-repository.strategy";
|
|
3
|
-
import type { ClockPort } from "./clock.port";
|
|
4
|
-
import { CommitSha } from "./commit-sha.vo";
|
|
5
|
-
import type { FileReaderJsonPort } from "./file-reader-json.port";
|
|
6
|
-
|
|
7
|
-
type Dependencies = { Clock: ClockPort; FileReaderJson: FileReaderJsonPort };
|
|
8
|
-
|
|
9
|
-
export class BuildInfoRepositoryPackageJsonStrategy implements BuildInfoRepositoryStrategy {
|
|
10
|
-
constructor(private readonly deps: Dependencies) {}
|
|
11
|
-
|
|
12
|
-
async extract(): Promise<BuildInfoType> {
|
|
13
|
-
const timestamp = this.deps.Clock.now();
|
|
14
|
-
const sha = CommitSha.fromString("a".repeat(40));
|
|
15
|
-
const size = tools.Size.fromBytes(0);
|
|
16
|
-
|
|
17
|
-
try {
|
|
18
|
-
const packageJson = await this.deps.FileReaderJson.read("package.json");
|
|
19
|
-
|
|
20
|
-
return { timestamp, version: tools.PackageVersion.fromString(packageJson.version), sha, size };
|
|
21
|
-
} catch {
|
|
22
|
-
return { timestamp, version: tools.PackageVersion.fromString("0.0.0"), sha, size };
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type * as tools from "@bgord/tools";
|
|
2
|
-
import type { CommitSha } from "./commit-sha.vo";
|
|
3
|
-
|
|
4
|
-
export type BuildInfoType = {
|
|
5
|
-
timestamp: tools.Timestamp;
|
|
6
|
-
version: tools.PackageVersion;
|
|
7
|
-
sha: CommitSha;
|
|
8
|
-
size: tools.Size;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
export interface BuildInfoRepositoryStrategy {
|
|
12
|
-
extract(): Promise<BuildInfoType>;
|
|
13
|
-
}
|