@hdriel/aws-utils 1.1.5 → 1.1.7
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/README.md +3 -3
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ A powerful, type-safe wrapper around AWS S3 SDK v3 that simplifies S3 operations
|
|
|
18
18
|
|
|
19
19
|
# FULL DEMO PROJECT EXAMPLE:
|
|
20
20
|
please see this project code before using: [aws-utils-demo github link!](https://github.com/hdriel/aws-utils-demo)
|
|
21
|
-

|
|
21
|
+

|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
## Installation
|
|
@@ -106,7 +106,7 @@ interface S3UtilProps {
|
|
|
106
106
|
|
|
107
107
|
# FULL DEMO PROJECT EXAMPLE:
|
|
108
108
|
please see this project code before using: [aws-utils-demo github link!](https://github.com/hdriel/aws-utils-demo)
|
|
109
|
-

|
|
110
110
|
|
|
111
111
|
|
|
112
112
|
---
|
|
@@ -528,7 +528,7 @@ The utility includes optimized HTTP/HTTPS agents:
|
|
|
528
528
|
## 📋 Complete Express.js Example
|
|
529
529
|
# FULL DEMO PROJECT EXAMPLE:
|
|
530
530
|
please see this project code before using: [aws-utils-demo github link!](https://github.com/hdriel/aws-utils-demo)
|
|
531
|
-

|
|
531
|
+

|
|
532
532
|
|
|
533
533
|
|
|
534
534
|
## 📝 TypeScript Support
|
package/dist/index.cjs
CHANGED
|
@@ -969,7 +969,7 @@ var S3File = class extends S3Directory {
|
|
|
969
969
|
});
|
|
970
970
|
});
|
|
971
971
|
}
|
|
972
|
-
|
|
972
|
+
fileList(directoryPath, fileNamePrefix) {
|
|
973
973
|
return __async(this, null, function* () {
|
|
974
974
|
var _a2, _b;
|
|
975
975
|
let normalizedPath = getNormalizedPath(directoryPath);
|
|
@@ -997,7 +997,7 @@ var S3File = class extends S3Directory {
|
|
|
997
997
|
});
|
|
998
998
|
}
|
|
999
999
|
// todo: checked!
|
|
1000
|
-
|
|
1000
|
+
fileListPaginated(_0) {
|
|
1001
1001
|
return __async(this, arguments, function* (directoryPath, {
|
|
1002
1002
|
fileNamePrefix,
|
|
1003
1003
|
pageNumber = 0,
|
package/dist/index.d.cts
CHANGED
|
@@ -247,10 +247,10 @@ declare class S3File extends S3Directory {
|
|
|
247
247
|
Location: string;
|
|
248
248
|
Key: string;
|
|
249
249
|
}>;
|
|
250
|
-
|
|
250
|
+
fileList(directoryPath?: string, fileNamePrefix?: string): Promise<(ContentFile & {
|
|
251
251
|
Location: string;
|
|
252
252
|
})[]>;
|
|
253
|
-
|
|
253
|
+
fileListPaginated(directoryPath?: string, { fileNamePrefix, pageNumber, // 0-based: page 0 = items 0-99, page 1 = items 100-199, page 2 = items 200-299
|
|
254
254
|
pageSize, }?: {
|
|
255
255
|
fileNamePrefix?: string;
|
|
256
256
|
pageSize?: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -247,10 +247,10 @@ declare class S3File extends S3Directory {
|
|
|
247
247
|
Location: string;
|
|
248
248
|
Key: string;
|
|
249
249
|
}>;
|
|
250
|
-
|
|
250
|
+
fileList(directoryPath?: string, fileNamePrefix?: string): Promise<(ContentFile & {
|
|
251
251
|
Location: string;
|
|
252
252
|
})[]>;
|
|
253
|
-
|
|
253
|
+
fileListPaginated(directoryPath?: string, { fileNamePrefix, pageNumber, // 0-based: page 0 = items 0-99, page 1 = items 100-199, page 2 = items 200-299
|
|
254
254
|
pageSize, }?: {
|
|
255
255
|
fileNamePrefix?: string;
|
|
256
256
|
pageSize?: number;
|
package/dist/index.js
CHANGED
|
@@ -958,7 +958,7 @@ var S3File = class extends S3Directory {
|
|
|
958
958
|
});
|
|
959
959
|
});
|
|
960
960
|
}
|
|
961
|
-
|
|
961
|
+
fileList(directoryPath, fileNamePrefix) {
|
|
962
962
|
return __async(this, null, function* () {
|
|
963
963
|
var _a2, _b;
|
|
964
964
|
let normalizedPath = getNormalizedPath(directoryPath);
|
|
@@ -986,7 +986,7 @@ var S3File = class extends S3Directory {
|
|
|
986
986
|
});
|
|
987
987
|
}
|
|
988
988
|
// todo: checked!
|
|
989
|
-
|
|
989
|
+
fileListPaginated(_0) {
|
|
990
990
|
return __async(this, arguments, function* (directoryPath, {
|
|
991
991
|
fileNamePrefix,
|
|
992
992
|
pageNumber = 0,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hdriel/aws-utils",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.7",
|
|
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",
|