bump tstl, typed-factorio, ks-js-wrappers

This commit is contained in:
Adam 2022-07-23 16:26:11 +02:00
parent 6fa826baa2
commit d006635e49
4 changed files with 47 additions and 16 deletions

View file

@ -25,7 +25,7 @@ kxs-charleskornKaml = "0.44.0"
kxs-mamoeYamlkt = "0.12.0" kxs-mamoeYamlkt = "0.12.0"
kxs-kxsTsGen = "0.2.1" kxs-kxsTsGen = "0.2.1"
kotlinJsWrappers = "1.0.0-pre.357" # https://search.maven.org/artifact/org.jetbrains.kotlin-wrappers/kotlin-wrappers-bom kotlinJsWrappers = "1.0.0-pre.359" # https://search.maven.org/artifact/org.jetbrains.kotlin-wrappers/kotlin-wrappers-bom
kotlinx-cli = "0.3.4" kotlinx-cli = "0.3.4"
kotlinx-coroutines = "1.6.4" # https://github.com/Kotlin/kotlinx.coroutines/releases kotlinx-coroutines = "1.6.4" # https://github.com/Kotlin/kotlinx.coroutines/releases

View file

@ -75,9 +75,9 @@
"integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==" "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ=="
}, },
"typed-factorio": { "typed-factorio": {
"version": "1.3.2", "version": "1.4.0",
"resolved": "https://registry.npmjs.org/typed-factorio/-/typed-factorio-1.3.2.tgz", "resolved": "https://registry.npmjs.org/typed-factorio/-/typed-factorio-1.4.0.tgz",
"integrity": "sha512-sAVIDvSSBPWL7trI94SPd2Suq9dLjXmXL1WFKJIYJpFQocNwJUb0ydGRBsvJjZhVAyEZYJC0lHlDWH47RWP/tw==" "integrity": "sha512-hT5YDtdJk/hVIm83hYlXx2vOSmhElQhHhcI0OIrdx2nmrx18zKEnjGk4abJ6WHjuy4xoVZ+00mjnC3mWclvrzw=="
}, },
"typescript": { "typescript": {
"version": "4.7.4", "version": "4.7.4",
@ -85,9 +85,9 @@
"integrity": "sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==" "integrity": "sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ=="
}, },
"typescript-to-lua": { "typescript-to-lua": {
"version": "1.6.3", "version": "1.7.1",
"resolved": "https://registry.npmjs.org/typescript-to-lua/-/typescript-to-lua-1.6.3.tgz", "resolved": "https://registry.npmjs.org/typescript-to-lua/-/typescript-to-lua-1.7.1.tgz",
"integrity": "sha512-yfXxGjOwX6453wSgEB37lLdxZZ8m+LH1g3PfebNfKaZHGGtbm9owxE6oRKB3sWcy2CICkfobAjWf3VdhKnEETg==", "integrity": "sha512-iDjCnel38p3Cxv+Las8rBzd6BaRIE49DQSyFOgupg4gSw36+8H1xtwde3lRdGMPZx19/zVwXEO8UspiACYJc+A==",
"requires": { "requires": {
"enhanced-resolve": "^5.8.2", "enhanced-resolve": "^5.8.2",
"resolve": "^1.15.1", "resolve": "^1.15.1",

View file

@ -12,8 +12,8 @@
"devDependencies": {}, "devDependencies": {},
"dependencies": { "dependencies": {
"lua-types": "^2.11.0", "lua-types": "^2.11.0",
"typescript-to-lua": "1.6.3", "typescript-to-lua": "1.7.1",
"typed-factorio": "1.3.2", "typed-factorio": "1.4.0",
"typescript": "4.7.4" "typescript": "4.7.4"
}, },
"license": "UNLICENSED", "license": "UNLICENSED",

View file

@ -345,7 +345,11 @@ end
local function __TS__ArraySlice(self, first, last) local function __TS__ArraySlice(self, first, last)
local len = #self local len = #self
first = first or 0 local ____first_0 = first
if ____first_0 == nil then
____first_0 = 0
end
first = ____first_0
if first < 0 then if first < 0 then
first = len + first first = len + first
if first < 0 then if first < 0 then
@ -356,7 +360,11 @@ local function __TS__ArraySlice(self, first, last)
first = len first = len
end end
end end
last = last or len local ____last_1 = last
if ____last_1 == nil then
____last_1 = len
end
last = ____last_1
if last < 0 then if last < 0 then
last = len + last last = len + last
if last < 0 then if last < 0 then
@ -412,7 +420,11 @@ local function __TS__ArraySplice(self, ...)
elseif actualArgumentCount == 1 then elseif actualArgumentCount == 1 then
actualDeleteCount = len - start actualDeleteCount = len - start
else else
actualDeleteCount = deleteCount or 0 local ____deleteCount_0 = deleteCount
if ____deleteCount_0 == nil then
____deleteCount_0 = 0
end
actualDeleteCount = ____deleteCount_0
if actualDeleteCount < 0 then if actualDeleteCount < 0 then
actualDeleteCount = 0 actualDeleteCount = 0
end end
@ -1175,7 +1187,14 @@ do
local args = {...} local args = {...}
local argsLength = select("#", ...) local argsLength = select("#", ...)
return { return {
____coroutine = coroutine.create(function() return fn((unpack or table.unpack)(args, 1, argsLength)) end), ____coroutine = coroutine.create(function()
local ____fn_1 = fn
local ____unpack_0 = unpack
if ____unpack_0 == nil then
____unpack_0 = table.unpack
end
return ____fn_1(____unpack_0(args, 1, argsLength))
end),
[Symbol.iterator] = generatorIterator, [Symbol.iterator] = generatorIterator,
next = generatorNext next = generatorNext
} }
@ -1553,7 +1572,11 @@ local function __TS__ParseFloat(numberString)
return ____temp_0 return ____temp_0
end end
local number = tonumber(string.match(numberString, "^%s*(-?%d+%.?%d*)")) local number = tonumber(string.match(numberString, "^%s*(-?%d+%.?%d*)"))
return number or 0 / 0 local ____number_1 = number
if ____number_1 == nil then
____number_1 = 0 / 0
end
return ____number_1
end end
local function __TS__StringSubstr(self, from, length) local function __TS__StringSubstr(self, from, length)
@ -1947,7 +1970,11 @@ local function __TS__SparseArrayPush(sparseArray, ...)
end end
local function __TS__SparseArraySpread(sparseArray) local function __TS__SparseArraySpread(sparseArray)
local _unpack = unpack or table.unpack local ____unpack_0 = unpack
if ____unpack_0 == nil then
____unpack_0 = table.unpack
end
local _unpack = ____unpack_0
return _unpack(sparseArray, 1, sparseArray.sparseLength) return _unpack(sparseArray, 1, sparseArray.sparseLength)
end end
@ -2127,7 +2154,11 @@ local function __TS__StringCharCodeAt(self, index)
if index < 0 then if index < 0 then
return 0 / 0 return 0 / 0
end end
return string.byte(self, index + 1) or 0 / 0 local ____string_byte_result_0 = string.byte(self, index + 1)
if ____string_byte_result_0 == nil then
____string_byte_result_0 = 0 / 0
end
return ____string_byte_result_0
end end
local function __TS__StringEndsWith(self, searchString, endPosition) local function __TS__StringEndsWith(self, searchString, endPosition)