Skip to content

Commit

Permalink
Fix isNotRedirectedResponse function is used without an argument
Browse files Browse the repository at this point in the history
Refs #370
  • Loading branch information
NekR committed Apr 26, 2018
1 parent a4ff4df commit d86ef18
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion lib/misc/sw-template.js
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ function cachesMatch(request, cacheName) {
return caches.match(request, {
cacheName: cacheName
}).then(function (response) {
if (isNotRedirectedResponse()) {
if (isNotRedirectedResponse(response)) {
return response;
}

Expand Down
2 changes: 1 addition & 1 deletion src/misc/sw-template.js
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@ function cachesMatch(request, cacheName) {
return caches.match(request, {
cacheName: cacheName
}).then(response => {
if (isNotRedirectedResponse()) {
if (isNotRedirectedResponse(response)) {
return response;
}

Expand Down
6 changes: 3 additions & 3 deletions tests/browser/cache-first/www/sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ var __wpo = {
},
"strategy": "changed",
"responseStrategy": "cache-first",
"version": "2017-12-12 01:59:51",
"version": "2018-4-26 08:11:50",
"name": "webpack-offline",
"pluginVersion": "4.8.5",
"pluginVersion": "4.9.0",
"relativePaths": false
};

Expand Down Expand Up @@ -820,7 +820,7 @@ var __wpo = {
return caches.match(request, {
cacheName: cacheName
}).then(function (response) {
if (isNotRedirectedResponse()) {
if (isNotRedirectedResponse(response)) {
return response;
}

Expand Down
6 changes: 3 additions & 3 deletions tests/browser/network-first/www/sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ var __wpo = {
},
"strategy": "changed",
"responseStrategy": "network-first",
"version": "2017-12-12 01:59:53",
"version": "2018-4-26 08:11:52",
"name": "webpack-offline",
"pluginVersion": "4.8.5",
"pluginVersion": "4.9.0",
"relativePaths": false
};

Expand Down Expand Up @@ -820,7 +820,7 @@ var __wpo = {
return caches.match(request, {
cacheName: cacheName
}).then(function (response) {
if (isNotRedirectedResponse()) {
if (isNotRedirectedResponse(response)) {
return response;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ var __wpo = {
return caches.match(request, {
cacheName: cacheName
}).then(function (response) {
if (isNotRedirectedResponse()) {
if (isNotRedirectedResponse(response)) {
return response;
}

Expand Down
2 changes: 1 addition & 1 deletion tests/legacy/fixtures/appshell-basic/__expected/sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ var __wpo = {
return caches.match(request, {
cacheName: cacheName
}).then(function (response) {
if (isNotRedirectedResponse()) {
if (isNotRedirectedResponse(response)) {
return response;
}

Expand Down
2 changes: 1 addition & 1 deletion tests/legacy/fixtures/basic-wIth-sw-out/__expected/sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ var __wpo = {
return caches.match(request, {
cacheName: cacheName
}).then(function (response) {
if (isNotRedirectedResponse()) {
if (isNotRedirectedResponse(response)) {
return response;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ var __wpo = {
return caches.match(request, {
cacheName: cacheName
}).then(function (response) {
if (isNotRedirectedResponse()) {
if (isNotRedirectedResponse(response)) {
return response;
}

Expand Down
2 changes: 1 addition & 1 deletion tests/legacy/fixtures/cachemaps-basic/__expected/sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,7 @@ var __wpo = {
return caches.match(request, {
cacheName: cacheName
}).then(function (response) {
if (isNotRedirectedResponse()) {
if (isNotRedirectedResponse(response)) {
return response;
}

Expand Down
2 changes: 1 addition & 1 deletion tests/legacy/fixtures/loaders-externals/__expected/sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,7 @@ var __wpo = {
return caches.match(request, {
cacheName: cacheName
}).then(function (response) {
if (isNotRedirectedResponse()) {
if (isNotRedirectedResponse(response)) {
return response;
}

Expand Down
2 changes: 1 addition & 1 deletion tests/legacy/fixtures/sw-minify-false/__expected/sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ var __wpo = {
return caches.match(request, {
cacheName: cacheName
}).then(function (response) {
if (isNotRedirectedResponse()) {
if (isNotRedirectedResponse(response)) {
return response;
}

Expand Down
2 changes: 1 addition & 1 deletion tests/legacy/fixtures/sw-minify-true/__expected/sw.js

Large diffs are not rendered by default.

0 comments on commit d86ef18

Please sign in to comment.