specshield 1.0.9 → 1.0.10
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/package.json +1 -1
- package/src/core/diffEngine.js +2 -2
package/package.json
CHANGED
package/src/core/diffEngine.js
CHANGED
|
@@ -153,7 +153,7 @@ function toParamMap(params) {
|
|
|
153
153
|
|
|
154
154
|
function diffResponses(path, method, baseResponses, targetResponses, diffs) {
|
|
155
155
|
for (const statusCode of Object.keys(baseResponses)) {
|
|
156
|
-
if (!targetResponses
|
|
156
|
+
if (!(statusCode in targetResponses)) {
|
|
157
157
|
diffs.push({
|
|
158
158
|
type: 'RESPONSE_REMOVED',
|
|
159
159
|
path,
|
|
@@ -167,7 +167,7 @@ function diffResponses(path, method, baseResponses, targetResponses, diffs) {
|
|
|
167
167
|
}
|
|
168
168
|
|
|
169
169
|
for (const statusCode of Object.keys(targetResponses)) {
|
|
170
|
-
if (!baseResponses
|
|
170
|
+
if (!(statusCode in baseResponses)) {
|
|
171
171
|
diffs.push({
|
|
172
172
|
type: 'RESPONSE_ADDED',
|
|
173
173
|
path,
|