@vue-storefront/middleware
Advanced tools
Comparing version 3.7.0 to 3.7.1
@@ -99,3 +99,3 @@ 'use strict'; | ||
function getAxiosStatusCode(error) { | ||
return error.response.status; | ||
return error.response?.status ?? 500; | ||
} | ||
@@ -102,0 +102,0 @@ function getApolloStatusCode(error) { |
@@ -87,3 +87,3 @@ import consola from 'consola'; | ||
function getAxiosStatusCode(error) { | ||
return error.response.status; | ||
return error.response?.status ?? 500; | ||
} | ||
@@ -90,0 +90,0 @@ function getApolloStatusCode(error) { |
{ | ||
"name": "@vue-storefront/middleware", | ||
"version": "3.7.0", | ||
"version": "3.7.1", | ||
"main": "lib/index.cjs.js", | ||
@@ -5,0 +5,0 @@ "module": "lib/index.es.js", |
71297