@bytebrand/fe-ui-core 4.2.250 → 4.2.251
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": "@bytebrand/fe-ui-core",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.251",
|
|
4
4
|
"description": "UI components for the auto.de project",
|
|
5
5
|
"main": "index.ts",
|
|
6
6
|
"module": "dist/common.js",
|
|
@@ -63,7 +63,6 @@
|
|
|
63
63
|
"react-testing-library": "^8.0.1",
|
|
64
64
|
"slick-carousel": "1.8.1",
|
|
65
65
|
"ts-jest": "^26.0.0",
|
|
66
|
-
"util": "^0.12.5",
|
|
67
66
|
"uuid": "^8.3.2"
|
|
68
67
|
},
|
|
69
68
|
"devDependencies": {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
// import { cbdGearbox, cbdFuel } from './cbdSelectors'
|
|
4
|
-
import { isNull } from 'util';
|
|
5
4
|
import { formatMileage } from '../utils/CommonUtils';
|
|
6
5
|
import { formatTimestamp } from '../utils/DateUtils';
|
|
7
6
|
import { DELIVERY_PERIODS_EXTRA } from '../constants';
|
|
@@ -19,7 +18,7 @@ const isPropDefined = (prop: any) => {
|
|
|
19
18
|
&& prop.indexOf('unknown') === -1
|
|
20
19
|
&& prop.indexOf('N/A') === -1;
|
|
21
20
|
}
|
|
22
|
-
return !
|
|
21
|
+
return !(prop === undefined || prop === null) && type !== 'undefined';
|
|
23
22
|
};
|
|
24
23
|
|
|
25
24
|
const formatDeliveryPeriod = (t: (phrase: string, config?: any) => string, deliveryPeriod: string) => {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { isNull } from 'util';
|
|
3
2
|
import moment from 'moment';
|
|
4
3
|
|
|
5
4
|
import Icon from '../../components/_common/IconContainer/IconContainer';
|
|
@@ -25,7 +24,7 @@ const isPropDefined = (prop: any) => {
|
|
|
25
24
|
return prop.indexOf('other') === -1
|
|
26
25
|
&& prop.indexOf('unknown') === -1;
|
|
27
26
|
}
|
|
28
|
-
return !
|
|
27
|
+
return !(prop === undefined || prop === null) && type !== 'undefined';
|
|
29
28
|
};
|
|
30
29
|
|
|
31
30
|
const isCheckedBatteryTime = (prop: any, t: (key: string, options?: object) => string) => {
|