@conform-to/yup
Advanced tools
Comparing version 0.4.0-pre.0 to 0.4.0-pre.1
@@ -89,3 +89,3 @@ 'use strict'; | ||
} | ||
function getError(error, scope) { | ||
function getError(error) { | ||
var _error$inner$reduce; | ||
@@ -96,8 +96,3 @@ | ||
var name = (_e$path = e.path) !== null && _e$path !== void 0 ? _e$path : ''; | ||
if (!scope || scope.includes(name)) { | ||
result.push([name, e.message]); | ||
} | ||
result.push([(_e$path = e.path) !== null && _e$path !== void 0 ? _e$path : '', e.message]); | ||
return result; | ||
@@ -104,0 +99,0 @@ }, [])) !== null && _error$inner$reduce !== void 0 ? _error$inner$reduce : []; |
@@ -85,3 +85,3 @@ function getFieldsetConstraint(source) { | ||
} | ||
function getError(error, scope) { | ||
function getError(error) { | ||
var _error$inner$reduce; | ||
@@ -92,8 +92,3 @@ | ||
var name = (_e$path = e.path) !== null && _e$path !== void 0 ? _e$path : ''; | ||
if (!scope || scope.includes(name)) { | ||
result.push([name, e.message]); | ||
} | ||
result.push([(_e$path = e.path) !== null && _e$path !== void 0 ? _e$path : '', e.message]); | ||
return result; | ||
@@ -100,0 +95,0 @@ }, [])) !== null && _error$inner$reduce !== void 0 ? _error$inner$reduce : []; |
@@ -5,3 +5,3 @@ { | ||
"license": "MIT", | ||
"version": "0.4.0-pre.0", | ||
"version": "0.4.0-pre.1", | ||
"main": "index.js", | ||
@@ -18,3 +18,3 @@ "module": "module/index.js", | ||
"peerDependencies": { | ||
"@conform-to/dom": "0.4.0-pre.0", | ||
"@conform-to/dom": "0.4.0-pre.1", | ||
"yup": ">=0.32.0" | ||
@@ -21,0 +21,0 @@ }, |
13193
220