@graphql-yoga/plugin-defer-stream 3.6.0 → 3.6.1-alpha-20240701184805-40467cd7
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/index.js +1 -2
- package/cjs/validations/defer-stream-directive-label.js +1 -2
- package/cjs/validations/defer-stream-directive-on-root-field.js +1 -2
- package/cjs/validations/overlapping-fields-can-be-merged.js +2 -3
- package/cjs/validations/stream-directive-on-list-field.js +1 -2
- package/package.json +2 -2
package/cjs/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useDeferStream =
|
|
3
|
+
exports.useDeferStream = useDeferStream;
|
|
4
4
|
const graphql_1 = require("graphql");
|
|
5
5
|
const utils_1 = require("@graphql-tools/utils");
|
|
6
6
|
const defer_stream_directive_label_js_1 = require("./validations/defer-stream-directive-label.js");
|
|
@@ -37,4 +37,3 @@ function useDeferStream() {
|
|
|
37
37
|
},
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
|
-
exports.useDeferStream = useDeferStream;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DeferStreamDirectiveLabelRule =
|
|
3
|
+
exports.DeferStreamDirectiveLabelRule = DeferStreamDirectiveLabelRule;
|
|
4
4
|
const graphql_1 = require("graphql");
|
|
5
5
|
const utils_1 = require("@graphql-tools/utils");
|
|
6
6
|
/**
|
|
@@ -34,4 +34,3 @@ function DeferStreamDirectiveLabelRule(context) {
|
|
|
34
34
|
},
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
|
-
exports.DeferStreamDirectiveLabelRule = DeferStreamDirectiveLabelRule;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DeferStreamDirectiveOnRootFieldRule =
|
|
3
|
+
exports.DeferStreamDirectiveOnRootFieldRule = DeferStreamDirectiveOnRootFieldRule;
|
|
4
4
|
const utils_1 = require("@graphql-tools/utils");
|
|
5
5
|
/**
|
|
6
6
|
* Stream directive on list field
|
|
@@ -32,4 +32,3 @@ function DeferStreamDirectiveOnRootFieldRule(context) {
|
|
|
32
32
|
},
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
|
-
exports.DeferStreamDirectiveOnRootFieldRule = DeferStreamDirectiveOnRootFieldRule;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.naturalCompare = naturalCompare;
|
|
4
|
+
exports.OverlappingFieldsCanBeMergedRule = OverlappingFieldsCanBeMergedRule;
|
|
4
5
|
const graphql_1 = require("graphql");
|
|
5
6
|
const utils_1 = require("@graphql-tools/utils");
|
|
6
7
|
/**
|
|
@@ -49,7 +50,6 @@ function naturalCompare(aStr, bStr) {
|
|
|
49
50
|
}
|
|
50
51
|
return aStr.length - bStr.length;
|
|
51
52
|
}
|
|
52
|
-
exports.naturalCompare = naturalCompare;
|
|
53
53
|
const DIGIT_0 = 48;
|
|
54
54
|
const DIGIT_9 = 57;
|
|
55
55
|
function isDigit(code) {
|
|
@@ -121,7 +121,6 @@ function OverlappingFieldsCanBeMergedRule(context) {
|
|
|
121
121
|
},
|
|
122
122
|
};
|
|
123
123
|
}
|
|
124
|
-
exports.OverlappingFieldsCanBeMergedRule = OverlappingFieldsCanBeMergedRule;
|
|
125
124
|
/**
|
|
126
125
|
* Algorithm:
|
|
127
126
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StreamDirectiveOnListFieldRule =
|
|
3
|
+
exports.StreamDirectiveOnListFieldRule = StreamDirectiveOnListFieldRule;
|
|
4
4
|
const graphql_1 = require("graphql");
|
|
5
5
|
const utils_1 = require("@graphql-tools/utils");
|
|
6
6
|
/**
|
|
@@ -23,4 +23,3 @@ function StreamDirectiveOnListFieldRule(context) {
|
|
|
23
23
|
},
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
|
-
exports.StreamDirectiveOnListFieldRule = StreamDirectiveOnListFieldRule;
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-yoga/plugin-defer-stream",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.1-alpha-20240701184805-40467cd7",
|
|
4
4
|
"description": "Defer/Stream plugin for GraphQL Yoga.",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"graphql": "^15.2.0 || ^16.0.0",
|
|
7
|
-
"graphql-yoga": "^5.6.
|
|
7
|
+
"graphql-yoga": "^5.6.1-alpha-20240701184805-40467cd7"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@graphql-tools/utils": "^10.0.0"
|