Skip to content

Commit 786bf74

Browse files
bump version 0.7.1
1 parent 449eaa2 commit 786bf74

7 files changed

+19
-9
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
Changelog
22
==========
33

4+
## 0.7.1
5+
- Merge correct PR for broken interceptor detection ([#133](https://github.com/chieffancypants/angular-loading-bar/pull/133), [#50](https://github.com/chieffancypants/angular-loading-bar/pull/50))
6+
47
## 0.7.0
58
- Changes for animate.enter compatibility for 1.2 and 1.3 ([#170](https://github.com/chieffancypants/angular-loading-bar/pull/170))
69
- Detect errors with other interceptors ([#133](https://github.com/chieffancypants/angular-loading-bar/pull/133), [#50](https://github.com/chieffancypants/angular-loading-bar/pull/50))

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-loading-bar",
3-
"version": "0.7.0",
3+
"version": "0.7.1",
44
"main": [
55
"build/loading-bar.js",
66
"build/loading-bar.css"

build/loading-bar.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* angular-loading-bar v0.7.0
2+
* angular-loading-bar v0.7.1
33
* https://chieffancypants.github.io/angular-loading-bar
44
* Copyright (c) 2015 Wes Cruver
55
* License: MIT

build/loading-bar.js

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* angular-loading-bar v0.7.0
2+
* angular-loading-bar v0.7.1
33
* https://chieffancypants.github.io/angular-loading-bar
44
* Copyright (c) 2015 Wes Cruver
55
* License: MIT
@@ -113,6 +113,11 @@ angular.module('cfp.loadingBarInterceptor', ['cfp.loadingBar'])
113113
},
114114

115115
'response': function(response) {
116+
if (!response || !response.config) {
117+
$log.error('Broken interceptor detected: Config object not supplied in response:\n https://github.com/chieffancypants/angular-loading-bar/pull/50');
118+
return response;
119+
}
120+
116121
if (!response.config.ignoreLoadingBar && !isCached(response.config)) {
117122
reqsCompleted++;
118123
$rootScope.$broadcast('cfpLoadingBar:loaded', {url: response.config.url, result: response});
@@ -126,9 +131,11 @@ angular.module('cfp.loadingBarInterceptor', ['cfp.loadingBar'])
126131
},
127132

128133
'responseError': function(rejection) {
129-
if (!rejection.config) {
130-
$log.error('Other interceptors are not returning config object \n https://github.com/chieffancypants/angular-loading-bar/pull/50');
134+
if (!rejection || !rejection.config) {
135+
$log.error('Broken interceptor detected: Config object not supplied in rejection:\n https://github.com/chieffancypants/angular-loading-bar/pull/50');
136+
return $q.reject(rejection);
131137
}
138+
132139
if (!rejection.config.ignoreLoadingBar && !isCached(rejection.config)) {
133140
reqsCompleted++;
134141
$rootScope.$broadcast('cfpLoadingBar:loaded', {url: rejection.config.url, result: rejection});

build/loading-bar.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/loading-bar.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-loading-bar",
3-
"version": "0.7.0",
3+
"version": "0.7.1",
44
"description": "An automatic loading bar for AngularJS",
55
"main": "src/loading-bar.js",
66
"directories": {

0 commit comments

Comments
 (0)