From 05d24d3e7de04cd36b22a25b17489515159aae39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=E1=A5=B2=E1=A5=92=CE=B9=E1=A5=B1=E1=A5=A3?= <105122695+daniscript18@users.noreply.github.com> Date: Tue, 4 Jul 2023 22:22:29 +0000 Subject: [PATCH] =?UTF-8?q?=E2=9C=8F=EF=B8=8F=20Edit=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 7 +++---- package.json | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index fbcd90e..72dd7a4 100644 --- a/README.md +++ b/README.md @@ -23,10 +23,9 @@ const Options = { port: 7777, timeout: 1000 }; -Query(Options, function (err, res) { - if(error) return console.error(err); - else return console.log(res); -}); +Query(Options) + .catch(console.error) + .then(console.log); ``` ## 🎁 Sample output diff --git a/package.json b/package.json index 7847d43..df41f5d 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "best-samp-query", "description": "Simplified Query API for SAMP: Efficient and easy retrieval of information from the server 🔥", - "version": "1.1.0", + "version": "1.1.1", "main": "best-samp-query.js", "license": "MIT", "author": "daniscript18",