@api-encrypt/sdk
Advanced tools
Comparing version 0.0.5 to 0.0.6
{ | ||
"name": "@api-encrypt/sdk", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"type": "commonjs", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
@@ -110,3 +110,3 @@ "use strict"; | ||
catch (error) { | ||
throw Error((error === null || error === void 0 ? void 0 : error.message) || 'request api encrypt error'); | ||
throw Error('request api encrypt error: ' + (error === null || error === void 0 ? void 0 : error.message) || ''); | ||
} | ||
@@ -118,3 +118,3 @@ // decode secret key | ||
catch (error) { | ||
throw Error((error === null || error === void 0 ? void 0 : error.message) || 'decode secret keys error'); | ||
throw Error('decode secret keys error: ' + (error === null || error === void 0 ? void 0 : error.message) || ''); | ||
} | ||
@@ -126,3 +126,3 @@ // get data from db | ||
catch (error) { | ||
throw Error((error === null || error === void 0 ? void 0 : error.message) || 'Get data from db error'); | ||
throw Error('Get data from db error: ' + (error === null || error === void 0 ? void 0 : error.message) || ''); | ||
} | ||
@@ -134,3 +134,3 @@ // decrypt data with secretEncrypted & userSecret | ||
catch (error) { | ||
throw Error((error === null || error === void 0 ? void 0 : error.message) || 'Decrypt data error'); | ||
throw Error('Decrypt data error: ' + (error === null || error === void 0 ? void 0 : error.message) || ''); | ||
} | ||
@@ -137,0 +137,0 @@ console.log('dataEncryptedFromDb >>', JSON.parse(data)); |
Sorry, the diff of this file is not supported yet
13253
7