Skip to content

Commit

Permalink
chore: update version
Browse files Browse the repository at this point in the history
  • Loading branch information
GHMatti authored and GHMatti committed Jul 19, 2020
1 parent 366b4e3 commit ec81359
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 6 deletions.
2 changes: 1 addition & 1 deletion fxmanifest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ game 'common'
name 'mysql-async'
description 'MySQL Middleware for lua.'
author 'Joel Wurtz & Matthias Mandelartz'
version '3.3.1'
version '3.3.2'
url 'https://github.com/brouznouf/fivem-mysql-async'

server_script 'mysql-async.js'
Expand Down
15 changes: 14 additions & 1 deletion mysql-async.js
Original file line number Diff line number Diff line change
Expand Up @@ -16171,7 +16171,7 @@ function getConfigFromConnectionString() {
const equal = el.indexOf('=');
const key = equal > -1 ? el.substr(0, equal) : el;
const value = equal > -1 ? el.substr(equal + 1) : '';
cfg[key] = Number.isNaN(Number(value)) ? value : Number(value);
cfg[key.trim()] = Number.isNaN(Number(value)) ? value : Number(value);
});
} else if (/mysql:\/\//gi.test(connectionString)) {
cfg = Object(ConnectionConfig["parseUrl"])(connectionString);
Expand Down Expand Up @@ -16281,6 +16281,19 @@ onNet('mysql-async:request-data', () => {
emitNet('mysql-async:update-time-data', src, server_server.profiler.profiles.executionTimes);
emitNet('mysql-async:update-slow-queries', src, server_server.profiler.profiles.slowQueries);
});
onNet('mysql-async:request-server-status', () => {
const src = source;
server_server.execute('SHOW GLOBAL STATUS', data => {
emitNet('mysql-async:update-status', src, data);
}, null, 'mysql-async').then(([result, cb]) => {
cb(result);
}).catch(() => false);
server_server.execute('SHOW GLOBAL VARIABLES', data => {
emitNet('mysql-async:update-variables', src, data);
}, null, 'mysql-async').then(([result, cb]) => {
cb(result);
}).catch(() => false);
});

/***/ })
/******/ ]);
2 changes: 1 addition & 1 deletion src/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mysql-async",
"version": "3.3.1",
"version": "3.3.2",
"description": "fivem-mysql-async",
"private": true,
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion ui/css/app.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions ui/js/app.js

Large diffs are not rendered by default.

0 comments on commit ec81359

Please sign in to comment.