From 4b8e8de71f6c0cd7b8d09c9ae42494c7262ea737 Mon Sep 17 00:00:00 2001 From: Benjamin Toby Date: Sun, 15 Dec 2024 11:25:07 +0100 Subject: [PATCH] Updates --- package.json | 2 +- utils/upload-image.d.ts | 4 ++-- utils/upload-image.js | 4 +--- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 5c352c9..292425e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@moduletrace/datasquirel", - "version": "3.1.5", + "version": "3.1.6", "description": "Cloud-based SQL data management tool", "main": "index.js", "bin": { diff --git a/utils/upload-image.d.ts b/utils/upload-image.d.ts index 6227082..a3d9f2b 100644 --- a/utils/upload-image.d.ts +++ b/utils/upload-image.d.ts @@ -13,7 +13,7 @@ export = uploadImage; * @async * * @param {Object} params - Single Param object containing params - * @param {String} params.key - *FULL ACCESS API Key + * @param {String} [params.key] - *FULL ACCESS API Key * @param {{ * imageData: string, * imageName: string, @@ -27,7 +27,7 @@ export = uploadImage; * @returns { Promise } - Return Object */ declare function uploadImage({ key, payload, user_id }: { - key: string; + key?: string; payload: { imageData: string; imageName: string; diff --git a/utils/upload-image.js b/utils/upload-image.js index fc2cb7a..25fd128 100644 --- a/utils/upload-image.js +++ b/utils/upload-image.js @@ -1,7 +1,5 @@ // @ts-check -const http = require("http"); -const https = require("https"); const grabHostNames = require("../package-shared/utils/grab-host-names"); /** @@ -19,7 +17,7 @@ const grabHostNames = require("../package-shared/utils/grab-host-names"); * @async * * @param {Object} params - Single Param object containing params - * @param {String} params.key - *FULL ACCESS API Key + * @param {String} [params.key] - *FULL ACCESS API Key * @param {{ * imageData: string, * imageName: string,