updates
This commit is contained in:
parent
ee7bc45412
commit
d88f16c7fb
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "datasquirel",
|
||||
"version": "1.1.21",
|
||||
"version": "1.1.22",
|
||||
"description": "Cloud-based SQL data management tool",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
@ -26,8 +26,14 @@ const https = require("https");
|
||||
*
|
||||
* @param {{
|
||||
* key: string,
|
||||
* payload: string,
|
||||
* database: string
|
||||
* payload: {
|
||||
* first_name: string,
|
||||
* last_name: string,
|
||||
* user_name: string,
|
||||
* email: string,
|
||||
* password: string,
|
||||
* },
|
||||
* }}
|
||||
*
|
||||
* @returns { Promise<FunctionReturn> }
|
||||
|
@ -28,7 +28,7 @@ const https = require("https");
|
||||
* @param {String} params.key - API Key
|
||||
* @param {String} params.database - Target Database
|
||||
* @param {String | Object} [params.payload={ id: 4, first_name: "Benjamin" }] - User Object.
|
||||
* @param {number} [params.payload.id] - User id => Required
|
||||
* @param {number} params.payload.id - User id => Required
|
||||
*
|
||||
* @returns { Promise<FunctionReturn>}
|
||||
*/
|
||||
|
@ -16,11 +16,12 @@ const decrypt = require("../functions/decrypt");
|
||||
* ==============================================================================
|
||||
* Main Function
|
||||
* ==============================================================================
|
||||
* @param {Object} request - Http request object
|
||||
* @param {String} encryptionKey - Encryption Key
|
||||
* @param {String} encryptionSalt - Encryption Salt
|
||||
* @param {String} level - Optional. "Deep" value indicates an extra layer of security
|
||||
* @param {String} database - Database Name
|
||||
* @param {Object} params - Arg
|
||||
* @param {Object} params.request - Http request object
|
||||
* @param {String} params.encryptionKey - Encryption Key
|
||||
* @param {String} params.encryptionSalt - Encryption Salt
|
||||
* @param {String} params.level - Optional. "Deep" value indicates an extra layer of security
|
||||
* @param {String} params.database - Database Name
|
||||
*/
|
||||
module.exports = function ({ request, encryptionKey, encryptionSalt, level, database }) {
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user