isaacscript-common 12.3.2 → 12.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
--[[
|
|
2
2
|
|
|
3
|
-
isaacscript-common 12.3.
|
|
3
|
+
isaacscript-common 12.3.3
|
|
4
4
|
|
|
5
5
|
This is the "isaacscript-common" library, which was created with the IsaacScript tool.
|
|
6
6
|
|
|
@@ -29551,7 +29551,7 @@ function ____exports.logTable(self, luaTable, parentTables)
|
|
|
29551
29551
|
math.floor(numSpaces)
|
|
29552
29552
|
)
|
|
29553
29553
|
if not isTable(nil, luaTable) then
|
|
29554
|
-
(function()
|
|
29554
|
+
(function(self)
|
|
29555
29555
|
____exports.log(
|
|
29556
29556
|
nil,
|
|
29557
29557
|
((indentation .. "n/a (encountered a variable of type \"") .. __TS__TypeOf(luaTable)) .. "\" instead of a table)"
|
|
@@ -29578,7 +29578,7 @@ function ____exports.logTable(self, luaTable, parentTables)
|
|
|
29578
29578
|
numElements = numElements + 1
|
|
29579
29579
|
end
|
|
29580
29580
|
);
|
|
29581
|
-
(function()
|
|
29581
|
+
(function(self)
|
|
29582
29582
|
____exports.log(
|
|
29583
29583
|
nil,
|
|
29584
29584
|
(indentation .. "The size of the table was: ") .. tostring(numElements)
|
|
@@ -47065,7 +47065,7 @@ return ____exports
|
|
|
47065
47065
|
["package"] = function(...)
|
|
47066
47066
|
return {
|
|
47067
47067
|
name = "isaacscript-common",
|
|
47068
|
-
version = "12.3.
|
|
47068
|
+
version = "12.3.3",
|
|
47069
47069
|
description = "Helper functions and features for IsaacScript mods.",
|
|
47070
47070
|
keywords = {"isaac", "rebirth", "afterbirth", "repentance"},
|
|
47071
47071
|
homepage = "https://isaacscript.github.io/",
|
package/dist/package.lua
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../../src/functions/log.ts"],"names":[],"mapp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AAI,IAAI,CA4B9B;AAED;;;GAGG;AACH,wBAAgB,cAAc,IAAI,IAAI,CAiBrC;AAED,wBAAgB,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,SAAS,CAAC,GAAG,WAAW,CAAC,SAAS,CAAC,GAAG,IAAI,CAUzE;AAED,gFAAgF;AAChF,wBAAgB,SAAS,IAAI,IAAI,CAQhC;AAED;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,QAAQ,EAAE,OAAO,EAAE,YAAY,SAAI,GAAG,IAAI,CAiDlE;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,SAAS,EAAE,CAAC,EACxD,MAAM,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,EACpB,MAAM,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,GACnB,IAAI,CA8BN;AAED,iGAAiG;AACjG,wBAAgB,YAAY,CAAC,KAAK,EAAE,QAAQ,GAAG,QAAQ,CAAC,QAAQ,CAAC,GAAG,IAAI,CAEvE;AAED,gGAAgG;AAChG,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,GAAG,IAAI,CAEpE;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,QAAQ,EAAE,OAAO,GAAG,IAAI,CAoBnD;AAED,wBAAgB,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,UAAQ,GAAG,IAAI,CAG7D"}
|
|
@@ -413,7 +413,7 @@ function ____exports.logTable(self, luaTable, parentTables)
|
|
|
413
413
|
math.floor(numSpaces)
|
|
414
414
|
)
|
|
415
415
|
if not isTable(nil, luaTable) then
|
|
416
|
-
(function()
|
|
416
|
+
(function(self)
|
|
417
417
|
____exports.log(
|
|
418
418
|
nil,
|
|
419
419
|
((indentation .. "n/a (encountered a variable of type \"") .. __TS__TypeOf(luaTable)) .. "\" instead of a table)"
|
|
@@ -440,7 +440,7 @@ function ____exports.logTable(self, luaTable, parentTables)
|
|
|
440
440
|
numElements = numElements + 1
|
|
441
441
|
end
|
|
442
442
|
);
|
|
443
|
-
(function()
|
|
443
|
+
(function(self)
|
|
444
444
|
____exports.log(
|
|
445
445
|
nil,
|
|
446
446
|
(indentation .. "The size of the table was: ") .. tostring(numElements)
|
package/package.json
CHANGED
package/src/functions/log.ts
CHANGED
|
@@ -362,9 +362,12 @@ export function logTable(luaTable: unknown, parentTables = 0): void {
|
|
|
362
362
|
const indentation = " ".repeat(numSpaces);
|
|
363
363
|
|
|
364
364
|
if (!isTable(luaTable)) {
|
|
365
|
-
// Put it in an IIFE so that
|
|
366
|
-
// other text.
|
|
367
|
-
|
|
365
|
+
// Put it in an IIFE so that it will show as "func" instead of "logTable" and align with the
|
|
366
|
+
// other text. We have to use a non-arrow function to prevent Lua language server errors with
|
|
367
|
+
// the self argument.
|
|
368
|
+
/** @noSelf */
|
|
369
|
+
// eslint-disable-next-line func-names
|
|
370
|
+
(function () {
|
|
368
371
|
log(
|
|
369
372
|
`${indentation}n/a (encountered a variable of type "${typeof luaTable}" instead of a table)`,
|
|
370
373
|
);
|
|
@@ -391,9 +394,12 @@ export function logTable(luaTable: unknown, parentTables = 0): void {
|
|
|
391
394
|
numElements++;
|
|
392
395
|
});
|
|
393
396
|
|
|
394
|
-
// Put it in an IIFE so that
|
|
395
|
-
//
|
|
396
|
-
|
|
397
|
+
// Put it in an IIFE so that it will show as "func" instead of "logTable" and align with the other
|
|
398
|
+
// text. We have to use a non-arrow function to prevent Lua language server errors with the self
|
|
399
|
+
// argument.
|
|
400
|
+
/** @noSelf */
|
|
401
|
+
// eslint-disable-next-line func-names
|
|
402
|
+
(function () {
|
|
397
403
|
log(`${indentation}The size of the table was: ${numElements}`);
|
|
398
404
|
})();
|
|
399
405
|
}
|