diff --git a/package.json b/package.json index 777ba55..7e9bde1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@secjs/ioc", - "version": "1.0.7", + "version": "1.0.8", "description": "", "license": "MIT", "author": "João Lenon", diff --git a/src/utils/global.ts b/src/utils/global.ts index 94c3bd6..4221b57 100644 --- a/src/utils/global.ts +++ b/src/utils/global.ts @@ -8,4 +8,4 @@ declare global { const _global = global as any -_global.Container = new Container() +if (!_global.Container) _global.Container = new Container()