@constructive-io/s3-streamer 2.39.2 → 2.40.0
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/package.json +4 -4
- package/streamer.d.ts +7 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@constructive-io/s3-streamer",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.40.0",
|
|
4
4
|
"author": "Constructive <developers@constructive.io>",
|
|
5
5
|
"description": "stream files to s3",
|
|
6
6
|
"main": "index.js",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"test:watch": "jest --watch"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@pgpmjs/env": "^2.41.
|
|
32
|
+
"@pgpmjs/env": "^2.41.3",
|
|
33
33
|
"glob": "^13.0.6",
|
|
34
34
|
"makage": "^0.3.0"
|
|
35
35
|
},
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@aws-sdk/lib-storage": "^3.1052.0",
|
|
39
39
|
"@constructive-io/content-type-stream": "^2.30.0",
|
|
40
40
|
"@constructive-io/s3-utils": "^2.30.0",
|
|
41
|
-
"@pgpmjs/types": "^2.50.
|
|
41
|
+
"@pgpmjs/types": "^2.50.3"
|
|
42
42
|
},
|
|
43
43
|
"keywords": [
|
|
44
44
|
"s3",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"minio",
|
|
49
49
|
"constructive"
|
|
50
50
|
],
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "44f56ee80a348f649a22e5bd32b35f2822726509"
|
|
52
52
|
}
|
package/streamer.d.ts
CHANGED
|
@@ -8,7 +8,13 @@ interface StreamerOptions {
|
|
|
8
8
|
awsAccessKey: string;
|
|
9
9
|
endpoint?: string;
|
|
10
10
|
provider?: BucketProvider;
|
|
11
|
-
|
|
11
|
+
/**
|
|
12
|
+
* Bucket used when a call does not name one. Optional: a caller that resolves
|
|
13
|
+
* the bucket per upload (tenant-resolved storage) has no deployment-wide
|
|
14
|
+
* default to give, and passing a placeholder would let a missing `bucket`
|
|
15
|
+
* argument write somewhere plausible instead of failing.
|
|
16
|
+
*/
|
|
17
|
+
defaultBucket?: string;
|
|
12
18
|
}
|
|
13
19
|
interface UploadParams {
|
|
14
20
|
readStream: Readable;
|