@conform-to/dom
Advanced tools
Comparing version 0.8.0-pre.1 to 0.8.0-pre.2
@@ -122,4 +122,7 @@ 'use strict'; | ||
function getErrors(validationMessage) { | ||
var _validationMessage$sp; | ||
return (_validationMessage$sp = validationMessage === null || validationMessage === void 0 ? void 0 : validationMessage.split(String.fromCharCode(31))) !== null && _validationMessage$sp !== void 0 ? _validationMessage$sp : []; | ||
// Empty string should be considered no error as well | ||
if (!validationMessage) { | ||
return []; | ||
} | ||
return validationMessage.split(String.fromCharCode(31)); | ||
} | ||
@@ -126,0 +129,0 @@ |
@@ -6,3 +6,3 @@ { | ||
"license": "MIT", | ||
"version": "0.8.0-pre.1", | ||
"version": "0.8.0-pre.2", | ||
"main": "index.js", | ||
@@ -9,0 +9,0 @@ "module": "index.mjs", |
Sorry, the diff of this file is not supported yet
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
1180
42828