chore(lib): typos

This commit is contained in:
Linden committed 2023-01-28 16:30:35 +11:00
1 parent 571691c2f5
commit 61d78dc893
2 files changed
+5 -5

No files matched your search

+4 -4
View File
@@ -19,7 +19,7 @@ npm install @overextended/oxmysql
Import as module:
```ts
```js
import { oxmysql } from '@overextended/oxmysql';
```
@@ -34,15 +34,15 @@ const { oxmysql } = require('@overextended/oxmysql');
[View documentation](https://overextended.github.io/docs/oxmysql)
```js
MySQL.scalar('SELECT username FROM uses', (result) => {
oxmysql.scalar('SELECT username FROM users', (result) => {
console.log(result)
}).catch(console.error)
MySQL.scalar('SELECT username FROM uses').then((result) => {
oxmysql.scalar('SELECT username FROM users').then((result) => {
console.log(result)
}).catch(console.error)
const result = await MySQL.scalar('SELECT username FROM uses').catch(console.error)
const result = await oxmysql.scalar('SELECT username FROM users').catch(console.error)
console.log(result)
```
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@overextended/oxmysql",
"version": "1.1.1",
"version": "1.1.2",
"description": "Exports wrapper for oxmysql",
"types": "MySQL.d.ts",
"main": "MySQL.js",