Skip to content

Commit

Permalink
Merge pull request #30 from spira/hotfix/defaults-deep-config
Browse files Browse the repository at this point in the history
Hotfix/defaults deep config
  • Loading branch information
Jeremy Sik committed Aug 13, 2015
2 parents 56b905f + 501ce0f commit 7c37c28
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Angular JSON Web Token Authentication Module",
"main": "dist/ngJwtAuth.js",
"dependencies": {
"lodash": "~3.9.3",
"lodash": "3.10.1",
"moment": "~2.10.3",
"angular": ">=1.4",
"angular-utf8-base64": "~0.0.5",
Expand Down
2 changes: 1 addition & 1 deletion dist/ngJwtAuth.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/ngJwtAuth.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/ngJwtAuthServiceProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ module NgJwtAuth {
throw new NgJwtAuthException("Invalid properties ["+mismatchedConfig.join(',')+"] passed to config)");
}

this.config = _.defaults(config, this.config);
this.config = _.defaultsDeep(config, this.config);
return this;
}

Expand Down
6 changes: 6 additions & 0 deletions typings/lodash/lodash.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5623,6 +5623,12 @@ declare module _ {
defaults<T, TResult>(
object: T,
...sources: any[]): TResult;


//@xiphiaz added defaultsDeep here for lodash 3.10.1
defaultsDeep<T, TResult>(
object: T,
...sources: any[]): TResult;
}

interface LoDashObjectWrapper<T> {
Expand Down

0 comments on commit 7c37c28

Please sign in to comment.