presidium 2.1.0 → 2.1.1
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/S3Bucket.js +12 -8
- package/package.json +1 -1
package/S3Bucket.js
CHANGED
|
@@ -1309,11 +1309,12 @@ class S3Bucket {
|
|
|
1309
1309
|
searchParams.set('versionId', options.VersionId)
|
|
1310
1310
|
}
|
|
1311
1311
|
|
|
1312
|
+
const encodedKey = encodeURIComponentRFC3986(key).replace(/%2F/g, '/')
|
|
1312
1313
|
const response = await this._awsRequest1(
|
|
1313
1314
|
'GET',
|
|
1314
1315
|
searchParams.size > 0
|
|
1315
|
-
? `/${
|
|
1316
|
-
: `/${
|
|
1316
|
+
? `/${encodedKey}?${searchParams.toString()}`
|
|
1317
|
+
: `/${encodedKey}`,
|
|
1317
1318
|
headers,
|
|
1318
1319
|
''
|
|
1319
1320
|
)
|
|
@@ -1500,11 +1501,12 @@ class S3Bucket {
|
|
|
1500
1501
|
searchParams.set('versionId', options.VersionId)
|
|
1501
1502
|
}
|
|
1502
1503
|
|
|
1504
|
+
const encodedKey = encodeURIComponentRFC3986(key).replace(/%2F/g, '/')
|
|
1503
1505
|
const response = await this._awsRequest1(
|
|
1504
1506
|
'GET',
|
|
1505
1507
|
searchParams.size > 0
|
|
1506
|
-
? `/${
|
|
1507
|
-
: `/${
|
|
1508
|
+
? `/${encodedKey}?acl&${searchParams.toString()}`
|
|
1509
|
+
: `/${encodedKey}?acl`,
|
|
1508
1510
|
headers,
|
|
1509
1511
|
''
|
|
1510
1512
|
)
|
|
@@ -1750,11 +1752,12 @@ class S3Bucket {
|
|
|
1750
1752
|
searchParams.set('versionId', options.VersionId)
|
|
1751
1753
|
}
|
|
1752
1754
|
|
|
1755
|
+
const encodedKey = encodeURIComponentRFC3986(key).replace(/%2F/g, '/')
|
|
1753
1756
|
const response = await this._awsRequest1(
|
|
1754
1757
|
'HEAD',
|
|
1755
1758
|
searchParams.size > 0
|
|
1756
|
-
? `/${
|
|
1757
|
-
: `/${
|
|
1759
|
+
? `/${encodedKey}?${searchParams.toString()}`
|
|
1760
|
+
: `/${encodedKey}`,
|
|
1758
1761
|
headers,
|
|
1759
1762
|
''
|
|
1760
1763
|
)
|
|
@@ -1976,11 +1979,12 @@ class S3Bucket {
|
|
|
1976
1979
|
searchParams.set('versionId', options.VersionId)
|
|
1977
1980
|
}
|
|
1978
1981
|
|
|
1982
|
+
const encodedKey = encodeURIComponentRFC3986(key).replace(/%2F/g, '/')
|
|
1979
1983
|
const response = await this._awsRequest1(
|
|
1980
1984
|
'DELETE',
|
|
1981
1985
|
searchParams.size > 0
|
|
1982
|
-
? `/${
|
|
1983
|
-
: `/${
|
|
1986
|
+
? `/${encodedKey}?${searchParams.toString()}`
|
|
1987
|
+
: `/${encodedKey}`,
|
|
1984
1988
|
headers,
|
|
1985
1989
|
''
|
|
1986
1990
|
)
|