@hdriel/aws-utils 1.0.0 → 1.0.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/dist/index.cjs +1 -2
- package/dist/index.d.cts +1 -3
- package/dist/index.d.ts +1 -3
- package/dist/index.js +1 -2
- package/package.json +8 -8
package/dist/index.cjs
CHANGED
|
@@ -1001,8 +1001,7 @@ var S3BucketUtil = class _S3BucketUtil {
|
|
|
1001
1001
|
return {
|
|
1002
1002
|
Bucket: this.bucket,
|
|
1003
1003
|
Key: normalizedKey,
|
|
1004
|
-
Location:
|
|
1005
|
-
test: `${this.link}/${normalizedKey}`,
|
|
1004
|
+
Location: `${this.link}${normalizedKey}`,
|
|
1006
1005
|
ETag: result.ETag
|
|
1007
1006
|
};
|
|
1008
1007
|
});
|
package/dist/index.d.cts
CHANGED
|
@@ -227,9 +227,7 @@ declare class S3BucketUtil {
|
|
|
227
227
|
sizeOf(filePath: string, unit?: 'bytes' | 'KB' | 'MB' | 'GB'): Promise<number>;
|
|
228
228
|
fileExists(filePath: string): Promise<boolean>;
|
|
229
229
|
fileContent(filePath: string, format?: 'buffer' | 'base64' | 'utf8'): Promise<Buffer | string>;
|
|
230
|
-
uploadFile(filePath: string, fileData: Buffer | Readable | string | Uint8Array, acl?: ACLs, version?: string): Promise<FileUploadResponse
|
|
231
|
-
test: string;
|
|
232
|
-
}>;
|
|
230
|
+
uploadFile(filePath: string, fileData: Buffer | Readable | string | Uint8Array, acl?: ACLs, version?: string): Promise<FileUploadResponse>;
|
|
233
231
|
deleteFile(filePath: string): Promise<DeleteObjectCommandOutput>;
|
|
234
232
|
private streamObjectFile;
|
|
235
233
|
private streamVideoFile;
|
package/dist/index.d.ts
CHANGED
|
@@ -227,9 +227,7 @@ declare class S3BucketUtil {
|
|
|
227
227
|
sizeOf(filePath: string, unit?: 'bytes' | 'KB' | 'MB' | 'GB'): Promise<number>;
|
|
228
228
|
fileExists(filePath: string): Promise<boolean>;
|
|
229
229
|
fileContent(filePath: string, format?: 'buffer' | 'base64' | 'utf8'): Promise<Buffer | string>;
|
|
230
|
-
uploadFile(filePath: string, fileData: Buffer | Readable | string | Uint8Array, acl?: ACLs, version?: string): Promise<FileUploadResponse
|
|
231
|
-
test: string;
|
|
232
|
-
}>;
|
|
230
|
+
uploadFile(filePath: string, fileData: Buffer | Readable | string | Uint8Array, acl?: ACLs, version?: string): Promise<FileUploadResponse>;
|
|
233
231
|
deleteFile(filePath: string): Promise<DeleteObjectCommandOutput>;
|
|
234
232
|
private streamObjectFile;
|
|
235
233
|
private streamVideoFile;
|
package/dist/index.js
CHANGED
|
@@ -985,8 +985,7 @@ var S3BucketUtil = class _S3BucketUtil {
|
|
|
985
985
|
return {
|
|
986
986
|
Bucket: this.bucket,
|
|
987
987
|
Key: normalizedKey,
|
|
988
|
-
Location:
|
|
989
|
-
test: `${this.link}/${normalizedKey}`,
|
|
988
|
+
Location: `${this.link}${normalizedKey}`,
|
|
990
989
|
ETag: result.ETag
|
|
991
990
|
};
|
|
992
991
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hdriel/aws-utils",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Simplified AWS SDK (v3) utilities for S3 (upload, download, streaming) with TypeScript support",
|
|
5
5
|
"author": "Hadriel Benjo (https://github.com/hdriel)",
|
|
6
6
|
"type": "module",
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
"bugs": {
|
|
23
|
-
"url": "https://github.com/hdriel/
|
|
23
|
+
"url": "https://github.com/hdriel/aws-utils/issues"
|
|
24
24
|
},
|
|
25
25
|
"repository": {
|
|
26
26
|
"type": "git",
|
|
27
|
-
"url": "git+https://github.com/hdriel/
|
|
27
|
+
"url": "git+https://github.com/hdriel/aws-utils.git"
|
|
28
28
|
},
|
|
29
29
|
"scripts": {
|
|
30
30
|
"build": "tsup src/index.ts --format esm,cjs --dts --out-dir dist",
|
|
@@ -49,16 +49,13 @@
|
|
|
49
49
|
"aws-crt": "1.27.3",
|
|
50
50
|
"aws-lambda": "1.0.7",
|
|
51
51
|
"bytes": "3.1.2",
|
|
52
|
-
"express": "^5.1.0",
|
|
53
52
|
"ms": "2.1.3",
|
|
54
53
|
"multer": "2.0.2",
|
|
55
54
|
"multer-s3": "3.0.1",
|
|
56
55
|
"p-limit": "7.1.1",
|
|
57
56
|
"pathe": "2.0.3",
|
|
58
57
|
"s3-readstream": "2.0.1",
|
|
59
|
-
"stack-trace-logger": "^1.1.1"
|
|
60
|
-
"tslint": "^6.1.3",
|
|
61
|
-
"typescript": "^5.9.2"
|
|
58
|
+
"stack-trace-logger": "^1.1.1"
|
|
62
59
|
},
|
|
63
60
|
"devDependencies": {
|
|
64
61
|
"@types/archiver": "6.0.3",
|
|
@@ -69,8 +66,11 @@
|
|
|
69
66
|
"@types/multer": "2.0.0",
|
|
70
67
|
"@types/multer-s3": "3.0.3",
|
|
71
68
|
"cross-env": "^10.1.0",
|
|
69
|
+
"express": "^5.1.0",
|
|
72
70
|
"prettier": "^3.6.2",
|
|
73
71
|
"ts-node": "^10.9.2",
|
|
74
|
-
"tsup": "^8.5.0"
|
|
72
|
+
"tsup": "^8.5.0",
|
|
73
|
+
"tslint": "^6.1.3",
|
|
74
|
+
"typescript": "^5.9.2"
|
|
75
75
|
}
|
|
76
76
|
}
|