File tree Expand file tree Collapse file tree 3 files changed +16
-9
lines changed Expand file tree Collapse file tree 3 files changed +16
-9
lines changed Original file line number Diff line number Diff line change 11name : ' Build & Test'
2- on :
3- push :
4- branches :
5- - master
6- - release/**
7- pull_request :
2+
3+ on : [push, pull_request]
4+ # on:
5+ # push:
6+ # branches:
7+ # - master
8+ # - release/**
9+ # pull_request:
810
911env :
1012 CACHED_DEPENDENCY_PATHS : |
Original file line number Diff line number Diff line change @@ -53,6 +53,10 @@ export function consoleSandbox(callback: () => any): any {
5353 return result ;
5454}
5555
56+ function when ( predicate : boolean , callback : ( ) => any ) {
57+ return predicate ? callback ( ) : undefined ;
58+ }
59+
5660/** JSDoc */
5761class Logger {
5862 /** JSDoc */
Original file line number Diff line number Diff line change @@ -86,9 +86,10 @@ export function getOriginalFunction(func: WrappedFunction): WrappedFunction | un
8686 * @returns string Encoded
8787 */
8888export function urlEncode ( object : { [ key : string ] : any } ) : string {
89- return Object . keys ( object )
90- . map ( key => `${ encodeURIComponent ( key ) } =${ encodeURIComponent ( object [ key ] ) } ` )
91- . join ( '&' ) ;
89+ return new URLSearchParams ( object ) . toString ( ) ;
90+ // return Object.keys(object)
91+ // .map(key => `${encodeURIComponent(key)}=${encodeURIComponent(object[key])}`)
92+ // .join('&');
9293}
9394
9495/**
You can’t perform that action at this time.
0 commit comments