Skip to content

Commit

Permalink
fix: work with cycle defendant properties (#174)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tenischev authored Jan 17, 2022
1 parent 9ba5e5a commit 3723efd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion filters/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ function isDefined(obj) {
filter.isDefined = isDefined;

function isProtocol(api, protocol){
return JSON.stringify(api.json()).includes('"protocol":"' + protocol + '"');
return api.constructor.stringify(api).includes('"protocol":"' + protocol + '"');
};
filter.isProtocol = isProtocol;

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@asyncapi/generator-filters": "^2.1.0",
"@asyncapi/generator-hooks": "^0.1.0",
"fs-extra": "^9.0.0",
"lodash": "^4.17.15",
"lodash": "^4.17.21",
"replace-in-file": "^6.1.0",
"tmp": "^0.2.1"
},
Expand Down Expand Up @@ -127,7 +127,7 @@
"required": false
}
},
"generator": ">=0.50.0 <2.0.0",
"generator": ">=1.8.27 <2.0.0",
"filters": [
"@asyncapi/generator-filters"
],
Expand Down

0 comments on commit 3723efd

Please sign in to comment.