@vue-storefront/middleware
Advanced tools
Comparing version 3.5.0 to 3.5.1
@@ -94,3 +94,3 @@ 'use strict'; | ||
function getAxiosStatusCode(error) { | ||
return error.response.status; | ||
return error?.response?.status ?? 500; | ||
} | ||
@@ -97,0 +97,0 @@ function getApolloStatusCode(error) { |
@@ -82,3 +82,3 @@ import consola from 'consola'; | ||
function getAxiosStatusCode(error) { | ||
return error.response.status; | ||
return error?.response?.status ?? 500; | ||
} | ||
@@ -85,0 +85,0 @@ function getApolloStatusCode(error) { |
{ | ||
"name": "@vue-storefront/middleware", | ||
"version": "3.5.0", | ||
"version": "3.5.1", | ||
"main": "lib/index.cjs.js", | ||
@@ -31,3 +31,2 @@ "module": "lib/index.es.js", | ||
"devDependencies": { | ||
"@changesets/changelog-github": "^0.4.8", | ||
"@changesets/cli": "^2.26.1", | ||
@@ -34,0 +33,0 @@ "@types/body-parser": "^1.19.2", |
14
65958