Socket
Socket
Sign inDemoInstall

typescript-to-lua

Package Overview
Dependencies
Maintainers
2
Versions
157
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typescript-to-lua - npm Package Compare versions

Comparing version 1.25.1 to 1.25.2

10

dist/transpilation/bundle.js

@@ -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

2

package.json
{
"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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc