zavadil-ts-common 1.2.72 → 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zavadil-ts-common",
3
- "version": "1.2.72",
3
+ "version": "1.2.74",
4
4
  "description": "Common types and components for Typescript UI apps.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",
@@ -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/UrlUtil";
5
+ import {UrlUtil} from "../../util";
6
6
  import {RedirectionProvider} from "./RedirectionProvider";
7
7
 
8
8
  export class IdTokenProviderUrl extends RedirectionProvider implements OAuthIdTokenProvider {
@@ -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 || StringUtil.isBlank(path)) return '';
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 StringUtil.toString(current);
35
+ return current;
38
36
  }
39
37
 
40
38
  }