@vankyle/storage-s3 0.2.0 → 0.2.4
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { HeadObjectCommandOutput } from "@aws-sdk/client-s3";
|
|
2
|
-
import type { HeadObjectResult } from "@vankyle
|
|
2
|
+
import type { HeadObjectResult } from "@vankyle/storage-core";
|
|
3
3
|
export declare function mapS3HeadToCore(output: HeadObjectCommandOutput): HeadObjectResult;
|
|
4
4
|
//# sourceMappingURL=s3-head-to-core.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type IStorage, type StorageCapabilities, type PutObjectInput, type PutObjectResult, type GetObjectInput, type GetObjectResult, type HeadObjectInput, type HeadObjectResult, type DeleteObjectInput, type InitUploadSessionInput, type InitUploadSessionResult, type UploadPartInput, type UploadPartResult, type CompleteUploadSessionInput, type CompleteUploadSessionResult, type AbortUploadSessionInput, type CreateReadUrlInput, type CreatePutUrlInput, type CreateUploadPartUrlInput, type SignedAccess } from "@vankyle
|
|
1
|
+
import { type IStorage, type StorageCapabilities, type PutObjectInput, type PutObjectResult, type GetObjectInput, type GetObjectResult, type HeadObjectInput, type HeadObjectResult, type DeleteObjectInput, type InitUploadSessionInput, type InitUploadSessionResult, type UploadPartInput, type UploadPartResult, type CompleteUploadSessionInput, type CompleteUploadSessionResult, type AbortUploadSessionInput, type CreateReadUrlInput, type CreatePutUrlInput, type CreateUploadPartUrlInput, type SignedAccess } from "@vankyle/storage-core";
|
|
2
2
|
import type { S3StorageOptions } from "../types/s3-options.js";
|
|
3
3
|
export declare class S3Storage implements IStorage {
|
|
4
4
|
readonly provider: "s3";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { S3Client, PutObjectCommand, GetObjectCommand, HeadObjectCommand, DeleteObjectCommand, CreateMultipartUploadCommand, UploadPartCommand, CompleteMultipartUploadCommand, AbortMultipartUploadCommand, } from "@aws-sdk/client-s3";
|
|
2
2
|
import { getSignedUrl } from "@aws-sdk/s3-request-presigner";
|
|
3
|
-
import { StorageProvider, } from "@vankyle
|
|
4
|
-
import { StorageError, StorageObjectNotFoundError, } from "@vankyle
|
|
3
|
+
import { StorageProvider, } from "@vankyle/storage-core";
|
|
4
|
+
import { StorageError, StorageObjectNotFoundError, } from "@vankyle/storage-shared";
|
|
5
5
|
import { mapS3HeadToCore } from "../mappers/s3-head-to-core.js";
|
|
6
6
|
const DEFAULT_EXPIRES_IN = 3600; // 1 hour
|
|
7
7
|
export class S3Storage {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vankyle/storage-s3",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"description": "S3-compatible object storage adapter for vankyle-storage.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
"homepage": "https://github.com/Vankyle-Hub/storage-ts",
|
|
32
32
|
"packageManager": "pnpm@10.28.2",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@vankyle/storage-core": "0.2.
|
|
35
|
-
"@vankyle/storage-shared": "0.2.
|
|
36
|
-
"@aws-sdk/client-s3": "^3.
|
|
37
|
-
"@aws-sdk/s3-request-presigner": "^3.
|
|
34
|
+
"@vankyle/storage-core": "0.2.4",
|
|
35
|
+
"@vankyle/storage-shared": "0.2.4",
|
|
36
|
+
"@aws-sdk/client-s3": "^3.1009.0",
|
|
37
|
+
"@aws-sdk/s3-request-presigner": "^3.1009.0"
|
|
38
38
|
},
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public"
|