diff --git a/.gitignore b/.gitignore index 522163c..86ced80 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ node_modules bower_components components +.project +.idea \ No newline at end of file diff --git a/src/http-auth-interceptor.js b/src/http-auth-interceptor.js index 95e3426..4cc6c29 100644 --- a/src/http-auth-interceptor.js +++ b/src/http-auth-interceptor.js @@ -5,6 +5,11 @@ * (c) 2012 Witold Szczerba * License: MIT */ + +if (typeof module !== 'undefined' && typeof exports !== 'undefined' && module.exports === exports){ + module.exports = 'angular-http-auth'; +} + (function () { 'use strict';