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 0.39.1 to 0.39.2

7

dist/LuaAST.js

@@ -114,4 +114,7 @@ "use strict";

function getSourcePosition(sourceNode) {
if (sourceNode.getSourceFile() !== undefined && sourceNode.pos >= 0) {
const { line, character } = ts.getLineAndCharacterOfPosition(sourceNode.getSourceFile(), sourceNode.pos + sourceNode.getLeadingTriviaWidth());
var _a;
const parseTreeNode = (_a = ts.getParseTreeNode(sourceNode)) !== null && _a !== void 0 ? _a : sourceNode;
const sourceFile = parseTreeNode.getSourceFile();
if (sourceFile !== undefined && parseTreeNode.pos >= 0) {
const { line, character } = ts.getLineAndCharacterOfPosition(sourceFile, parseTreeNode.pos + parseTreeNode.getLeadingTriviaWidth());
return { line, column: character };

@@ -118,0 +121,0 @@ }

@@ -45,3 +45,5 @@ "use strict";

function isStandardLibraryDeclaration(context, declaration) {
const sourceFile = declaration.getSourceFile();
var _a;
const parseTreeNode = (_a = ts.getParseTreeNode(declaration)) !== null && _a !== void 0 ? _a : declaration;
const sourceFile = parseTreeNode.getSourceFile();
if (!sourceFile) {

@@ -48,0 +50,0 @@ return false;

{
"name": "typescript-to-lua",
"version": "0.39.1",
"version": "0.39.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