@graphql-inspector/core 7.0.4-alpha-20251209220655-34aadc8b6d7b9eb674f5ab85c5fbad474e045e30 → 7.0.4
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.
|
@@ -264,10 +264,12 @@ function directiveArgumentRemoved(directive, arg) {
|
|
|
264
264
|
});
|
|
265
265
|
}
|
|
266
266
|
function buildDirectiveArgumentDescriptionChangedMessage(args) {
|
|
267
|
-
if (args.oldDirectiveArgumentDescription === null &&
|
|
267
|
+
if (args.oldDirectiveArgumentDescription === null &&
|
|
268
|
+
args.newDirectiveArgumentDescription !== null) {
|
|
268
269
|
return `Description '${(0, string_js_1.fmt)(args.newDirectiveArgumentDescription)}' was added to argument '${args.directiveArgumentName}' on directive '${args.directiveName}'`;
|
|
269
270
|
}
|
|
270
|
-
if (args.newDirectiveArgumentDescription === null &&
|
|
271
|
+
if (args.newDirectiveArgumentDescription === null &&
|
|
272
|
+
args.oldDirectiveArgumentDescription !== null) {
|
|
271
273
|
return `Description '${(0, string_js_1.fmt)(args.oldDirectiveArgumentDescription)}' was removed from argument '${args.directiveArgumentName}' on directive '${args.directiveName}'`;
|
|
272
274
|
}
|
|
273
275
|
return `Description for argument '${args.directiveArgumentName}' on directive '${args.directiveName}' changed from '${(0, string_js_1.fmt)(args.oldDirectiveArgumentDescription ?? '')}' to '${(0, string_js_1.fmt)(args.newDirectiveArgumentDescription ?? '')}'`;
|
|
@@ -238,10 +238,12 @@ export function directiveArgumentRemoved(directive, arg) {
|
|
|
238
238
|
});
|
|
239
239
|
}
|
|
240
240
|
function buildDirectiveArgumentDescriptionChangedMessage(args) {
|
|
241
|
-
if (args.oldDirectiveArgumentDescription === null &&
|
|
241
|
+
if (args.oldDirectiveArgumentDescription === null &&
|
|
242
|
+
args.newDirectiveArgumentDescription !== null) {
|
|
242
243
|
return `Description '${fmt(args.newDirectiveArgumentDescription)}' was added to argument '${args.directiveArgumentName}' on directive '${args.directiveName}'`;
|
|
243
244
|
}
|
|
244
|
-
if (args.newDirectiveArgumentDescription === null &&
|
|
245
|
+
if (args.newDirectiveArgumentDescription === null &&
|
|
246
|
+
args.oldDirectiveArgumentDescription !== null) {
|
|
245
247
|
return `Description '${fmt(args.oldDirectiveArgumentDescription)}' was removed from argument '${args.directiveArgumentName}' on directive '${args.directiveName}'`;
|
|
246
248
|
}
|
|
247
249
|
return `Description for argument '${args.directiveArgumentName}' on directive '${args.directiveName}' changed from '${fmt(args.oldDirectiveArgumentDescription ?? '')}' to '${fmt(args.newDirectiveArgumentDescription ?? '')}'`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-inspector/core",
|
|
3
|
-
"version": "7.0.4
|
|
3
|
+
"version": "7.0.4",
|
|
4
4
|
"description": "Tooling for GraphQL. Compare GraphQL Schemas, check documents, find breaking changes, find similar types.",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"peerDependencies": {
|