isaacscript-common 1.2.176 → 1.2.177

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.
Files changed (153) hide show
  1. package/dist/callbacks/itemPickup.lua +0 -1
  2. package/dist/callbacks/postBombInitLate.lua +0 -1
  3. package/dist/callbacks/postBoneSwing.lua +0 -1
  4. package/dist/callbacks/postCursedTeleport.lua +0 -1
  5. package/dist/callbacks/postCustomDoorEnter.lua +0 -1
  6. package/dist/callbacks/postEffectInitLate.lua +0 -1
  7. package/dist/callbacks/postEsauJr.lua +0 -1
  8. package/dist/callbacks/postFamiliarInitLate.lua +0 -1
  9. package/dist/callbacks/postFlip.lua +0 -1
  10. package/dist/callbacks/postGridEntity.lua +0 -1
  11. package/dist/callbacks/postGridEntityCollision.lua +0 -1
  12. package/dist/callbacks/postKnifeInitLate.lua +0 -1
  13. package/dist/callbacks/postLaserInitLate.lua +0 -1
  14. package/dist/callbacks/postNPCInitLate.lua +0 -1
  15. package/dist/callbacks/postPickupCollect.lua +0 -1
  16. package/dist/callbacks/postPickupInitLate.lua +0 -1
  17. package/dist/callbacks/postPlayerChangeHealth.lua +0 -1
  18. package/dist/callbacks/postPlayerChangeType.lua +0 -1
  19. package/dist/callbacks/postPlayerFatalDamage.lua +0 -1
  20. package/dist/callbacks/postPlayerInitLate.lua +0 -1
  21. package/dist/callbacks/postPlayerReordered.lua +0 -1
  22. package/dist/callbacks/postProjectileInitLate.lua +0 -1
  23. package/dist/callbacks/postPurchase.lua +0 -1
  24. package/dist/callbacks/postSlotInitUpdate.lua +0 -1
  25. package/dist/callbacks/postSlotRender.lua +0 -1
  26. package/dist/callbacks/postTearInitLate.lua +0 -1
  27. package/dist/callbacks/postTearInitVeryLate.lua +0 -1
  28. package/dist/callbacks/postTransformation.lua +0 -1
  29. package/dist/callbacks/postTrinketBreak.lua +0 -1
  30. package/dist/callbacks/preNewLevel.lua +0 -1
  31. package/dist/callbacks/subscriptions/postBombInitLate.lua +0 -1
  32. package/dist/callbacks/subscriptions/postBoneSwing.lua +0 -1
  33. package/dist/callbacks/subscriptions/postCursedTeleport.lua +0 -1
  34. package/dist/callbacks/subscriptions/postCustomDoorEnter.lua +0 -1
  35. package/dist/callbacks/subscriptions/postCustomRevive.lua +0 -1
  36. package/dist/callbacks/subscriptions/postEffectInitLate.lua +0 -1
  37. package/dist/callbacks/subscriptions/postEsauJr.lua +0 -1
  38. package/dist/callbacks/subscriptions/postFamiliarInitLate.lua +0 -1
  39. package/dist/callbacks/subscriptions/postFirstEsauJr.lua +0 -1
  40. package/dist/callbacks/subscriptions/postFirstFlip.lua +0 -1
  41. package/dist/callbacks/subscriptions/postFlip.lua +0 -1
  42. package/dist/callbacks/subscriptions/postGameStartedReordered.lua +0 -1
  43. package/dist/callbacks/subscriptions/postGridEntityBroken.lua +0 -1
  44. package/dist/callbacks/subscriptions/postGridEntityCollision.lua +0 -1
  45. package/dist/callbacks/subscriptions/postGridEntityInit.lua +0 -1
  46. package/dist/callbacks/subscriptions/postGridEntityRemove.lua +0 -1
  47. package/dist/callbacks/subscriptions/postGridEntityStateChange.lua +0 -1
  48. package/dist/callbacks/subscriptions/postGridEntityUpdate.lua +0 -1
  49. package/dist/callbacks/subscriptions/postItemPickup.lua +0 -1
  50. package/dist/callbacks/subscriptions/postKnifeInitLate.lua +0 -1
  51. package/dist/callbacks/subscriptions/postLaserInitLate.lua +0 -1
  52. package/dist/callbacks/subscriptions/postNPCInitLate.lua +0 -1
  53. package/dist/callbacks/subscriptions/postNewLevelReordered.lua +0 -1
  54. package/dist/callbacks/subscriptions/postNewRoomEarly.lua +0 -1
  55. package/dist/callbacks/subscriptions/postNewRoomReordered.lua +0 -1
  56. package/dist/callbacks/subscriptions/postPEffectUpdateReordered.lua +0 -1
  57. package/dist/callbacks/subscriptions/postPickupCollect.lua +0 -1
  58. package/dist/callbacks/subscriptions/postPickupInitLate.lua +0 -1
  59. package/dist/callbacks/subscriptions/postPlayerChangeHealth.lua +0 -1
  60. package/dist/callbacks/subscriptions/postPlayerChangeType.lua +0 -1
  61. package/dist/callbacks/subscriptions/postPlayerFatalDamage.lua +0 -1
  62. package/dist/callbacks/subscriptions/postPlayerInitLate.lua +0 -1
  63. package/dist/callbacks/subscriptions/postPlayerInitReordered.lua +0 -1
  64. package/dist/callbacks/subscriptions/postPlayerRenderReordered.lua +0 -1
  65. package/dist/callbacks/subscriptions/postPlayerUpdateReordered.lua +0 -1
  66. package/dist/callbacks/subscriptions/postProjectileInitLate.lua +0 -1
  67. package/dist/callbacks/subscriptions/postPurchase.lua +0 -1
  68. package/dist/callbacks/subscriptions/postSacrifice.lua +0 -1
  69. package/dist/callbacks/subscriptions/postSlotAnimationChanged.lua +0 -1
  70. package/dist/callbacks/subscriptions/postSlotDestroyed.lua +0 -1
  71. package/dist/callbacks/subscriptions/postSlotInit.lua +0 -1
  72. package/dist/callbacks/subscriptions/postSlotRender.lua +0 -1
  73. package/dist/callbacks/subscriptions/postSlotUpdate.lua +0 -1
  74. package/dist/callbacks/subscriptions/postTearInitLate.lua +0 -1
  75. package/dist/callbacks/subscriptions/postTearInitVeryLate.lua +0 -1
  76. package/dist/callbacks/subscriptions/postTransformation.lua +0 -1
  77. package/dist/callbacks/subscriptions/postTrinketBreak.lua +0 -1
  78. package/dist/callbacks/subscriptions/preBerserkDeath.lua +0 -1
  79. package/dist/callbacks/subscriptions/preCustomRevive.lua +0 -1
  80. package/dist/callbacks/subscriptions/preItemPickup.lua +0 -1
  81. package/dist/callbacks/subscriptions/preNewLevel.lua +0 -1
  82. package/dist/callbacks/subscriptions/roomClearChange.lua +0 -1
  83. package/dist/classes/DefaultMap.lua +0 -1
  84. package/dist/classes/ModUpgraded.lua +0 -1
  85. package/dist/classes/null.lua +0 -1
  86. package/dist/constants.lua +0 -1
  87. package/dist/enums/private/SerializationBrand.lua +0 -1
  88. package/dist/features/collectiblesSeen.lua +0 -1
  89. package/dist/features/deployJSONRoom.lua +0 -1
  90. package/dist/features/disableInputs.lua +0 -1
  91. package/dist/features/disableSound.lua +0 -1
  92. package/dist/features/extraConsoleCommands/commands.lua +0 -1
  93. package/dist/features/extraConsoleCommands/init.lua +0 -1
  94. package/dist/features/getCollectibleItemPoolType.lua +0 -1
  95. package/dist/features/isPonyActive.lua +0 -1
  96. package/dist/features/playerInventory.lua +0 -1
  97. package/dist/features/preventCollectibleRotate.lua +0 -1
  98. package/dist/features/runInNFrames.lua +0 -1
  99. package/dist/features/saveDataManager/exports.lua +0 -1
  100. package/dist/features/saveDataManager/load.lua +0 -1
  101. package/dist/features/saveDataManager/main.lua +0 -1
  102. package/dist/features/saveDataManager/maps.lua +0 -1
  103. package/dist/features/saveDataManager/merge.lua +0 -1
  104. package/dist/features/saveDataManager/save.lua +0 -1
  105. package/dist/features/sirenHelpers.lua +0 -1
  106. package/dist/features/taintedLazarusPlayers.lua +0 -1
  107. package/dist/functions/array.lua +0 -1
  108. package/dist/functions/cards.lua +0 -1
  109. package/dist/functions/collectibleCacheFlag.lua +0 -1
  110. package/dist/functions/collectibleSet.lua +0 -1
  111. package/dist/functions/deepCopy.lua +0 -1
  112. package/dist/functions/deepCopyTests.lua +0 -1
  113. package/dist/functions/doors.lua +0 -1
  114. package/dist/functions/entity.lua +0 -1
  115. package/dist/functions/entitySpecific.lua +0 -1
  116. package/dist/functions/familiars.lua +0 -1
  117. package/dist/functions/flying.lua +1 -2
  118. package/dist/functions/globals.lua +0 -1
  119. package/dist/functions/gridEntity.lua +0 -1
  120. package/dist/functions/input.lua +0 -1
  121. package/dist/functions/jsonRoom.lua +0 -1
  122. package/dist/functions/log.lua +0 -1
  123. package/dist/functions/map.lua +0 -1
  124. package/dist/functions/math.lua +0 -1
  125. package/dist/functions/npc.lua +0 -1
  126. package/dist/functions/pickups.lua +0 -1
  127. package/dist/functions/player.lua +0 -1
  128. package/dist/functions/playerDataStructures.lua +0 -1
  129. package/dist/functions/playerHealth.lua +0 -1
  130. package/dist/functions/pocketItems.lua +0 -1
  131. package/dist/functions/positionVelocity.lua +0 -1
  132. package/dist/functions/rooms.lua +0 -1
  133. package/dist/functions/set.lua +0 -1
  134. package/dist/functions/string.lua +0 -1
  135. package/dist/functions/transformations.lua +0 -1
  136. package/dist/functions/trinketCacheFlag.lua +0 -1
  137. package/dist/functions/trinketSet.lua +0 -1
  138. package/dist/functions/utils.lua +0 -1
  139. package/dist/lualib_bundle.lua +83 -49
  140. package/dist/maps/cardMap.lua +0 -1
  141. package/dist/maps/characterMap.lua +0 -1
  142. package/dist/maps/collectibleDescriptionMap.lua +0 -1
  143. package/dist/maps/collectibleNameMap.lua +0 -1
  144. package/dist/maps/gridEntityTypeToBrokenStateMap.lua +0 -1
  145. package/dist/maps/gridEntityXMLMap.lua +0 -1
  146. package/dist/maps/pillEffectMap.lua +0 -1
  147. package/dist/maps/roomShapeToTopLeftWallGridIndexMap.lua +0 -1
  148. package/dist/maps/roomTypeMap.lua +0 -1
  149. package/dist/maps/trinketDescriptionMap.lua +0 -1
  150. package/dist/maps/trinketNameMap.lua +0 -1
  151. package/dist/patchErrorFunctions.lua +0 -1
  152. package/dist/upgradeMod.lua +0 -1
  153. package/package.json +2 -2
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local Map = ____lualib.Map
4
3
  local __TS__New = ____lualib.__TS__New
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayPush = ____lualib.__TS__ArrayPush
4
3
  local __TS__ArrayForEach = ____lualib.__TS__ArrayForEach
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local Map = ____lualib.Map
4
3
  local __TS__ObjectKeys = ____lualib.__TS__ObjectKeys
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__StringTrim = ____lualib.__TS__StringTrim
4
3
  local ____exports = {}
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local Map = ____lualib.Map
4
3
  local ____exports = {}
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local Map = ____lualib.Map
4
3
  local __TS__New = ____lualib.__TS__New
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local Map = ____lualib.Map
4
3
  local __TS__InstanceOf = ____lualib.__TS__InstanceOf
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local Map = ____lualib.Map
4
3
  local __TS__ObjectKeys = ____lualib.__TS__ObjectKeys
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayPush = ____lualib.__TS__ArrayPush
4
3
  local __TS__ArrayFind = ____lualib.__TS__ArrayFind
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local Map = ____lualib.Map
4
3
  local __TS__New = ____lualib.__TS__New
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayEvery = ____lualib.__TS__ArrayEvery
4
3
  local Set = ____lualib.Set
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local Map = ____lualib.Map
4
3
  local __TS__New = ____lualib.__TS__New
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local Map = ____lualib.Map
4
3
  local __TS__New = ____lualib.__TS__New
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local Set = ____lualib.Set
4
3
  local __TS__New = ____lualib.__TS__New
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local Set = ____lualib.Set
4
3
  local __TS__New = ____lualib.__TS__New
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local Map = ____lualib.Map
4
3
  local __TS__New = ____lualib.__TS__New
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local Set = ____lualib.Set
4
3
  local __TS__New = ____lualib.__TS__New
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local Set = ____lualib.Set
4
3
  local __TS__New = ____lualib.__TS__New
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayPush = ____lualib.__TS__ArrayPush
4
3
  local ____exports = {}
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayFilter = ____lualib.__TS__ArrayFilter
4
3
  local __TS__ArrayPush = ____lualib.__TS__ArrayPush
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local Set = ____lualib.Set
4
3
  local __TS__New = ____lualib.__TS__New
