Comparing version 0.0.1-28 to 0.0.1-29
@@ -27,3 +27,4 @@ "use strict"; | ||
_decode(medium, unpacked, path) { | ||
let lastIssues; | ||
let maxIssuePathLength = -1; | ||
let outputIssues; | ||
for (let Type of this.TypeTuple) { | ||
@@ -34,3 +35,7 @@ let [value, issues] = Type._decode(medium, unpacked, path); | ||
} | ||
lastIssues = issues; | ||
let pathLength = Math.max(...issues.map(issue => issue.path.length)); | ||
if (pathLength > maxIssuePathLength) { | ||
maxIssuePathLength = pathLength; | ||
outputIssues = issues; | ||
} | ||
} | ||
@@ -44,3 +49,3 @@ return [ | ||
}, | ||
...lastIssues, | ||
...outputIssues, | ||
], | ||
@@ -47,0 +52,0 @@ ]; |
{ | ||
"name": "x-value", | ||
"version": "0.0.1-28", | ||
"version": "0.0.1-29", | ||
"repository": "https://github.com/vilic/x-value.git", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -31,3 +31,4 @@ import type {TupleInMedium} from '../@internal'; | ||
): [unknown, TypeIssue[]] { | ||
let lastIssues!: TypeIssue[]; | ||
let maxIssuePathLength = -1; | ||
let outputIssues!: TypeIssue[]; | ||
@@ -41,3 +42,8 @@ for (let Type of this.TypeTuple) { | ||
lastIssues = issues; | ||
let pathLength = Math.max(...issues.map(issue => issue.path.length)); | ||
if (pathLength > maxIssuePathLength) { | ||
maxIssuePathLength = pathLength; | ||
outputIssues = issues; | ||
} | ||
} | ||
@@ -53,3 +59,3 @@ | ||
}, | ||
...lastIssues, | ||
...outputIssues, | ||
], | ||
@@ -56,0 +62,0 @@ ]; |
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
191293
4172