curtain-web-api 1.0.42 → 1.0.43

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.
@@ -483,10 +483,12 @@ class CurtainWebAPI {
483
483
  return this.axiosInstance.post(this.baseURL + "curtain/" + linkId + "/set_encryption_factors/", { encryption_key: encryptedAESKey, encryption_iv: encryptedIV }, { headers: headers, responseType: "json" }).then((response) => { return response; });
484
484
  }
485
485
  getEncryptionFactors(linkId) {
486
- let headers = new axios_1.AxiosHeaders();
487
- headers["Accept"] = "application/json";
488
- headers["Content-Type"] = "application/json";
489
- return this.axiosInstance.get(this.baseURL + "curtain/" + linkId + "/get_encryption_factors/", { headers: headers, responseType: "json" }).then((response) => { return response; });
486
+ return __awaiter(this, void 0, void 0, function* () {
487
+ let headers = new axios_1.AxiosHeaders();
488
+ headers["Accept"] = "application/json";
489
+ headers["Content-Type"] = "application/json";
490
+ return yield this.axiosInstance.get(this.baseURL + "curtain/" + linkId + "/get_encryption_factors/", { headers: headers, responseType: "json" });
491
+ });
490
492
  }
491
493
  }
492
494
  exports.CurtainWebAPI = CurtainWebAPI;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "curtain-web-api",
3
- "version": "1.0.42",
3
+ "version": "1.0.43",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -497,11 +497,11 @@ export class CurtainWebAPI {
497
497
  return this.axiosInstance.post(this.baseURL + "curtain/" + linkId + "/set_encryption_factors/", {encryption_key: encryptedAESKey, encryption_iv: encryptedIV}, {headers: headers, responseType: "json"}).then((response) => {return response;});
498
498
  }
499
499
 
500
- getEncryptionFactors(linkId: string) {
500
+ async getEncryptionFactors(linkId: string) {
501
501
  let headers = new AxiosHeaders();
502
502
  headers["Accept"] = "application/json";
503
503
  headers["Content-Type"] = "application/json";
504
- return this.axiosInstance.get(this.baseURL + "curtain/" + linkId + "/get_encryption_factors/", {headers: headers, responseType: "json"}).then((response) => {return response;});
504
+ return await this.axiosInstance.get(this.baseURL + "curtain/" + linkId + "/get_encryption_factors/", {headers: headers, responseType: "json"})
505
505
  }
506
506
  }
507
507