erpnext-queue-client 1.0.4 → 1.0.5
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.
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.decryptFromErpNext = decryptFromErpNext;
|
|
4
4
|
const fernet_server_1 = require("../utils/fernet.server");
|
|
5
5
|
function decryptFromErpNext(credentials, encryptedPassword) {
|
|
6
|
-
if (!credentials.erpnextEncryptionKey)
|
|
6
|
+
if (!(credentials === null || credentials === void 0 ? void 0 : credentials.erpnextEncryptionKey))
|
|
7
7
|
throw new Error("ERPNext encryption key is not defined. Please specify it to use the decryptFromErpNext() function.");
|
|
8
8
|
const encyptionKey = credentials.erpnextEncryptionKey;
|
|
9
9
|
const encodedEncyptionKey = new fernet_server_1.Secret(encyptionKey);
|