Skip to content

Commit

Permalink
Add support for CommonJS loading.
Browse files Browse the repository at this point in the history
Now that angular has CommonJS support it would be nice to have this too.
  • Loading branch information
fladi authored and witoldsz committed Nov 17, 2016
1 parent af25766 commit 86e94f6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/http-auth-interceptor.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* (c) 2012 Witold Szczerba
* License: MIT
*/

(function () {
'use strict';

Expand Down Expand Up @@ -133,3 +134,8 @@
};
}]);
})();

/* commonjs package manager support (eg componentjs) */
if (typeof module !== "undefined" && typeof exports !== "undefined" && module.exports === exports){
module.exports = 'http-auth-interceptor';
}

0 comments on commit 86e94f6

Please sign in to comment.