effect-cloudflare-r2-layer 1.1.1 → 1.1.2
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/dts/layer/file-storage.layer.d.ts +3 -3
- package/dts/r2/implementations/internal/fetch-file.effect.d.ts +1 -1
- package/dts/r2/implementations/read-as-json.effect.d.ts +1 -1
- package/dts/r2/implementations/read-as-raw-binary.effect.d.ts +1 -1
- package/dts/r2/implementations/read-as-text.effect.d.ts +1 -1
- package/package.json +7 -7
@@ -22,9 +22,9 @@ export declare const FileStorageLayer: {
|
|
22
22
|
createBucket: (input: CreateBucketCommandInput) => Effect.Effect<CreateBucketCommandOutput, FileStorageError | ConfigError.ConfigError, FileStorage>;
|
23
23
|
bucketInfos: <TBucket extends string>(input: BucketInfosInput<TBucket>) => Effect.Effect<BucketInfosResult, BucketNotFoundError | FileStorageError | ConfigError.ConfigError, FileStorage>;
|
24
24
|
getFileUrl: <TBucket extends string>(bucket: TBucket, fileName: string) => Effect.Effect<string, FileStorageError | ConfigError.ConfigError, FileStorage>;
|
25
|
-
readAsRawBinary: <TBucket extends string>(bucket: TBucket, fileName: string) => Effect.Effect<ArrayBuffer, FileStorageError | ConfigError.ConfigError | HttpClientError, HttpClient.HttpClient |
|
26
|
-
readAsJson: <TBucket extends string, TShape extends Record<string, unknown>>(bucket: TBucket, fileName: string) => Effect.Effect<TShape, FileStorageError | ConfigError.ConfigError | HttpClientError, HttpClient.HttpClient |
|
27
|
-
readAsText: <TBucket extends string>(bucket: TBucket, fileName: string) => Effect.Effect<string, FileStorageError | ConfigError.ConfigError | HttpClientError, HttpClient.HttpClient |
|
25
|
+
readAsRawBinary: <TBucket extends string>(bucket: TBucket, fileName: string) => Effect.Effect<ArrayBuffer, FileStorageError | ConfigError.ConfigError | HttpClientError, HttpClient.HttpClient | FileStorage | Scope>;
|
26
|
+
readAsJson: <TBucket extends string, TShape extends Record<string, unknown>>(bucket: TBucket, fileName: string) => Effect.Effect<TShape, FileStorageError | ConfigError.ConfigError | HttpClientError, HttpClient.HttpClient | FileStorage | Scope>;
|
27
|
+
readAsText: <TBucket extends string>(bucket: TBucket, fileName: string) => Effect.Effect<string, FileStorageError | ConfigError.ConfigError | HttpClientError, HttpClient.HttpClient | FileStorage | Scope>;
|
28
28
|
uploadFile: <TBucket extends string>(input: UploadFileInput<TBucket>) => Effect.Effect<PutObjectCommandOutput, FileStorageError | ConfigError.ConfigError, FileStorage>;
|
29
29
|
deleteFile: <TBucket extends string>(input: DeleteFileInput<TBucket>) => Effect.Effect<DeleteObjectCommandOutput, FileStorageError | ConfigError.ConfigError, FileStorage>;
|
30
30
|
fileExists: <TBucket extends string>(bucket: TBucket, fileName: string) => Effect.Effect<boolean, FileStorageError | ConfigError.ConfigError, FileStorage>;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { HttpClient } from '@effect/platform';
|
2
2
|
import { Effect } from 'effect';
|
3
|
-
export declare const fetchFile: (bucketName: string, documentKey: string) => Effect.Effect<import("@effect/platform/HttpClientResponse").HttpClientResponse, import("../../../index.js").FileStorageError | import("effect/ConfigError").ConfigError | import("@effect/platform/HttpClientError").HttpClientError, HttpClient.HttpClient
|
3
|
+
export declare const fetchFile: (bucketName: string, documentKey: string) => Effect.Effect<import("@effect/platform/HttpClientResponse").HttpClientResponse, import("../../../index.js").FileStorageError | import("effect/ConfigError").ConfigError | import("@effect/platform/HttpClientError").HttpClientError, HttpClient.HttpClient>;
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { Effect } from 'effect';
|
2
|
-
export declare const readAsJson: <TBucket extends string, TShape extends Record<string, unknown>>(bucketName: TBucket, documentKey: string) => Effect.Effect<TShape, import("../../index.js").FileStorageError | import("effect/ConfigError").ConfigError | import("@effect/platform/HttpClientError").HttpClientError, import("@effect/platform/HttpClient").HttpClient
|
2
|
+
export declare const readAsJson: <TBucket extends string, TShape extends Record<string, unknown>>(bucketName: TBucket, documentKey: string) => Effect.Effect<TShape, import("../../index.js").FileStorageError | import("effect/ConfigError").ConfigError | import("@effect/platform/HttpClientError").HttpClientError, import("@effect/platform/HttpClient").HttpClient>;
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { Effect } from 'effect';
|
2
|
-
export declare const readAsRawBinary: <TBucket extends string>(bucketName: TBucket, documentKey: string) => Effect.Effect<ArrayBuffer, import("../../index.js").FileStorageError | import("effect/ConfigError").ConfigError | import("@effect/platform/HttpClientError").HttpClientError, import("@effect/platform/HttpClient").HttpClient
|
2
|
+
export declare const readAsRawBinary: <TBucket extends string>(bucketName: TBucket, documentKey: string) => Effect.Effect<ArrayBuffer, import("../../index.js").FileStorageError | import("effect/ConfigError").ConfigError | import("@effect/platform/HttpClientError").HttpClientError, import("@effect/platform/HttpClient").HttpClient>;
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { Effect } from 'effect';
|
2
|
-
export declare const readAsText: <TBucket extends string>(bucketName: TBucket, documentKey: string) => Effect.Effect<string, import("../../index.js").FileStorageError | import("effect/ConfigError").ConfigError | import("@effect/platform/HttpClientError").HttpClientError, import("@effect/platform/HttpClient").HttpClient
|
2
|
+
export declare const readAsText: <TBucket extends string>(bucketName: TBucket, documentKey: string) => Effect.Effect<string, import("../../index.js").FileStorageError | import("effect/ConfigError").ConfigError | import("@effect/platform/HttpClientError").HttpClientError, import("@effect/platform/HttpClient").HttpClient>;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "effect-cloudflare-r2-layer",
|
3
|
-
"version": "1.1.
|
3
|
+
"version": "1.1.2",
|
4
4
|
"author": "jpb06 <jp.bois.06@outlook.fr>",
|
5
5
|
"description": "An effect layer to interact with Cloudware R2 storage service",
|
6
6
|
"keywords": [
|
@@ -48,9 +48,9 @@
|
|
48
48
|
"dependencies": {
|
49
49
|
"@aws-sdk/client-s3": "3.758.0",
|
50
50
|
"@aws-sdk/s3-request-presigner": "3.758.0",
|
51
|
-
"@effect/platform": "0.
|
51
|
+
"@effect/platform": "0.79.1",
|
52
52
|
"dotenv": "16.4.7",
|
53
|
-
"effect": "3.13.
|
53
|
+
"effect": "3.13.10"
|
54
54
|
},
|
55
55
|
"peerDependencies": {
|
56
56
|
"typescript": "5.8.2"
|
@@ -59,18 +59,18 @@
|
|
59
59
|
"@biomejs/biome": "1.9.4",
|
60
60
|
"@types/bun": "latest",
|
61
61
|
"@types/fs-extra": "11.0.4",
|
62
|
-
"@vitest/coverage-v8": "3.0.
|
62
|
+
"@vitest/coverage-v8": "3.0.8",
|
63
63
|
"comment-json": "4.2.5",
|
64
64
|
"copyfiles": "2.4.1",
|
65
65
|
"del-cli": "6.0.0",
|
66
|
-
"effect-errors": "1.8.
|
66
|
+
"effect-errors": "1.8.43",
|
67
67
|
"fs-extra": "11.3.0",
|
68
68
|
"glob": "11.0.1",
|
69
69
|
"npm-check-updates": "17.1.15",
|
70
70
|
"readme-package-icons": "1.2.0",
|
71
|
-
"ts-paths-resolver": "1.2.
|
71
|
+
"ts-paths-resolver": "1.2.37",
|
72
72
|
"tsx": "4.19.3",
|
73
|
-
"vitest": "3.0.
|
73
|
+
"vitest": "3.0.8",
|
74
74
|
"vitest-mock-extended": "3.0.1"
|
75
75
|
}
|
76
76
|
}
|