@garfish/bridge-react-v18
Advanced tools
Comparing version 1.6.0 to 1.7.0
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19097
430
3
+ Added@garfish/utils@1.7.0
+ Added@garfish/utils@1.7.0(transitive)
+ Addeddebug@4.4.0(transitive)
+ Addedms@2.1.3(transitive)