b23-lib 1.2.11 → 1.2.13
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/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -793,7 +793,7 @@ var AuthUtility = class {
|
|
|
793
793
|
return payload;
|
|
794
794
|
}
|
|
795
795
|
async createSystemToken(id, additionalData) {
|
|
796
|
-
(0, import_assert.default)(this.
|
|
796
|
+
(0, import_assert.default)(this.systemPrivateKeys.length, ErrorTypes_default.SYSTEM_PRIVATE_KEY_NOT_FOUND);
|
|
797
797
|
const payload = {
|
|
798
798
|
id,
|
|
799
799
|
type: "System",
|
|
@@ -896,7 +896,7 @@ var Fetch = async (baseURL, endpoint, method = "GET", headers = {}, payload) =>
|
|
|
896
896
|
};
|
|
897
897
|
}
|
|
898
898
|
const body = await response.json();
|
|
899
|
-
Logger_default.logMessage("Fetch", `API call successful: URL-${baseURL}/${endpoint}, Status- ${response.status}
|
|
899
|
+
Logger_default.logMessage("Fetch", `API call successful: URL-${baseURL}/${endpoint}, Status- ${response.status}`);
|
|
900
900
|
return {
|
|
901
901
|
status: response.status,
|
|
902
902
|
statusText: response.statusText,
|
package/dist/index.mjs
CHANGED
|
@@ -764,7 +764,7 @@ var AuthUtility = class {
|
|
|
764
764
|
return payload;
|
|
765
765
|
}
|
|
766
766
|
async createSystemToken(id, additionalData) {
|
|
767
|
-
assert(this.
|
|
767
|
+
assert(this.systemPrivateKeys.length, ErrorTypes_default.SYSTEM_PRIVATE_KEY_NOT_FOUND);
|
|
768
768
|
const payload = {
|
|
769
769
|
id,
|
|
770
770
|
type: "System",
|
|
@@ -867,7 +867,7 @@ var Fetch = async (baseURL, endpoint, method = "GET", headers = {}, payload) =>
|
|
|
867
867
|
};
|
|
868
868
|
}
|
|
869
869
|
const body = await response.json();
|
|
870
|
-
Logger_default.logMessage("Fetch", `API call successful: URL-${baseURL}/${endpoint}, Status- ${response.status}
|
|
870
|
+
Logger_default.logMessage("Fetch", `API call successful: URL-${baseURL}/${endpoint}, Status- ${response.status}`);
|
|
871
871
|
return {
|
|
872
872
|
status: response.status,
|
|
873
873
|
statusText: response.statusText,
|