mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-02 14:38:50 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cd2b5db342 | ||
|
|
f3fc016f31 | ||
|
|
381627266f | ||
|
|
f779ba4228 | ||
|
|
b004ec943d | ||
|
|
647243f1cf | ||
|
|
12e9ccbc8a | ||
|
|
2a9b14ce54 | ||
|
|
f7949db0d3 | ||
|
|
2a14ab1e21 | ||
|
|
9de50f684f | ||
|
|
2c90290c84 | ||
|
|
9fc06c2132 | ||
|
|
def891268b | ||
|
|
8a3fa20408 | ||
|
|
5d6ca06f49 | ||
|
|
4913d6e50a | ||
|
|
ca8cef4e26 | ||
|
|
2a8f4b1ea9 | ||
|
|
1d0a5bcfd9 | ||
|
|
5965442e48 | ||
|
|
f7ed2d5b60 | ||
|
|
ec9d787be4 | ||
|
|
abf259543d | ||
|
|
9d8a29388c | ||
|
|
00f9d0449c | ||
|
|
a46b586832 | ||
|
|
dc50fe6dbb | ||
|
|
a6d483ca48 | ||
|
|
b1babdbc09 | ||
|
|
f8f97344fd | ||
|
|
48ee030372 | ||
|
|
fe1d6e6b05 | ||
|
|
c1f5bb3375 | ||
|
|
d4e367baaf | ||
|
|
ce87bc488c | ||
|
|
dc55401b78 | ||
|
|
3b55e890a8 | ||
|
|
bacd9c171d | ||
|
|
29d28197bb | ||
|
|
4646c6f027 | ||
|
|
30a391031b | ||
|
|
22de50c081 | ||
|
|
d0730c5e9b | ||
|
|
b781f0ca45 | ||
|
|
31959beb85 | ||
|
|
de2c731295 |
No files matched your search
@@ -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
|
||||||
@@ -32,8 +32,6 @@ jobs:
|
|||||||
- name: Bundle files
|
- name: Bundle files
|
||||||
run: |
|
run: |
|
||||||
mv dist oxmysql
|
mv dist oxmysql
|
||||||
mkdir oxmysql/lib
|
|
||||||
mv lib/MySQL.lua oxmysql/lib/MySQL.lua
|
|
||||||
zip -r oxmysql-${{ env.RELEASE_VERSION }}.zip oxmysql
|
zip -r oxmysql-${{ env.RELEASE_VERSION }}.zip oxmysql
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
|
|||||||
@@ -111,6 +111,7 @@ dist
|
|||||||
.vscode-test
|
.vscode-test
|
||||||
|
|
||||||
# yarn v2
|
# yarn v2
|
||||||
|
yarn.lock
|
||||||
.yarn/cache
|
.yarn/cache
|
||||||
.yarn/unplugged
|
.yarn/unplugged
|
||||||
.yarn/build-state.yml
|
.yarn/build-state.yml
|
||||||
|
|||||||
-127
@@ -1,127 +0,0 @@
|
|||||||
-- 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)
|
|
||||||
if type(query) == 'number' then query = Store[query] end
|
|
||||||
assert(type(query) == 'string', ('A string was expected for the query, but instead received %s'):format(query))
|
|
||||||
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 = {
|
|
||||||
execute = function(query, parameters, cb)
|
|
||||||
Ox:update(safeArgs(query, parameters, cb))
|
|
||||||
end,
|
|
||||||
|
|
||||||
fetchAll = function(query, parameters, cb)
|
|
||||||
Ox:execute(safeArgs(query, parameters, cb))
|
|
||||||
end,
|
|
||||||
|
|
||||||
fetchScalar = function(query, parameters, cb)
|
|
||||||
Ox:scalar(safeArgs(query, parameters, cb))
|
|
||||||
end,
|
|
||||||
|
|
||||||
fetchSingle = function(query, parameters, cb)
|
|
||||||
Ox:single(safeArgs(query, parameters, cb))
|
|
||||||
end,
|
|
||||||
|
|
||||||
insert = function(query, parameters, cb)
|
|
||||||
Ox:insert(safeArgs(query, parameters, cb))
|
|
||||||
end,
|
|
||||||
|
|
||||||
transaction = function(query, parameters, cb)
|
|
||||||
Ox:transaction(safeArgs(query, parameters, cb))
|
|
||||||
end,
|
|
||||||
|
|
||||||
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,
|
|
||||||
},
|
|
||||||
|
|
||||||
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,
|
|
||||||
|
|
||||||
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,
|
|
||||||
|
|
||||||
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,
|
|
||||||
|
|
||||||
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,
|
|
||||||
|
|
||||||
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,
|
|
||||||
|
|
||||||
transaction = function(query, parameters)
|
|
||||||
query, parameters = safeArgs(query, parameters)
|
|
||||||
local promise = promise.new()
|
|
||||||
Ox:transaction(query, parameters, function(result)
|
|
||||||
promise:resolve(result)
|
|
||||||
end, Resource)
|
|
||||||
return Citizen.Await(promise)
|
|
||||||
end,
|
|
||||||
|
|
||||||
store = function(query, parameters)
|
|
||||||
assert(type(query) == 'string', 'The SQL Query must be a string')
|
|
||||||
local store = #Store+1
|
|
||||||
Store[store] = query
|
|
||||||
return store
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
|
|
||||||
ready = function(cb)
|
|
||||||
CreateThread(function()
|
|
||||||
repeat
|
|
||||||
Wait(50)
|
|
||||||
until GetResourceState('oxmysql') == 'started'
|
|
||||||
cb()
|
|
||||||
end)
|
|
||||||
end
|
|
||||||
}
|
|
||||||
@@ -3,17 +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.5.1'
|
version '1.8.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'
|
provide 'mysql-async'
|
||||||
@@ -0,0 +1,187 @@
|
|||||||
|
-- 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 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)
|
||||||
|
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)
|
||||||
|
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)
|
||||||
|
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)
|
||||||
|
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)
|
||||||
|
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, false, true)
|
||||||
|
local promise = promise.new()
|
||||||
|
Ox:transaction(queries, parameters, function(result)
|
||||||
|
promise:resolve(result)
|
||||||
|
end)
|
||||||
|
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
@@ -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)
|
||||||
+3
-5
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "oxmysql",
|
"name": "oxmysql",
|
||||||
"version": "1.5.1",
|
"version": "1.0.0",
|
||||||
"main": "oxmysql.js",
|
"main": "oxmysql.js",
|
||||||
"description": "node-mysql2 resource for Cfx",
|
"description": "node-mysql2 resource for Cfx",
|
||||||
"repository": "[email protected]:overextended/oxmysql.git",
|
"repository": "[email protected]:overextended/oxmysql.git",
|
||||||
@@ -12,10 +12,8 @@
|
|||||||
"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",
|
"mysql2": "https://github.com/overextended/node-mysql2.git",
|
||||||
"github-version-checker": "^2.2.0",
|
|
||||||
"mysql2": "^2.3.0",
|
|
||||||
"postinstall-postinstall": "^2.1.0"
|
"postinstall-postinstall": "^2.1.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
@@ -1,12 +0,0 @@
|
|||||||
diff --git a/node_modules/github-version-checker/lib/check.js b/node_modules/github-version-checker/lib/check.js
|
|
||||||
index 7f00060..cf0e231 100644
|
|
||||||
--- a/node_modules/github-version-checker/lib/check.js
|
|
||||||
+++ b/node_modules/github-version-checker/lib/check.js
|
|
||||||
@@ -88,7 +88,6 @@ const rest = (options, callback) => {
|
|
||||||
|
|
||||||
if (found) {
|
|
||||||
const mapped = schemeMapper[options.fetchTags ? 'tag' : 'release'](version);
|
|
||||||
- console.log(mapped);
|
|
||||||
callback(null, mapped);
|
|
||||||
} else {
|
|
||||||
callback(null, null);
|
|
||||||
@@ -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) {
|
||||||
|
|||||||
@@ -1,6 +1,3 @@
|
|||||||
import versionCheck from 'github-version-checker';
|
|
||||||
import currentVersion from '../package.json';
|
|
||||||
|
|
||||||
const slowQueryWarning = GetConvarInt('mysql_slow_query_warning', 150);
|
const slowQueryWarning = GetConvarInt('mysql_slow_query_warning', 150);
|
||||||
const debug = GetConvar('mysql_debug', 'false') === 'true';
|
const debug = GetConvar('mysql_debug', 'false') === 'true';
|
||||||
|
|
||||||
@@ -22,23 +19,3 @@ const isolationLevel = (() => {
|
|||||||
const resourceName = GetCurrentResourceName() || 'oxmysql';
|
const resourceName = GetCurrentResourceName() || 'oxmysql';
|
||||||
|
|
||||||
export { slowQueryWarning, debug, isolationLevel, resourceName };
|
export { slowQueryWarning, debug, isolationLevel, resourceName };
|
||||||
|
|
||||||
setImmediate(async () => {
|
|
||||||
const versionCheckConfig = {
|
|
||||||
repo: 'oxmysql',
|
|
||||||
owner: 'overextended',
|
|
||||||
currentVersion: currentVersion.version,
|
|
||||||
latest: true,
|
|
||||||
};
|
|
||||||
|
|
||||||
try {
|
|
||||||
const update = await versionCheck(versionCheckConfig);
|
|
||||||
if (update) {
|
|
||||||
console.log(
|
|
||||||
`^3Your version of oxmysql is outdated (v${versionCheckConfig.currentVersion})! Please update to the latest version (${update.name}) here: \nhttps://github.com/overextended/oxmysql/releases/latest`
|
|
||||||
);
|
|
||||||
}
|
|
||||||
} catch (e) {
|
|
||||||
console.log(`^3Could not fetch updates for oxmysql!^0\n${e}`);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
+70
-9
@@ -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
@@ -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
@@ -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];
|
||||||
|
|||||||
+21
-52
@@ -1,6 +1,5 @@
|
|||||||
import { createPool } from 'mysql2/promise';
|
import { createPool } from 'mysql2/promise';
|
||||||
import { parseTypes } from './parser';
|
import { parseTypes } from './parser';
|
||||||
import { ConnectionStringParser } from 'connection-string-parser';
|
|
||||||
|
|
||||||
const connectionString = GetConvar('mysql_connection_string', '');
|
const connectionString = GetConvar('mysql_connection_string', '');
|
||||||
|
|
||||||
@@ -8,59 +7,29 @@ if (connectionString === '') {
|
|||||||
throw new Error(`Set up mysql_connection_string in server.cfg`);
|
throw new Error(`Set up mysql_connection_string in server.cfg`);
|
||||||
}
|
}
|
||||||
|
|
||||||
const parseSemiColons = () => {
|
const dbOptions = (() => {
|
||||||
const parts = connectionString.split(';');
|
if (connectionString.includes('mysql://')) return { uri: connectionString };
|
||||||
if (parseTypes.length === 1) {
|
const options = connectionString
|
||||||
throw new Error(
|
.replace(/(?:host(?:name)|ip|server|data\s?source|addr(?:ess)?)=/gi, 'host=')
|
||||||
`Set up mysql_connection_string in correct format - 'username=root;password=password;database=db;host=127.0.0.1'`
|
.replace(/(?:user\s?(?:id|name)?|uid)=/gi, 'user=')
|
||||||
);
|
.replace(/(?:pwd|pass)=/gi, 'password=')
|
||||||
}
|
.replace(/(?:db)=/gi, 'database=')
|
||||||
return parts.reduce((connectionInfo, parameter) => {
|
.split(';')
|
||||||
const [key, value] = parameter.split('=');
|
.reduce((connectionInfo, parameter) => {
|
||||||
connectionInfo[key] = value;
|
const [key, value] = parameter.split('=');
|
||||||
return connectionInfo;
|
connectionInfo[key] = value;
|
||||||
}, {});
|
return connectionInfo;
|
||||||
};
|
}, {});
|
||||||
|
|
||||||
|
return options;
|
||||||
|
})();
|
||||||
|
|
||||||
const createConnection = () => {
|
const createConnection = () => {
|
||||||
if (connectionString.includes('database=')) {
|
return createPool({
|
||||||
const options = parseSemiColons();
|
...dbOptions,
|
||||||
|
namedPlaceholders: true,
|
||||||
return createPool({
|
typeCast: parseTypes,
|
||||||
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 || 'es_extended',
|
|
||||||
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 || 'es_extended',
|
|
||||||
charset: 'utf8mb4_unicode_ci',
|
|
||||||
connectTimeout: 30000,
|
|
||||||
...options.options,
|
|
||||||
namedPlaceholders: true,
|
|
||||||
typeCast: parseTypes,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export const pool = createConnection();
|
export const pool = createConnection();
|
||||||
+4
-1
@@ -15,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
@@ -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)
|
|
||||||
@@ -2,10 +2,10 @@
|
|||||||
# 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.5"
|
version "0.5.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.10.3"
|
version "16.11.7"
|
||||||
resolved "https://registry.yarnpkg.com/@types/node/-/node-16.10.3.tgz#7a8f2838603ea314d1d22bb3171d899e15c57bd5"
|
resolved "https://registry.yarnpkg.com/@types/node/-/node-16.11.7.tgz#36820945061326978c42a01e56b61cd223dfdc42"
|
||||||
integrity sha512-ho3Ruq+fFnBrZhUYI46n/bV2GjwzSkwuT4dTf0GkuNFmnb8nq4ny2z9JEVemFi6bdEJanHLlYfy9c6FN9B9McQ==
|
integrity sha512-QB5D2sqfSjCmTuWcBWyJ+/44bcjO7VbjSbOE0ucoVbAsSNQc4Lt6QkgkVXkTDwkL4z/beecZNDvVX15D4P8Jbw==
|
||||||
|
|
||||||
"@webassemblyjs/[email protected]":
|
"@webassemblyjs/[email protected]":
|
||||||
version "1.11.1"
|
version "1.11.1"
|
||||||
@@ -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.3"
|
version "4.18.0"
|
||||||
resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.17.3.tgz#2844cd6eebe14d12384b0122d217550160d2d624"
|
resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.18.0.tgz#849944d9bbbbe5ff6f418a8b558e3effca433cae"
|
||||||
integrity sha512-59IqHJV5VGdcJZ+GZ2hU5n4Kv3YiASzW6Xk5g9tf5a/MAzGeFwgGWU39fVzNIOVcgB3+Gp+kiQu0HEfTVU/3VQ==
|
integrity sha512-ER2M0g5iAR84fS/zjBDqEgU6iO5fS9JI2EkHr5zxDxYEFk3LjhU9Vpp/INb6RMQphxko7PDV1FH38H/qVP5yCA==
|
||||||
dependencies:
|
dependencies:
|
||||||
caniuse-lite "^1.0.30001264"
|
caniuse-lite "^1.0.30001280"
|
||||||
electron-to-chromium "^1.3.857"
|
electron-to-chromium "^1.3.896"
|
||||||
escalade "^3.1.1"
|
escalade "^3.1.1"
|
||||||
node-releases "^1.1.77"
|
node-releases "^2.0.1"
|
||||||
picocolors "^0.2.1"
|
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.30001264:
|
caniuse-lite@^1.0.30001280:
|
||||||
version "1.0.30001265"
|
version "1.0.30001280"
|
||||||
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001265.tgz#0613c9e6c922e422792e6fcefdf9a3afeee4f8c3"
|
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001280.tgz#066a506046ba4be34cde5f74a08db7a396718fb7"
|
||||||
integrity sha512-YzBnspggWV5hep1m9Z6sZVLOt7vrju8xWooFAgN6BA5qvy98qPAPb7vNUzypFaoh2pb3vlfzbDO8tB57UPGbtw==
|
integrity sha512-kFXwYvHe5rix25uwueBxC569o53J6TpnGu0BEEn+6Lhl2vsnAumRFWEBhDft1fwyo6m1r4i+RqA4+163FpeFcA==
|
||||||
|
|
||||||
chalk@^2.4.2:
|
chalk@^2.4.2:
|
||||||
version "2.4.2"
|
version "2.4.2"
|
||||||
@@ -336,9 +336,9 @@ [email protected]:
|
|||||||
integrity sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=
|
integrity sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=
|
||||||
|
|
||||||
colorette@^2.0.14:
|
colorette@^2.0.14:
|
||||||
version "2.0.15"
|
version "2.0.16"
|
||||||
resolved "https://registry.yarnpkg.com/colorette/-/colorette-2.0.15.tgz#8e634aa0429b110d24be82eac4d42f5ea65ab2d5"
|
resolved "https://registry.yarnpkg.com/colorette/-/colorette-2.0.16.tgz#713b9af84fdb000139f04546bd4a93f62a5085da"
|
||||||
integrity sha512-lIFQhufWaVvwi4wOlX9Gx5b0Nmw3XAZ8HzHNH9dfxhe+JaKNTmX6QLk4o7UHyI+tUY8ClvyfaHUm5bf61O3psA==
|
integrity sha512-hUewv7oMjCp+wkBv5Rm0v87eJhq4woh5rSR+42YSQJKecCqgIqNkZ6lAlQms/BwHPJA5NKMRlpxPRv0n8HQW6g==
|
||||||
|
|
||||||
commander@^2.20.0:
|
commander@^2.20.0:
|
||||||
version "2.20.3"
|
version "2.20.3"
|
||||||
@@ -363,16 +363,15 @@ connection-string-parser@^1.0.4:
|
|||||||
tslib "^2.0.0"
|
tslib "^2.0.0"
|
||||||
|
|
||||||
copy-webpack-plugin@^9.0.1:
|
copy-webpack-plugin@^9.0.1:
|
||||||
version "9.0.1"
|
version "9.1.0"
|
||||||
resolved "https://registry.yarnpkg.com/copy-webpack-plugin/-/copy-webpack-plugin-9.0.1.tgz#b71d21991599f61a4ee00ba79087b8ba279bbb59"
|
resolved "https://registry.yarnpkg.com/copy-webpack-plugin/-/copy-webpack-plugin-9.1.0.tgz#2d2c460c4c4695ec0a58afb2801a1205256c4e6b"
|
||||||
integrity sha512-14gHKKdYIxF84jCEgPgYXCPpldbwpxxLbCmA7LReY7gvbaT555DgeBWBgBZM116tv/fO6RRJrsivBqRyRlukhw==
|
integrity sha512-rxnR7PaGigJzhqETHGmAcxKnLZSR5u1Y3/bcIv/1FnqXedcL/E2ewK7ZCNrArJKCiSv8yVXhTqetJh8inDvfsA==
|
||||||
dependencies:
|
dependencies:
|
||||||
fast-glob "^3.2.5"
|
fast-glob "^3.2.7"
|
||||||
glob-parent "^6.0.0"
|
glob-parent "^6.0.1"
|
||||||
globby "^11.0.3"
|
globby "^11.0.3"
|
||||||
normalize-path "^3.0.0"
|
normalize-path "^3.0.0"
|
||||||
p-limit "^3.1.0"
|
schema-utils "^3.1.1"
|
||||||
schema-utils "^3.0.0"
|
|
||||||
serialize-javascript "^6.0.0"
|
serialize-javascript "^6.0.0"
|
||||||
|
|
||||||
cross-spawn@^6.0.5:
|
cross-spawn@^6.0.5:
|
||||||
@@ -395,10 +394,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.1"
|
version "2.0.1"
|
||||||
resolved "https://registry.yarnpkg.com/denque/-/denque-1.5.1.tgz#07f670e29c9a78f8faecb2566a1e2c11929c5cbf"
|
resolved "https://registry.yarnpkg.com/denque/-/denque-2.0.1.tgz#bcef4c1b80dc32efe97515744f21a4229ab8934a"
|
||||||
integrity sha512-XwE+iZ4D6ZUB7mfYRMb5wByE8L74HCn30FBN7sWnXksWc1LO1bPDl67pBR9o/kC4z/xSNAwkMYcGgqDV3BE3Hw==
|
integrity sha512-tfiWc6BQLXNLpNiR5iGd0Ocu3P3VpxfzFiqubLgMfhfOw9WyvgJBd46CClNn9k3qfbjvT//0cf7AlYRX/OslMQ==
|
||||||
|
|
||||||
dir-glob@^3.0.1:
|
dir-glob@^3.0.1:
|
||||||
version "3.0.1"
|
version "3.0.1"
|
||||||
@@ -407,10 +406,10 @@ dir-glob@^3.0.1:
|
|||||||
dependencies:
|
dependencies:
|
||||||
path-type "^4.0.0"
|
path-type "^4.0.0"
|
||||||
|
|
||||||
electron-to-chromium@^1.3.857:
|
electron-to-chromium@^1.3.896:
|
||||||
version "1.3.861"
|
version "1.3.896"
|
||||||
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.861.tgz#981e37a79af7a7b29bbaeed36376f4795527de13"
|
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.896.tgz#4a94efe4870b1687eafd5c378198a49da06e8a1b"
|
||||||
integrity sha512-GZyflmpMnZRdZ1e2yAyvuFwz1MPSVQelwHX4TJZyXypB8NcxdPvPNwy5lOTxnlkrK13EiQzyTPugRSnj6cBgKg==
|
integrity sha512-NcGkBVXePiuUrPLV8IxP43n1EOtdg+dudVjrfVEUd/bOqpQUFZ2diL5PPYzbgEhZFEltdXV3AcyKwGnEQ5lhMA==
|
||||||
|
|
||||||
enhanced-resolve@^5.8.3:
|
enhanced-resolve@^5.8.3:
|
||||||
version "5.8.3"
|
version "5.8.3"
|
||||||
@@ -426,9 +425,9 @@ envinfo@^7.7.3:
|
|||||||
integrity sha512-/o+BXHmB7ocbHEAs6F2EnG0ogybVVUdkRunTT2glZU9XAaGmhqskrvKwqXuDfNjEO0LZKWdejEEpnq8aM0tOaw==
|
integrity sha512-/o+BXHmB7ocbHEAs6F2EnG0ogybVVUdkRunTT2glZU9XAaGmhqskrvKwqXuDfNjEO0LZKWdejEEpnq8aM0tOaw==
|
||||||
|
|
||||||
es-module-lexer@^0.9.0:
|
es-module-lexer@^0.9.0:
|
||||||
version "0.9.2"
|
version "0.9.3"
|
||||||
resolved "https://registry.yarnpkg.com/es-module-lexer/-/es-module-lexer-0.9.2.tgz#d0a8c72c5d904014111fac7fab4c92b9ac545564"
|
resolved "https://registry.yarnpkg.com/es-module-lexer/-/es-module-lexer-0.9.3.tgz#6f13db00cc38417137daf74366f535c8eb438f19"
|
||||||
integrity sha512-YkAGWqxZq2B4FxQ5y687UwywDwvLQhIMCZ+SDU7ZW729SDHOEI6wVFXwTRecz+yiwJzCsVwC6V7bxyNbZSB1rg==
|
integrity sha512-1HQ2M2sPtxwnvOvT1ZClHyQDiggdNjURWpY2we6aMKCQiUVxTmVs2UYPLIrD84sS+kMdUwfBSylbJPwNnBrnHQ==
|
||||||
|
|
||||||
escalade@^3.1.1:
|
escalade@^3.1.1:
|
||||||
version "3.1.1"
|
version "3.1.1"
|
||||||
@@ -461,9 +460,9 @@ estraverse@^4.1.1:
|
|||||||
integrity sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==
|
integrity sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==
|
||||||
|
|
||||||
estraverse@^5.2.0:
|
estraverse@^5.2.0:
|
||||||
version "5.2.0"
|
version "5.3.0"
|
||||||
resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-5.2.0.tgz#307df42547e6cc7324d3cf03c155d5cdb8c53880"
|
resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-5.3.0.tgz#2eea5290702f26ab8fe5370370ff86c965d21123"
|
||||||
integrity sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ==
|
integrity sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==
|
||||||
|
|
||||||
events@^3.2.0:
|
events@^3.2.0:
|
||||||
version "3.3.0"
|
version "3.3.0"
|
||||||
@@ -490,7 +489,7 @@ fast-deep-equal@^3.1.1:
|
|||||||
resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525"
|
resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525"
|
||||||
integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==
|
integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==
|
||||||
|
|
||||||
fast-glob@^3.1.1, fast-glob@^3.2.5:
|
fast-glob@^3.1.1, fast-glob@^3.2.7:
|
||||||
version "3.2.7"
|
version "3.2.7"
|
||||||
resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.2.7.tgz#fd6cb7a2d7e9aa7a7846111e85a196d6b2f766a1"
|
resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.2.7.tgz#fd6cb7a2d7e9aa7a7846111e85a196d6b2f766a1"
|
||||||
integrity sha512-rYGMRwip6lUMvYD3BTScMwT1HtAs2d71SMv66Vrxs0IekGZEjhM0pcMfjQPnknBt2zeCwQMEupiN02ZP4DiT1Q==
|
integrity sha512-rYGMRwip6lUMvYD3BTScMwT1HtAs2d71SMv66Vrxs0IekGZEjhM0pcMfjQPnknBt2zeCwQMEupiN02ZP4DiT1Q==
|
||||||
@@ -571,19 +570,6 @@ get-stream@^6.0.0:
|
|||||||
resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-6.0.1.tgz#a262d8eef67aced57c2852ad6167526a43cbf7b7"
|
resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-6.0.1.tgz#a262d8eef67aced57c2852ad6167526a43cbf7b7"
|
||||||
integrity sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==
|
integrity sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==
|
||||||
|
|
||||||
github-graphql-client@^1.0.0:
|
|
||||||
version "1.0.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/github-graphql-client/-/github-graphql-client-1.0.0.tgz#d5acacc31bb9f6b77e5c502812e90c844f727bca"
|
|
||||||
integrity sha1-1ayswxu59rd+XFAoEukMhE9ye8o=
|
|
||||||
|
|
||||||
github-version-checker@^2.2.0:
|
|
||||||
version "2.2.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/github-version-checker/-/github-version-checker-2.2.0.tgz#08a2b52f9ef9cd3dd05b898537750a91b73facec"
|
|
||||||
integrity sha512-Ttj/Uzg++TGfycfn5ga8BfMJ8QYB1+DhG24rtasrN8tHYWgqqrEMAQ52y2qGnPNWzSF8AUdjm6dBcoPdUhKhDQ==
|
|
||||||
dependencies:
|
|
||||||
github-graphql-client "^1.0.0"
|
|
||||||
semver "^5.5.1"
|
|
||||||
|
|
||||||
glob-parent@^5.1.2:
|
glob-parent@^5.1.2:
|
||||||
version "5.1.2"
|
version "5.1.2"
|
||||||
resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4"
|
resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4"
|
||||||
@@ -591,7 +577,7 @@ glob-parent@^5.1.2:
|
|||||||
dependencies:
|
dependencies:
|
||||||
is-glob "^4.0.1"
|
is-glob "^4.0.1"
|
||||||
|
|
||||||
glob-parent@^6.0.0:
|
glob-parent@^6.0.1:
|
||||||
version "6.0.2"
|
version "6.0.2"
|
||||||
resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-6.0.2.tgz#6d237d99083950c79290f24c7642a3de9a28f9e3"
|
resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-6.0.2.tgz#6d237d99083950c79290f24c7642a3de9a28f9e3"
|
||||||
integrity sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==
|
integrity sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==
|
||||||
@@ -654,7 +640,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==
|
||||||
@@ -662,9 +648,9 @@ iconv-lite@^0.6.2:
|
|||||||
safer-buffer ">= 2.1.2 < 3.0.0"
|
safer-buffer ">= 2.1.2 < 3.0.0"
|
||||||
|
|
||||||
ignore@^5.1.4:
|
ignore@^5.1.4:
|
||||||
version "5.1.8"
|
version "5.1.9"
|
||||||
resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.1.8.tgz#f150a8b50a34289b33e22f5889abd4d8016f0e57"
|
resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.1.9.tgz#9ec1a5cbe8e1446ec60d4420060d43aa6e7382fb"
|
||||||
integrity sha512-BMpfD7PpiETpBl/A6S498BaIJ6Y/ABT93ETbby2fP00v4EbvPBXWEoaR1UBPKs3iR53pJY7EtZk5KACI57i1Uw==
|
integrity sha512-2zeMQpbKz5dhZ9IwL0gbxSW5w0NK/MSAMtNuhgIHEPmaU3vPdKPL0UdvUCXs5SS4JAwsBxysK5sFMW8ocFiVjQ==
|
||||||
|
|
||||||
import-local@^3.0.2:
|
import-local@^3.0.2:
|
||||||
version "3.0.3"
|
version "3.0.3"
|
||||||
@@ -700,9 +686,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.7.0"
|
version "2.8.0"
|
||||||
resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.7.0.tgz#3c0ef7d31b4acfc574f80c58409d568a836848e3"
|
resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.8.0.tgz#0321336c3d0925e497fd97f5d95cb114a5ccd548"
|
||||||
integrity sha512-ByY+tjCciCr+9nLryBYcSD50EOGWt95c7tIsKTG1J2ixKKXPvF7Ej3AVd+UfDydAJom3biBGDBALaO79ktwgEQ==
|
integrity sha512-vd15qHsaqrRL7dtH6QNuy0ndJmRDrS9HAM1CAiSifNUFv4x1a0CCVsj18hJ1mShxIG6T2i1sO78MkP56r0nYRw==
|
||||||
dependencies:
|
dependencies:
|
||||||
has "^1.0.3"
|
has "^1.0.3"
|
||||||
|
|
||||||
@@ -763,9 +749,9 @@ isobject@^3.0.1:
|
|||||||
integrity sha1-TkMekrEalzFjaqH5yNHMvP2reN8=
|
integrity sha1-TkMekrEalzFjaqH5yNHMvP2reN8=
|
||||||
|
|
||||||
jest-worker@^27.0.6:
|
jest-worker@^27.0.6:
|
||||||
version "27.2.4"
|
version "27.3.1"
|
||||||
resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-27.2.4.tgz#881455df75e22e7726a53f43703ab74d6b36f82d"
|
resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-27.3.1.tgz#0def7feae5b8042be38479799aeb7b5facac24b2"
|
||||||
integrity sha512-Zq9A2Pw59KkVjBBKD1i3iE2e22oSjXhUKKuAK1HGX8flGwkm6NMozyEYzKd41hXc64dbd/0eWFeEEuxqXyhM+g==
|
integrity sha512-ks3WCzsiZaOPJl/oMsDjaf0TRiSv7ctNgs0FqRr2nARsovz6AWWy4oLElwcquGSz692DzgZQrCLScPNs5YlC4g==
|
||||||
dependencies:
|
dependencies:
|
||||||
"@types/node" "*"
|
"@types/node" "*"
|
||||||
merge-stream "^2.0.0"
|
merge-stream "^2.0.0"
|
||||||
@@ -850,17 +836,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"
|
||||||
|
|
||||||
[email protected]0.0:
|
[email protected]1.0:
|
||||||
version "1.50.0"
|
version "1.51.0"
|
||||||
resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.50.0.tgz#abd4ac94e98d3c0e185016c67ab45d5fde40c11f"
|
resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.51.0.tgz#d9ff62451859b18342d960850dc3cfb77e63fb0c"
|
||||||
integrity sha512-9tMZCDlYHqeERXEHO9f/hKfNXhre5dK2eE/krIvUjZbS2KPcqGDfNShIWS1uW9XOTKQKqK6qbeOci18rbfW77A==
|
integrity sha512-5y8A56jg7XVQx2mbv1lu49NR4dokRnhZYTtL+KGfaa27uq4pSTXkwQkFJl4pkRMyNFz/EtYDSkiiEHx3F7UN6g==
|
||||||
|
|
||||||
mime-types@^2.1.27:
|
mime-types@^2.1.27:
|
||||||
version "2.1.33"
|
version "2.1.34"
|
||||||
resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.33.tgz#1fa12a904472fafd068e48d9e8401f74d3f70edb"
|
resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.34.tgz#5a712f9ec1503511a945803640fafe09d3793c24"
|
||||||
integrity sha512-plLElXp7pRDd0bNZHw+nMd52vRYjLwQjygaNg7ddJ2uJtTlmnTCjWuPKxVu6//AdaRuME84SvLW91sIkBqGT0g==
|
integrity sha512-6cP692WwGIs9XXdOO4++N+7qjqv0rqxxVvJ3VHPh/Sc9mVZcQP+ZGhkKiTvWMQRr2tbHkJP/Yn7Y0npb3ZBs4A==
|
||||||
dependencies:
|
dependencies:
|
||||||
mime-db "1.50.0"
|
mime-db "1.51.0"
|
||||||
|
|
||||||
mimic-fn@^2.1.0:
|
mimic-fn@^2.1.0:
|
||||||
version "2.1.0"
|
version "2.1.0"
|
||||||
@@ -879,14 +865,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.3"
|
||||||
resolved "https://registry.yarnpkg.com/mysql2/-/mysql2-2.3.0.tgz#600f5cc27e397dfb77b59eac93666434f88e8079"
|
resolved "https://github.com/overextended/node-mysql2.git#3cdd1ef6027275e095f6c5fbe5bd65c4075102e3"
|
||||||
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"
|
||||||
@@ -910,10 +895,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.77:
|
node-releases@^2.0.1:
|
||||||
version "1.1.77"
|
version "2.0.1"
|
||||||
resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-1.1.77.tgz#50b0cfede855dd374e7585bf228ff34e57c1c32e"
|
resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.1.tgz#3d1d395f204f1f2f29a54358b9fb678765ad2fc5"
|
||||||
integrity sha512-rB1DUFUNAN4Gn9keO2K1efO35IDK7yKHCdCaIMvFO7yUYmmZYeDjnGKle26G4rwj+LKRQpjyUUvMkPglwGCYNQ==
|
integrity sha512-CqyzN6z7Q6aMeF/ktcMVTzhAHCEpf8SOarwpzpf8pNBY2k5/oM34UHldUwp8VKI7uxct2HxSRdJjBaZeESzcxA==
|
||||||
|
|
||||||
normalize-path@^3.0.0:
|
normalize-path@^3.0.0:
|
||||||
version "3.0.0"
|
version "3.0.0"
|
||||||
@@ -961,13 +946,6 @@ p-limit@^2.2.0:
|
|||||||
dependencies:
|
dependencies:
|
||||||
p-try "^2.0.0"
|
p-try "^2.0.0"
|
||||||
|
|
||||||
p-limit@^3.1.0:
|
|
||||||
version "3.1.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-3.1.0.tgz#e1daccbe78d0d1388ca18c64fea38e3e57e3706b"
|
|
||||||
integrity sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==
|
|
||||||
dependencies:
|
|
||||||
yocto-queue "^0.1.0"
|
|
||||||
|
|
||||||
p-locate@^4.1.0:
|
p-locate@^4.1.0:
|
||||||
version "4.1.0"
|
version "4.1.0"
|
||||||
resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-4.1.0.tgz#a3428bb7088b3a60292f66919278b7c297ad4f07"
|
resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-4.1.0.tgz#a3428bb7088b3a60292f66919278b7c297ad4f07"
|
||||||
@@ -1029,10 +1007,10 @@ 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@^0.2.1:
|
picocolors@^1.0.0:
|
||||||
version "0.2.1"
|
version "1.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-0.2.1.tgz#570670f793646851d1ba135996962abad587859f"
|
resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.0.tgz#cb5bdc74ff3f51892236eaf79d68bc44564ab81c"
|
||||||
integrity sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==
|
integrity sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==
|
||||||
|
|
||||||
picomatch@^2.2.3:
|
picomatch@^2.2.3:
|
||||||
version "2.3.0"
|
version "2.3.0"
|
||||||
@@ -1129,7 +1107,7 @@ safe-buffer@^5.1.0:
|
|||||||
resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a"
|
resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a"
|
||||||
integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==
|
integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==
|
||||||
|
|
||||||
schema-utils@^3.0.0, schema-utils@^3.1.0, schema-utils@^3.1.1:
|
schema-utils@^3.1.0, schema-utils@^3.1.1:
|
||||||
version "3.1.1"
|
version "3.1.1"
|
||||||
resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-3.1.1.tgz#bc74c4b6b6995c1d88f76a8b77bea7219e0c8281"
|
resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-3.1.1.tgz#bc74c4b6b6995c1d88f76a8b77bea7219e0c8281"
|
||||||
integrity sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==
|
integrity sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==
|
||||||
@@ -1138,7 +1116,7 @@ schema-utils@^3.0.0, schema-utils@^3.1.0, schema-utils@^3.1.1:
|
|||||||
ajv "^6.12.5"
|
ajv "^6.12.5"
|
||||||
ajv-keywords "^3.5.2"
|
ajv-keywords "^3.5.2"
|
||||||
|
|
||||||
semver@^5.5.0, semver@^5.5.1, semver@^5.6.0:
|
semver@^5.5.0, semver@^5.6.0:
|
||||||
version "5.7.1"
|
version "5.7.1"
|
||||||
resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7"
|
resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7"
|
||||||
integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==
|
integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==
|
||||||
@@ -1249,12 +1227,11 @@ tapable@^2.1.1, tapable@^2.2.0:
|
|||||||
integrity sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==
|
integrity sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==
|
||||||
|
|
||||||
terser-webpack-plugin@^5.1.3:
|
terser-webpack-plugin@^5.1.3:
|
||||||
version "5.2.4"
|
version "5.2.5"
|
||||||
resolved "https://registry.yarnpkg.com/terser-webpack-plugin/-/terser-webpack-plugin-5.2.4.tgz#ad1be7639b1cbe3ea49fab995cbe7224b31747a1"
|
resolved "https://registry.yarnpkg.com/terser-webpack-plugin/-/terser-webpack-plugin-5.2.5.tgz#ce65b9880a0c36872555c4874f45bbdb02ee32c9"
|
||||||
integrity sha512-E2CkNMN+1cho04YpdANyRrn8CyN4yMy+WdFKZIySFZrGXZxJwJP6PMNGGc/Mcr6qygQHUUqRxnAPmi0M9f00XA==
|
integrity sha512-3luOVHku5l0QBeYS8r4CdHYWEGMmIj3H1U64jgkdZzECcSOJAyJ9TjuqcQZvw1Y+4AOBN9SeYJPJmFn2cM4/2g==
|
||||||
dependencies:
|
dependencies:
|
||||||
jest-worker "^27.0.6"
|
jest-worker "^27.0.6"
|
||||||
p-limit "^3.1.0"
|
|
||||||
schema-utils "^3.1.1"
|
schema-utils "^3.1.1"
|
||||||
serialize-javascript "^6.0.0"
|
serialize-javascript "^6.0.0"
|
||||||
source-map "^0.6.1"
|
source-map "^0.6.1"
|
||||||
@@ -1289,9 +1266,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"
|
||||||
@@ -1305,11 +1282,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"
|
||||||
@@ -1319,9 +1291,9 @@ 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.9.0"
|
version "4.9.1"
|
||||||
resolved "https://registry.yarnpkg.com/webpack-cli/-/webpack-cli-4.9.0.tgz#dc43e6e0f80dd52e89cbf73d5294bcd7ad6eb343"
|
resolved "https://registry.yarnpkg.com/webpack-cli/-/webpack-cli-4.9.1.tgz#b64be825e2d1b130f285c314caa3b1ba9a4632b3"
|
||||||
integrity sha512-n/jZZBMzVEl4PYIBs+auy2WI0WTQ74EnJDiyD98O2JZY6IVIHJNitkYp/uTXOviIOMfgzrNvC9foKv/8o8KSZw==
|
integrity sha512-JYRFVuyFpzDxMDB+v/nanUdQYcZtqFPGzmlW4s+UkPMFhSpfRNmf1z4AwYcHJVdvEFAM7FFCQdNTpsBYhDLusQ==
|
||||||
dependencies:
|
dependencies:
|
||||||
"@discoveryjs/json-ext" "^0.5.0"
|
"@discoveryjs/json-ext" "^0.5.0"
|
||||||
"@webpack-cli/configtest" "^1.1.0"
|
"@webpack-cli/configtest" "^1.1.0"
|
||||||
@@ -1334,7 +1306,6 @@ webpack-cli@^4.8.0:
|
|||||||
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:
|
||||||
@@ -1351,9 +1322,9 @@ webpack-sources@^3.2.0:
|
|||||||
integrity sha512-t6BMVLQ0AkjBOoRTZgqrWm7xbXMBzD+XDq2EZ96+vMfn3qKgsvdXZhbPZ4ElUOpdv4u+iiGe+w3+J75iy/bYGA==
|
integrity sha512-t6BMVLQ0AkjBOoRTZgqrWm7xbXMBzD+XDq2EZ96+vMfn3qKgsvdXZhbPZ4ElUOpdv4u+iiGe+w3+J75iy/bYGA==
|
||||||
|
|
||||||
webpack@^5.52.1:
|
webpack@^5.52.1:
|
||||||
version "5.58.0"
|
version "5.64.0"
|
||||||
resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.58.0.tgz#9ec621cf8534f23c25e779e7c35dfde1211d5ccb"
|
resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.64.0.tgz#db3e12546f755930ccc9e0e21ba660871940c615"
|
||||||
integrity sha512-xc2k5MLbR1iah24Z5xUm1nBh1PZXEdUnrX6YkTSOScq/VWbl5JCLREXJzGYqEAUbIO8tZI+Dzv82lGtnuUnVCQ==
|
integrity sha512-UclnN24m054HaPC45nmDEosX6yXWD+UGC12YtUs5i356DleAUGMDC9LBAw37xRRfgPKYIdCYjGA7RZ1AA+ZnGg==
|
||||||
dependencies:
|
dependencies:
|
||||||
"@types/eslint-scope" "^3.7.0"
|
"@types/eslint-scope" "^3.7.0"
|
||||||
"@types/estree" "^0.0.50"
|
"@types/estree" "^0.0.50"
|
||||||
@@ -1413,8 +1384,3 @@ yallist@^4.0.0:
|
|||||||
version "4.0.0"
|
version "4.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72"
|
resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72"
|
||||||
integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==
|
integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==
|
||||||
|
|
||||||
yocto-queue@^0.1.0:
|
|
||||||
version "0.1.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b"
|
|
||||||
integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==
|
|
||||||
Reference in new issue
Block a user