@envelop/extended-validation 6.1.0-alpha-20251028160214-ce57cdb81d833297676a1b62d7767b7e1d151725 → 6.1.0-alpha-20251029092940-df37e7855bddbc733ddcb2d790e30e44c5cb0487
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/plugin.js +1 -4
- package/esm/plugin.js +1 -4
- package/package.json +1 -1
package/cjs/plugin.js
CHANGED
|
@@ -90,10 +90,7 @@ function buildHandler(name, getTypeInfo, onDocument, onValidationFailed, rejectO
|
|
|
90
90
|
for (const pathItemIndex in path.slice(0, -1)) {
|
|
91
91
|
const pathItem = path[pathItemIndex];
|
|
92
92
|
currentData = currentData[pathItem] ||=
|
|
93
|
-
typeof path[Number(pathItemIndex) + 1] === 'number'
|
|
94
|
-
path[Number(pathItemIndex) + 1]
|
|
95
|
-
? []
|
|
96
|
-
: {};
|
|
93
|
+
typeof path[Number(pathItemIndex) + 1] === 'number' ? [] : {};
|
|
97
94
|
if (Array.isArray(currentData)) {
|
|
98
95
|
let pathItemIndexInArray = Number(pathItemIndex) + 1;
|
|
99
96
|
if (path[pathItemIndexInArray] === '@') {
|
package/esm/plugin.js
CHANGED
|
@@ -86,10 +86,7 @@ function buildHandler(name, getTypeInfo, onDocument, onValidationFailed, rejectO
|
|
|
86
86
|
for (const pathItemIndex in path.slice(0, -1)) {
|
|
87
87
|
const pathItem = path[pathItemIndex];
|
|
88
88
|
currentData = currentData[pathItem] ||=
|
|
89
|
-
typeof path[Number(pathItemIndex) + 1] === 'number'
|
|
90
|
-
path[Number(pathItemIndex) + 1]
|
|
91
|
-
? []
|
|
92
|
-
: {};
|
|
89
|
+
typeof path[Number(pathItemIndex) + 1] === 'number' ? [] : {};
|
|
93
90
|
if (Array.isArray(currentData)) {
|
|
94
91
|
let pathItemIndexInArray = Number(pathItemIndex) + 1;
|
|
95
92
|
if (path[pathItemIndexInArray] === '@') {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@envelop/extended-validation",
|
|
3
|
-
"version": "6.1.0-alpha-
|
|
3
|
+
"version": "6.1.0-alpha-20251029092940-df37e7855bddbc733ddcb2d790e30e44c5cb0487",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0",
|