@agent-scope/render 1.0.2 → 1.1.0
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.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -655,7 +655,7 @@ function detectHeuristicFlags(errorMessage, componentStack) {
|
|
|
655
655
|
const flags = /* @__PURE__ */ new Set();
|
|
656
656
|
const msg = errorMessage.toLowerCase();
|
|
657
657
|
const stack = componentStack.toLowerCase();
|
|
658
|
-
const combined = msg
|
|
658
|
+
const combined = `${msg} ${stack}`;
|
|
659
659
|
if (combined.includes("must be used within") || combined.includes("no provider") || combined.includes("provider") && combined.includes("context") || combined.includes("context") && combined.includes("undefined") || combined.includes("provider") && combined.includes("undefined")) {
|
|
660
660
|
flags.add("MISSING_PROVIDER");
|
|
661
661
|
}
|