@orthacms/media-provider-s3 0.9.1 → 0.10.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"s3-storage-provider.d.ts","sourceRoot":"","sources":["../../src/lib/s3-storage-provider.ts"],"names":[],"mappings":"AAEA,OAAO,EAIH,QAAQ,EAEX,MAAM,oBAAoB,CAAC;AAI5B,OAAO,KAAK,EAGR,eAAe,EAElB,MAAM,wBAAwB,CAAC;AAEhC;;;;;;;;GAQG;AACH,MAAM,WAAW,eAAe;IAC5B,oCAAoC;IACpC,MAAM,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;;;OAKG;IACH,WAAW,CAAC,EAAE;QACV,WAAW,EAAE,MAAM,CAAC;QACpB,eAAe,EAAE,MAAM,CAAC;QACxB,YAAY,CAAC,EAAE,MAAM,CAAC;KACzB,CAAC;IACF,+EAA+E;IAC/E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,QAAQ,CAAC;CACrB;AAiCD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,uBAAuB,CACnC,MAAM,EAAE,eAAe,GACxB,eAAe,
|
|
1
|
+
{"version":3,"file":"s3-storage-provider.d.ts","sourceRoot":"","sources":["../../src/lib/s3-storage-provider.ts"],"names":[],"mappings":"AAEA,OAAO,EAIH,QAAQ,EAEX,MAAM,oBAAoB,CAAC;AAI5B,OAAO,KAAK,EAGR,eAAe,EAElB,MAAM,wBAAwB,CAAC;AAEhC;;;;;;;;GAQG;AACH,MAAM,WAAW,eAAe;IAC5B,oCAAoC;IACpC,MAAM,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;;;OAKG;IACH,WAAW,CAAC,EAAE;QACV,WAAW,EAAE,MAAM,CAAC;QACpB,eAAe,EAAE,MAAM,CAAC;QACxB,YAAY,CAAC,EAAE,MAAM,CAAC;KACzB,CAAC;IACF,+EAA+E;IAC/E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,QAAQ,CAAC;CACrB;AAiCD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,uBAAuB,CACnC,MAAM,EAAE,eAAe,GACxB,eAAe,CAyJjB"}
|
|
@@ -74,7 +74,10 @@ function createS3StorageProvider(config) {
|
|
|
74
74
|
capabilities: {
|
|
75
75
|
directUrl: true,
|
|
76
76
|
contentTypeMetadata: true,
|
|
77
|
-
streamingPut: true
|
|
77
|
+
streamingPut: true,
|
|
78
|
+
// A bucket is private unless someone made it otherwise, and this
|
|
79
|
+
// adapter has no way to know whether they did.
|
|
80
|
+
publicUrls: false
|
|
78
81
|
},
|
|
79
82
|
async put(object) {
|
|
80
83
|
const storageKey = keyFor(object);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orthacms/media-provider-s3",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "@orthacms/media-provider-s3 — part of Ortha CMS.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://orthacms.com",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@aws-sdk/client-s3": "^3.716.0",
|
|
29
29
|
"@aws-sdk/lib-storage": "^3.716.0",
|
|
30
30
|
"@aws-sdk/s3-request-presigner": "^3.716.0",
|
|
31
|
-
"@orthacms/media-domain": "^0.
|
|
31
|
+
"@orthacms/media-domain": "^0.10.0",
|
|
32
32
|
"tslib": "^2.3.0"
|
|
33
33
|
},
|
|
34
34
|
"publishConfig": {
|