New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@theorem/react

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@theorem/react - npm Package Compare versions

Comparing version 3.1.0 to 3.2.0

dist/ActionArea/button.test.d.ts

5

CHANGELOG.md

@@ -0,1 +1,6 @@

# 3.2.0
- ErrorBoudary: now receives componentStack
- routing: links with targets are allowed
# 3.1.0

@@ -2,0 +7,0 @@

8

dist/ErrorBoundary.d.ts
import { Component, ComponentType, ReactNode } from "react";
declare type Props = {
children: ReactNode;
reportError: (error: Error) => void;
reportError: (error: Error, details: {
componentStack: string;
}) => void;
} & ({

@@ -16,3 +18,5 @@ component: ComponentType<{

};
componentDidCatch(error: Error): void;
componentDidCatch(error: Error, details: {
componentStack: string;
}): void;
componentDidMount(): void;

@@ -19,0 +23,0 @@ componentWillUnmount(): void;

@@ -26,4 +26,4 @@ var __extends = (this && this.__extends) || (function () {

}
ErrorBoundary.prototype.componentDidCatch = function (error) {
this.props.reportError(error);
ErrorBoundary.prototype.componentDidCatch = function (error, details) {
this.props.reportError(error, details);
this.setState({ error: error });

@@ -30,0 +30,0 @@ };

@@ -19,2 +19,5 @@ function findLink(el) {

return;
var target = link.getAttribute("target");
if (target && target !== "_self")
return;
var url = new URL(link.href);

@@ -21,0 +24,0 @@ // External links including other procols like mailto

{
"name": "@theorem/react",
"version": "3.1.0",
"version": "3.2.0",
"description": "Theorem React tools",

@@ -5,0 +5,0 @@ "peerDependencies": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc