isaacscript-common 15.3.4 → 15.3.6
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 15.3.
|
|
3
|
+
isaacscript-common 15.3.6
|
|
4
4
|
|
|
5
5
|
This is the "isaacscript-common" library, which was created with the IsaacScript tool.
|
|
6
6
|
|
|
@@ -48121,8 +48121,7 @@ function getExportedMethodsFromFeature(self, featureClass)
|
|
|
48121
48121
|
local constructor = getTSTLClassConstructor(nil, featureClass)
|
|
48122
48122
|
local exportedMethodNames = constructor[EXPORTED_METHOD_NAMES_KEY]
|
|
48123
48123
|
if exportedMethodNames == nil then
|
|
48124
|
-
|
|
48125
|
-
error(("Failed to find the exported method names for the class of \"" .. tstlClassName) .. "\". This probably means that it does not have any public methods that are tagged with the @Exported decorator. Ensure that this class has at least one export.")
|
|
48124
|
+
return {}
|
|
48126
48125
|
end
|
|
48127
48126
|
return __TS__ArrayMap(
|
|
48128
48127
|
exportedMethodNames,
|
|
@@ -48410,7 +48409,7 @@ end
|
|
|
48410
48409
|
function addCallback(self, modFeature, modFeatureConstructor, mod, modCallback, callback, parameters, vanilla)
|
|
48411
48410
|
local function wrappedCallback(____, ...)
|
|
48412
48411
|
local castedCallback = callback
|
|
48413
|
-
castedCallback(modFeature, ...)
|
|
48412
|
+
return castedCallback(modFeature, ...)
|
|
48414
48413
|
end
|
|
48415
48414
|
if vanilla then
|
|
48416
48415
|
local modCallbackVanilla = modCallback
|
|
@@ -64,7 +64,7 @@ end
|
|
|
64
64
|
function addCallback(self, modFeature, modFeatureConstructor, mod, modCallback, callback, parameters, vanilla)
|
|
65
65
|
local function wrappedCallback(____, ...)
|
|
66
66
|
local castedCallback = callback
|
|
67
|
-
castedCallback(modFeature, ...)
|
|
67
|
+
return castedCallback(modFeature, ...)
|
|
68
68
|
end
|
|
69
69
|
if vanilla then
|
|
70
70
|
local modCallbackVanilla = modCallback
|
|
@@ -31,8 +31,7 @@ function getExportedMethodsFromFeature(self, featureClass)
|
|
|
31
31
|
local constructor = getTSTLClassConstructor(nil, featureClass)
|
|
32
32
|
local exportedMethodNames = constructor[EXPORTED_METHOD_NAMES_KEY]
|
|
33
33
|
if exportedMethodNames == nil then
|
|
34
|
-
|
|
35
|
-
error(("Failed to find the exported method names for the class of \"" .. tstlClassName) .. "\". This probably means that it does not have any public methods that are tagged with the @Exported decorator. Ensure that this class has at least one export.")
|
|
34
|
+
return {}
|
|
36
35
|
end
|
|
37
36
|
return __TS__ArrayMap(
|
|
38
37
|
exportedMethodNames,
|
package/package.json
CHANGED
|
@@ -199,7 +199,7 @@ function addCallback(
|
|
|
199
199
|
this: void,
|
|
200
200
|
...args: unknown[]
|
|
201
201
|
) => unknown;
|
|
202
|
-
castedCallback(modFeature, ...callbackArgs);
|
|
202
|
+
return castedCallback(modFeature, ...callbackArgs);
|
|
203
203
|
};
|
|
204
204
|
|
|
205
205
|
// We need to save the wrapped function for later (so we can unregister them).
|
|
@@ -394,10 +394,7 @@ function getExportedMethodsFromFeature(featureClass: unknown): FunctionTuple[] {
|
|
|
394
394
|
| undefined;
|
|
395
395
|
|
|
396
396
|
if (exportedMethodNames === undefined) {
|
|
397
|
-
|
|
398
|
-
error(
|
|
399
|
-
`Failed to find the exported method names for the class of "${tstlClassName}". This probably means that it does not have any public methods that are tagged with the @Exported decorator. Ensure that this class has at least one export.`,
|
|
400
|
-
);
|
|
397
|
+
return [];
|
|
401
398
|
}
|
|
402
399
|
|
|
403
400
|
return exportedMethodNames.map((name) => {
|