react-restyle-components 0.3.46 → 0.3.47
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/lib/src/core-utils/index.d.ts +1 -1
- package/lib/src/core-utils/index.d.ts.map +1 -1
- package/lib/src/core-utils/index.js +1 -1
- package/lib/src/core-utils/src/index.d.ts +1 -1
- package/lib/src/core-utils/src/index.d.ts.map +1 -1
- package/lib/src/core-utils/src/index.js +1 -1
- package/lib/src/core-utils/src/utility/utility.util.d.ts +4 -0
- package/lib/src/core-utils/src/utility/utility.util.d.ts.map +1 -0
- package/lib/src/core-utils/src/utility/utility.util.js +12 -0
- package/package.json +1 -1
- package/lib/src/core-utils/src/utility.util.d.ts +0 -2
- package/lib/src/core-utils/src/utility.util.d.ts.map +0 -1
- package/lib/src/core-utils/src/utility.util.js +0 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core-utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core-utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oCAAoC,CAAC;AACnD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,oDAAoD,CAAC;AACnE,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oCAAoC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core-utils/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core-utils/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yCAAyC,CAAC;AACxD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gCAAgC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utility.util.d.ts","sourceRoot":"","sources":["../../../../../src/core-utils/src/utility/utility.util.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,KAEb,CAAC;AAET,eAAO,MAAM,wBAAwB,UAAW,IAAI,SAAS,IAAI,KAAG,MAGnE,CAAC;AAEF,eAAO,MAAM,+BAA+B,UACnC,IAAI,SACJ,IAAI,KACV,MAGF,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as _ from 'lodash';
|
|
2
|
+
export const debounce = _.debounce((fun) => {
|
|
3
|
+
fun();
|
|
4
|
+
}, 1000);
|
|
5
|
+
export const calculateHoursDifference = (date1, date2) => {
|
|
6
|
+
const diffInMs = Math.abs(date2.getTime() - date1.getTime());
|
|
7
|
+
return Math.floor(diffInMs / (1000 * 60 * 60));
|
|
8
|
+
};
|
|
9
|
+
export const calculateHoursDifferenceDecimal = (date1, date2) => {
|
|
10
|
+
const diffInMs = Math.abs(date2.getTime() - date1.getTime());
|
|
11
|
+
return diffInMs / (1000 * 60 * 60);
|
|
12
|
+
};
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utility.util.d.ts","sourceRoot":"","sources":["../../../../src/core-utils/src/utility.util.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,KAEb,CAAC"}
|