Skip to content

Commit 3723efd

Browse files
authored
fix: work with cycle defendant properties (asyncapi#174)
1 parent 9ba5e5a commit 3723efd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

filters/all.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ function isDefined(obj) {
101101
filter.isDefined = isDefined;
102102

103103
function isProtocol(api, protocol){
104-
return JSON.stringify(api.json()).includes('"protocol":"' + protocol + '"');
104+
return api.constructor.stringify(api).includes('"protocol":"' + protocol + '"');
105105
};
106106
filter.isProtocol = isProtocol;
107107

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"@asyncapi/generator-filters": "^2.1.0",
3434
"@asyncapi/generator-hooks": "^0.1.0",
3535
"fs-extra": "^9.0.0",
36-
"lodash": "^4.17.15",
36+
"lodash": "^4.17.21",
3737
"replace-in-file": "^6.1.0",
3838
"tmp": "^0.2.1"
3939
},
@@ -127,7 +127,7 @@
127127
"required": false
128128
}
129129
},
130-
"generator": ">=0.50.0 <2.0.0",
130+
"generator": ">=1.8.27 <2.0.0",
131131
"filters": [
132132
"@asyncapi/generator-filters"
133133
],

0 commit comments

Comments
 (0)