Skip to content

Commit 86e94f6

Browse files
fladiwitoldsz
authored andcommitted
Add support for CommonJS loading.
Now that angular has CommonJS support it would be nice to have this too.
1 parent af25766 commit 86e94f6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/http-auth-interceptor.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* (c) 2012 Witold Szczerba
66
* License: MIT
77
*/
8+
89
(function () {
910
'use strict';
1011

@@ -133,3 +134,8 @@
133134
};
134135
}]);
135136
})();
137+
138+
/* commonjs package manager support (eg componentjs) */
139+
if (typeof module !== "undefined" && typeof exports !== "undefined" && module.exports === exports){
140+
module.exports = 'http-auth-interceptor';
141+
}

0 commit comments

Comments
 (0)