isaacscript-common 1.2.165 → 1.2.166

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.
@@ -354,14 +354,18 @@ function ____exports.logTable(____table, parentTables)
354
354
  if parentTables == nil then
355
355
  parentTables = 0
356
356
  end
357
- local numSpaces = (parentTables + 1) * 2
358
357
  if parentTables == 0 then
359
358
  ____exports.log("Printing out a Lua table:")
360
359
  end
360
+ local numSpaces = (parentTables + 1) * 2
361
361
  local indentation = string.rep(
362
362
  " ",
363
363
  math.floor(numSpaces)
364
364
  )
365
+ if ____table == nil then
366
+ ____exports.log(indentation .. "n/a (the table was nil)")
367
+ return
368
+ end
365
369
  local numKeys = 0
366
370
  for key, value in pairs(____table) do
367
371
  ____exports.log((((indentation .. "Key: ") .. tostring(key)) .. ", Value: ") .. tostring(value))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "1.2.165",
3
+ "version": "1.2.166",
4
4
  "description": "Helper functions for IsaacScript mods",
5
5
  "keywords": [
6
6
  "isaac",