@lowentry/utils 0.2.2 → 1.0.1
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/LeTypes.js +0 -13
- package/LeUtils.js +10 -0
- package/index.js +2 -2
- package/package.json +1 -1
package/LeTypes.js
CHANGED
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
import FastDeepEqual from 'fast-deep-equal';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* A deep equals implementation (npm package "fast-deep-equal").
|
|
6
|
-
*
|
|
7
|
-
* @param {*} value The value to compare.
|
|
8
|
-
* @param {*} other The other value to compare.
|
|
9
|
-
* @returns {boolean} Returns true if the values are equivalent.
|
|
10
|
-
*/
|
|
11
|
-
export const EQUAL = FastDeepEqual;
|
|
12
|
-
|
|
13
|
-
|
|
14
1
|
/**
|
|
15
2
|
* Returns true if the value is set (not undefined and not null).
|
|
16
3
|
*
|
package/LeUtils.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import FastDeepEqual from 'fast-deep-equal';
|
|
1
2
|
import {ISSET, IS_OBJECT, STRING, INT_LAX, FLOAT_LAX, INT_LAX_ANY, FLOAT_LAX_ANY} from './LeTypes.js';
|
|
2
3
|
|
|
3
4
|
|
|
@@ -34,6 +35,15 @@ const findTransactionalValueChange = (transactionalValue, changeId) =>
|
|
|
34
35
|
|
|
35
36
|
|
|
36
37
|
export const LeUtils = {
|
|
38
|
+
/**
|
|
39
|
+
* A deep equals implementation (npm package "fast-deep-equal").
|
|
40
|
+
*
|
|
41
|
+
* @param {*} value The value to compare.
|
|
42
|
+
* @param {*} other The other value to compare.
|
|
43
|
+
* @returns {boolean} Returns true if the values are equivalent.
|
|
44
|
+
*/
|
|
45
|
+
equals:FastDeepEqual,
|
|
46
|
+
|
|
37
47
|
/**
|
|
38
48
|
* Parses the given version string, and returns an object with the major, minor, and patch numbers, as well as some comparison functions.
|
|
39
49
|
*
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import {LeUtils} from './LeUtils.js';
|
|
2
|
-
import {
|
|
2
|
+
import {ISSET, IS_ARRAY, ARRAY, IS_OBJECT, OBJECT, STRING, STRING_ANY, INT, INT_ANY, FLOAT, FLOAT_ANY, INT_LAX, INT_LAX_ANY, FLOAT_LAX, FLOAT_LAX_ANY} from './LeTypes.js';
|
|
3
3
|
|
|
4
|
-
export {LeUtils,
|
|
4
|
+
export {LeUtils, ISSET, IS_ARRAY, ARRAY, IS_OBJECT, OBJECT, STRING, STRING_ANY, INT, INT_ANY, FLOAT, FLOAT_ANY, INT_LAX, INT_LAX_ANY, FLOAT_LAX, FLOAT_LAX_ANY};
|