@eluvio/elv-client-js 4.0.125 → 4.0.127

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eluvio/elv-client-js",
3
- "version": "4.0.125",
3
+ "version": "4.0.127",
4
4
  "description": "Javascript client for the Eluvio Content Fabric",
5
5
  "main": "src/index.js",
6
6
  "author": "Kevin Talmadge",
package/src/ElvClient.js CHANGED
@@ -1016,6 +1016,9 @@ class ElvClient {
1016
1016
  ]))}`;
1017
1017
  }
1018
1018
 
1019
+ async CreateAuthorizationToken(args) {
1020
+ return await this.authClient.AuthorizationToken(args);
1021
+ }
1019
1022
 
1020
1023
  /**
1021
1024
  * Build a signed message (JSON) using the current signer.
@@ -1403,6 +1406,8 @@ class ElvClient {
1403
1406
  true
1404
1407
  );
1405
1408
 
1409
+ // eslint-disable-next-line no-console
1410
+ console.error(message);
1406
1411
  // eslint-disable-next-line no-console
1407
1412
  console.error(error);
1408
1413
 
@@ -363,6 +363,7 @@ class FrameClient {
363
363
  "CreateABRMezzanine",
364
364
  "CreateAccessGroup",
365
365
  "CreateAndFinalizeContentObject",
366
+ "CreateAuthorizationToken",
366
367
  "CreateContentLibrary",
367
368
  "CreateContentObject",
368
369
  "CreateContentType",
@@ -1940,15 +1940,13 @@ exports.MakeFileServiceRequest = async function({
1940
1940
  queryPath = UrlJoin("qlibs", libraryId, queryPath);
1941
1941
  }
1942
1942
 
1943
- let authorization = [
1943
+ queryParams.authorization = [
1944
1944
  authorizationToken,
1945
1945
  await this.authClient.AuthorizationToken({libraryId, objectId, versionHash, encryption, makeAccessRequest: encryption === "cgck"})
1946
1946
  ]
1947
1947
  .flat()
1948
1948
  .filter(token => token);
1949
-
1950
- headers.Authorization = headers.Authorization || authorization.map(token => `Bearer ${token}`);
1951
-
1949
+
1952
1950
  return this.utils.ResponseToFormat(
1953
1951
  format,
1954
1952
  await this.FileServiceHttpClient.Request({