@decky/ui 4.11.4 → 4.11.5

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,2 +1,2 @@
1
1
  import { findModuleExport } from "../webpack";
2
- export const ErrorBoundary = findModuleExport((e) => e.InstallErrorReportingStore && e?.prototype?.Reset && e?.prototype?.componentDidCatch);
2
+ export const ErrorBoundary = findModuleExport((e) => e?.prototype?.Reset && e?.prototype?.componentDidCatch && e.prototype?.render?.toString().includes("lastErrorKey"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decky/ui",
3
- "version": "4.11.4",
3
+ "version": "4.11.5",
4
4
  "description": "A library for interacting with the Steam frontend in Decky plugins and elsewhere.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -2,5 +2,5 @@ import { FC, PropsWithChildren } from "react";
2
2
  import { findModuleExport } from "../webpack";
3
3
 
4
4
  export const ErrorBoundary = findModuleExport(
5
- (e) => e.InstallErrorReportingStore && e?.prototype?.Reset && e?.prototype?.componentDidCatch,
5
+ (e) => e?.prototype?.Reset && e?.prototype?.componentDidCatch && e.prototype?.render?.toString().includes("lastErrorKey"),
6
6
  ) as FC<PropsWithChildren>; // Actually a class but @types/react is broken lol