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

@envelop/extended-validation

Package Overview
Dependencies
Maintainers
1
Versions
1304
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@envelop/extended-validation - npm Package Compare versions

Comparing version 4.1.0-alpha-20240812203512-43551114 to 4.1.0

11

cjs/plugin.js

@@ -90,5 +90,12 @@ "use strict";

currentData = currentData[pathItem] ||=
typeof path[Number(pathItemIndex) + 1] === 'number' ? [] : {};
typeof path[Number(pathItemIndex) + 1] === 'number' ||
path[Number(pathItemIndex) + 1]
? []
: {};
if (Array.isArray(currentData)) {
currentData = currentData.map((c, i) => visitPath(path.slice(Number(pathItemIndex) + 1), c));
let pathItemIndexInArray = Number(pathItemIndex) + 1;
if (path[pathItemIndexInArray] === '@') {
pathItemIndexInArray = Number(pathItemIndex) + 2;
}
currentData = currentData.map((c, i) => visitPath(path.slice(pathItemIndexInArray), c));
}

@@ -95,0 +102,0 @@ }

@@ -86,5 +86,12 @@ import { TypeInfo, ValidationContext, visit, visitInParallel, visitWithTypeInfo, } from 'graphql';

currentData = currentData[pathItem] ||=
typeof path[Number(pathItemIndex) + 1] === 'number' ? [] : {};
typeof path[Number(pathItemIndex) + 1] === 'number' ||
path[Number(pathItemIndex) + 1]
? []
: {};
if (Array.isArray(currentData)) {
currentData = currentData.map((c, i) => visitPath(path.slice(Number(pathItemIndex) + 1), c));
let pathItemIndexInArray = Number(pathItemIndex) + 1;
if (path[pathItemIndexInArray] === '@') {
pathItemIndexInArray = Number(pathItemIndex) + 2;
}
currentData = currentData.map((c, i) => visitPath(path.slice(pathItemIndexInArray), c));
}

@@ -91,0 +98,0 @@ }

4

package.json
{
"name": "@envelop/extended-validation",
"version": "4.1.0-alpha-20240812203512-43551114",
"version": "4.1.0",
"sideEffects": false,
"peerDependencies": {
"@envelop/core": "^5.0.0",
"@envelop/core": "^5.0.2",
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0"

@@ -8,0 +8,0 @@ },

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