Compare commits

...
55 Commits
Author SHA1 Message Date
Linden 12e9ccbc8a feat(lua): update http link and version checking 2021-10-31 08:32:27 +11:00
Linden 2a9b14ce54 chore(lua): update fxmanifest version 2021-10-31 07:18:55 +11:00
Linden f7949db0d3 chore(workflow): update run tasks 2021-10-31 07:17:45 +11:00
Linden 2a14ab1e21 refactor(webpack): update patterns and do not minify 2021-10-31 06:48:30 +11:00
Linden 9de50f684f refactor(lua): remove file check and move to subdirectory 2021-10-31 06:48:00 +11:00
Linden 2c90290c84 fix(wrapper): check if oxmysql.js exists via io function 2021-10-29 09:26:01 +11:00
Linden 9fc06c2132 refactor(versioncheck): remove module and perform check with Lua
Unnecessary dependency with functionality that can be easily handled via PerformHttpRequest.

Since the check references fxmanifest instead, we will no longer maintain the version in package.json.
2021-10-29 08:14:39 +11:00
Linden def891268b feat(wrapper): throw an error when no build exists
Many people refuse to download releases, instead opting for the source code. Throw an error and include a link to the direct download.
2021-10-29 07:08:36 +11:00
Dunak 8a3fa20408 fix(pool): Remove default database value from config 2021-10-25 10:55:42 +02:00
Dunak 5d6ca06f49 fix(parser): Check if query is string type not undefined
- Should fix issues when exports is wrong called with `.` instead of `:`
2021-10-24 14:56:38 +02:00
Linden 4913d6e50a chore: Version bump 2021-10-24 02:15:10 +11:00
Linden ca8cef4e26 refactor(prepare): Rename prepared export to prepare 2021-10-24 02:13:55 +11:00
Linden 2a8f4b1ea9 feat: Add an export to call prepared statements (#54)
* feat: Add an export to call prepared queries

- Utilises pool.execute (rather than query) to actually prepare parameters through mysql.

This is intended for appropriately built queries utilising  placeholders and parameters, and should only be used on frequently repeated queries.

* refactor(prepare): Clean up results and add total execution time

* feat(prepare): Send scalar response for a single value

* fix(prepare): Check if result exists before getting keys
2021-10-23 09:05:01 +11:00
Linden 1d0a5bcfd9 Update issue templates 2021-10-23 08:55:54 +11:00
Linden 5965442e48 refactor(lib): Update formatting for improved LDoc usage
- This makes it easier to see which function is being defined, but also allows LDocs / Emmy Annotations / whatever to display the full function name.
2021-10-19 08:50:42 +11:00
Linden f7ed2d5b60 chore: Bump version 2021-10-19 04:41:55 +11:00
Linden ec9d787be4 fix: Resolve null length on some queries
- Ensure parameters when checking length, and update dependencies for mysql2 patch
2021-10-19 04:26:08 +11:00
Linden abf259543d chore: Update version and dependencies 2021-10-18 02:19:09 +11:00
Linden 9d8a29388c fix(parser): Only assign null values if placeholders were found 2021-10-18 01:52:22 +11:00
Linden 00f9d0449c fix(regex): Prevent converting JSON in queries into placeholders
- When a JSON string is entered as part of a query, rather than a parameter, it is assumed to define a named placeholder - this will check for quotations and ignore it
2021-10-18 01:51:37 +11:00
Linden a46b586832 Merge pull request #51 from darksaid98/main
fix(parse): Resolve nil parameters when using `['@key'] = val`
2021-10-17 04:16:04 +11:00
darksaid98 dc50fe6dbb style: rename paramName variable 2021-10-16 19:11:09 +02:00
darksaid98 a6d483ca48 fix: nil parameters with named placeholders
- Fixes the remaining edge-case bug with passing nil parameters
2021-10-16 19:05:57 +02:00
Linden b1babdbc09 chore: Update version 2021-10-17 02:04:09 +11:00
Linden f8f97344fd Merge pull request #50 from darksaid98/varatstart
fix: Parameter keys beginning with ':' & '@'
2021-10-17 01:58:24 +11:00
darksaid98 48ee030372 fix: parameter keys beginning with : & @ 2021-10-16 16:02:43 +02:00
Linden fe1d6e6b05 fix(config): Reset colour after version check message 2021-10-16 10:46:29 +11:00
Linden c1f5bb3375 chore: Version bump 2021-10-16 10:43:27 +11:00
Linden d4e367baaf fix(lib): Allow transactions to utilise safeArgs function
- Also updates luadocs
2021-10-16 10:24:00 +11:00
Linden ce87bc488c fix(parser): Allow queries with multiple placeholders and no parameters
- '...?, ?, ?', {nil, nil, nil} will set all placeholders to null
2021-10-16 10:20:35 +11:00
Linden dc55401b78 fix: Return boolean for TINYINT 2021-10-16 10:20:35 +11:00
Linden 3b55e890a8 fix: Display correct query execution time 2021-10-16 10:20:35 +11:00
Linden bacd9c171d chore: Point mysql2 dependency to fork
I'd like some control over incoming changes to fit our use-case, and patch-package doesn't quite fulfil our needs.
2021-10-16 10:20:35 +11:00
Linden 29d28197bb chore: Version bump dependencies 2021-10-16 10:20:35 +11:00
Linden 4646c6f027 fix: Assign object entries to array
Assigning the entries to an array first permits comparing the lengths and setting undefined entries as null
2021-10-16 10:20:35 +11:00
Linden 30a391031b fix: Resolve error when parameter length does not match
- Throws a more specific error when receiving mismatch for column and value counts

- Resolves error when final parameter is nil
2021-10-16 10:20:35 +11:00
Linden 22de50c081 Apply mysql2 patch
- Remove extra _resolveNamedPlaceholders call from query

- Apply several patches by github/testn (pending merge); refer to pull requests #1408, #1402, #1401, #1400

- Optimise query.row call
- Cache lazy-evaluated field
- Optimise string decoding
- Avoid leaking TextRow/BinaryRow
2021-10-16 10:20:35 +11:00
Linden d0730c5e9b feat: Add support for nil parameters
- Throws an error if no params are defined when using named parameters, otherwise seems okay
2021-10-16 10:20:35 +11:00
Linden b781f0ca45 feat(lib): Setup support for lua docs 2021-10-15 18:41:17 +11:00
Linden 31959beb85 fix(manifest): Disable server_only
- Until dependencies can be used for server only resources, disable this to prevent clients failing to load.
2021-10-11 03:22:55 +11:00
Linden de2c731295 chore: Update comments for function return values 2021-10-08 15:58:11 +11:00
H@merandLinden 93ff6bae45 fix: Incorrect exports used in sync functions for transaction, single, and insert
* Fix insert return worng value.

* fix: Use the correct functions for execute/fetchAll

Co-authored-by: Linden <[email protected]>
2021-10-08 14:00:47 +11:00
Linden 1266f4a7b6 chore: Update dependencies and version bump 2021-10-08 11:17:50 +11:00
Linden a06cf65d10 feat(lib): safeArguments function to assert types
- Ensures each argument has the expected type
- Refactor each function for reduced code duplication
- Correctly check Store for number queries (Async functions did not retrieve string)
2021-10-08 05:51:07 +11:00
Linden 5b55c81046 chore: Update readme 2021-10-08 05:47:34 +11:00
dunak-debug 6acd0ac352 chore: Bump to 1.5.0 2021-10-06 23:52:38 +02:00
Dunak 55d8d46334 feat(ci): Include mysql-async compat library 2021-10-06 22:59:46 +02:00
Linden 4b179191d4 feat: Imports file for "mysql-async" like usage
- Include `server_script '@oxmysql/lib/MySQL.lua'` in the resource manifest

Mostly untested
2021-10-07 07:42:03 +11:00
Linden 1ec52903ca feat: Add support for semicolon connection strings 2021-10-07 06:26:07 +11:00
Linden 7e5d4cce06 chore: Version bump and set to production 2021-09-27 10:13:36 +10:00
Linden 681b39692a fix(pool): Increase default connection timeout
- Servers taking a while to start may experience a timeout; this should alleviate the issue
2021-09-27 10:13:11 +10:00
1A3 39c485644d fix: Regex fix for queries with commas (#31)
Fixes #24
2021-09-24 20:13:01 +02:00
darksaid98 634bbffd46 feat: version check on startup (#28) 2021-09-23 20:55:08 +02:00
Linden 273a4a8a89 Merge pull request #27 from gixels/main
Implemented the ability to change the port.
2021-09-23 05:03:27 +10:00
gixels b8249d5457 Implemented the ability to change the port. 2021-09-22 12:12:50 -04:00
15 changed files with 724 additions and 318 deletions

No files matched your search

+38
View File
@@ -0,0 +1,38 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''
---
## Issue checklist
> Please put `x` inside of the box that matches your issue.
- [ ] I am using the latest release
- [ ] I have referenced previously reported issues
- [ ] I have referenced available documentation and cannot resolve the issue
- [ ] I'm certain this is an issue with oxymysql, and not with my resource
**Describe the bug**
A clear and concise description of what the bug is.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Code**
```lua
If applicable, include the query and relevant code
```
**Expected behavior**
A clear and concise description of what you expected to happen.
**Additional context**
Add any other context about the problem here.
**Server details**
- FX Server artifact
- Operating system
- Framework
+39 -5
View File
@@ -1,7 +1,41 @@
<h2 align='center'>oxmysql<p><a href='https://overextended.github.io/oxmysql/'>Documentation</a></p></h2> <h1 align='center'><a href='https://overextended.github.io/oxmysql/'>Documentation</a></h2>
### Introduction
Oxmysql is an alternative to the unmaintained mysql-async/ghmattimysql resources, utilising [node-mysql2](https://github.com/sidorares/node-mysql2) rather than [mysqljs](https://github.com/mysqljs/mysql).
There are several incompatibilities in the provided API, meaning we cannot guarantee 100% success when using a "drag-and-drop" mentality. For convenience we have included `@oxmysql/lib/MySQL.lua` to replace mysql-async in your resource manifests.
For more information regarding the use of queries, refer to the documentation linked above.
### Features
- Support for URI connection strings and semicolon separated values
- Asynchronous queries utilising mysql2/promises connection pool
- Lua promises in the `wrapper.lua` and `lib/MySQL.lua` files for improved performance when using sync functions
- Javascript async_retval exports when using recent FX Server builds (requires wrapper.lua to be removed)
- Support for placeholder values (named and unnamed) to improve query speed and increase security against SQL injection
- Improved error checking when placeholders and parameters do not match
### Placeholders
This allows queries to be properly prepared and escaped, as well as improve query times for frequently accessed queries.
The following lines are equivalent.
```
"SELECT group FROM users WHERE identifier = ?", {identifier}
"SELECT group FROM users WHERE identifier = :identifier", {identifier = identifier}
"SELECT group FROM users WHERE identifier = @identifier", {['@identifier'] = identifier}
```
You can also use the following syntax when you are uncertain about the column to select.
```
"SELECT ?? FROM users WHERE identifier = ?", {column, identifier}
instead of using
"SELECT "..column.." FROM users WHERE identifier = ?", {identifier}
```
<br><br><br><br><br>
<hr>
<p align='center'><a href='https://discord.io/overextended'>Discord</a></p> <p align='center'><a href='https://discord.io/overextended'>Discord</a></p>
<hr>
oxmysql is a middleware for FXServer which utilises [node-mysql2](https://github.com/sidorares/node-mysql2) to communicate with a database and respond with the query results.
Calling the JS exports will result in async behaviour, or you can use the Lua exports to return a promise and await the response.
+3 -3
View File
@@ -3,15 +3,15 @@ game 'common'
name 'oxmysql' name 'oxmysql'
description 'Database wrapper for FiveM utilising node-mysql2 offering improved performance and security.' description 'Database wrapper for FiveM utilising node-mysql2 offering improved performance and security.'
version '1.4.0' version '1.7.1'
url 'https://github.com/overextended/oxmysql' url 'https://github.com/overextended/oxmysql'
author 'overextended' author 'overextended'
use_fxv2_oal 'yes' use_fxv2_oal 'yes'
lua54 'yes' lua54 'yes'
server_only 'true'
server_scripts { server_scripts {
'oxmysql.js', 'oxmysql.js',
'wrapper.lua' 'wrapper.lua'
} }
provide 'mysql-async'
+188
View File
@@ -0,0 +1,188 @@
-- This file allows simple conversion from MySQL-Async to Oxmysql
-- Replace any references to '@mysql-async' in your resource manifests to use '@oxmysql' instead
-- Store is used for compatibility only
local Ox = exports.oxmysql
local Resource = GetCurrentResourceName()
local Store = {}
local function safeArgs(query, parameters, cb, transaction)
if type(query) == 'number' then query = Store[query] end
if transaction then
assert(type(query) == 'table', ('A table was expected for the transaction, but instead received %s'):format(query))
else
assert(type(query) == 'string', ('A string was expected for the query, but instead received %s'):format(query))
end
if cb then
assert(type(cb) == 'function', ('A callback function was expected, but instead received %s'):format(cb))
end
local type = parameters and type(parameters)
if type and type ~= 'table' and type ~= 'function' then
assert(nil, ('A %s was expected, but instead received %s'):format(cb and 'table' or 'function', parameters))
end
return query, parameters, cb
end
MySQL = { Async = {}, Sync = {} }
---@param query string
---@param parameters? table|function
---@param cb? function
---@return integer result
---returns number of rows updated by the executed query
MySQL.Async.execute = function(query, parameters, cb)
Ox:update(safeArgs(query, parameters, cb))
end
---@param query string
---@param parameters? table|function
---@param cb? function
---@return table result
---returns array of matching rows or result data
MySQL.Async.fetchAll = function(query, parameters, cb)
Ox:execute(safeArgs(query, parameters, cb))
end
---@param query string
---@param parameters? table|function
---@param cb? function
---@return integer|string
---returns value of the first column of a single row
MySQL.Async.fetchScalar = function(query, parameters, cb)
Ox:scalar(safeArgs(query, parameters, cb))
end
---@param query string
---@param parameters? table|function
---@param cb? function
---@return table result
---returns table containing key value pairs
MySQL.Async.fetchSingle = function(query, parameters, cb)
Ox:single(safeArgs(query, parameters, cb))
end
---@param query string
---@param parameters? table|function
---@param cb? function
---@return table result
---returns the last inserted id
MySQL.Async.insert = function(query, parameters, cb)
Ox:insert(safeArgs(query, parameters, cb))
end
---@param queries table
---@param parameters? table|function
---@param cb? function
---@return boolean result
---returns true when the transaction has succeeded
MySQL.Async.transaction = function(queries, parameters, cb)
Ox:transaction(safeArgs(queries, parameters, cb, true))
end
---@param query string
---@param cb? function
---@return integer result
---returns the id used to reference a stored query string
MySQL.Async.store = function(query, cb)
assert(type(query) == 'string', 'The SQL Query must be a string')
local store = #Store+1
Store[store] = query
cb(store)
end
---@param query string
---@param parameters? table|function
---@return integer result
---returns number of rows updated by the executed query
MySQL.Sync.execute = function(query, parameters)
query, parameters = safeArgs(query, parameters)
local promise = promise.new()
Ox:update(query, parameters, function(result)
promise:resolve(result)
end, Resource)
return Citizen.Await(promise)
end
---@param query string
---@param parameters? table|function
---@return table result
---returns array of matching rows or result data
MySQL.Sync.fetchAll = function(query, parameters)
query, parameters = safeArgs(query, parameters)
local promise = promise.new()
Ox:execute(query, parameters, function(result)
promise:resolve(result)
end, Resource)
return Citizen.Await(promise)
end
---@param query string
---@param parameters? table|function
---@return integer|string
---returns value of the first column of a single row
MySQL.Sync.fetchScalar = function(query, parameters)
query, parameters = safeArgs(query, parameters)
local promise = promise.new()
Ox:scalar(query, parameters, function(result)
promise:resolve(result)
end, Resource)
return Citizen.Await(promise)
end
---@param query string
---@param parameters? table|function
---@return table result
---returns table containing key value pairs
MySQL.Sync.fetchSingle = function(query, parameters)
query, parameters = safeArgs(query, parameters)
local promise = promise.new()
Ox:single(query, parameters, function(result)
promise:resolve(result)
end, Resource)
return Citizen.Await(promise)
end
---@param query string
---@param parameters? table|function
---@return table result
---returns the last inserted id
MySQL.Sync.insert = function(query, parameters)
query, parameters = safeArgs(query, parameters)
local promise = promise.new()
Ox:insert(query, parameters, function(result)
promise:resolve(result)
end, Resource)
return Citizen.Await(promise)
end
---@param queries table
---@param parameters? table|function
---@return boolean result
---returns true when the transaction has succeeded
MySQL.Sync.transaction = function(queries, parameters)
queries, parameters = safeArgs(queries, parameters, true)
local promise = promise.new()
Ox:transaction(queries, parameters, function(result)
promise:resolve(result)
end, Resource)
return Citizen.Await(promise)
end
---@param query string
---@return integer result
---returns the id used to reference a stored query string
MySQL.Sync.store = function(query)
assert(type(query) == 'string', 'The SQL Query must be a string')
local store = #Store+1
Store[store] = query
return store
end
MySQL.ready = function(cb)
CreateThread(function()
repeat
Wait(50)
until GetResourceState('oxmysql') == 'started'
cb()
end)
end
+127
View File
@@ -0,0 +1,127 @@
local oxmysql = exports.oxmysql
CreateThread(function()
Wait(1000)
local resource = GetCurrentResourceName()
local url = GetResourceMetadata(resource, 'url', 0)
local version = GetResourceMetadata(resource, 'version', 0)
PerformHttpRequest(('%s/main/lua/fxmanifest.lua'):format(url:gsub('github.com', 'raw.githubusercontent.com')), function(error, response)
if error == 200 then
local latest = response:match('%d%.%d+%.%d+')
if version ~= latest then
local curMajor, curMinor = string.strsplit('.', version)
local newMajor, newMinor = string.strsplit('.', response:match('%d%.%d+%.%d+'))
local link = ('%s/releases/download/v%s/oxmysql-v%s.zip'):format(url, latest, latest)
if tonumber(curMajor) < tonumber(newMajor) then
latest = 'A major update'
elseif tonumber(curMinor) < tonumber(newMinor) then
latest = 'An update'
else
latest = 'A patch'
end
print(('^3%s is available for oxmysql - please update to the latest release (current version: %s)\n ^3- %s^0'):format(latest, version, link))
end
end
end, 'GET')
end)
---@param query string
---@param parameters? table
---@return integer result
---returns array of matching rows or result data
exports('executeSync', function(query, parameters)
local p = promise.new()
oxmysql:execute(query, parameters, function(result)
p:resolve(result)
end, GetInvokingResource())
return Citizen.Await(p)
end)
---@param query string
---@param parameters? table
---@return table result
---returns array of matching rows or result data
exports('fetchSync', function(query, parameters)
local p = promise.new()
oxmysql:fetch(query, parameters, function(result)
p:resolve(result)
end, GetInvokingResource())
return Citizen.Await(p)
end)
---@param query string
---@param parameters? table
---@return table result
---returns table containing key value pairs
exports('singleSync', function(query, parameters)
local p = promise.new()
oxmysql:single(query, parameters, function(result)
p:resolve(result)
end, GetInvokingResource())
return Citizen.Await(p)
end)
---@param query string
---@param parameters? table
---@return integer|string
---returns value of the first column of a single row
exports('scalarSync', function(query, parameters)
local p = promise.new()
oxmysql:scalar(query, parameters, function(result)
p:resolve(result)
end, GetInvokingResource())
return Citizen.Await(p)
end)
---@param query string
---@param parameters? table
---@return table result
---returns the last inserted id
exports('insertSync', function(query, parameters)
local p = promise.new()
oxmysql:insert(query, parameters, function(result)
p:resolve(result)
end, GetInvokingResource())
return Citizen.Await(p)
end)
---@param query string
---@param parameters? table
---@return integer result
---returns number of rows updated by the executed query
exports('updateSync', function(query, parameters)
local p = promise.new()
oxmysql:update(query, parameters, function(result)
p:resolve(result)
end, GetInvokingResource())
return Citizen.Await(p)
end)
---@param queries table
---@param parameters? table
---@return boolean result
---returns true when the transaction has succeeded
exports('transactionSync', function(queries, parameters)
local p = promise.new()
oxmysql:transaction(queries, parameters, function(result)
p:resolve(result)
end, GetInvokingResource())
return Citizen.Await(p)
end)
---@param query string
---@param parameters table
---@return any result
---supports SELECT, INSERT, UPDATE, and DELETE
---
---return value is based on the number of results and the type of query used
exports('prepareSync', function(query, parameters)
local p = promise.new()
oxmysql:prepare(query, parameters, function(result)
p:resolve(result)
end, GetInvokingResource())
return Citizen.Await(p)
end)
+4 -4
View File
@@ -1,8 +1,8 @@
{ {
"name": "oxmysql", "name": "oxmysql",
"version": "1.4.0", "version": "1.0.0",
"main": "oxmysql.js", "main": "oxmysql.js",
"description": "FiveM MySQL wrapper using faster mysql2", "description": "node-mysql2 resource for Cfx",
"repository": "[email protected]:overextended/oxmysql.git", "repository": "[email protected]:overextended/oxmysql.git",
"author": "dunak-debug <[email protected]>", "author": "dunak-debug <[email protected]>",
"license": "GPL-3.0-or-later", "license": "GPL-3.0-or-later",
@@ -12,9 +12,9 @@
"postinstall": "patch-package" "postinstall": "patch-package"
}, },
"dependencies": { "dependencies": {
"@citizenfx/server": "^2.0.4376-1", "@citizenfx/server": "^2.0.4793-1",
"connection-string-parser": "^1.0.4", "connection-string-parser": "^1.0.4",
"mysql2": "^2.3.0", "mysql2": "https://github.com/overextended/node-mysql2.git",
"postinstall-postinstall": "^2.1.0" "postinstall-postinstall": "^2.1.0"
}, },
"devDependencies": { "devDependencies": {
+8 -9
View File
@@ -1,5 +1,5 @@
diff --git a/node_modules/named-placeholders/index.js b/node_modules/named-placeholders/index.js diff --git a/node_modules/named-placeholders/index.js b/node_modules/named-placeholders/index.js
index 527d723..f47b591 100644 index 527d723..f63ce28 100644
--- a/node_modules/named-placeholders/index.js --- a/node_modules/named-placeholders/index.js
+++ b/node_modules/named-placeholders/index.js +++ b/node_modules/named-placeholders/index.js
@@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
@@ -7,11 +7,11 @@ index 527d723..f47b591 100644
// License: https://github.com/mscdex/node-mariasql/blob/master/LICENSE // License: https://github.com/mscdex/node-mariasql/blob/master/LICENSE
-const RE_PARAM = /(?:\?)|(?::(\d+|(?:[a-zA-Z][a-zA-Z0-9_]*)))/g, -const RE_PARAM = /(?:\?)|(?::(\d+|(?:[a-zA-Z][a-zA-Z0-9_]*)))/g,
+const RE_PARAM = /(?:\?)|(?:[:,@](\d+|(?:[a-zA-Z][a-zA-Z0-9_]*)))/g, +const RE_PARAM = /(?:\?)|(?:(?<!["'])[:@](\d+|(?:[a-zA-Z][a-zA-Z0-9_]*)))/g,
DQUOTE = 34, DQUOTE = 34,
SQUOTE = 39, SQUOTE = 39,
BSLASH = 92; BSLASH = 92;
@@ -94,15 +94,24 @@ function createCompiler(config) { @@ -94,15 +94,22 @@ function createCompiler(config) {
if (typeof params == 'undefined') if (typeof params == 'undefined')
throw new Error('Named query contains placeholders, but parameters object is undefined'); throw new Error('Named query contains placeholders, but parameters object is undefined');
@@ -21,13 +21,12 @@ index 527d723..f47b591 100644
+ delete params[key]; + delete params[key];
+ } + }
+ } + }
+ +
const tokens = tree[1]; const tokens = tree[1];
for (let i=0; i < tokens.length; ++i) { for (let i=0; i < tokens.length; ++i) {
+ if(params[tokens[i]] === undefined) throw new Error(`Undefined parameter ${tokens[i]}`); - arr.push(params[tokens[i]]);
arr.push(params[tokens[i]]); + arr.push(params[tokens[i]] === undefined ? null : params[tokens[i]]);
} }
+
return [tree[0], arr]; return [tree[0], arr];
} }
@@ -37,7 +36,7 @@ index 527d723..f47b591 100644
return s.slice(0, -1); return s.slice(0, -1);
} }
return s; return s;
@@ -115,7 +124,7 @@ function createCompiler(config) { @@ -115,7 +122,7 @@ function createCompiler(config) {
let unnamed = noTailingSemicolon(tree[0][0]); let unnamed = noTailingSemicolon(tree[0][0]);
for (let i=1; i < tree[0].length; ++i) { for (let i=1; i < tree[0].length; ++i) {
@@ -46,7 +45,7 @@ index 527d723..f47b591 100644
unnamed += config.placeholder; unnamed += config.placeholder;
} }
unnamed += config.placeholder; unnamed += config.placeholder;
@@ -124,7 +133,7 @@ function createCompiler(config) { @@ -124,7 +131,7 @@ function createCompiler(config) {
const last = tree[0][tree[0].length -1]; const last = tree[0][tree[0].length -1];
if (tree[0].length == tree[1].length) { if (tree[0].length == tree[1].length) {
+3 -17
View File
@@ -1,18 +1,4 @@
import { ConnectionStringParser } from 'connection-string-parser'; const slowQueryWarning = GetConvarInt('mysql_slow_query_warning', 150);
const connectionString = GetConvar('mysql_connection_string', '');
if (connectionString === '') throw new Error(`Set up mysql_connection_string in server.cfg`);
const config = new ConnectionStringParser({
scheme: 'mysql',
hosts: [],
}).parse(connectionString);
if (Object.keys(config).length === 0)
throw new Error(`Set up mysql_connection_string in correct format - 'mysql://user:password@host/database'`);
const slowQueryWarning = GetConvarInt('mysql_slow_query_warning', 100);
const debug = GetConvar('mysql_debug', 'false') === 'true'; const debug = GetConvar('mysql_debug', 'false') === 'true';
const isolationLevel = (() => { const isolationLevel = (() => {
@@ -27,9 +13,9 @@ const isolationLevel = (() => {
return 'SET TRANSACTION ISOLATION LEVEL SERIALIZABLE'; return 'SET TRANSACTION ISOLATION LEVEL SERIALIZABLE';
default: default:
return 'SET TRANSACTION ISOLATION LEVEL READ COMMITTED'; return 'SET TRANSACTION ISOLATION LEVEL READ COMMITTED';
}; }
})(); })();
const resourceName = GetCurrentResourceName() || 'oxmysql'; const resourceName = GetCurrentResourceName() || 'oxmysql';
export { config, slowQueryWarning, debug, isolationLevel, resourceName }; export { slowQueryWarning, debug, isolationLevel, resourceName };
+70 -9
View File
@@ -1,17 +1,13 @@
import { pool } from './pool'; import { pool } from './pool';
import { parseParameters } from './parser'; import { parseParameters } from './parser';
import { slowQueryWarning, debug, resourceName } from './config'; import { slowQueryWarning, debug, resourceName } from './config';
import { FormatError } from './errors';
const execute = async (query, parameters, resource) => { const execute = async (query, parameters, resource) => {
ScheduleResourceTick(resourceName);
try { try {
const time = debug ? process.hrtime.bigint() : Date.now();
[query, parameters] = parseParameters(query, parameters); [query, parameters] = parseParameters(query, parameters);
ScheduleResourceTick(resourceName);
const [result] = await pool.query(query, parameters); const [executionTime, rows] = await pool.query(query, parameters);
const executionTime = debug ? Number(process.hrtime.bigint() - time) / 1e6 : Date.now() - time;
if (executionTime >= slowQueryWarning || debug) if (executionTime >= slowQueryWarning || debug)
console.log( console.log(
@@ -19,7 +15,7 @@ const execute = async (query, parameters, resource) => {
${query} ${JSON.stringify(parameters)}^0` ${query} ${JSON.stringify(parameters)}^0`
); );
return result; return rows;
} catch (error) { } catch (error) {
console.log( console.log(
`^1[ERROR] ${resource} was unable to execute a query! `^1[ERROR] ${resource} was unable to execute a query!
@@ -30,4 +26,69 @@ const execute = async (query, parameters, resource) => {
} }
}; };
export { execute }; const queryType = (query) => {
switch (query.replace(/\s.*/, '')) {
case 'SELECT':
return 1;
case 'INSERT':
return 2;
case 'UPDATE':
return 3;
case 'DELETE':
return 3;
default:
return false;
}
};
const preparedStatement = async (query, parameters, resource) => {
try {
if (!Array.isArray(parameters))
throw new FormatError(`Placeholders were defined, but query received no parameters!`, query);
if (typeof query !== 'string') throw new FormatError(`Prepared statements must utilise a single query`);
const type = queryType(query);
if (!type) throw new FormatError(`Prepared statements only accept SELECT, INSERT, UPDATE, and DELETE methods!`);
ScheduleResourceTick(resourceName);
const results = [];
let totalTime = 0;
let queryCount = parameters.length;
for (let i = 0; i < queryCount; i++) {
const [executionTime, rows] = await pool.execute(query, parameters[i]);
totalTime + executionTime;
results[i] = rows && (type === 3 ? rows.affectedRows : type === 2 ? rows.insertId : rows);
}
totalTime = totalTime / queryCount;
if (totalTime >= slowQueryWarning || debug)
console.log(
`^3[${debug ? 'DEBUG' : 'WARNING'}] ${resource} took ${totalTime}ms to execute ${
queryCount > 1 ? queryCount + ' queries' : 'a query'
}!
${query} ${JSON.stringify(parameters)}^0`
);
if (results.length === 1) {
if (type === 1) {
if (results[0][0] && Object.keys(results[0][0]).length === 1) {
return Object.values(results[0][0])[0];
}
return results[0][0];
}
return results[0];
}
return results;
} catch (error) {
console.log(
`^1[ERROR] ${resource} was unable to execute a query!
${error.message}
${error.sql || `${query} ${JSON.stringify(parameters)}`}^0`
);
debug && console.trace(error);
}
};
export { execute, preparedStatement };
+11 -1
View File
@@ -1,5 +1,5 @@
import { pool } from './pool'; import { pool } from './pool';
import { execute } from './execute'; import { execute, preparedStatement } from './execute';
import { transaction } from './transaction'; import { transaction } from './transaction';
import { debug, isolationLevel } from './config'; import { debug, isolationLevel } from './config';
@@ -55,7 +55,17 @@ global.exports('transaction', (queries, parameters, cb, resource = GetInvokingRe
}); });
}); });
global.exports('prepare', (query, parameters, cb, resource = GetInvokingResource()) => {
preparedStatement(query, parameters, resource).then((result) =>
safeCallback(cb || parameters, result, resource, query))
});
if (!GetResourceMetadata(GetCurrentResourceName(), 'server_script', 1)) { if (!GetResourceMetadata(GetCurrentResourceName(), 'server_script', 1)) {
global.exports('prepareSync', async (query, parameters) => {
const result = await preparedStatement(query, parameters, GetInvokingResource());
return result;
});
global.exports('executeSync', async (query, parameters) => { global.exports('executeSync', async (query, parameters) => {
const result = await execute(query, parameters, GetInvokingResource()); const result = await execute(query, parameters, GetInvokingResource());
return result; return result;
+34 -12
View File
@@ -16,7 +16,7 @@ const parseTypes = (field, next) => {
? new Date(field.string() + ' 00:00:00').getTime() ? new Date(field.string() + ' 00:00:00').getTime()
: new Date(field.string()).getTime(); : new Date(field.string()).getTime();
case 'TINY': case 'TINY':
if (field.length === 1) return field.string() === '1'; if (field.length == 1) return field.string() === '1';
else return next(); else return next();
case 'BIT': case 'BIT':
return field.buffer()[0] === 1; return field.buffer()[0] === 1;
@@ -26,27 +26,49 @@ const parseTypes = (field, next) => {
}; };
const parseParameters = (query, parameters) => { const parseParameters = (query, parameters) => {
if (query === undefined) throw new FormatError(`Undefined query passed`); if (typeof query !== 'string')
throw new Error(`Non-string query passed. Make sure you use "oxmysql:execute" instead of "oxmysql.execute" when calling exports.`);
if (typeof parameters === 'function') return [query, []]; if (!parameters || typeof parameters === 'function') return [query, []];
if (query.includes('@') || query.includes(':')) return [query, parameters]; if (query.includes('@') || query.includes(':')) {
const obj = parameters.length !== 0 ? parameters : (() => {
let obj = {};
const [_, paramNames] = convertNamedPlaceholders.parse(query);
if (paramNames) {
for (let i = 0; i < paramNames.length; i++)
obj[paramNames[i]] = null;
}
return obj;
})();
return [query, obj]
};
const queryParams = query.match(/\?(?!\?)/g); const queryParams = query.match(/\?(?!\?)/g);
if (queryParams === null) return [query, []]; if (queryParams === null) return [query, []];
if (parameters === undefined) if (parameters === undefined)
throw new FormatError(`Placeholders was defined in query but no parameters provided!`, query); throw new FormatError(`Placeholders were defined, but query received no parameters!`, query);
if (Array.isArray(parameters)) { if (!Array.isArray(parameters)) {
if (parameters.length !== queryParams.length) let arr = [];
throw new Error(`Undefined array parameter #${parameters.length + 1}`, query, parameters); Object.entries(parameters).forEach((entry) => {
} else { const [key, value] = entry;
queryParams.forEach((_, i) => { arr[key - 1] = value;
if (parameters[`${i + 1}`] === undefined)
throw new FormatError(`Undefined object parameter #${i + 1}`, query, parameters);
}); });
parameters = arr;
}
if (Array.isArray(parameters)) {
if (parameters.length === 0) {
for (let i = 0; i < queryParams.length; i++) parameters[i] = null;
return [query, parameters];
}
const diff = queryParams.length - parameters.length;
if (diff > 0) {
for (let i = 0; i < diff; i++) parameters[queryParams.length + i] = null;
}
} }
return [query, parameters]; return [query, parameters];
+63 -11
View File
@@ -1,14 +1,66 @@
import { createPool } from 'mysql2/promise'; import { createPool } from 'mysql2/promise';
import { config } from './config';
import { parseTypes } from './parser'; import { parseTypes } from './parser';
import { ConnectionStringParser } from 'connection-string-parser';
export const pool = createPool({ const connectionString = GetConvar('mysql_connection_string', '');
host: config.hosts[0].host || 'localhost',
user: config.username || 'root', if (connectionString === '') {
password: config.password || '', throw new Error(`Set up mysql_connection_string in server.cfg`);
database: config.endpoint || 'es_extended', }
charset: 'utf8mb4_unicode_ci',
...config.options, const parseSemiColons = () => {
namedPlaceholders: true, const parts = connectionString.split(';');
typeCast: parseTypes, if (parseTypes.length === 1) {
}); throw new Error(
`Set up mysql_connection_string in correct format - 'username=root;password=password;database=db;host=127.0.0.1'`
);
}
return parts.reduce((connectionInfo, parameter) => {
const [key, value] = parameter.split('=');
connectionInfo[key] = value;
return connectionInfo;
}, {});
};
const createConnection = () => {
if (connectionString.includes('database=')) {
const options = parseSemiColons();
return createPool({
host: options.host || 'localhost',
port: options.port || 3306,
user: options.username || options.user || options.userid || 'root',
password: options.password || options.pass || '',
database: options.endpoint || options.database,
charset: 'utf8mb4_unicode_ci',
connectTimeout: 30000,
...options.options,
namedPlaceholders: true,
typeCast: parseTypes,
});
} else {
const options = new ConnectionStringParser({
scheme: 'mysql',
hosts: [],
}).parse(connectionString);
if (Object.keys(options).length === 0) {
throw new Error(`Set up mysql_connection_string in correct format - 'mysql://user:password@host/database'`);
}
return createPool({
host: options.hosts[0].host || 'localhost',
port: options.hosts[0].port || 3306,
user: options.username || 'root',
password: options.password || '',
database: options.endpoint,
charset: 'utf8mb4_unicode_ci',
connectTimeout: 30000,
...options.options,
namedPlaceholders: true,
typeCast: parseTypes,
});
}
};
export const pool = createConnection();
+5 -3
View File
@@ -3,8 +3,7 @@ const { DefinePlugin, IgnorePlugin } = require("webpack");
const CopyPlugin = require("copy-webpack-plugin"); const CopyPlugin = require("copy-webpack-plugin");
module.exports = { module.exports = {
mode: "development", mode: "production",
devtool: "eval-source-map",
entry: "./src/index.js", entry: "./src/index.js",
resolve: { resolve: {
extensions: [".js"], extensions: [".js"],
@@ -16,12 +15,15 @@ module.exports = {
contextRegExp: /./, contextRegExp: /./,
}), }),
new CopyPlugin({ new CopyPlugin({
patterns: ["fxmanifest.lua", "wrapper.lua", "README.md", "LICENSE.md"], patterns: ["./lua", "./lua", "README.md", "LICENSE.md"],
}), }),
], ],
output: { output: {
filename: "oxmysql.js", filename: "oxmysql.js",
path: path.resolve(__dirname, "dist"), path: path.resolve(__dirname, "dist"),
}, },
optimization: {
minimize: false,
},
target: "node", target: "node",
}; };
-111
View File
@@ -1,111 +0,0 @@
---
-- Execute unprepared query and fetch result
--
-- @param query string
-- @param parameters table
--
-- @return table with result | false
--
exports('executeSync', function(query, parameters)
local p = promise.new()
exports['oxmysql']:execute(query, parameters, function(result)
p:resolve(result)
end, GetInvokingResource())
return Citizen.Await(p)
end)
---
-- Execute query and fetch all result
--
-- @param query string
-- @param parameters table
--
-- @return table with result
--
exports('fetchSync', function(query, parameters)
local p = promise.new()
exports['oxmysql']:fetch(query, parameters, function(result)
p:resolve(result)
end, GetInvokingResource())
return Citizen.Await(p)
end)
---
-- Execute query and fetch first row
--
-- @param query string
-- @param parameters table
--
-- @return table with result row
--
exports('singleSync', function(query, parameters)
local p = promise.new()
exports['oxmysql']:single(query, parameters, function(result)
p:resolve(result)
end, GetInvokingResource())
return Citizen.Await(p)
end)
---
-- Execute query and fetch first column of first row
--
-- @param query string
-- @param parameters table
--
-- @return result
--
exports('scalarSync', function(query, parameters)
local p = promise.new()
exports['oxmysql']:scalar(query, parameters, function(result)
p:resolve(result)
end, GetInvokingResource())
return Citizen.Await(p)
end)
---
-- Insert data and return inserted id
--
-- @param query string
-- @param parameters table
--
-- @return insert data result
--
exports('insertSync', function(query, parameters)
local p = promise.new()
exports['oxmysql']:insert(query, parameters, function(result)
p:resolve(result)
end, GetInvokingResource())
return Citizen.Await(p)
end)
---
-- Update data and return affected rows
--
-- @param query string
-- @param parameters table
--
-- @return number affected rows
--
exports('updateSync', function(query, parameters)
local p = promise.new()
exports['oxmysql']:update(query, parameters, function(result)
p:resolve(result)
end, GetInvokingResource())
return Citizen.Await(p)
end)
---
-- Execute a transaction and return boolean depending on success
--
-- @param queries table
-- @param parameters table
--
-- @return boolean
--
exports('transactionSync', function(queries, parameters)
local p = promise.new()
exports['oxmysql']:transaction(queries, parameters, function(result)
p:resolve(result)
end, GetInvokingResource())
return Citizen.Await(p)
end)
+131 -133
View File
@@ -2,15 +2,15 @@
# yarn lockfile v1 # yarn lockfile v1
"@citizenfx/server@^2.0.4376-1": "@citizenfx/server@^2.0.4793-1":
version "2.0.4376-1" version "2.0.4793-1"
resolved "https://registry.yarnpkg.com/@citizenfx/server/-/server-2.0.4376-1.tgz#6cc9e034bc463a031df40532f278b9f309b7f258" resolved "https://registry.yarnpkg.com/@citizenfx/server/-/server-2.0.4793-1.tgz#9a926bab761d56f43d82fd6671cb5d03c5aadeba"
integrity sha512-xIqpuSwbyga3ysSJ3NfiDeJ6+L3cEHI+vRF45IjMP3U0E4bMZLGrjoSXBbndDJjd97uPdak3HPZD4/AC0HBnIw== integrity sha512-YT6waUNNa08O/+Pm4FbulL/I47NdUEaShTJ0FjM0Q8SmRQ+JwvgUyYSksgA3XXWrQzRmTF1ngSHXBLD17VqtPQ==
"@discoveryjs/json-ext@^0.5.0": "@discoveryjs/json-ext@^0.5.0":
version "0.5.3" version "0.5.5"
resolved "https://registry.yarnpkg.com/@discoveryjs/json-ext/-/json-ext-0.5.3.tgz#90420f9f9c6d3987f176a19a7d8e764271a2f55d" resolved "https://registry.yarnpkg.com/@discoveryjs/json-ext/-/json-ext-0.5.5.tgz#9283c9ce5b289a3c4f61c12757469e59377f81f3"
integrity sha512-Fxt+AfXgjMoin2maPIYzFZnQjAXjAL0PHscM5pRTtatFqB+vZxAM9tLp2Optnuw3QOQC40jTNeGYFOMvyf7v9g== integrity sha512-6nFkfkmSeV/rqSaS4oWHgmpnYw194f6hmWF5is6b0J1naJZoiD0NTc9AiUwPHvWsowkjuHErCZT1wa0jg+BLIA==
"@nodelib/[email protected]": "@nodelib/[email protected]":
version "2.1.5" version "2.1.5"
@@ -42,9 +42,9 @@
"@types/estree" "*" "@types/estree" "*"
"@types/eslint@*": "@types/eslint@*":
version "7.28.0" version "7.28.2"
resolved "https://registry.yarnpkg.com/@types/eslint/-/eslint-7.28.0.tgz#7e41f2481d301c68e14f483fe10b017753ce8d5a" resolved "https://registry.yarnpkg.com/@types/eslint/-/eslint-7.28.2.tgz#0ff2947cdd305897c52d5372294e8c76f351db68"
integrity sha512-07XlgzX0YJUn4iG1ocY4IX9DzKSmMGUs6ESKlxWhZRaa0fatIWaHWUVapcuGa8r5HFnTqzj+4OCjd5f7EZ/i/A== integrity sha512-KubbADPkfoU75KgKeKLsFHXnU4ipH7wYg0TRT33NK3N3yiu7jlFAAoygIWBV+KbuHx/G+AvuGX6DllnK35gfJA==
dependencies: dependencies:
"@types/estree" "*" "@types/estree" "*"
"@types/json-schema" "*" "@types/json-schema" "*"
@@ -60,9 +60,9 @@
integrity sha512-qcUXuemtEu+E5wZSJHNxUXeCZhAfXKQ41D+duX+VYPde7xyEVZci+/oXKJL13tnRs9lR2pr4fod59GT6/X1/yQ== integrity sha512-qcUXuemtEu+E5wZSJHNxUXeCZhAfXKQ41D+duX+VYPde7xyEVZci+/oXKJL13tnRs9lR2pr4fod59GT6/X1/yQ==
"@types/node@*": "@types/node@*":
version "16.9.1" version "16.11.2"
resolved "https://registry.yarnpkg.com/@types/node/-/node-16.9.1.tgz#0611b37db4246c937feef529ddcc018cf8e35708" resolved "https://registry.yarnpkg.com/@types/node/-/node-16.11.2.tgz#31c249c136c3f9b35d4b60fb8e50e01a1f0cc9a5"
integrity sha512-QpLcX9ZSsq3YYUUnD3nFDY8H7wctAhQj/TFKL8Ya8v5fMm3CFXxo8zStsLAl780ltoYoo1WvKUVGBQK+1ifr7g== integrity sha512-w34LtBB0OkDTs19FQHXy4Ig/TOXI4zqvXS2Kk1PAsRKZ0I+nik7LlMYxckW0tSNGtvWmzB+mrCTbuEjuB9DVsw==
"@webassemblyjs/[email protected]": "@webassemblyjs/[email protected]":
version "1.11.1" version "1.11.1"
@@ -185,22 +185,22 @@
"@webassemblyjs/ast" "1.11.1" "@webassemblyjs/ast" "1.11.1"
"@xtuc/long" "4.2.2" "@xtuc/long" "4.2.2"
"@webpack-cli/configtest@^1.0.4": "@webpack-cli/configtest@^1.1.0":
version "1.0.4" version "1.1.0"
resolved "https://registry.yarnpkg.com/@webpack-cli/configtest/-/configtest-1.0.4.tgz#f03ce6311c0883a83d04569e2c03c6238316d2aa" resolved "https://registry.yarnpkg.com/@webpack-cli/configtest/-/configtest-1.1.0.tgz#8342bef0badfb7dfd3b576f2574ab80c725be043"
integrity sha512-cs3XLy+UcxiP6bj0A6u7MLLuwdXJ1c3Dtc0RkKg+wiI1g/Ti1om8+/2hc2A2B60NbBNAbMgyBMHvyymWm/j4wQ== integrity sha512-ttOkEkoalEHa7RaFYpM0ErK1xc4twg3Am9hfHhL7MVqlHebnkYd2wuI/ZqTDj0cVzZho6PdinY0phFZV3O0Mzg==
"@webpack-cli/info@^1.3.0": "@webpack-cli/info@^1.4.0":
version "1.3.0" version "1.4.0"
resolved "https://registry.yarnpkg.com/@webpack-cli/info/-/info-1.3.0.tgz#9d78a31101a960997a4acd41ffd9b9300627fe2b" resolved "https://registry.yarnpkg.com/@webpack-cli/info/-/info-1.4.0.tgz#b9179c3227ab09cbbb149aa733475fcf99430223"
integrity sha512-ASiVB3t9LOKHs5DyVUcxpraBXDOKubYu/ihHhU+t1UPpxsivg6Od2E2qU4gJCekfEddzRBzHhzA/Acyw/mlK/w== integrity sha512-F6b+Man0rwE4n0409FyAJHStYA5OIZERxmnUfLVwv0mc0V1wLad3V7jqRlMkgKBeAq07jUvglacNaa6g9lOpuw==
dependencies: dependencies:
envinfo "^7.7.3" envinfo "^7.7.3"
"@webpack-cli/serve@^1.5.2": "@webpack-cli/serve@^1.6.0":
version "1.5.2" version "1.6.0"
resolved "https://registry.yarnpkg.com/@webpack-cli/serve/-/serve-1.5.2.tgz#ea584b637ff63c5a477f6f21604b5a205b72c9ec" resolved "https://registry.yarnpkg.com/@webpack-cli/serve/-/serve-1.6.0.tgz#2c275aa05c895eccebbfc34cfb223c6e8bd591a2"
integrity sha512-vgJ5OLWadI8aKjDlOH3rb+dYyPd2GTZuQC/Tihjct6F9GpXGZINo3Y/IVuZVTM1eDQB+/AOsjPUWH/WySDaXvw== integrity sha512-ZkVeqEmRpBV2GHvjjUZqEai2PpUbuq8Bqd//vEYsp63J8WyexI8ppCqVS3Zs0QADf6aWuPdU+0XsPI647PVlQA==
"@xtuc/ieee754@^1.2.0": "@xtuc/ieee754@^1.2.0":
version "1.2.0" version "1.2.0"
@@ -218,9 +218,9 @@
integrity sha512-GpSwvyXOcOOlV70vbnzjj4fW5xW/FdUF6nQEt1ENy7m4ZCczi1+/buVUPAqmGfqznsORNFzUMjctTIp8a9tuCQ== integrity sha512-GpSwvyXOcOOlV70vbnzjj4fW5xW/FdUF6nQEt1ENy7m4ZCczi1+/buVUPAqmGfqznsORNFzUMjctTIp8a9tuCQ==
acorn-import-assertions@^1.7.6: acorn-import-assertions@^1.7.6:
version "1.7.6" version "1.8.0"
resolved "https://registry.yarnpkg.com/acorn-import-assertions/-/acorn-import-assertions-1.7.6.tgz#580e3ffcae6770eebeec76c3b9723201e9d01f78" resolved "https://registry.yarnpkg.com/acorn-import-assertions/-/acorn-import-assertions-1.8.0.tgz#ba2b5939ce62c238db6d93d81c9b111b29b855e9"
integrity sha512-FlVvVFA1TX6l3lp8VjDnYYq7R1nyW6x3svAt4nDgrWQ9SBaSh9CnbwgSUTasgfNfOG5HlM1ehugCvM+hjo56LA== integrity sha512-m7VZ3jwz4eK6A4Vtt8Ew1/mNbP24u0FhdyfA7fSvnJR6LMdfOYnmuIrrJAgrYfYJ10F/otaHTtrtrtmHdMNzEw==
acorn@^8.4.1: acorn@^8.4.1:
version "8.5.0" version "8.5.0"
@@ -275,25 +275,25 @@ braces@^3.0.1:
fill-range "^7.0.1" fill-range "^7.0.1"
browserslist@^4.14.5: browserslist@^4.14.5:
version "4.17.0" version "4.17.4"
resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.17.0.tgz#1fcd81ec75b41d6d4994fb0831b92ac18c01649c" resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.17.4.tgz#72e2508af2a403aec0a49847ef31bd823c57ead4"
integrity sha512-g2BJ2a0nEYvEFQC208q8mVAhfNwpZ5Mu8BwgtCdZKO3qx98HChmeg448fPdUzld8aFmfLgVh7yymqV+q1lJZ5g== integrity sha512-Zg7RpbZpIJRW3am9Lyckue7PLytvVxxhJj1CaJVlCWENsGEAOlnlt8X0ZxGRPp7Bt9o8tIRM5SEXy4BCPMJjLQ==
dependencies: dependencies:
caniuse-lite "^1.0.30001254" caniuse-lite "^1.0.30001265"
colorette "^1.3.0" electron-to-chromium "^1.3.867"
electron-to-chromium "^1.3.830"
escalade "^3.1.1" escalade "^3.1.1"
node-releases "^1.1.75" node-releases "^2.0.0"
picocolors "^1.0.0"
buffer-from@^1.0.0: buffer-from@^1.0.0:
version "1.1.2" version "1.1.2"
resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.2.tgz#2b146a6fd72e80b4f55d255f35ed59a3a9a41bd5" resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.2.tgz#2b146a6fd72e80b4f55d255f35ed59a3a9a41bd5"
integrity sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ== integrity sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==
caniuse-lite@^1.0.30001254: caniuse-lite@^1.0.30001265:
version "1.0.30001256" version "1.0.30001270"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001256.tgz#182410b5f024e0ab99c72ec648f234a9986bd548" resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001270.tgz#cc9c37a4ec5c1a8d616fc7bace902bb053b0cdea"
integrity sha512-QirrvMLmB4txNnxiaG/xbm6FSzv9LqOZ3Jp9VtCYb3oPIfCHpr/oGn38pFq0udwlkctvXQgPthaXqJ76DaYGnA== integrity sha512-TcIC7AyNWXhcOmv2KftOl1ShFAaHQYcB/EPL/hEyMrcS7ZX0/DvV1aoy6BzV0+16wTpoAyTMGDNAJfSqS/rz7A==
chalk@^2.4.2: chalk@^2.4.2:
version "2.4.2" version "2.4.2"
@@ -335,10 +335,10 @@ [email protected]:
resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25"
integrity sha1-p9BVi9icQveV3UIyj3QIMcpTvCU= integrity sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=
colorette@^1.2.1, colorette@^1.3.0: colorette@^2.0.14:
version "1.4.0" version "2.0.16"
resolved "https://registry.yarnpkg.com/colorette/-/colorette-1.4.0.tgz#5190fbb87276259a86ad700bff2c6d6faa3fca40" resolved "https://registry.yarnpkg.com/colorette/-/colorette-2.0.16.tgz#713b9af84fdb000139f04546bd4a93f62a5085da"
integrity sha512-Y2oEozpomLn7Q3HFP7dpww7AtMJplbM9lGZP6RDfHqmbeRjiwRg4n6VM6j4KLmRke85uWEI7JqF17f3pqdRA0g== integrity sha512-hUewv7oMjCp+wkBv5Rm0v87eJhq4woh5rSR+42YSQJKecCqgIqNkZ6lAlQms/BwHPJA5NKMRlpxPRv0n8HQW6g==
commander@^2.20.0: commander@^2.20.0:
version "2.20.3" version "2.20.3"
@@ -395,10 +395,10 @@ cross-spawn@^7.0.3:
shebang-command "^2.0.0" shebang-command "^2.0.0"
which "^2.0.1" which "^2.0.1"
denque@^1.4.1: denque@^2.0.1:
version "1.5.0" version "2.0.1"
resolved "https://registry.yarnpkg.com/denque/-/denque-1.5.0.tgz#773de0686ff2d8ec2ff92914316a47b73b1c73de" resolved "https://registry.yarnpkg.com/denque/-/denque-2.0.1.tgz#bcef4c1b80dc32efe97515744f21a4229ab8934a"
integrity sha512-CYiCSgIF1p6EUByQPlGkKnP1M9g0ZV3qMIrqMqZqdwazygIA/YP2vrbcyl1h/WppKJTdl1F85cXIle+394iDAQ== integrity sha512-tfiWc6BQLXNLpNiR5iGd0Ocu3P3VpxfzFiqubLgMfhfOw9WyvgJBd46CClNn9k3qfbjvT//0cf7AlYRX/OslMQ==
dir-glob@^3.0.1: dir-glob@^3.0.1:
version "3.0.1" version "3.0.1"
@@ -407,15 +407,15 @@ dir-glob@^3.0.1:
dependencies: dependencies:
path-type "^4.0.0" path-type "^4.0.0"
electron-to-chromium@^1.3.830: electron-to-chromium@^1.3.867:
version "1.3.836" version "1.3.877"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.836.tgz#823cb9c98f28c64c673920f1c90ea3826596eaf9" resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.877.tgz#956870eea7c9d8cf43cc54ea40687fee4dc0c12a"
integrity sha512-Ney3pHOJBWkG/AqYjrW0hr2AUCsao+2uvq9HUlRP8OlpSdk/zOHOUJP7eu0icDvePC9DlgffuelP4TnOJmMRUg== integrity sha512-fT5mW5Giw5iyVukeHb2XvB4joBKvzHtl8Vs3QzE7APATpFMt/T7RWyUcIKSZzYkKQgpMbu+vDBTCHfQZvh8klA==
enhanced-resolve@^5.8.0: enhanced-resolve@^5.8.3:
version "5.8.2" version "5.8.3"
resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-5.8.2.tgz#15ddc779345cbb73e97c611cd00c01c1e7bf4d8b" resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-5.8.3.tgz#6d552d465cce0423f5b3d718511ea53826a7b2f0"
integrity sha512-F27oB3WuHDzvR2DOGNTaYy0D5o0cnrv8TeI482VM4kYgQd/FT9lUQwuNsJ0oOHtBUq7eiW5ytqzp7nBFknL+GA== integrity sha512-EGAbGvH7j7Xt2nc0E7D99La1OiEs8LnyimkRgwExpUMScN6O+3x9tIWs7PLQZVNx4YD+00skHXPXi1yQHpAmZA==
dependencies: dependencies:
graceful-fs "^4.2.4" graceful-fs "^4.2.4"
tapable "^2.2.0" tapable "^2.2.0"
@@ -425,10 +425,10 @@ envinfo@^7.7.3:
resolved "https://registry.yarnpkg.com/envinfo/-/envinfo-7.8.1.tgz#06377e3e5f4d379fea7ac592d5ad8927e0c4d475" resolved "https://registry.yarnpkg.com/envinfo/-/envinfo-7.8.1.tgz#06377e3e5f4d379fea7ac592d5ad8927e0c4d475"
integrity sha512-/o+BXHmB7ocbHEAs6F2EnG0ogybVVUdkRunTT2glZU9XAaGmhqskrvKwqXuDfNjEO0LZKWdejEEpnq8aM0tOaw== integrity sha512-/o+BXHmB7ocbHEAs6F2EnG0ogybVVUdkRunTT2glZU9XAaGmhqskrvKwqXuDfNjEO0LZKWdejEEpnq8aM0tOaw==
es-module-lexer@^0.7.1: es-module-lexer@^0.9.0:
version "0.7.1" version "0.9.3"
resolved "https://registry.yarnpkg.com/es-module-lexer/-/es-module-lexer-0.7.1.tgz#c2c8e0f46f2df06274cdaf0dd3f3b33e0a0b267d" resolved "https://registry.yarnpkg.com/es-module-lexer/-/es-module-lexer-0.9.3.tgz#6f13db00cc38417137daf74366f535c8eb438f19"
integrity sha512-MgtWFl5No+4S3TmhDmCz2ObFGm6lEpTnzbQi+Dd+pw4mlTIZTmM2iAs5gRlmx5zS9luzobCSBSI90JM/1/JgOw== integrity sha512-1HQ2M2sPtxwnvOvT1ZClHyQDiggdNjURWpY2we6aMKCQiUVxTmVs2UYPLIrD84sS+kMdUwfBSylbJPwNnBrnHQ==
escalade@^3.1.1: escalade@^3.1.1:
version "3.1.1" version "3.1.1"
@@ -579,11 +579,11 @@ glob-parent@^5.1.2:
is-glob "^4.0.1" is-glob "^4.0.1"
glob-parent@^6.0.0: glob-parent@^6.0.0:
version "6.0.1" version "6.0.2"
resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-6.0.1.tgz#42054f685eb6a44e7a7d189a96efa40a54971aa7" resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-6.0.2.tgz#6d237d99083950c79290f24c7642a3de9a28f9e3"
integrity sha512-kEVjS71mQazDBHKcsq4E9u/vUzaLcw1A8EtUeydawvIWQCJM0qQ08G1H7/XTjFUulla6XQiDOG6MXSaG0HDKog== integrity sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==
dependencies: dependencies:
is-glob "^4.0.1" is-glob "^4.0.3"
glob-to-regexp@^0.4.1: glob-to-regexp@^0.4.1:
version "0.4.1" version "0.4.1"
@@ -591,9 +591,9 @@ glob-to-regexp@^0.4.1:
integrity sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw== integrity sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==
glob@^7.1.3: glob@^7.1.3:
version "7.1.7" version "7.2.0"
resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.7.tgz#3b193e9233f01d42d0b3f78294bbeeb418f94a90" resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.0.tgz#d15535af7732e02e948f4c41628bd910293f6023"
integrity sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ== integrity sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==
dependencies: dependencies:
fs.realpath "^1.0.0" fs.realpath "^1.0.0"
inflight "^1.0.4" inflight "^1.0.4"
@@ -641,7 +641,7 @@ human-signals@^2.1.0:
resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-2.1.0.tgz#dc91fcba42e4d06e4abaed33b3e7a3c02f514ea0" resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-2.1.0.tgz#dc91fcba42e4d06e4abaed33b3e7a3c02f514ea0"
integrity sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw== integrity sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==
iconv-lite@^0.6.2: iconv-lite@^0.6.3:
version "0.6.3" version "0.6.3"
resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.6.3.tgz#a52f80bf38da1952eb5c681790719871a1a72501" resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.6.3.tgz#a52f80bf38da1952eb5c681790719871a1a72501"
integrity sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw== integrity sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==
@@ -654,9 +654,9 @@ ignore@^5.1.4:
integrity sha512-BMpfD7PpiETpBl/A6S498BaIJ6Y/ABT93ETbby2fP00v4EbvPBXWEoaR1UBPKs3iR53pJY7EtZk5KACI57i1Uw== integrity sha512-BMpfD7PpiETpBl/A6S498BaIJ6Y/ABT93ETbby2fP00v4EbvPBXWEoaR1UBPKs3iR53pJY7EtZk5KACI57i1Uw==
import-local@^3.0.2: import-local@^3.0.2:
version "3.0.2" version "3.0.3"
resolved "https://registry.yarnpkg.com/import-local/-/import-local-3.0.2.tgz#a8cfd0431d1de4a2199703d003e3e62364fa6db6" resolved "https://registry.yarnpkg.com/import-local/-/import-local-3.0.3.tgz#4d51c2c495ca9393da259ec66b62e022920211e0"
integrity sha512-vjL3+w0oulAVZ0hBHnxa/Nm5TAurf9YLQJDhqRZyqb+VKGOB6LU8t9H1Nr5CIo16vh9XfJTOoHwU0B71S557gA== integrity sha512-bE9iaUY3CXH8Cwfan/abDKAxe1KGT9kyGsBPqf6DMK/z0a2OzAsrukeYNgIH6cH5Xr452jb1TUL8rSfCLjZ9uA==
dependencies: dependencies:
pkg-dir "^4.2.0" pkg-dir "^4.2.0"
resolve-cwd "^3.0.0" resolve-cwd "^3.0.0"
@@ -687,9 +687,9 @@ is-ci@^2.0.0:
ci-info "^2.0.0" ci-info "^2.0.0"
is-core-module@^2.2.0: is-core-module@^2.2.0:
version "2.6.0" version "2.8.0"
resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.6.0.tgz#d7553b2526fe59b92ba3e40c8df757ec8a709e19" resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.8.0.tgz#0321336c3d0925e497fd97f5d95cb114a5ccd548"
integrity sha512-wShG8vs60jKfPWpF2KZRaAtvt3a20OAn7+IJ6hLPECpSABLcKtFKTTI4ZtH5QcBruBHlq+WsdHWyz0BCZW7svQ== integrity sha512-vd15qHsaqrRL7dtH6QNuy0ndJmRDrS9HAM1CAiSifNUFv4x1a0CCVsj18hJ1mShxIG6T2i1sO78MkP56r0nYRw==
dependencies: dependencies:
has "^1.0.3" has "^1.0.3"
@@ -703,10 +703,10 @@ is-extglob@^2.1.1:
resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2" resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2"
integrity sha1-qIwCU1eR8C7TfHahueqXc8gz+MI= integrity sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=
is-glob@^4.0.1: is-glob@^4.0.1, is-glob@^4.0.3:
version "4.0.1" version "4.0.3"
resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.1.tgz#7567dbe9f2f5e2467bc77ab83c4a29482407a5dc" resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.3.tgz#64f61e42cbbb2eec2071a9dac0b28ba1e65d5084"
integrity sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg== integrity sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==
dependencies: dependencies:
is-extglob "^2.1.1" is-extglob "^2.1.1"
@@ -750,9 +750,9 @@ isobject@^3.0.1:
integrity sha1-TkMekrEalzFjaqH5yNHMvP2reN8= integrity sha1-TkMekrEalzFjaqH5yNHMvP2reN8=
jest-worker@^27.0.6: jest-worker@^27.0.6:
version "27.1.1" version "27.3.1"
resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-27.1.1.tgz#eb5f05c4657fdcb702c36c48b20d785bd4599378" resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-27.3.1.tgz#0def7feae5b8042be38479799aeb7b5facac24b2"
integrity sha512-XJKCL7tu+362IUYTWvw8+3S75U7qMiYiRU6u5yqscB48bTvzwN6i8L/7wVTXiFLwkRsxARNM7TISnTvcgv9hxA== integrity sha512-ks3WCzsiZaOPJl/oMsDjaf0TRiSv7ctNgs0FqRr2nARsovz6AWWy4oLElwcquGSz692DzgZQrCLScPNs5YlC4g==
dependencies: dependencies:
"@types/node" "*" "@types/node" "*"
merge-stream "^2.0.0" merge-stream "^2.0.0"
@@ -837,17 +837,17 @@ micromatch@^4.0.2, micromatch@^4.0.4:
braces "^3.0.1" braces "^3.0.1"
picomatch "^2.2.3" picomatch "^2.2.3"
mime-db@1.49.0: mime-db@1.50.0:
version "1.49.0" version "1.50.0"
resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.49.0.tgz#f3dfde60c99e9cf3bc9701d687778f537001cbed" resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.50.0.tgz#abd4ac94e98d3c0e185016c67ab45d5fde40c11f"
integrity sha512-CIc8j9URtOVApSFCQIF+VBkX1RwXp/oMMOrqdyXSBXq5RWNEsRfyj1kiRnQgmNXmHxPoFIxOroKA3zcU9P+nAA== integrity sha512-9tMZCDlYHqeERXEHO9f/hKfNXhre5dK2eE/krIvUjZbS2KPcqGDfNShIWS1uW9XOTKQKqK6qbeOci18rbfW77A==
mime-types@^2.1.27: mime-types@^2.1.27:
version "2.1.32" version "2.1.33"
resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.32.tgz#1d00e89e7de7fe02008db61001d9e02852670fd5" resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.33.tgz#1fa12a904472fafd068e48d9e8401f74d3f70edb"
integrity sha512-hJGaVS4G4c9TSMYh2n6SQAGrC4RnfU+daP8G7cSCmaqNjiOoUY0VHCMS42pxnQmVF1GWwFhbHWn3RIxCqTmZ9A== integrity sha512-plLElXp7pRDd0bNZHw+nMd52vRYjLwQjygaNg7ddJ2uJtTlmnTCjWuPKxVu6//AdaRuME84SvLW91sIkBqGT0g==
dependencies: dependencies:
mime-db "1.49.0" mime-db "1.50.0"
mimic-fn@^2.1.0: mimic-fn@^2.1.0:
version "2.1.0" version "2.1.0"
@@ -866,14 +866,13 @@ minimist@^1.2.0:
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.5.tgz#67d66014b66a6a8aaa0c083c5fd58df4e4e97602" resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.5.tgz#67d66014b66a6a8aaa0c083c5fd58df4e4e97602"
integrity sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw== integrity sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==
mysql2@^2.3.0: "mysql2@https://github.com/overextended/node-mysql2.git":
version "2.3.0" version "2.3.2"
resolved "https://registry.yarnpkg.com/mysql2/-/mysql2-2.3.0.tgz#600f5cc27e397dfb77b59eac93666434f88e8079" resolved "https://github.com/overextended/node-mysql2.git#0621bdc95f3bc6db1e5cd06efd52663ea9410c9a"
integrity sha512-0t5Ivps5Tdy5YHk5NdKwQhe/4Qyn2pload+S+UooDBvsqngtzujG1BaTWBihQLfeKO3t3122/GtusBtmHEHqww==
dependencies: dependencies:
denque "^1.4.1" denque "^2.0.1"
generate-function "^2.3.1" generate-function "^2.3.1"
iconv-lite "^0.6.2" iconv-lite "^0.6.3"
long "^4.0.0" long "^4.0.0"
lru-cache "^6.0.0" lru-cache "^6.0.0"
named-placeholders "^1.1.2" named-placeholders "^1.1.2"
@@ -897,10 +896,10 @@ nice-try@^1.0.4:
resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.5.tgz#a3378a7696ce7d223e88fc9b764bd7ef1089e366" resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.5.tgz#a3378a7696ce7d223e88fc9b764bd7ef1089e366"
integrity sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ== integrity sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==
node-releases@^1.1.75: node-releases@^2.0.0:
version "1.1.75" version "2.0.1"
resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-1.1.75.tgz#6dd8c876b9897a1b8e5a02de26afa79bb54ebbfe" resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.1.tgz#3d1d395f204f1f2f29a54358b9fb678765ad2fc5"
integrity sha512-Qe5OUajvqrqDSy6wrWFmMwfJ0jVgwiw4T3KqmbTcZ62qW0gQkheXYhcFM1+lOVcGUoRxcEcfyvFMAnDgaF1VWw== integrity sha512-CqyzN6z7Q6aMeF/ktcMVTzhAHCEpf8SOarwpzpf8pNBY2k5/oM34UHldUwp8VKI7uxct2HxSRdJjBaZeESzcxA==
normalize-path@^3.0.0: normalize-path@^3.0.0:
version "3.0.0" version "3.0.0"
@@ -1016,6 +1015,11 @@ path-type@^4.0.0:
resolved "https://registry.yarnpkg.com/path-type/-/path-type-4.0.0.tgz#84ed01c0a7ba380afe09d90a8c180dcd9d03043b" resolved "https://registry.yarnpkg.com/path-type/-/path-type-4.0.0.tgz#84ed01c0a7ba380afe09d90a8c180dcd9d03043b"
integrity sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw== integrity sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==
picocolors@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.0.tgz#cb5bdc74ff3f51892236eaf79d68bc44564ab81c"
integrity sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==
picomatch@^2.2.3: picomatch@^2.2.3:
version "2.3.0" version "2.3.0"
resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.0.tgz#f1f061de8f6a4bf022892e2d128234fb98302972" resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.0.tgz#f1f061de8f6a4bf022892e2d128234fb98302972"
@@ -1169,9 +1173,9 @@ shebang-regex@^3.0.0:
integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==
signal-exit@^3.0.3: signal-exit@^3.0.3:
version "3.0.3" version "3.0.5"
resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.3.tgz#a1410c2edd8f077b08b4e253c8eacfcaf057461c" resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.5.tgz#9e3e8cc0c75a99472b44321033a7702e7738252f"
integrity sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA== integrity sha512-KWcOiKeQj6ZyXx7zq4YxSMgHRlod4czeBQZrPb8OKcohcqAXShm7E20kEMle9WBt26hFcAf0qLOcp5zmY7kOqQ==
slash@^2.0.0: slash@^2.0.0:
version "2.0.0" version "2.0.0"
@@ -1183,7 +1187,7 @@ slash@^3.0.0:
resolved "https://registry.yarnpkg.com/slash/-/slash-3.0.0.tgz#6539be870c165adbd5240220dbe361f1bc4d4634" resolved "https://registry.yarnpkg.com/slash/-/slash-3.0.0.tgz#6539be870c165adbd5240220dbe361f1bc4d4634"
integrity sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q== integrity sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==
source-map-support@~0.5.19: source-map-support@~0.5.20:
version "0.5.20" version "0.5.20"
resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.20.tgz#12166089f8f5e5e8c56926b377633392dd2cb6c9" resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.20.tgz#12166089f8f5e5e8c56926b377633392dd2cb6c9"
integrity sha512-n1lZZ8Ve4ksRqizaBQgxXDgKwttHDhyfQjA6YZZn8+AroHbsIz+JjwxQDxbp+7y5OYCI8t1Yk7etjD9CRd2hIw== integrity sha512-n1lZZ8Ve4ksRqizaBQgxXDgKwttHDhyfQjA6YZZn8+AroHbsIz+JjwxQDxbp+7y5OYCI8t1Yk7etjD9CRd2hIw==
@@ -1226,9 +1230,9 @@ supports-color@^8.0.0:
has-flag "^4.0.0" has-flag "^4.0.0"
tapable@^2.1.1, tapable@^2.2.0: tapable@^2.1.1, tapable@^2.2.0:
version "2.2.0" version "2.2.1"
resolved "https://registry.yarnpkg.com/tapable/-/tapable-2.2.0.tgz#5c373d281d9c672848213d0e037d1c4165ab426b" resolved "https://registry.yarnpkg.com/tapable/-/tapable-2.2.1.tgz#1967a73ef4060a82f12ab96af86d52fdb76eeca0"
integrity sha512-FBk4IesMV1rBxX2tfiK8RAmogtWn53puLOQlvO8XuwlgxcYbP4mVPS9Ph4aeamSyyVjOl24aYWAuc8U5kCVwMw== integrity sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==
terser-webpack-plugin@^5.1.3: terser-webpack-plugin@^5.1.3:
version "5.2.4" version "5.2.4"
@@ -1243,13 +1247,13 @@ terser-webpack-plugin@^5.1.3:
terser "^5.7.2" terser "^5.7.2"
terser@^5.7.2: terser@^5.7.2:
version "5.7.2" version "5.9.0"
resolved "https://registry.yarnpkg.com/terser/-/terser-5.7.2.tgz#d4d95ed4f8bf735cb933e802f2a1829abf545e3f" resolved "https://registry.yarnpkg.com/terser/-/terser-5.9.0.tgz#47d6e629a522963240f2b55fcaa3c99083d2c351"
integrity sha512-0Omye+RD4X7X69O0eql3lC4Heh/5iLj3ggxR/B5ketZLOtLiOqukUgjw3q4PDnNQbsrkKr3UMypqStQG3XKRvw== integrity sha512-h5hxa23sCdpzcye/7b8YqbE5OwKca/ni0RQz1uRX3tGh8haaGHqcuSqbGRybuAKNdntZ0mDgFNXPJ48xQ2RXKQ==
dependencies: dependencies:
commander "^2.20.0" commander "^2.20.0"
source-map "~0.7.2" source-map "~0.7.2"
source-map-support "~0.5.19" source-map-support "~0.5.20"
tmp@^0.0.33: tmp@^0.0.33:
version "0.0.33" version "0.0.33"
@@ -1271,9 +1275,9 @@ tslib@^2.0.0:
integrity sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw== integrity sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==
typescript@^4.4.3: typescript@^4.4.3:
version "4.4.3" version "4.4.4"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.4.3.tgz#bdc5407caa2b109efd4f82fe130656f977a29324" resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.4.4.tgz#2cd01a1a1f160704d3101fd5a58ff0f9fcb8030c"
integrity sha512-4xfscpisVgqqDfPaJo5vkd+Qd/ItkoagnHpufr+i2QCHBsNYp+G7UAoyFl8aPtx879u38wPV65rZ8qbGZijalA== integrity sha512-DqGhF5IKoBl8WNf8C1gu8q0xZSInh9j1kJJMqT3a94w1JzVaBU4EXOSMrz9yDqMT0xt3selp83fuFMQ0uzv6qA==
universalify@^0.1.0: universalify@^0.1.0:
version "0.1.2" version "0.1.2"
@@ -1287,11 +1291,6 @@ uri-js@^4.2.2:
dependencies: dependencies:
punycode "^2.1.0" punycode "^2.1.0"
v8-compile-cache@^2.2.0:
version "2.3.0"
resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz#2de19618c66dc247dcfb6f99338035d8245a2cee"
integrity sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA==
watchpack@^2.2.0: watchpack@^2.2.0:
version "2.2.0" version "2.2.0"
resolved "https://registry.yarnpkg.com/watchpack/-/watchpack-2.2.0.tgz#47d78f5415fe550ecd740f99fe2882323a58b1ce" resolved "https://registry.yarnpkg.com/watchpack/-/watchpack-2.2.0.tgz#47d78f5415fe550ecd740f99fe2882323a58b1ce"
@@ -1301,22 +1300,21 @@ watchpack@^2.2.0:
graceful-fs "^4.1.2" graceful-fs "^4.1.2"
webpack-cli@^4.8.0: webpack-cli@^4.8.0:
version "4.8.0" version "4.9.1"
resolved "https://registry.yarnpkg.com/webpack-cli/-/webpack-cli-4.8.0.tgz#5fc3c8b9401d3c8a43e2afceacfa8261962338d1" resolved "https://registry.yarnpkg.com/webpack-cli/-/webpack-cli-4.9.1.tgz#b64be825e2d1b130f285c314caa3b1ba9a4632b3"
integrity sha512-+iBSWsX16uVna5aAYN6/wjhJy1q/GKk4KjKvfg90/6hykCTSgozbfz5iRgDTSJt/LgSbYxdBX3KBHeobIs+ZEw== integrity sha512-JYRFVuyFpzDxMDB+v/nanUdQYcZtqFPGzmlW4s+UkPMFhSpfRNmf1z4AwYcHJVdvEFAM7FFCQdNTpsBYhDLusQ==
dependencies: dependencies:
"@discoveryjs/json-ext" "^0.5.0" "@discoveryjs/json-ext" "^0.5.0"
"@webpack-cli/configtest" "^1.0.4" "@webpack-cli/configtest" "^1.1.0"
"@webpack-cli/info" "^1.3.0" "@webpack-cli/info" "^1.4.0"
"@webpack-cli/serve" "^1.5.2" "@webpack-cli/serve" "^1.6.0"
colorette "^1.2.1" colorette "^2.0.14"
commander "^7.0.0" commander "^7.0.0"
execa "^5.0.0" execa "^5.0.0"
fastest-levenshtein "^1.0.12" fastest-levenshtein "^1.0.12"
import-local "^3.0.2" import-local "^3.0.2"
interpret "^2.2.0" interpret "^2.2.0"
rechoir "^0.7.0" rechoir "^0.7.0"
v8-compile-cache "^2.2.0"
webpack-merge "^5.7.3" webpack-merge "^5.7.3"
webpack-merge@^5.7.3: webpack-merge@^5.7.3:
@@ -1328,14 +1326,14 @@ webpack-merge@^5.7.3:
wildcard "^2.0.0" wildcard "^2.0.0"
webpack-sources@^3.2.0: webpack-sources@^3.2.0:
version "3.2.0" version "3.2.1"
resolved "https://registry.yarnpkg.com/webpack-sources/-/webpack-sources-3.2.0.tgz#b16973bcf844ebcdb3afde32eda1c04d0b90f89d" resolved "https://registry.yarnpkg.com/webpack-sources/-/webpack-sources-3.2.1.tgz#251a7d9720d75ada1469ca07dbb62f3641a05b6d"
integrity sha512-fahN08Et7P9trej8xz/Z7eRu8ltyiygEo/hnRi9KqBUs80KeDcnf96ZJo++ewWd84fEf3xSX9bp4ZS9hbw0OBw== integrity sha512-t6BMVLQ0AkjBOoRTZgqrWm7xbXMBzD+XDq2EZ96+vMfn3qKgsvdXZhbPZ4ElUOpdv4u+iiGe+w3+J75iy/bYGA==
webpack@^5.52.1: webpack@^5.52.1:
version "5.52.1" version "5.59.1"
resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.52.1.tgz#2dc1d9029ecb7acfb80da7bf67baab67baa517a7" resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.59.1.tgz#60c77e9aad796252153d4d7ab6b2d4c11f0e548c"
integrity sha512-wkGb0hLfrS7ML3n2xIKfUIwHbjB6gxwQHyLmVHoAqEQBw+nWo+G6LoHL098FEXqahqximsntjBLuewStrnJk0g== integrity sha512-I01IQV9K96FlpXX3V0L4nvd7gb0r7thfuu1IfT2P4uOHOA77nKARAKDYGe/tScSHKnffNIyQhLC8kRXzY4KEHQ==
dependencies: dependencies:
"@types/eslint-scope" "^3.7.0" "@types/eslint-scope" "^3.7.0"
"@types/estree" "^0.0.50" "@types/estree" "^0.0.50"
@@ -1346,8 +1344,8 @@ webpack@^5.52.1:
acorn-import-assertions "^1.7.6" acorn-import-assertions "^1.7.6"
browserslist "^4.14.5" browserslist "^4.14.5"
chrome-trace-event "^1.0.2" chrome-trace-event "^1.0.2"
enhanced-resolve "^5.8.0" enhanced-resolve "^5.8.3"
es-module-lexer "^0.7.1" es-module-lexer "^0.9.0"
eslint-scope "5.1.1" eslint-scope "5.1.1"
events "^3.2.0" events "^3.2.0"
glob-to-regexp "^0.4.1" glob-to-regexp "^0.4.1"