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",