zavadil-ts-common 1.2.73 → 1.2.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
@@ -2,7 +2,7 @@ import {OAuthIdTokenProvider} from "./OAuthIdTokenProvider";
|
|
2
2
|
import {IdTokenPayload} from "../OAuthRestClient";
|
3
3
|
import {RestClientWithOAuth} from "../RestClientWithOAuth";
|
4
4
|
import {StringUtil} from "../../util";
|
5
|
-
import UrlUtil from "../../util
|
5
|
+
import {UrlUtil} from "../../util";
|
6
6
|
import {RedirectionProvider} from "./RedirectionProvider";
|
7
7
|
|
8
8
|
export class IdTokenProviderUrl extends RedirectionProvider implements OAuthIdTokenProvider {
|
package/src/util/ObjectUtil.ts
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
import {StringUtil} from "./StringUtil";
|
2
|
-
|
3
1
|
export class ObjectUtil {
|
4
2
|
|
5
3
|
static isEmpty(obj: any): obj is null | undefined {
|
@@ -21,7 +19,7 @@ export class ObjectUtil {
|
|
21
19
|
}
|
22
20
|
|
23
21
|
static getNestedValue(obj: any, path: string): string {
|
24
|
-
if (!obj ||
|
22
|
+
if (!obj || obj === '') return '';
|
25
23
|
|
26
24
|
const keys = path.split('.');
|
27
25
|
|
@@ -34,7 +32,7 @@ export class ObjectUtil {
|
|
34
32
|
}
|
35
33
|
}
|
36
34
|
|
37
|
-
return
|
35
|
+
return current;
|
38
36
|
}
|
39
37
|
|
40
38
|
}
|