Skip to content

Commit a48bd42

Browse files
committed
Updated the angular integration.
1 parent d834ca0 commit a48bd42

File tree

6 files changed

+15
-11
lines changed

6 files changed

+15
-11
lines changed

Diff for: dist/exceptionless.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: dist/exceptionless.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: dist/integrations/angular.js

+6-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: src/Utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export class Utils {
7373
return null;
7474
}
7575

76-
var pairs = query.split('&');
76+
var pairs:string[] = query.split('&');
7777
if (pairs.length === 0) {
7878
return null;
7979
}

Diff for: src/integrations/angular.ts

+5-4
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@ angular.module('exceptionless', [])
66
if (rejection.status === 404) {
77
$ExceptionlessClient.submitNotFound(rejection.config.url);
88
} else if (rejection.status !== 401) {
9-
$ExceptionlessClient.createUnhandledException(new Error('HTTP response error'), 'errorHttpInterceptor')
9+
$ExceptionlessClient.createUnhandledException(new Error(`[${rejection.status}] ${rejection.config.url}`), 'errorHttpInterceptor')
1010
.setSource(rejection.config.url)
11-
.setProperty('status', rejection.status)
12-
.setProperty('config', rejection.config)
11+
.setProperty('request', rejection.config)
1312
.submit();
1413
}
1514
return $q.reject(rejection);
@@ -29,7 +28,9 @@ angular.module('exceptionless', [])
2928
var previousFn = $delegate[property];
3029
return $delegate[property] = function () {
3130
previousFn.call(null, arguments);
32-
$ExceptionlessClient.submitLog(null, arguments[0], logLevel);
31+
if (arguments[0] && arguments[0].length > 0) {
32+
$ExceptionlessClient.submitLog(null, arguments[0], logLevel);
33+
}
3334
};
3435
}
3536
$delegate.log = decorateRegularCall('log', 'Trace');

Diff for: src/integrations/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"compilerOptions": {
33
"module": "commonjs",
44
"removeComments": true,
5+
"sourceMap": false,
56
"target": "es5"
67
},
78
"files": [

0 commit comments

Comments
 (0)