Skip to content

Commit f553fef

Browse files
committed
asd
1 parent 7bce4cc commit f553fef

File tree

3 files changed

+9
-16
lines changed

3 files changed

+9
-16
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
name: 'Build & Test'
2-
3-
on: [push, pull_request]
4-
#on:
5-
# push:
6-
# branches:
7-
# - master
8-
# - release/**
9-
# pull_request:
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- release/**
7+
pull_request:
108

119
env:
1210
CACHED_DEPENDENCY_PATHS: |

packages/utils/src/logger.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,6 @@ 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-
6056
/** JSDoc */
6157
class Logger {
6258
/** JSDoc */

packages/utils/src/object.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,9 @@ export function getOriginalFunction(func: WrappedFunction): WrappedFunction | un
8686
* @returns string Encoded
8787
*/
8888
export function urlEncode(object: { [key: string]: any }): string {
89-
return new URLSearchParams(object).toString();
90-
// return Object.keys(object)
91-
// .map(key => `${encodeURIComponent(key)}=${encodeURIComponent(object[key])}`)
92-
// .join('&');
89+
return Object.keys(object)
90+
.map(key => `${encodeURIComponent(key)}=${encodeURIComponent(object[key])}`)
91+
.join('&');
9392
}
9493

9594
/**

0 commit comments

Comments
 (0)