11angular . module ( 'exceptionless' , [ ] )
22 . constant ( '$ExceptionlessClient' , Exceptionless . ExceptionlessClient . default )
3- . factory ( 'exceptionlessHttpInterceptor' , [ '$q' , 'ExceptionlessClient' , function ( $q , ExceptionlessClient ) {
3+ . factory ( 'exceptionlessHttpInterceptor' , [ '$q' , '$ ExceptionlessClient' , function ( $q , $ ExceptionlessClient) {
44 return {
55 responseError : function responseError ( rejection ) {
66 if ( rejection . status === 404 ) {
7- ExceptionlessClient . submitNotFound ( rejection . config ) ;
7+ $ ExceptionlessClient. submitNotFound ( rejection . config ) ;
88 }
99 else {
10- ExceptionlessClient . createUnhandledException ( new Error ( 'HTTP response error' ) , 'errorHttpInterceptor' )
10+ $ ExceptionlessClient. createUnhandledException ( new Error ( 'HTTP response error' ) , 'errorHttpInterceptor' )
1111 . setProperty ( 'status' , rejection . status )
1212 . setProperty ( 'config' , rejection . config )
1313 . submit ( ) ;
@@ -16,20 +16,20 @@ angular.module('exceptionless', [])
1616 }
1717 } ;
1818 } ] )
19- . config ( [ '$httpProvider' , '$provide' , 'ExceptionlessClient' , function ( $httpProvider , $provide , ExceptionlessClient ) {
19+ . config ( [ '$httpProvider' , '$provide' , '$ ExceptionlessClient' , function ( $httpProvider , $provide , $ ExceptionlessClient) {
2020 $httpProvider . interceptors . push ( 'exceptionlessHttpInterceptor' ) ;
2121 $provide . decorator ( '$exceptionHandler' , [ '$delegate' , function ( $delegate ) {
2222 return function ( exception , cause ) {
2323 $delegate ( exception , cause ) ;
24- ExceptionlessClient . createUnhandledException ( exception , '$exceptionHandler' ) . setMessage ( cause ) . submit ( ) ;
24+ $ ExceptionlessClient. createUnhandledException ( exception , '$exceptionHandler' ) . setMessage ( cause ) . submit ( ) ;
2525 } ;
2626 } ] ) ;
2727 $provide . decorator ( '$log' , [ '$delegate' , function ( $delegate ) {
2828 function decorateRegularCall ( property , logLevel ) {
2929 var previousFn = $delegate [ property ] ;
3030 return $delegate [ property ] = function ( ) {
3131 previousFn . call ( null , arguments ) ;
32- ExceptionlessClient . submitLog ( 'Angular' , arguments [ 0 ] , logLevel ) ;
32+ $ ExceptionlessClient. submitLog ( 'Angular' , arguments [ 0 ] , logLevel ) ;
3333 } ;
3434 }
3535 $delegate . log = decorateRegularCall ( 'log' , 'Trace' ) ;
@@ -40,15 +40,15 @@ angular.module('exceptionless', [])
4040 return $delegate ;
4141 } ] ) ;
4242 } ] )
43- . run ( [ '$rootScope' , 'ExceptionlessClient' , function ( $rootScope , ExceptionlessClient ) {
43+ . run ( [ '$rootScope' , '$ ExceptionlessClient' , function ( $rootScope , $ ExceptionlessClient) {
4444 $rootScope . $on ( '$routeChangeSuccess' , function ( event , next , current ) {
45- ExceptionlessClient . createFeatureUsage ( current . name )
45+ $ ExceptionlessClient. createFeatureUsage ( current . name )
4646 . setProperty ( 'next' , next )
4747 . setProperty ( 'current' , current )
4848 . submit ( ) ;
4949 } ) ;
5050 $rootScope . $on ( '$routeChangeError' , function ( event , current , previous , rejection ) {
51- ExceptionlessClient . createUnhandledException ( new Error ( rejection ) , '$routeChangeError' )
51+ $ ExceptionlessClient. createUnhandledException ( new Error ( rejection ) , '$routeChangeError' )
5252 . setProperty ( 'current' , current )
5353 . setProperty ( 'previous' , previous )
5454 . submit ( ) ;
@@ -57,15 +57,15 @@ angular.module('exceptionless', [])
5757 if ( toState . name === 'otherwise' ) {
5858 return ;
5959 }
60- ExceptionlessClient . createFeatureUsage ( toState . controller || toState . name )
60+ $ ExceptionlessClient. createFeatureUsage ( toState . controller || toState . name )
6161 . setProperty ( 'toState' , toState )
6262 . setProperty ( 'toParams' , toParams )
6363 . setProperty ( 'fromState' , fromState )
6464 . setProperty ( 'fromParams' , fromParams )
6565 . submit ( ) ;
6666 } ) ;
6767 $rootScope . $on ( '$stateNotFound' , function ( event , unfoundState , fromState , fromParams ) {
68- ExceptionlessClient . createNotFound ( unfoundState . to )
68+ $ ExceptionlessClient. createNotFound ( unfoundState . to )
6969 . setProperty ( 'unfoundState' , unfoundState )
7070 . setProperty ( 'fromState' , fromState )
7171 . setProperty ( 'fromParams' , fromParams )
@@ -75,7 +75,7 @@ angular.module('exceptionless', [])
7575 if ( ! error ) {
7676 return ;
7777 }
78- ExceptionlessClient . createUnhandledException ( error , '$stateChangeError' )
78+ $ ExceptionlessClient. createUnhandledException ( error , '$stateChangeError' )
7979 . setProperty ( 'toState' , toState )
8080 . setProperty ( 'toParams' , toParams )
8181 . setProperty ( 'fromState' , fromState )
0 commit comments