@@ -18,7 +17,7 @@ local FLYING_CHARACTERS = __TS__New(Set, {
18
17
  PlayerType.PLAYER_THESOUL_B
19
18
  })
20
19
  local FLYING_TRINKETS = __TS__New(Set, {TrinketType.TRINKET_BAT_WING, TrinketType.TRINKET_AZAZELS_STUMP})
21
- local FLYING_NULL_ITEMS = {NullItemID.ID_REVERSE_SUN, NullItemID.ID_SPIRIT_SHACKLES_SOUL}
20
+ local FLYING_NULL_ITEMS = {NullItemID.ID_REVERSE_SUN, NullItemID.ID_SPIRIT_SHACKLES_SOUL, NullItemID.ID_LOST_CURSE}
22
21
  function ____exports.getFlyingCollectibles(self, pruneConditionalItems)
23
22
  local collectiblesWithFlyingCacheFlag = getCollectiblesForCacheFlag(nil, CacheFlag.CACHE_FLYING)
24
23
  local collectiblesWithAllCacheFlag = getCollectiblesForCacheFlag(nil, CacheFlag.CACHE_ALL)
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local Set = ____lualib.Set
4
3
  local __TS__New = ____lualib.__TS__New
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local Set = ____lualib.Set
4
3
  local __TS__New = ____lualib.__TS__New
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local Set = ____lualib.Set
4
3
  local __TS__New = ____lualib.__TS__New
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayFilter = ____lualib.__TS__ArrayFilter
4
3
  local __TS__ArrayMap = ____lualib.__TS__ArrayMap
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local Set = ____lualib.Set
4
3
  local __TS__New = ____lualib.__TS__New
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local Map = ____lualib.Map
4
3
  local __TS__New = ____lualib.__TS__New
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayPush = ____lualib.__TS__ArrayPush
4
3
  local ____exports = {}
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local Set = ____lualib.Set
4
3
  local __TS__New = ____lualib.__TS__New
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayPush = ____lualib.__TS__ArrayPush
4
3
  local ____exports = {}
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local Set = ____lualib.Set
4
3
  local __TS__New = ____lualib.__TS__New
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local Map = ____lualib.Map
4
3
  local Set = ____lualib.Set
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayPush = ____lualib.__TS__ArrayPush
4
3
  local __TS__ArrayForEach = ____lualib.__TS__ArrayForEach
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayFind = ____lualib.__TS__ArrayFind
4
3
  local __TS__ArrayPush = ____lualib.__TS__ArrayPush
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArraySome = ____lualib.__TS__ArraySome
4
3
  local Map = ____lualib.Map
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayMap = ____lualib.__TS__ArrayMap
4
3
  local Set = ____lualib.Set
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local Set = ____lualib.Set
4
3
  local __TS__Iterator = ____lualib.__TS__Iterator
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__StringStartsWith = ____lualib.__TS__StringStartsWith
4
3
  local __TS__StringSlice = ____lualib.__TS__StringSlice
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local Map = ____lualib.Map
4
3
  local __TS__New = ____lualib.__TS__New
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local Map = ____lualib.Map
4
3
  local __TS__New = ____lualib.__TS__New
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local Set = ____lualib.Set
4
3
  local __TS__New = ____lualib.__TS__New
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__ArrayPush = ____lualib.__TS__ArrayPush
4
3
  local __TS__ArraySort = ____lualib.__TS__ArraySort
