File tree Expand file tree Collapse file tree 3 files changed +18
-6
lines changed
Expand file tree Collapse file tree 3 files changed +18
-6
lines changed Original file line number Diff line number Diff line change 22# http://go/ipa/104
33
44functions :
5- - eachResourceHasGetMethod
6- - withTracking
5+ - " wrapperRegistry "
6+
77
88rules :
99 xgen-IPA-104-resource-has-GET :
1313 given : " $.paths"
1414 then :
1515 field : " @key"
16- function : " withTracking"
17- functionOptions :
18- ruleName : " xgen-IPA-104-resource-has-GET"
19- originalFunction : " eachResourceHasGetMethod"
16+ function : " eachResourceHasGetMethod"
File renamed without changes.
Original file line number Diff line number Diff line change 1+ const { withTracking } = require ( './hitTracker' ) ;
2+ const eachResourceHasGetMethod = require ( './eachResourceHasGetMethod' ) ;
3+ // Add additional imports as needed
4+
5+ // Wrap functions with tracking
6+ const wrappedFunctions = {
7+ eachResourceHasGetMethodWithTracking : withTracking (
8+ 'xgen-IPA-104-resource-has-GET' ,
9+ eachResourceHasGetMethod
10+ ) ,
11+ // Add more wrapped functions here
12+ } ;
13+
14+ // Export the wrapped functions
15+ module . exports = wrappedFunctions ;
You can’t perform that action at this time.
0 commit comments