@lowentry/utils 0.2.2 → 1.0.2

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 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/README.md CHANGED
@@ -21,4 +21,4 @@ This is done primarily to keep them all in one place, preventing code duplicatio
21
21
 
22
22
  ## Final words
23
23
 
24
- I hope this plugin will be useful to you. If you have any questions or suggestions, feel free to contact me at [LowEntry.com](https://lowentry.com/).
24
+ I hope this plugin will be useful to you. If you have any questions or suggestions, please feel free to get in touch at [LowEntry.com](https://lowentry.com/).
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  import {LeUtils} from './LeUtils.js';
2
- import {EQUAL, 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';
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, EQUAL, 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};
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};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lowentry/utils",
3
- "version": "0.2.2",
3
+ "version": "1.0.2",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Provides utilities for general JavaScript development.",