Skip to content

Commit 7bce4cc

Browse files
committed
IGNORE
1 parent e5ede4c commit 7bce4cc

File tree

3 files changed

+16
-9
lines changed

3 files changed

+16
-9
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
name: '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

911
env:
1012
CACHED_DEPENDENCY_PATHS: |

packages/utils/src/logger.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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 */
5761
class Logger {
5862
/** JSDoc */

packages/utils/src/object.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,10 @@ export function getOriginalFunction(func: WrappedFunction): WrappedFunction | un
8686
* @returns string Encoded
8787
*/
8888
export 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
/**

0 commit comments

Comments
 (0)