@hairy/utils 1.8.0 → 1.9.0

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/dist/index.cjs CHANGED
@@ -39,6 +39,8 @@ __export(index_exports, {
39
39
  capitalCase: () => capitalCase,
40
40
  clone: () => clone_default,
41
41
  cloneDeep: () => cloneDeep_default,
42
+ cloneDeepWith: () => cloneDeepWith_default,
43
+ cloneWith: () => cloneWith_default,
42
44
  compose: () => compose,
43
45
  concat: () => concat_default,
44
46
  constantCase: () => constantCase,
@@ -95,6 +97,7 @@ __export(index_exports, {
95
97
  lt: () => lt,
96
98
  lte: () => lte,
97
99
  merge: () => merge_default,
100
+ mergeWith: () => mergeWith_default,
98
101
  noCase: () => noCase,
99
102
  noop: () => noop2,
100
103
  numerfix: () => numerfix,
@@ -114,6 +117,7 @@ __export(index_exports, {
114
117
  truncate: () => truncate_default,
115
118
  uniq: () => uniq_default,
116
119
  uniqBy: () => uniqBy_default,
120
+ uniqWith: () => uniqWith_default,
117
121
  unum: () => unum,
118
122
  unwrap: () => unwrap,
119
123
  values: () => values_default,
@@ -1969,6 +1973,23 @@ function cloneDeep(value) {
1969
1973
  }
1970
1974
  var cloneDeep_default = cloneDeep;
1971
1975
 
1976
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/cloneDeepWith.js
1977
+ var CLONE_DEEP_FLAG3 = 1;
1978
+ var CLONE_SYMBOLS_FLAG4 = 4;
1979
+ function cloneDeepWith(value, customizer) {
1980
+ customizer = typeof customizer == "function" ? customizer : void 0;
1981
+ return baseClone_default(value, CLONE_DEEP_FLAG3 | CLONE_SYMBOLS_FLAG4, customizer);
1982
+ }
1983
+ var cloneDeepWith_default = cloneDeepWith;
1984
+
1985
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/cloneWith.js
1986
+ var CLONE_SYMBOLS_FLAG5 = 4;
1987
+ function cloneWith(value, customizer) {
1988
+ customizer = typeof customizer == "function" ? customizer : void 0;
1989
+ return baseClone_default(value, CLONE_SYMBOLS_FLAG5, customizer);
1990
+ }
1991
+ var cloneWith_default = cloneWith;
1992
+
1972
1993
  // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/concat.js
1973
1994
  function concat() {
1974
1995
  var length = arguments.length;
@@ -2627,6 +2648,12 @@ function baseMerge(object, source, srcIndex, customizer, stack) {
2627
2648
  }
2628
2649
  var baseMerge_default = baseMerge;
2629
2650
 
2651
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/mergeWith.js
2652
+ var mergeWith = createAssigner_default(function(object, source, srcIndex, customizer) {
2653
+ baseMerge_default(object, source, srcIndex, customizer);
2654
+ });
2655
+ var mergeWith_default = mergeWith;
2656
+
2630
2657
  // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayIncludesWith.js
2631
2658
  function arrayIncludesWith(array, value, comparator) {
2632
2659
  var index = -1, length = array == null ? 0 : array.length;
@@ -2970,6 +2997,13 @@ function uniqBy(array, iteratee) {
2970
2997
  }
2971
2998
  var uniqBy_default = uniqBy;
2972
2999
 
3000
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/uniqWith.js
3001
+ function uniqWith(array, comparator) {
3002
+ comparator = typeof comparator == "function" ? comparator : void 0;
3003
+ return array && array.length ? baseUniq_default(array, void 0, comparator) : [];
3004
+ }
3005
+ var uniqWith_default = uniqWith;
3006
+
2973
3007
  // src/number/index.ts
2974
3008
  var import_bignumber = __toESM(require("bignumber.js"), 1);
2975
3009
  var BIG_INTS = {
@@ -3237,6 +3271,8 @@ function whenever(value, callback) {
3237
3271
  capitalCase,
3238
3272
  clone,
3239
3273
  cloneDeep,
3274
+ cloneDeepWith,
3275
+ cloneWith,
3240
3276
  compose,
3241
3277
  concat,
3242
3278
  constantCase,
@@ -3293,6 +3329,7 @@ function whenever(value, callback) {
3293
3329
  lt,
3294
3330
  lte,
3295
3331
  merge,
3332
+ mergeWith,
3296
3333
  noCase,
3297
3334
  noop,
3298
3335
  numerfix,
@@ -3312,6 +3349,7 @@ function whenever(value, callback) {
3312
3349
  truncate,
3313
3350
  uniq,
3314
3351
  uniqBy,
3352
+ uniqWith,
3315
3353
  unum,
3316
3354
  unwrap,
3317
3355
  values,
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { clone, cloneDeep, concat, debounce, find, isArray, isArrayLike, isBoolean, isDate, isEmpty, isEqual, isError, isFunction, isNaN, isNative, isNull, isNumber, isObject, isPlainObject, isString, isUndefined, join, keys, merge, truncate, uniq, uniqBy, values } from 'lodash-es';
1
+ export { clone, cloneDeep, cloneDeepWith, cloneWith, concat, debounce, find, isArray, isArrayLike, isBoolean, isDate, isEmpty, isEqual, isError, isFunction, isNaN, isNative, isNull, isNumber, isObject, isPlainObject, isString, isUndefined, join, keys, merge, mergeWith, truncate, uniq, uniqBy, uniqWith, values } from 'lodash-es';
2
2
  import Bignumber from 'bignumber.js';
3
3
  export { default as Bignumber } from 'bignumber.js';
4
4
 
@@ -1846,6 +1846,23 @@
1846
1846
  }
1847
1847
  var cloneDeep_default = cloneDeep;
1848
1848
 
1849
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/cloneDeepWith.js
1850
+ var CLONE_DEEP_FLAG3 = 1;
1851
+ var CLONE_SYMBOLS_FLAG4 = 4;
1852
+ function cloneDeepWith(value, customizer) {
1853
+ customizer = typeof customizer == "function" ? customizer : void 0;
1854
+ return baseClone_default(value, CLONE_DEEP_FLAG3 | CLONE_SYMBOLS_FLAG4, customizer);
1855
+ }
1856
+ var cloneDeepWith_default = cloneDeepWith;
1857
+
1858
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/cloneWith.js
1859
+ var CLONE_SYMBOLS_FLAG5 = 4;
1860
+ function cloneWith(value, customizer) {
1861
+ customizer = typeof customizer == "function" ? customizer : void 0;
1862
+ return baseClone_default(value, CLONE_SYMBOLS_FLAG5, customizer);
1863
+ }
1864
+ var cloneWith_default = cloneWith;
1865
+
1849
1866
  // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/concat.js
1850
1867
  function concat() {
1851
1868
  var length = arguments.length;
@@ -2504,6 +2521,12 @@
2504
2521
  }
2505
2522
  var baseMerge_default = baseMerge;
2506
2523
 
2524
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/mergeWith.js
2525
+ var mergeWith = createAssigner_default(function(object, source, srcIndex, customizer) {
2526
+ baseMerge_default(object, source, srcIndex, customizer);
2527
+ });
2528
+ var mergeWith_default = mergeWith;
2529
+
2507
2530
  // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayIncludesWith.js
2508
2531
  function arrayIncludesWith(array, value, comparator) {
2509
2532
  var index = -1, length = array == null ? 0 : array.length;
@@ -2847,6 +2870,13 @@
2847
2870
  }
2848
2871
  var uniqBy_default = uniqBy;
2849
2872
 
2873
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/uniqWith.js
2874
+ function uniqWith(array, comparator) {
2875
+ comparator = typeof comparator == "function" ? comparator : void 0;
2876
+ return array && array.length ? baseUniq_default(array, void 0, comparator) : [];
2877
+ }
2878
+ var uniqWith_default = uniqWith;
2879
+
2850
2880
  // ../../node_modules/.pnpm/bignumber.js@9.1.2/node_modules/bignumber.js/bignumber.mjs
2851
2881
  var isNumeric = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i;
2852
2882
  var mathceil = Math.ceil;
package/dist/index.js CHANGED
@@ -1844,6 +1844,23 @@ function cloneDeep(value) {
1844
1844
  }
1845
1845
  var cloneDeep_default = cloneDeep;
1846
1846
 
1847
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/cloneDeepWith.js
1848
+ var CLONE_DEEP_FLAG3 = 1;
1849
+ var CLONE_SYMBOLS_FLAG4 = 4;
1850
+ function cloneDeepWith(value, customizer) {
1851
+ customizer = typeof customizer == "function" ? customizer : void 0;
1852
+ return baseClone_default(value, CLONE_DEEP_FLAG3 | CLONE_SYMBOLS_FLAG4, customizer);
1853
+ }
1854
+ var cloneDeepWith_default = cloneDeepWith;
1855
+
1856
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/cloneWith.js
1857
+ var CLONE_SYMBOLS_FLAG5 = 4;
1858
+ function cloneWith(value, customizer) {
1859
+ customizer = typeof customizer == "function" ? customizer : void 0;
1860
+ return baseClone_default(value, CLONE_SYMBOLS_FLAG5, customizer);
1861
+ }
1862
+ var cloneWith_default = cloneWith;
1863
+
1847
1864
  // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/concat.js
1848
1865
  function concat() {
1849
1866
  var length = arguments.length;
@@ -2502,6 +2519,12 @@ function baseMerge(object, source, srcIndex, customizer, stack) {
2502
2519
  }
2503
2520
  var baseMerge_default = baseMerge;
2504
2521
 
2522
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/mergeWith.js
2523
+ var mergeWith = createAssigner_default(function(object, source, srcIndex, customizer) {
2524
+ baseMerge_default(object, source, srcIndex, customizer);
2525
+ });
2526
+ var mergeWith_default = mergeWith;
2527
+
2505
2528
  // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayIncludesWith.js
2506
2529
  function arrayIncludesWith(array, value, comparator) {
2507
2530
  var index = -1, length = array == null ? 0 : array.length;
@@ -2845,6 +2868,13 @@ function uniqBy(array, iteratee) {
2845
2868
  }
2846
2869
  var uniqBy_default = uniqBy;
2847
2870
 
2871
+ // ../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/uniqWith.js
2872
+ function uniqWith(array, comparator) {
2873
+ comparator = typeof comparator == "function" ? comparator : void 0;
2874
+ return array && array.length ? baseUniq_default(array, void 0, comparator) : [];
2875
+ }
2876
+ var uniqWith_default = uniqWith;
2877
+
2848
2878
  // src/number/index.ts
2849
2879
  import Bignumber from "bignumber.js";
2850
2880
  var BIG_INTS = {
@@ -3111,6 +3141,8 @@ export {
3111
3141
  capitalCase,
3112
3142
  clone_default as clone,
3113
3143
  cloneDeep_default as cloneDeep,
3144
+ cloneDeepWith_default as cloneDeepWith,
3145
+ cloneWith_default as cloneWith,
3114
3146
  compose,
3115
3147
  concat_default as concat,
3116
3148
  constantCase,
@@ -3167,6 +3199,7 @@ export {
3167
3199
  lt,
3168
3200
  lte,
3169
3201
  merge_default as merge,
3202
+ mergeWith_default as mergeWith,
3170
3203
  noCase,
3171
3204
  noop2 as noop,
3172
3205
  numerfix,
@@ -3186,6 +3219,7 @@ export {
3186
3219
  truncate_default as truncate,
3187
3220
  uniq_default as uniq,
3188
3221
  uniqBy_default as uniqBy,
3222
+ uniqWith_default as uniqWith,
3189
3223
  unum,
3190
3224
  unwrap,
3191
3225
  values_default as values,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hairy/utils",
3
3
  "type": "module",
4
- "version": "1.8.0",
4
+ "version": "1.9.0",
5
5
  "description": "Library for anywhere",
6
6
  "author": "Hairyf <wwu710632@gmail.com>",
7
7
  "license": "MIT",