Skip to content

Commit 1d0192d

Browse files
committed
default-options-back
1 parent 23f38b1 commit 1d0192d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@xiangnanscu/lua2js",
3-
"version": "0.31.0",
3+
"version": "0.32.0",
44
"main": "src/lua2js.mjs",
55
"type": "module",
66
"bin": {

src/lua2js.mjs

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,20 @@ import parserBabel from "prettier/parser-babel.js";
88
const defaultOptions = {
99
printToConsoleLog: true,
1010
tryUseOfLoop: true,
11-
indexMinusOne: false,
12-
returnNilToThrow: false,
11+
indexMinusOne: true,
12+
returnNilToThrow: true,
1313
errorToThrow: true,
1414
tostring: true,
1515
dict: true,
1616
list: true,
1717
unpack: true,
1818
tonumber: true,
19-
class: false,
19+
class: true,
2020
selfToThis: true,
2121
clsToThis: true,
2222
typeToTypeof: true,
2323
stringFormat: true,
24-
tableConcat: false,
24+
tableConcat: true,
2525
tableInsert: true,
2626
camelStyle: false,
2727
};

0 commit comments

Comments
 (0)