From 28cc56e486aa318476ac7c7d5f2c96b72fac3b7b Mon Sep 17 00:00:00 2001 From: Tben <52448020+BenjaminToby@users.noreply.github.com> Date: Wed, 3 May 2023 07:53:10 +0100 Subject: [PATCH] update readme --- README.md | 2 +- index.js | 4 ++++ package.json | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 92f46e8..023c427 100644 --- a/README.md +++ b/README.md @@ -110,7 +110,7 @@ This method requires is similar to the `post` method, but with different paramet ```js const datasquirel = require("datasquirel"); -const postData = await datasquirel.post({ +const postData = await datasquirel.uploadImage({ key: process.env.FULL_ACCESS_API_KEY, payload: { imageData: "6ejsiua2i29ndsajkfn9n==", // Image in base64 diff --git a/index.js b/index.js index d7bac8e..4b327b5 100644 --- a/index.js +++ b/index.js @@ -4,6 +4,8 @@ * ============================================================================== */ const get = require("./utils/get"); +const post = require("./utils/post"); +const uploadImage = require("./utils/upload-image"); /** ****************************************************************************** */ /** ****************************************************************************** */ @@ -20,6 +22,8 @@ const get = require("./utils/get"); */ const datasquirel = { get: get, + post: post, + uploadImage: uploadImage, }; module.exports = datasquirel; diff --git a/package.json b/package.json index 07eb308..9e36eb5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "datasquirel", - "version": "1.0.0", + "version": "1.0.1", "description": "Cloud-based SQL data management tool", "main": "index.js", "scripts": {