typescript-to-lua
Advanced tools
Comparing version 1.25.1 to 1.25.2
@@ -15,4 +15,4 @@ "use strict"; | ||
const runModule = options.luaTarget === CompilerOptions_1.LuaTarget.Lua50 | ||
? "(table.getn(arg) > 0) and module(unpack(arg)) or module(file)" | ||
: '(select("#", ...) > 0) and module(...) or module(file)'; | ||
? "if (table.getn(arg) > 0) then value = module(unpack(arg)) else value = module(file) end" | ||
: 'if (select("#", ...) > 0) then value = module(...) else value = module(file) end'; | ||
return ` | ||
@@ -28,4 +28,6 @@ local ____modules = {} | ||
local module = ____modules[file] | ||
____moduleCache[file] = { value = ${runModule} } | ||
return ____moduleCache[file].value | ||
local value = nil | ||
${runModule} | ||
____moduleCache[file] = { value = value } | ||
return value | ||
else | ||
@@ -32,0 +34,0 @@ if ____originalRequire then |
{ | ||
"name": "typescript-to-lua", | ||
"version": "1.25.1", | ||
"version": "1.25.2", | ||
"description": "A generic TypeScript to Lua transpiler. Write your code in TypeScript and publish Lua!", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/TypeScriptToLua/TypeScriptToLua", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1100032
15712