isaacscript-common 15.3.5 → 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.5
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
- local tstlClassName = getTSTLClassName(nil, featureClass) or "Unknown"
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,
@@ -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
- local tstlClassName = getTSTLClassName(nil, featureClass) or "Unknown"
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "15.3.5",
3
+ "version": "15.3.6",
4
4
  "description": "Helper functions and features for IsaacScript mods.",
5
5
  "keywords": [
6
6
  "isaac",
@@ -394,10 +394,7 @@ function getExportedMethodsFromFeature(featureClass: unknown): FunctionTuple[] {
394
394
  | undefined;
395
395
 
396
396
  if (exportedMethodNames === undefined) {
397
- const tstlClassName = getTSTLClassName(featureClass) ?? "Unknown";
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) => {