Upgrades
This commit is contained in:
		
							parent
							
								
									99edb733d0
								
							
						
					
					
						commit
						4264704ce8
					
				| @ -53,10 +53,8 @@ module.exports = async function parseDbResults({ unparsedResults, tableSchema }) | |||||||
|                     continue; |                     continue; | ||||||
|                 } |                 } | ||||||
| 
 | 
 | ||||||
|                 if (resultFieldSchema?.encrypted) { |                 if (resultFieldSchema?.encrypted && value?.match(/./)) { | ||||||
|                     if (value?.match(/./)) { |                     result[resultFieldName] = decrypt({ encryptedString: value, encryptionKey, encryptionSalt }); | ||||||
|                         result[resultFieldName] = decrypt({ encryptedString: value, encryptionKey, encryptionSalt }); |  | ||||||
|                     } |  | ||||||
|                 } |                 } | ||||||
|             } |             } | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -4,6 +4,7 @@ const { Buffer } = require("buffer"); | |||||||
| const decrypt = ({ encryptedString, encryptionKey, encryptionSalt }) => { | const decrypt = ({ encryptedString, encryptionKey, encryptionSalt }) => { | ||||||
|     if (!encryptedString?.match(/.}/)) { |     if (!encryptedString?.match(/.}/)) { | ||||||
|         console.log("Encrypted string is invalid"); |         console.log("Encrypted string is invalid"); | ||||||
|  |         console.log("Encrypted string =>", encryptedString); | ||||||
|         return data; |         return data; | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -1,6 +1,6 @@ | |||||||
| { | { | ||||||
|     "name": "datasquirel", |     "name": "datasquirel", | ||||||
|     "version": "1.6.5", |     "version": "1.6.6", | ||||||
|     "description": "Cloud-based SQL data management tool", |     "description": "Cloud-based SQL data management tool", | ||||||
|     "main": "index.js", |     "main": "index.js", | ||||||
|     "bin": { |     "bin": { | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Tben
						Tben