Skip to content

Commit

Permalink
dic type validation
Browse files Browse the repository at this point in the history
  • Loading branch information
matuszeman committed May 24, 2017
1 parent 6b8967e commit ca15a08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bb-dic",
"version": "0.9.0",
"version": "0.9.1",
"description": "A dependency injection container",
"main": "src/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/dic.js
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ class Dic {
paramsAlias: Joi.object().default({}),
asyncFactory: Joi.func(),
inject: Joi.object().default({}),
container: Joi.object().type(Dic).optional().default(this)
container: Joi.object().default(this) //type(Dic) - this does not work when having Dic from different packages obviously
}));

if (!def.type) {
Expand Down

0 comments on commit ca15a08

Please sign in to comment.