cheap-di-react
Advanced tools
Comparing version 1.0.1 to 1.0.2
import { FC } from 'react'; | ||
import { ImplementationType } from 'cheap-di/src'; | ||
import { ImplementationType } from 'cheap-di'; | ||
interface SelfOneTimeProviderProps { | ||
@@ -4,0 +4,0 @@ dependencies: ImplementationType<Object>[]; |
import { FC } from 'react'; | ||
import { ImplementationType } from 'cheap-di/src'; | ||
import { ImplementationType } from 'cheap-di'; | ||
interface SelfProviderProps { | ||
@@ -4,0 +4,0 @@ dependencies: ImplementationType<Object>[]; |
@@ -15,2 +15,4 @@ "use strict"; | ||
} | ||
const constructor = implementation.constructor; | ||
react_1.useContext((constructor === null || constructor === void 0 ? void 0 : constructor.__singleton) ? constructor.__reactContext : null); | ||
return implementation; | ||
@@ -17,0 +19,0 @@ } |
{ | ||
"name": "cheap-di-react", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "", | ||
@@ -18,3 +18,3 @@ "scripts": { | ||
"peerDependencies": { | ||
"cheap-di": ">= 2.0.0", | ||
"cheap-di": ">= 2.1.0", | ||
"react": ">= 16.14.0", | ||
@@ -21,0 +21,0 @@ "react-dom": ">= 16.14.0" |
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
19828
30
214