Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

x-value

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

x-value - npm Package Compare versions

Comparing version 0.0.1-28 to 0.0.1-29

11

bld/library/type/union-type.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc