Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

typescript-to-lua

Package Overview
Dependencies
Maintainers
2
Versions
158
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.11.0 to 1.11.1

1

dist/LuaLib.d.ts

@@ -53,3 +53,2 @@ import { EmitHost } from "./transpilation";

MathSign = "MathSign",
Modulo50 = "Modulo50",
New = "New",

@@ -56,0 +55,0 @@ Number = "Number",

@@ -57,3 +57,2 @@ "use strict";

LuaLibFeature["MathSign"] = "MathSign";
LuaLibFeature["Modulo50"] = "Modulo50";
LuaLibFeature["New"] = "New";

@@ -60,0 +59,0 @@ LuaLibFeature["Number"] = "Number";

@@ -322,7 +322,2 @@ {

},
"Modulo50": {
"exports": [
"__TS__Modulo50"
]
},
"New": {

@@ -353,3 +348,2 @@ "exports": [

"dependencies": [
"Modulo50",
"StringAccess",

@@ -356,0 +350,0 @@ "MathModf"

@@ -322,7 +322,2 @@ {

},
"Modulo50": {
"exports": [
"__TS__Modulo50"
]
},
"New": {

@@ -329,0 +324,0 @@ "exports": [

3

dist/transformation/visitors/binary-expression/index.js

@@ -47,3 +47,4 @@ "use strict";

if (operator === ts.SyntaxKind.PercentToken && context.luaTarget === CompilerOptions_1.LuaTarget.Lua50) {
return (0, lualib_1.transformLuaLibFunction)(context, lualib_1.LuaLibFeature.Modulo50, node, left, right);
const mathMod = lua.createTableIndexExpression(lua.createIdentifier("math"), lua.createStringLiteral("mod"));
return lua.createCallExpression(mathMod, [left, right], node);
}

@@ -50,0 +51,0 @@ let luaOperator = simpleOperatorsToLua[operator];

{
"name": "typescript-to-lua",
"version": "1.11.0",
"version": "1.11.1",
"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",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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