@graphql-inspector/diff-command 3.4.9 → 3.4.10-alpha-20230418154415-aa03cdf5
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 +6 -6
- package/esm/index.js +6 -6
- package/package.json +5 -5
package/cjs/index.js
CHANGED
|
@@ -133,23 +133,23 @@ function sortChanges(changes) {
|
|
|
133
133
|
function reportBreakingChanges(changes) {
|
|
134
134
|
const label = logger_1.symbols.error;
|
|
135
135
|
const sorted = sortChanges(changes);
|
|
136
|
-
|
|
136
|
+
for (const change of sorted) {
|
|
137
137
|
logger_1.Logger.log(`${label} ${(0, logger_1.bolderize)(change.message)}`);
|
|
138
|
-
}
|
|
138
|
+
}
|
|
139
139
|
}
|
|
140
140
|
function reportDangerousChanges(changes) {
|
|
141
141
|
const label = logger_1.symbols.warning;
|
|
142
142
|
const sorted = sortChanges(changes);
|
|
143
|
-
|
|
143
|
+
for (const change of sorted) {
|
|
144
144
|
logger_1.Logger.log(`${label} ${(0, logger_1.bolderize)(change.message)}`);
|
|
145
|
-
}
|
|
145
|
+
}
|
|
146
146
|
}
|
|
147
147
|
function reportNonBreakingChanges(changes) {
|
|
148
148
|
const label = logger_1.symbols.success;
|
|
149
149
|
const sorted = sortChanges(changes);
|
|
150
|
-
|
|
150
|
+
for (const change of sorted) {
|
|
151
151
|
logger_1.Logger.log(`${label} ${(0, logger_1.bolderize)(change.message)}`);
|
|
152
|
-
}
|
|
152
|
+
}
|
|
153
153
|
}
|
|
154
154
|
function resolveRule(name) {
|
|
155
155
|
const filepath = (0, commands_1.ensureAbsolute)(name);
|
package/esm/index.js
CHANGED
|
@@ -129,23 +129,23 @@ function sortChanges(changes) {
|
|
|
129
129
|
function reportBreakingChanges(changes) {
|
|
130
130
|
const label = symbols.error;
|
|
131
131
|
const sorted = sortChanges(changes);
|
|
132
|
-
|
|
132
|
+
for (const change of sorted) {
|
|
133
133
|
Logger.log(`${label} ${bolderize(change.message)}`);
|
|
134
|
-
}
|
|
134
|
+
}
|
|
135
135
|
}
|
|
136
136
|
function reportDangerousChanges(changes) {
|
|
137
137
|
const label = symbols.warning;
|
|
138
138
|
const sorted = sortChanges(changes);
|
|
139
|
-
|
|
139
|
+
for (const change of sorted) {
|
|
140
140
|
Logger.log(`${label} ${bolderize(change.message)}`);
|
|
141
|
-
}
|
|
141
|
+
}
|
|
142
142
|
}
|
|
143
143
|
function reportNonBreakingChanges(changes) {
|
|
144
144
|
const label = symbols.success;
|
|
145
145
|
const sorted = sortChanges(changes);
|
|
146
|
-
|
|
146
|
+
for (const change of sorted) {
|
|
147
147
|
Logger.log(`${label} ${bolderize(change.message)}`);
|
|
148
|
-
}
|
|
148
|
+
}
|
|
149
149
|
}
|
|
150
150
|
function resolveRule(name) {
|
|
151
151
|
const filepath = ensureAbsolute(name);
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-inspector/diff-command",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.10-alpha-20230418154415-aa03cdf5",
|
|
4
4
|
"description": "Compare GraphQL Schemas",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"peerDependencies": {
|
|
7
7
|
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"tslib": "
|
|
11
|
-
"@graphql-inspector/commands": "3.4.
|
|
12
|
-
"@graphql-inspector/core": "4.1.
|
|
13
|
-
"@graphql-inspector/logger": "3.4.
|
|
10
|
+
"tslib": "2.5.0",
|
|
11
|
+
"@graphql-inspector/commands": "3.4.6-alpha-20230418154415-aa03cdf5",
|
|
12
|
+
"@graphql-inspector/core": "4.1.1-alpha-20230418154415-aa03cdf5",
|
|
13
|
+
"@graphql-inspector/logger": "3.4.5-alpha-20230418154415-aa03cdf5"
|
|
14
14
|
},
|
|
15
15
|
"repository": {
|
|
16
16
|
"type": "git",
|