Skip to content

Commit 05d24d3

Browse files
committed
✏️ Edit README.md
1 parent f9ab24f commit 05d24d3

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,9 @@ const Options = {
2323
port: 7777,
2424
timeout: 1000
2525
};
26-
Query(Options, function (err, res) {
27-
if(error) return console.error(err);
28-
else return console.log(res);
29-
});
26+
Query(Options)
27+
.catch(console.error)
28+
.then(console.log);
3029
```
3130
## 🎁 Sample output
3231

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "best-samp-query",
33
"description": "Simplified Query API for SAMP: Efficient and easy retrieval of information from the server 🔥",
4-
"version": "1.1.0",
4+
"version": "1.1.1",
55
"main": "best-samp-query.js",
66
"license": "MIT",
77
"author": "daniscript18",

0 commit comments

Comments
 (0)