File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -209,11 +209,16 @@ export class AssertionContext implements ICommonContext {
209
209
this . assertion . dependencies ( name ) ;
210
210
return "" ;
211
211
}
212
+
212
213
public tags ( name : string | string [ ] ) {
213
214
this . assertion . tags ( name ) ;
214
215
return "" ;
215
216
}
216
217
218
+ public when ( cond : boolean , trueCase : string , falseCase : string = "" ) {
219
+ return cond ? trueCase : falseCase ;
220
+ }
221
+
217
222
public apply < T > ( value : AContextable < T > ) : T {
218
223
if ( typeof value === "function" ) {
219
224
return ( value as any ) ( this ) ;
Original file line number Diff line number Diff line change @@ -252,6 +252,10 @@ export class OperationContext implements ICommonContext {
252
252
return "" ;
253
253
}
254
254
255
+ public when ( cond : boolean , trueCase : string , falseCase : string = "" ) {
256
+ return cond ? trueCase : falseCase ;
257
+ }
258
+
255
259
public apply < T > ( value : Contextable < ICommonContext , T > ) : T {
256
260
if ( typeof value === "function" ) {
257
261
return ( value as any ) ( this ) ;
Original file line number Diff line number Diff line change 1
1
# NOTE: If you change the format of this line, you must change the bash command
2
2
# in /scripts/publish to extract the version string correctly.
3
- DF_VERSION = "1.16.3 "
3
+ DF_VERSION = "1.16.4 "
You can’t perform that action at this time.
0 commit comments