@github/auto-check-element
Advanced tools
Comparing version 4.0.2 to 4.1.0
@@ -170,3 +170,3 @@ // eslint-disable-next-line flowtype/no-weak-types | ||
validity = JSON.parse(error.responseText).text; | ||
} else { | ||
} else if (error.contentType.includes('text/plain')) { | ||
validity = error.responseText; | ||
@@ -183,3 +183,4 @@ } | ||
detail: { | ||
message: error.responseText | ||
message: error.responseText, | ||
contentType: error.contentType | ||
}, | ||
@@ -186,0 +187,0 @@ bubbles: true |
@@ -176,3 +176,3 @@ (function (global, factory) { | ||
validity = JSON.parse(error.responseText).text; | ||
} else { | ||
} else if (error.contentType.includes('text/plain')) { | ||
validity = error.responseText; | ||
@@ -189,3 +189,4 @@ } | ||
detail: { | ||
message: error.responseText | ||
message: error.responseText, | ||
contentType: error.contentType | ||
}, | ||
@@ -192,0 +193,0 @@ bubbles: true |
{ | ||
"name": "@github/auto-check-element", | ||
"version": "4.0.2", | ||
"version": "4.1.0", | ||
"description": "An input element that validates its value with a server endpoint.", | ||
@@ -5,0 +5,0 @@ "repository": "github/auto-check-element", |
17539
388