isaacscript-common 33.8.0 → 33.8.2
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.
- package/dist/index.rollup.d.ts +1 -1
- package/dist/isaacscript-common.lua +3 -3
- package/dist/src/classes/features/other/SaveDataManager.d.ts +1 -1
- package/dist/src/functions/logMisc.lua +2 -2
- package/package.json +1 -1
- package/src/classes/features/other/SaveDataManager.ts +1 -1
- package/src/functions/logMisc.ts +2 -2
package/dist/index.rollup.d.ts
CHANGED
|
@@ -15667,7 +15667,7 @@ declare class SaveDataManager extends Feature {
|
|
|
15667
15667
|
* use-case, then add a key of `__ignoreGlowingHourGlass: true` to your "run" or "level" object.
|
|
15668
15668
|
*
|
|
15669
15669
|
* If you want the automatic variable restoring with Glowing Hour Glass functionality to apply to
|
|
15670
|
-
* a "persistent" object, you can add a key of `
|
|
15670
|
+
* a "persistent" object, you can add a key of `__rewindWithGlowingHourGlass: true` to the object.
|
|
15671
15671
|
*
|
|
15672
15672
|
* @param key The name of the file or feature that is submitting data to be managed by the save
|
|
15673
15673
|
* data manager. The save data manager will throw an error if the key is already
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
--[[
|
|
2
2
|
|
|
3
|
-
isaacscript-common 33.8.
|
|
3
|
+
isaacscript-common 33.8.2
|
|
4
4
|
|
|
5
5
|
This is the "isaacscript-common" library, which was created with the IsaacScript tool.
|
|
6
6
|
|
|
@@ -29733,7 +29733,7 @@ function ____exports.logMap(map, name)
|
|
|
29733
29733
|
log("Tried to log a TSTL map, but the given object was not a TSTL map.")
|
|
29734
29734
|
return
|
|
29735
29735
|
end
|
|
29736
|
-
local suffix = name == nil and (" \"" ..
|
|
29736
|
+
local suffix = name == nil and "" or (" \"" .. name) .. "\""
|
|
29737
29737
|
log(("Logging a TSTL map" .. suffix) .. ":")
|
|
29738
29738
|
local mapKeys = {__TS__Spread(map:keys())}
|
|
29739
29739
|
__TS__ArraySort(mapKeys)
|
|
@@ -29836,7 +29836,7 @@ function ____exports.logSet(set, name)
|
|
|
29836
29836
|
log("Tried to log a TSTL set, but the given object was not a TSTL set.")
|
|
29837
29837
|
return
|
|
29838
29838
|
end
|
|
29839
|
-
local suffix = name == nil and (" \"" ..
|
|
29839
|
+
local suffix = name == nil and "" or (" \"" .. name) .. "\""
|
|
29840
29840
|
log(("Logging a TSTL set" .. suffix) .. ":")
|
|
29841
29841
|
local setValues = getSortedSetValues(nil, set)
|
|
29842
29842
|
for ____, value in ipairs(setValues) do
|
|
@@ -127,7 +127,7 @@ export declare class SaveDataManager extends Feature {
|
|
|
127
127
|
* use-case, then add a key of `__ignoreGlowingHourGlass: true` to your "run" or "level" object.
|
|
128
128
|
*
|
|
129
129
|
* If you want the automatic variable restoring with Glowing Hour Glass functionality to apply to
|
|
130
|
-
* a "persistent" object, you can add a key of `
|
|
130
|
+
* a "persistent" object, you can add a key of `__rewindWithGlowingHourGlass: true` to the object.
|
|
131
131
|
*
|
|
132
132
|
* @param key The name of the file or feature that is submitting data to be managed by the save
|
|
133
133
|
* data manager. The save data manager will throw an error if the key is already
|
|
@@ -213,7 +213,7 @@ function ____exports.logMap(map, name)
|
|
|
213
213
|
log("Tried to log a TSTL map, but the given object was not a TSTL map.")
|
|
214
214
|
return
|
|
215
215
|
end
|
|
216
|
-
local suffix = name == nil and (" \"" ..
|
|
216
|
+
local suffix = name == nil and "" or (" \"" .. name) .. "\""
|
|
217
217
|
log(("Logging a TSTL map" .. suffix) .. ":")
|
|
218
218
|
local mapKeys = {__TS__Spread(map:keys())}
|
|
219
219
|
__TS__ArraySort(mapKeys)
|
|
@@ -324,7 +324,7 @@ function ____exports.logSet(set, name)
|
|
|
324
324
|
log("Tried to log a TSTL set, but the given object was not a TSTL set.")
|
|
325
325
|
return
|
|
326
326
|
end
|
|
327
|
-
local suffix = name == nil and (" \"" ..
|
|
327
|
+
local suffix = name == nil and "" or (" \"" .. name) .. "\""
|
|
328
328
|
log(("Logging a TSTL set" .. suffix) .. ":")
|
|
329
329
|
local setValues = getSortedSetValues(nil, set)
|
|
330
330
|
for ____, value in ipairs(setValues) do
|
package/package.json
CHANGED
|
@@ -298,7 +298,7 @@ export class SaveDataManager extends Feature {
|
|
|
298
298
|
* use-case, then add a key of `__ignoreGlowingHourGlass: true` to your "run" or "level" object.
|
|
299
299
|
*
|
|
300
300
|
* If you want the automatic variable restoring with Glowing Hour Glass functionality to apply to
|
|
301
|
-
* a "persistent" object, you can add a key of `
|
|
301
|
+
* a "persistent" object, you can add a key of `__rewindWithGlowingHourGlass: true` to the object.
|
|
302
302
|
*
|
|
303
303
|
* @param key The name of the file or feature that is submitting data to be managed by the save
|
|
304
304
|
* data manager. The save data manager will throw an error if the key is already
|
package/src/functions/logMisc.ts
CHANGED
|
@@ -239,7 +239,7 @@ export function logMap(
|
|
|
239
239
|
return;
|
|
240
240
|
}
|
|
241
241
|
|
|
242
|
-
const suffix = name === undefined ? ` "${name}"
|
|
242
|
+
const suffix = name === undefined ? "" : ` "${name}"`;
|
|
243
243
|
log(`Logging a TSTL map${suffix}:`);
|
|
244
244
|
|
|
245
245
|
const mapKeys = [...map.keys()];
|
|
@@ -384,7 +384,7 @@ export function logSet(
|
|
|
384
384
|
return;
|
|
385
385
|
}
|
|
386
386
|
|
|
387
|
-
const suffix = name === undefined ? ` "${name}"
|
|
387
|
+
const suffix = name === undefined ? "" : ` "${name}"`;
|
|
388
388
|
log(`Logging a TSTL set${suffix}:`);
|
|
389
389
|
|
|
390
390
|
const setValues = getSortedSetValues(set);
|