From 1ae244946767bd4d6bdade3e7232e85a734b5e65 Mon Sep 17 00:00:00 2001 From: Tben <52448020+BenjaminToby@users.noreply.github.com> Date: Thu, 18 May 2023 12:08:14 +0100 Subject: [PATCH] updates --- index.js | 36 +++++++++++++++++++++++++----------- package.json | 2 +- 2 files changed, 26 insertions(+), 12 deletions(-) diff --git a/index.js b/index.js index da50a7f..9fcee69 100644 --- a/index.js +++ b/index.js @@ -23,12 +23,13 @@ const userAuth = require("./users/user-auth"); * ============================================================================== * User Functions Object * ============================================================================== - * @type {Object} - * @property {Function} createUser - Create User Function - * @property {Function} loginUser - Login User Function - * @property {Function} logoutUser - Logout User Function - * @property {Function} userAuth - User Auth Function - * @property {Function} updateUser - Update User Function + * @type {{ + * createUser: Function + * loginUser: Function + * logoutUser: Function + * userAuth: Function + * updateUser: Function + * }} */ const user = { createUser: createUser, @@ -42,8 +43,9 @@ const user = { * ============================================================================== * Media Functions Object * ============================================================================== - * @type {Object} - * @property {Function} uploadImage - Upload Image async Function + * @type {{ + * uploadImage: Function + * }} */ const media = { uploadImage: uploadImage, @@ -53,9 +55,21 @@ const media = { * ============================================================================== * Main Export * ============================================================================== - * @type {Object} - * @property {Function} get - get Function - * @property {Function} post - post Function + * @type {{ + * get: Function, + * post: Function, + * media: { + * uploadImage: Function + * }, + * user: { + * createUser: Function + * loginUser: Function + * logoutUser: Function + * userAuth: Function + * updateUser: Function + * }, + * }} + * ============================================================================== */ const datasquirel = { get: get, diff --git a/package.json b/package.json index 21866b4..e72258b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "datasquirel", - "version": "1.1.5", + "version": "1.1.6", "description": "Cloud-based SQL data management tool", "main": "index.js", "scripts": {