cheap-di-react
Advanced tools
Comparing version 4.0.1 to 4.0.2
import { AbstractConstructor, Constructor, ContainerImpl, ImplementationTypeWithInjection } from 'cheap-di'; | ||
export declare class ReactContainer extends ContainerImpl { | ||
parentContainer?: ReactContainer | undefined; | ||
parentContainer?: ContainerImpl<{}, {}> | undefined; | ||
rerender: () => void; | ||
private scope; | ||
skipParentInstanceOnce: boolean; | ||
constructor(parentContainer?: ReactContainer | undefined); | ||
constructor(parentContainer?: ContainerImpl<{}, {}> | undefined); | ||
get rootContainer(): ReactContainer; | ||
@@ -9,0 +9,0 @@ sameParent(parentContainer?: ContainerImpl): boolean; |
@@ -59,3 +59,5 @@ "use strict"; | ||
if (this.parentContainer) { | ||
return this.parentContainer.findRootContainer(); | ||
if (this.parentContainer instanceof ReactContainer) { | ||
return this.parentContainer.findRootContainer(); | ||
} | ||
} | ||
@@ -62,0 +64,0 @@ return this; |
{ | ||
"name": "cheap-di-react", | ||
"version": "4.0.1", | ||
"version": "4.0.2", | ||
"description": "", | ||
@@ -14,3 +14,3 @@ "scripts": { | ||
"@types/react": "18.0.12", | ||
"cheap-di": "3.4.0", | ||
"cheap-di": "3.4.2", | ||
"jest": "28.1.1", | ||
@@ -25,3 +25,3 @@ "jest-environment-jsdom": "28.1.1", | ||
"peerDependencies": { | ||
"cheap-di": ">= 3.4.0", | ||
"cheap-di": ">= 3.4.2", | ||
"react": ">= 17.0.2", | ||
@@ -28,0 +28,0 @@ "react-dom": ">= 17.0.2" |
Sorry, the diff of this file is not supported yet
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
130611
1072