@graphql-inspector/patch 0.1.0-alpha-20251210220709-671f8b3cdccca39e371f19a9a1cbf9a8ed76eac6 → 0.1.1-alpha-20260116215327-8f3e542470887f46f0233526140738f2d38f091c
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.
|
@@ -26,7 +26,8 @@ function directiveAdded(change, nodeByPath, config, _context) {
|
|
|
26
26
|
const node = {
|
|
27
27
|
kind: graphql_1.Kind.DIRECTIVE_DEFINITION,
|
|
28
28
|
name: (0, node_templates_js_1.nameNode)(change.meta.addedDirectiveName),
|
|
29
|
-
|
|
29
|
+
// Let "DirectiveRepeatableAdded" event set this instead of using "change.meta.addedDirectiveRepeatable"
|
|
30
|
+
repeatable: false,
|
|
30
31
|
locations: change.meta.addedDirectiveLocations.map(l => (0, node_templates_js_1.nameNode)(l)),
|
|
31
32
|
description: change.meta.addedDirectiveDescription
|
|
32
33
|
? (0, node_templates_js_1.stringNode)(change.meta.addedDirectiveDescription)
|
|
@@ -12,7 +12,8 @@ export function directiveAdded(change, nodeByPath, config, _context) {
|
|
|
12
12
|
const node = {
|
|
13
13
|
kind: Kind.DIRECTIVE_DEFINITION,
|
|
14
14
|
name: nameNode(change.meta.addedDirectiveName),
|
|
15
|
-
|
|
15
|
+
// Let "DirectiveRepeatableAdded" event set this instead of using "change.meta.addedDirectiveRepeatable"
|
|
16
|
+
repeatable: false,
|
|
16
17
|
locations: change.meta.addedDirectiveLocations.map(l => nameNode(l)),
|
|
17
18
|
description: change.meta.addedDirectiveDescription
|
|
18
19
|
? stringNode(change.meta.addedDirectiveDescription)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-inspector/patch",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1-alpha-20260116215327-8f3e542470887f46f0233526140738f2d38f091c",
|
|
4
4
|
"description": "Applies changes output from @graphql-inspect/diff",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"peerDependencies": {
|