@medicus.ai/medicus-report-pdf-generator 1.0.224 → 1.0.226

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/index.js CHANGED
@@ -95,7 +95,7 @@ module.exports = {
95
95
  let sentData=reportData.data
96
96
  let ecbDecrypted = encryptDecrypt.ecbDecrypt(sentData.toString(), encryptionKey)
97
97
 
98
- let xorDecrypted = encryptDecrypt.XORDecrypt(ecbDecrypted.toString(), encryptionKey)
98
+ let xorDecrypted = encryptDecrypt.XORDecrypt(ecbDecrypted, encryptionKey)
99
99
  return {
100
100
  ecbDecrypted:ecbDecrypted,
101
101
  xorDecrypted:xorDecrypted
@@ -15,8 +15,6 @@ function ecbDecrypt(data, key) {
15
15
 
16
16
 
17
17
  function XORDecrypt(input, key) {
18
- console.log("key",key)
19
- key = typeof key === 'object' ? JSON.stringify(key) : key.toString();
20
18
  var decodedText = atob(input);
21
19
  var plainText = '';
22
20
  var length = decodedText.length;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medicus.ai/medicus-report-pdf-generator",
3
- "version": "1.0.224",
3
+ "version": "1.0.226",
4
4
  "description": "Nasco corporate report - latest update in 2/11/2022 - Fix sanusx coprorate report issues",
5
5
  "main": "index.js",
6
6
  "scripts": {