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
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 0.6.0 to 0.7.0

2

dist/CommandLineParser.js

@@ -14,3 +14,3 @@ "use strict";

default: "inline",
describe: "Specify Lua target version.",
describe: "Specifies how js standard features missing in lua are imported.",
type: "string",

@@ -17,0 +17,0 @@ },

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

const rootDir = options.rootDir;
// console.log(`Transpiling ${sourceFile.fileName}...`);
// Transpile AST

@@ -88,3 +87,3 @@ const lua = createTranspiler(checker, options, sourceFile).transpileSourceFile();

// Copy lualib to target dir
if (options.luaLibImport === Transpiler_1.LuaLibImportKind.Require) {
if (options.luaLibImport === Transpiler_1.LuaLibImportKind.Require || options.luaLibImport === Transpiler_1.LuaLibImportKind.Always) {
fs.copyFileSync(path.resolve(__dirname, "../dist/lualib/lualib_bundle.lua"), path.join(options.outDir, "lualib_bundle.lua"));

@@ -91,0 +90,0 @@ }

@@ -5,4 +5,8 @@ "use strict";

class LuaTranspiler51 extends Transpiler_1.LuaTranspiler {
/** @override */
transpileDestructingAssignmentValue(node) {
return `unpack(${this.transpileExpression(node)})`;
}
}
exports.LuaTranspiler51 = LuaTranspiler51;
//# sourceMappingURL=Transpiler.51.js.map

@@ -46,4 +46,8 @@ "use strict";

}
/** @override */
transpileDestructingAssignmentValue(node) {
return `table.unpack(${this.transpileExpression(node)})`;
}
}
exports.LuaTranspiler52 = LuaTranspiler52;
//# sourceMappingURL=Transpiler.52.js.map

@@ -172,4 +172,9 @@ "use strict";

}
static isExpressionStatement(node) {
return node.parent === undefined
|| ts.isExpressionStatement(node.parent)
|| ts.isForStatement(node.parent);
}
}
exports.TSHelper = TSHelper;
//# sourceMappingURL=TSHelper.js.map
{
"name": "typescript-to-lua",
"license": "MIT",
"version": "0.6.0",
"version": "0.7.0",
"repository": "https://github.com/Perryvw/TypescriptToLua",

@@ -6,0 +6,0 @@ "keywords": [

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

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

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

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

Sorry, the diff of this file is too big to display

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