mini-ioc-vue
Advanced tools
Comparing version 0.0.1 to 0.1.0
@@ -5,3 +5,3 @@ import Container, { ICtor } from 'mini-ioc'; | ||
export declare const injectKey: IInjectionKey<Container>; | ||
export declare function provideContainer(configure?: (container: Container) => void): { | ||
export declare function provideContainer(container?: Container): { | ||
[x: string]: Container; | ||
@@ -8,0 +8,0 @@ }; |
@@ -7,6 +7,3 @@ "use strict"; | ||
exports.injectKey = Symbol(APP_IOC_CONTAINER_INJECT_KEY); | ||
function provideContainer(configure) { | ||
const container = new mini_ioc_1.default(); | ||
if (configure) | ||
configure(container); | ||
function provideContainer(container = new mini_ioc_1.default()) { | ||
return { | ||
@@ -13,0 +10,0 @@ [exports.injectKey]: container, |
{ | ||
"name": "mini-ioc-vue", | ||
"version": "0.0.1", | ||
"version": "0.1.0", | ||
"description": "Vue.js mini-ioc binding internal package", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
2062
40