@pitcher/canvas-ui 2025.12.9-123223-beta → 2025.12.9-123935-beta

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/canvas-ui.js CHANGED
@@ -92771,6 +92771,14 @@ function renderTemplate(template, context = {}) {
92771
92771
  }
92772
92772
  }
92773
92773
  function registerCustomHelper(helper) {
92774
+ if (!helper || typeof helper.name !== "string" || !helper.name.trim()) {
92775
+ console.warn("[handlebars] Invalid helper: missing or empty name");
92776
+ return false;
92777
+ }
92778
+ if (typeof helper.code !== "string" || !helper.code.trim()) {
92779
+ console.warn(`[handlebars] Invalid helper "${helper.name}": missing or empty code`);
92780
+ return false;
92781
+ }
92774
92782
  try {
92775
92783
  const fn = new Function("return " + helper.code)();
92776
92784
  if (typeof fn !== "function") {