@agent-scope/render 1.0.2 → 1.2.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.js
CHANGED
|
@@ -647,7 +647,7 @@ function detectHeuristicFlags(errorMessage, componentStack) {
|
|
|
647
647
|
const flags = /* @__PURE__ */ new Set();
|
|
648
648
|
const msg = errorMessage.toLowerCase();
|
|
649
649
|
const stack = componentStack.toLowerCase();
|
|
650
|
-
const combined = msg
|
|
650
|
+
const combined = `${msg} ${stack}`;
|
|
651
651
|
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")) {
|
|
652
652
|
flags.add("MISSING_PROVIDER");
|
|
653
653
|
}
|