@@ -115,6 +115,88 @@ local function __TS__ArrayFindIndex(arr, callbackFn)
115
115
  return -1
116
116
  end
117
117
 
118
+ local function __TS__ArrayPush(arr, ...)
119
+ local items = {...}
120
+ for ____, item in ipairs(items) do
121
+ arr[#arr + 1] = item
122
+ end
123
+ return #arr
124
+ end
125
+
126
+ local __TS__Iterator
127
+ do
128
+ local function iteratorGeneratorStep(self)
129
+ local co = self.____coroutine
130
+ local status, value = coroutine.resume(co)
131
+ if not status then
132
+ error(value, 0)
133
+ end
134
+ if coroutine.status(co) == "dead" then
135
+ return
136
+ end
137
+ return true, value
138
+ end
139
+ local function iteratorIteratorStep(self)
140
+ local result = self:next()
141
+ if result.done then
142
+ return
143
+ end
144
+ return true, result.value
145
+ end
146
+ local function iteratorStringStep(self, index)
147
+ index = index + 1
148
+ if index > #self then
149
+ return
150
+ end
151
+ return index, string.sub(self, index, index)
152
+ end
153
+ function __TS__Iterator(iterable)
154
+ if type(iterable) == "string" then
155
+ return iteratorStringStep, iterable, 0
156
+ elseif iterable.____coroutine ~= nil then
157
+ return iteratorGeneratorStep, iterable
158
+ elseif iterable[Symbol.iterator] then
159
+ local iterator = iterable[Symbol.iterator](iterable)
160
+ return iteratorIteratorStep, iterator
161
+ else
162
+ return ipairs(iterable)
163
+ end
164
+ end
165
+ end
166
+
167
+ local __TS__ArrayFrom
168
+ do
169
+ local function arrayLikeStep(self, index)
170
+ index = index + 1
171
+ if index > self.length then
172
+ return
173
+ end
174
+ return index, self[index]
175
+ end
176
+ local function arrayLikeIterator(arr)
177
+ if type(arr.length) == "number" then
178
+ return arrayLikeStep, arr, 0
179
+ end
180
+ return __TS__Iterator(arr)
181
+ end
182
+ function __TS__ArrayFrom(arrayLike, mapFn, thisArg)
183
+ local result = {}
184
+ if mapFn == nil then
185
+ for ____, v in arrayLikeIterator(arrayLike) do
186
+ __TS__ArrayPush(result, v)
187
+ end
188
+ else
189
+ for i, v in arrayLikeIterator(arrayLike) do
190
+ __TS__ArrayPush(
191
+ result,
192
+ mapFn(thisArg, v, i - 1)
193
+ )
194
+ end
195
+ end
196
+ return result
197
+ end
198
+ end
199
+
118
200
  local function __TS__ArrayIncludes(self, searchElement, fromIndex)
119
201
  if fromIndex == nil then
120
202
  fromIndex = 0
@@ -194,14 +276,6 @@ local function __TS__ArrayMap(arr, callbackfn)
194
276
  return newArray
195
277
  end
196
278
 
197
- local function __TS__ArrayPush(arr, ...)
198
- local items = {...}
199
- for ____, item in ipairs(items) do
200
- arr[#arr + 1] = item
201
- end
202
- return #arr
203
- end
204
-
205
279
  local function __TS__ArrayReduce(arr, callbackFn, ...)
206
280
  local len = #arr
207
281
  local k = 0
@@ -1158,47 +1232,6 @@ local function __TS__InstanceOfObject(value)
1158
1232
  return valueType == "table" or valueType == "function"
1159
1233
  end
1160
1234
 
1161
- local __TS__Iterator
1162
- do
1163
- local function iteratorGeneratorStep(self)
1164
- local co = self.____coroutine
1165
- local status, value = coroutine.resume(co)
1166
- if not status then
1167
- error(value, 0)
1168
- end
1169
- if coroutine.status(co) == "dead" then
1170
- return
1171
- end
1172
- return true, value
1173
- end
1174
- local function iteratorIteratorStep(self)
1175
- local result = self:next()
1176
- if result.done then
1177
- return
1178
- end
1179
- return true, result.value
1180
- end
1181
- local function iteratorStringStep(self, index)
1182
- index = index + 1
1183
- if index > #self then
1184
- return
1185
- end
1186
- return index, string.sub(self, index, index)
1187
- end
1188
- function __TS__Iterator(iterable)
1189
- if type(iterable) == "string" then
1190
- return iteratorStringStep, iterable, 0
1191
- elseif iterable.____coroutine ~= nil then
1192
- return iteratorGeneratorStep, iterable
1193
- elseif iterable[Symbol.iterator] then
1194
- local iterator = iterable[Symbol.iterator](iterable)
1195
- return iteratorIteratorStep, iterator
1196
- else
1197
- return ipairs(iterable)
1198
- end
1199
- end
1200
- end
1201
-
1202
1235
  local Map
1203
1236
  do
1204
1237
  Map = __TS__Class()
@@ -2372,6 +2405,7 @@ return {
2372
2405
  __TS__ArrayForEach = __TS__ArrayForEach,
2373
2406
  __TS__ArrayFind = __TS__ArrayFind,
2374
2407
  __TS__ArrayFindIndex = __TS__ArrayFindIndex,
2408
+ __TS__ArrayFrom = __TS__ArrayFrom,
2375
2409
  __TS__ArrayIncludes = __TS__ArrayIncludes,
2376
2410
  __TS__ArrayIndexOf = __TS__ArrayIndexOf,
2377
2411
  __TS__ArrayIsArray = __TS__ArrayIsArray,
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local Map = ____lualib.Map
4
3
  local __TS__New = ____lualib.__TS__New
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local Map = ____lualib.Map
4
3
  local __TS__New = ____lualib.__TS__New
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local Map = ____lualib.Map
4
3
  local __TS__New = ____lualib.__TS__New
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local Map = ____lualib.Map
4
3
  local __TS__New = ____lualib.__TS__New
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local Map = ____lualib.Map
4
3
  local __TS__New = ____lualib.__TS__New
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local Map = ____lualib.Map
4
3
  local __TS__New = ____lualib.__TS__New
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local Map = ____lualib.Map
4
3
  local __TS__New = ____lualib.__TS__New
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local Map = ____lualib.Map
4
3
  local __TS__New = ____lualib.__TS__New
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local Map = ____lualib.Map
4
3
  local __TS__New = ____lualib.__TS__New
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local Map = ____lualib.Map
4
3
  local __TS__New = ____lualib.__TS__New
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local Map = ____lualib.Map
4
3
  local __TS__New = ____lualib.__TS__New
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__StringSplit = ____lualib.__TS__StringSplit
4
3
  local __TS__StringIncludes = ____lualib.__TS__StringIncludes
@@ -1,4 +1,3 @@
1
- --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
1
  local ____lualib = require("lualib_bundle")
3
2
  local __TS__New = ____lualib.__TS__New
4
3
  local ____exports = {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "1.2.176",
3
+ "version": "1.2.177",
4
4
  "description": "Helper functions for IsaacScript mods",
5
5
  "keywords": [
6
6
  "isaac",
@@ -30,6 +30,6 @@
30
30
  "isaacscript-tsconfig": "^1.1.8",
31
31
  "typedoc": "^0.22.13",
32
32
  "typescript": "4.6.2",
33
- "typescript-to-lua": "^1.4.0"
33
+ "typescript-to-lua": "^1.4.1"
34
34
  }
35
35
  }