@eluvio/elv-client-js 4.0.22 → 4.0.23

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.
@@ -1118,7 +1118,8 @@ exports.DownloadFile = /*#__PURE__*/function () {
1118
1118
  libraryId: libraryId,
1119
1119
  objectId: objectId,
1120
1120
  versionHash: versionHash,
1121
- encryption: encryption
1121
+ encryption: encryption,
1122
+ makeAccessRequest: encryption === "cgck"
1122
1123
  });
1123
1124
  case 12:
1124
1125
  headers = _context15.sent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eluvio/elv-client-js",
3
- "version": "4.0.22",
3
+ "version": "4.0.23",
4
4
  "description": "Javascript client for the Eluvio Content Fabric",
5
5
  "main": "src/index.js",
6
6
  "author": "Kevin Talmadge",
@@ -684,7 +684,7 @@ exports.DownloadFile = async function({
684
684
  UrlJoin("q", writeToken || versionHash || objectId, "files", filePath);
685
685
 
686
686
 
687
- const headers = await this.authClient.AuthorizationHeader({libraryId, objectId, versionHash, encryption});
687
+ const headers = await this.authClient.AuthorizationHeader({libraryId, objectId, versionHash, encryption, makeAccessRequest: encryption === "cgck"});
688
688
  headers.Accept = "*/*";
689
689
 
690
690
  // If not owner, indicate re-encryption