@bgord/bun 1.10.18 → 1.10.19
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/hash-content-noop.strategy.js +1 -1
- package/dist/hash-content-noop.strategy.js.map +1 -1
- package/dist/hash-file-noop.adapter.js +1 -1
- package/dist/hash-file-noop.adapter.js.map +1 -1
- package/dist/remote-file-storage-noop.adapter.js +1 -1
- package/dist/remote-file-storage-noop.adapter.js.map +1 -1
- package/dist/secure-key-generator-noop.adapter.d.ts.map +1 -1
- package/dist/secure-key-generator-noop.adapter.js +1 -1
- package/dist/secure-key-generator-noop.adapter.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/hash-content-noop.strategy.ts +1 -1
- package/src/hash-file-noop.adapter.ts +1 -1
- package/src/remote-file-storage-noop.adapter.ts +1 -1
- package/src/secure-key-generator-noop.adapter.ts +1 -1
package/package.json
CHANGED
|
@@ -3,6 +3,6 @@ import type { HashContentStrategy } from "./hash-content.strategy";
|
|
|
3
3
|
|
|
4
4
|
export class HashContentNoopStrategy implements HashContentStrategy {
|
|
5
5
|
async hash(_content: string): Promise<Hash> {
|
|
6
|
-
return Hash.fromString("
|
|
6
|
+
return Hash.fromString("0".repeat(64));
|
|
7
7
|
}
|
|
8
8
|
}
|
|
@@ -5,7 +5,7 @@ import type { HashFilePort, HashFileResult } from "./hash-file.port";
|
|
|
5
5
|
export class HashFileNoopAdapter implements HashFilePort {
|
|
6
6
|
async hash(_path: tools.FilePathAbsolute | tools.FilePathRelative): Promise<HashFileResult> {
|
|
7
7
|
return {
|
|
8
|
-
etag: Hash.fromString("
|
|
8
|
+
etag: Hash.fromString("0".repeat(64)),
|
|
9
9
|
size: tools.Size.fromBytes(10),
|
|
10
10
|
lastModified: tools.Timestamp.fromNumber(1000),
|
|
11
11
|
mime: tools.Mimes.text.mime,
|
|
@@ -29,7 +29,7 @@ export class RemoteFileStorageNoopAdapter implements RemoteFileStoragePort {
|
|
|
29
29
|
});
|
|
30
30
|
|
|
31
31
|
return {
|
|
32
|
-
etag: Hash.fromString("
|
|
32
|
+
etag: Hash.fromString("0".repeat(64)),
|
|
33
33
|
size: tools.Size.fromBytes(10),
|
|
34
34
|
lastModified: this.deps.Clock.now(),
|
|
35
35
|
mime: tools.Mimes.text.mime,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { SecureKeyGeneratorPort } from "./secure-key-generator.port";
|
|
2
2
|
|
|
3
3
|
export class SecureKeyGeneratorNoopAdapter implements SecureKeyGeneratorPort {
|
|
4
|
-
constructor(private readonly value: Uint8Array = new TextEncoder().encode("
|
|
4
|
+
constructor(private readonly value: Uint8Array = new TextEncoder().encode("0".repeat(32))) {}
|
|
5
5
|
|
|
6
6
|
generate(): Uint8Array {
|
|
7
7
|
return this.value;
|