@aszu/lazy-network
Advanced tools
Comparing version 0.4.2-7 to 0.4.2-8
@@ -83,3 +83,3 @@ "use strict"; | ||
try { | ||
var status = error.response.status; | ||
var status = error.response ? error.response.status : 0; | ||
var functionalHandlersToExecute = (this.handlers[FUNCTIONAL_KEY] || EMPTY).filter(function (handler) { | ||
@@ -86,0 +86,0 @@ return handler.check(status); |
{ | ||
"name": "@aszu/lazy-network", | ||
"version": "0.4.2-7", | ||
"version": "0.4.2-8", | ||
"description": "The network layer wrapper, by lazy people for lazy people.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -28,3 +28,3 @@ import ResponseListener from './ResponseListener' | ||
try { | ||
const status = error.response.status | ||
const status = error.response ? error.response.status : 0 | ||
@@ -31,0 +31,0 @@ const functionalHandlersToExecute = (this.handlers[FUNCTIONAL_KEY] || EMPTY).filter( |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
50287