Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@garfish/bridge-react-v18

Package Overview
Dependencies
Maintainers
8
Versions
128
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@garfish/bridge-react-v18 - npm Package Compare versions

Comparing version 1.6.0 to 1.7.0

5

dist/esm/index.js

@@ -24,2 +24,3 @@ var __defProp = Object.defineProperty;

import { createRoot, hydrateRoot } from "react-dom/client";
import { warn } from "@garfish/utils";
var defaultOpts = {

@@ -81,5 +82,5 @@ rootComponent: null,

if (!opts.rootComponent.prototype) {
console.warn(`garfish-react-bridge: ${appInfo.appName}'s rootComponent does not implement an error boundary. If using a functional component, consider providing an opts.errorBoundary to reactBridge(opts).`);
warn(`garfish-react-bridge: ${appInfo.appName}'s rootComponent does not implement an error boundary. If using a functional component, consider providing an opts.errorBoundary to reactBridge(opts).`);
} else if (!opts.rootComponent.prototype.componentDidCatch) {
console.warn(`garfish-react-bridge: ${appInfo.appName}'s rootComponent should implement componentDidCatch to avoid accidentally unmounting the entire garfish application.`);
warn(`garfish-react-bridge: ${appInfo.appName}'s rootComponent should implement componentDidCatch to avoid accidentally unmounting the entire garfish application.`);
}

@@ -86,0 +87,0 @@ }

@@ -50,2 +50,3 @@ var __create = Object.create;

var import_client = __toModule(require("react-dom/client"));
var import_utils = __toModule(require("@garfish/utils"));
var defaultOpts = {

@@ -107,5 +108,5 @@ rootComponent: null,

if (!opts.rootComponent.prototype) {
console.warn(`garfish-react-bridge: ${appInfo.appName}'s rootComponent does not implement an error boundary. If using a functional component, consider providing an opts.errorBoundary to reactBridge(opts).`);
(0, import_utils.warn)(`garfish-react-bridge: ${appInfo.appName}'s rootComponent does not implement an error boundary. If using a functional component, consider providing an opts.errorBoundary to reactBridge(opts).`);
} else if (!opts.rootComponent.prototype.componentDidCatch) {
console.warn(`garfish-react-bridge: ${appInfo.appName}'s rootComponent should implement componentDidCatch to avoid accidentally unmounting the entire garfish application.`);
(0, import_utils.warn)(`garfish-react-bridge: ${appInfo.appName}'s rootComponent should implement componentDidCatch to avoid accidentally unmounting the entire garfish application.`);
}

@@ -112,0 +113,0 @@ }

{
"name": "@garfish/bridge-react-v18",
"version": "1.6.0",
"version": "1.7.0",
"description": "garfish module.",

@@ -32,2 +32,5 @@ "keywords": [

"types": "dist/index.d.ts",
"dependencies": {
"@garfish/utils": "1.7.0"
},
"devDependencies": {

@@ -34,0 +37,0 @@ "react": "18.1.0",

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