@trackunit/react-core-hooks 0.0.66 → 0.0.67

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.
Files changed (2) hide show
  1. package/index.js +132 -94
  2. package/package.json +6 -6
package/index.js CHANGED
@@ -18,7 +18,7 @@ var fails$f = function (exec) {
18
18
  var fails$e = fails$f;
19
19
 
20
20
  var functionBindNative = !fails$e(function () {
21
- // eslint-disable-next-line es-x/no-function-prototype-bind -- safe
21
+ // eslint-disable-next-line es/no-function-prototype-bind -- safe
22
22
  var test = (function () { /* empty */ }).bind();
23
23
  // eslint-disable-next-line no-prototype-builtins -- safe
24
24
  return typeof test != 'function' || test.hasOwnProperty('prototype');
@@ -64,12 +64,20 @@ var indexedObject = fails$d(function () {
64
64
  return classof$3(it) == 'String' ? split(it, '') : $Object$4(it);
65
65
  } : $Object$4;
66
66
 
67
+ // we can't use just `it == null` since of `document.all` special case
68
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
69
+ var isNullOrUndefined$3 = function (it) {
70
+ return it === null || it === undefined;
71
+ };
72
+
73
+ var isNullOrUndefined$2 = isNullOrUndefined$3;
74
+
67
75
  var $TypeError$7 = TypeError;
68
76
 
69
77
  // `RequireObjectCoercible` abstract operation
70
78
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
71
79
  var requireObjectCoercible$3 = function (it) {
72
- if (it == undefined) throw $TypeError$7("Can't call method on " + it);
80
+ if (isNullOrUndefined$2(it)) throw $TypeError$7("Can't call method on " + it);
73
81
  return it;
74
82
  };
75
83
 
@@ -87,7 +95,7 @@ var check = function (it) {
87
95
 
88
96
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
89
97
  var global$e =
90
- // eslint-disable-next-line es-x/no-global-this -- safe
98
+ // eslint-disable-next-line es/no-global-this -- safe
91
99
  check(typeof globalThis == 'object' && globalThis) ||
92
100
  check(typeof window == 'object' && window) ||
93
101
  // eslint-disable-next-line no-restricted-globals -- safe
@@ -100,7 +108,7 @@ var shared$4 = {exports: {}};
100
108
 
101
109
  var global$d = global$e;
102
110
 
103
- // eslint-disable-next-line es-x/no-object-defineproperty -- safe
111
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
104
112
  var defineProperty$5 = Object.defineProperty;
105
113
 
106
114
  var defineGlobalProperty$3 = function (key, value) {
@@ -124,10 +132,10 @@ var store$2 = sharedStore;
124
132
  (shared$4.exports = function (key, value) {
125
133
  return store$2[key] || (store$2[key] = value !== undefined ? value : {});
126
134
  })('versions', []).push({
127
- version: '3.24.1',
135
+ version: '3.25.3',
128
136
  mode: 'global',
129
137
  copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
130
- license: 'https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE',
138
+ license: 'https://github.com/zloirock/core-js/blob/v3.25.3/LICENSE',
131
139
  source: 'https://github.com/zloirock/core-js'
132
140
  });
133
141
 
@@ -148,7 +156,7 @@ var hasOwnProperty = uncurryThis$a({}.hasOwnProperty);
148
156
 
149
157
  // `HasOwnProperty` abstract operation
150
158
  // https://tc39.es/ecma262/#sec-hasownproperty
151
- // eslint-disable-next-line es-x/no-object-hasown -- safe
159
+ // eslint-disable-next-line es/no-object-hasown -- safe
152
160
  var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
153
161
  return hasOwnProperty(toObject$2(it), key);
154
162
  };
@@ -163,9 +171,25 @@ var uid$2 = function (key) {
163
171
  return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$3(++id + postfix, 36);
164
172
  };
165
173
 
174
+ var documentAll$2 = typeof document == 'object' && document.all;
175
+
176
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
177
+ var IS_HTMLDDA = typeof documentAll$2 == 'undefined' && documentAll$2 !== undefined;
178
+
179
+ var documentAll_1 = {
180
+ all: documentAll$2,
181
+ IS_HTMLDDA: IS_HTMLDDA
182
+ };
183
+
184
+ var $documentAll$1 = documentAll_1;
185
+
186
+ var documentAll$1 = $documentAll$1.all;
187
+
166
188
  // `IsCallable` abstract operation
167
189
  // https://tc39.es/ecma262/#sec-iscallable
168
- var isCallable$g = function (argument) {
190
+ var isCallable$g = $documentAll$1.IS_HTMLDDA ? function (argument) {
191
+ return typeof argument == 'function' || argument === documentAll$1;
192
+ } : function (argument) {
169
193
  return typeof argument == 'function';
170
194
  };
171
195
 
@@ -212,13 +236,13 @@ if (!version && userAgent) {
212
236
 
213
237
  var engineV8Version = version;
214
238
 
215
- /* eslint-disable es-x/no-symbol -- required for testing */
239
+ /* eslint-disable es/no-symbol -- required for testing */
216
240
 
217
241
  var V8_VERSION = engineV8Version;
218
242
  var fails$c = fails$f;
219
243
 
220
- // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
221
- var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$c(function () {
244
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
245
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$c(function () {
222
246
  var symbol = Symbol();
223
247
  // Chrome 38 Symbol has incorrect toString conversion
224
248
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
@@ -227,9 +251,9 @@ var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$c(function () {
227
251
  !Symbol.sham && V8_VERSION && V8_VERSION < 41;
228
252
  });
229
253
 
230
- /* eslint-disable es-x/no-symbol -- required for testing */
254
+ /* eslint-disable es/no-symbol -- required for testing */
231
255
 
232
- var NATIVE_SYMBOL$1 = nativeSymbol;
256
+ var NATIVE_SYMBOL$1 = symbolConstructorDetection;
233
257
 
234
258
  var useSymbolAsUid = NATIVE_SYMBOL$1
235
259
  && !Symbol.sham
@@ -239,7 +263,7 @@ var global$9 = global$e;
239
263
  var shared$3 = shared$4.exports;
240
264
  var hasOwn$8 = hasOwnProperty_1;
241
265
  var uid$1 = uid$2;
242
- var NATIVE_SYMBOL = nativeSymbol;
266
+ var NATIVE_SYMBOL = symbolConstructorDetection;
243
267
  var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
244
268
 
245
269
  var WellKnownSymbolsStore = shared$3('wks');
@@ -261,19 +285,24 @@ var wellKnownSymbol$9 = function (name) {
261
285
  };
262
286
 
263
287
  var isCallable$e = isCallable$g;
288
+ var $documentAll = documentAll_1;
289
+
290
+ var documentAll = $documentAll.all;
264
291
 
265
- var isObject$5 = function (it) {
292
+ var isObject$6 = $documentAll.IS_HTMLDDA ? function (it) {
293
+ return typeof it == 'object' ? it !== null : isCallable$e(it) || it === documentAll;
294
+ } : function (it) {
266
295
  return typeof it == 'object' ? it !== null : isCallable$e(it);
267
296
  };
268
297
 
269
- var isObject$4 = isObject$5;
298
+ var isObject$5 = isObject$6;
270
299
 
271
300
  var $String$3 = String;
272
301
  var $TypeError$6 = TypeError;
273
302
 
274
303
  // `Assert: Type(argument) is Object`
275
304
  var anObject$8 = function (argument) {
276
- if (isObject$4(argument)) return argument;
305
+ if (isObject$5(argument)) return argument;
277
306
  throw $TypeError$6($String$3(argument) + ' is not an object');
278
307
  };
279
308
 
@@ -283,7 +312,7 @@ var fails$b = fails$f;
283
312
 
284
313
  // Detect IE8's incomplete defineProperty implementation
285
314
  var descriptors = !fails$b(function () {
286
- // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
315
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
287
316
  return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
288
317
  });
289
318
 
@@ -293,7 +322,7 @@ var fails$a = fails$f;
293
322
  // V8 ~ Chrome 36-
294
323
  // https://bugs.chromium.org/p/v8/issues/detail?id=3334
295
324
  var v8PrototypeDefineBug = DESCRIPTORS$9 && fails$a(function () {
296
- // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
325
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
297
326
  return Object.defineProperty(function () { /* empty */ }, 'prototype', {
298
327
  value: 42,
299
328
  writable: false
@@ -303,11 +332,11 @@ var v8PrototypeDefineBug = DESCRIPTORS$9 && fails$a(function () {
303
332
  var objectDefineProperty = {};
304
333
 
305
334
  var global$8 = global$e;
306
- var isObject$3 = isObject$5;
335
+ var isObject$4 = isObject$6;
307
336
 
308
337
  var document$1 = global$8.document;
309
338
  // typeof document.createElement is 'object' in old IE
310
- var EXISTS$1 = isObject$3(document$1) && isObject$3(document$1.createElement);
339
+ var EXISTS$1 = isObject$4(document$1) && isObject$4(document$1.createElement);
311
340
 
312
341
  var documentCreateElement$2 = function (it) {
313
342
  return EXISTS$1 ? document$1.createElement(it) : {};
@@ -319,7 +348,7 @@ var createElement = documentCreateElement$2;
319
348
 
320
349
  // Thanks to IE8 for its funny defineProperty
321
350
  var ie8DomDefine = !DESCRIPTORS$8 && !fails$9(function () {
322
- // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
351
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
323
352
  return Object.defineProperty(createElement('div'), 'a', {
324
353
  get: function () { return 7; }
325
354
  }).a != 7;
@@ -373,17 +402,18 @@ var aCallable$1 = function (argument) {
373
402
  };
374
403
 
375
404
  var aCallable = aCallable$1;
405
+ var isNullOrUndefined$1 = isNullOrUndefined$3;
376
406
 
377
407
  // `GetMethod` abstract operation
378
408
  // https://tc39.es/ecma262/#sec-getmethod
379
409
  var getMethod$2 = function (V, P) {
380
410
  var func = V[P];
381
- return func == null ? undefined : aCallable(func);
411
+ return isNullOrUndefined$1(func) ? undefined : aCallable(func);
382
412
  };
383
413
 
384
414
  var call$7 = functionCall;
385
415
  var isCallable$b = isCallable$g;
386
- var isObject$2 = isObject$5;
416
+ var isObject$3 = isObject$6;
387
417
 
388
418
  var $TypeError$4 = TypeError;
389
419
 
@@ -391,14 +421,14 @@ var $TypeError$4 = TypeError;
391
421
  // https://tc39.es/ecma262/#sec-ordinarytoprimitive
392
422
  var ordinaryToPrimitive$1 = function (input, pref) {
393
423
  var fn, val;
394
- if (pref === 'string' && isCallable$b(fn = input.toString) && !isObject$2(val = call$7(fn, input))) return val;
395
- if (isCallable$b(fn = input.valueOf) && !isObject$2(val = call$7(fn, input))) return val;
396
- if (pref !== 'string' && isCallable$b(fn = input.toString) && !isObject$2(val = call$7(fn, input))) return val;
424
+ if (pref === 'string' && isCallable$b(fn = input.toString) && !isObject$3(val = call$7(fn, input))) return val;
425
+ if (isCallable$b(fn = input.valueOf) && !isObject$3(val = call$7(fn, input))) return val;
426
+ if (pref !== 'string' && isCallable$b(fn = input.toString) && !isObject$3(val = call$7(fn, input))) return val;
397
427
  throw $TypeError$4("Can't convert object to primitive value");
398
428
  };
399
429
 
400
430
  var call$6 = functionCall;
401
- var isObject$1 = isObject$5;
431
+ var isObject$2 = isObject$6;
402
432
  var isSymbol$1 = isSymbol$2;
403
433
  var getMethod$1 = getMethod$2;
404
434
  var ordinaryToPrimitive = ordinaryToPrimitive$1;
@@ -410,13 +440,13 @@ var TO_PRIMITIVE = wellKnownSymbol$8('toPrimitive');
410
440
  // `ToPrimitive` abstract operation
411
441
  // https://tc39.es/ecma262/#sec-toprimitive
412
442
  var toPrimitive$1 = function (input, pref) {
413
- if (!isObject$1(input) || isSymbol$1(input)) return input;
443
+ if (!isObject$2(input) || isSymbol$1(input)) return input;
414
444
  var exoticToPrim = getMethod$1(input, TO_PRIMITIVE);
415
445
  var result;
416
446
  if (exoticToPrim) {
417
447
  if (pref === undefined) pref = 'default';
418
448
  result = call$6(exoticToPrim, input, pref);
419
- if (!isObject$1(result) || isSymbol$1(result)) return result;
449
+ if (!isObject$2(result) || isSymbol$1(result)) return result;
420
450
  throw $TypeError$3("Can't convert object to primitive value");
421
451
  }
422
452
  if (pref === undefined) pref = 'number';
@@ -440,9 +470,9 @@ var anObject$7 = anObject$8;
440
470
  var toPropertyKey$1 = toPropertyKey$2;
441
471
 
442
472
  var $TypeError$2 = TypeError;
443
- // eslint-disable-next-line es-x/no-object-defineproperty -- safe
473
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
444
474
  var $defineProperty = Object.defineProperty;
445
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
475
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
446
476
  var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
447
477
  var ENUMERABLE = 'enumerable';
448
478
  var CONFIGURABLE$1 = 'configurable';
@@ -482,7 +512,7 @@ var floor = Math.floor;
482
512
 
483
513
  // `Math.trunc` method
484
514
  // https://tc39.es/ecma262/#sec-math.trunc
485
- // eslint-disable-next-line es-x/no-math-trunc -- safe
515
+ // eslint-disable-next-line es/no-math-trunc -- safe
486
516
  var mathTrunc = Math.trunc || function trunc(x) {
487
517
  var n = +x;
488
518
  return (n > 0 ? floor : ceil)(n);
@@ -601,7 +631,7 @@ var enumBugKeys$2 = enumBugKeys$3;
601
631
 
602
632
  // `Object.keys` method
603
633
  // https://tc39.es/ecma262/#sec-object.keys
604
- // eslint-disable-next-line es-x/no-object-keys -- safe
634
+ // eslint-disable-next-line es/no-object-keys -- safe
605
635
  var objectKeys$2 = Object.keys || function keys(O) {
606
636
  return internalObjectKeys$1(O, enumBugKeys$2);
607
637
  };
@@ -615,7 +645,7 @@ var objectKeys$1 = objectKeys$2;
615
645
 
616
646
  // `Object.defineProperties` method
617
647
  // https://tc39.es/ecma262/#sec-object.defineproperties
618
- // eslint-disable-next-line es-x/no-object-defineproperties -- safe
648
+ // eslint-disable-next-line es/no-object-defineproperties -- safe
619
649
  objectDefineProperties.f = DESCRIPTORS$6 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
620
650
  anObject$6(O);
621
651
  var props = toIndexedObject$2(Properties);
@@ -712,7 +742,7 @@ hiddenKeys$2[IE_PROTO$1] = true;
712
742
 
713
743
  // `Object.create` method
714
744
  // https://tc39.es/ecma262/#sec-object.create
715
- // eslint-disable-next-line es-x/no-object-create -- safe
745
+ // eslint-disable-next-line es/no-object-create -- safe
716
746
  var objectCreate = Object.create || function create(O, Properties) {
717
747
  var result;
718
748
  if (O !== null) {
@@ -748,28 +778,12 @@ var addToUnscopables$1 = function (key) {
748
778
 
749
779
  var iterators = {};
750
780
 
751
- var uncurryThis$6 = functionUncurryThis;
752
- var isCallable$a = isCallable$g;
753
- var store$1 = sharedStore;
754
-
755
- var functionToString = uncurryThis$6(Function.toString);
756
-
757
- // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
758
- if (!isCallable$a(store$1.inspectSource)) {
759
- store$1.inspectSource = function (it) {
760
- return functionToString(it);
761
- };
762
- }
763
-
764
- var inspectSource$2 = store$1.inspectSource;
765
-
766
781
  var global$7 = global$e;
767
- var isCallable$9 = isCallable$g;
768
- var inspectSource$1 = inspectSource$2;
782
+ var isCallable$a = isCallable$g;
769
783
 
770
784
  var WeakMap$1 = global$7.WeakMap;
771
785
 
772
- var nativeWeakMap = isCallable$9(WeakMap$1) && /native code/.test(inspectSource$1(WeakMap$1));
786
+ var weakMapBasicDetection = isCallable$a(WeakMap$1) && /native code/.test(String(WeakMap$1));
773
787
 
774
788
  var createPropertyDescriptor$3 = function (bitmap, value) {
775
789
  return {
@@ -791,10 +805,10 @@ var createNonEnumerableProperty$5 = DESCRIPTORS$5 ? function (object, key, value
791
805
  return object;
792
806
  };
793
807
 
794
- var NATIVE_WEAK_MAP = nativeWeakMap;
808
+ var NATIVE_WEAK_MAP = weakMapBasicDetection;
795
809
  var global$6 = global$e;
796
- var uncurryThis$5 = functionUncurryThis;
797
- var isObject = isObject$5;
810
+ var uncurryThis$6 = functionUncurryThis;
811
+ var isObject$1 = isObject$6;
798
812
  var createNonEnumerableProperty$4 = createNonEnumerableProperty$5;
799
813
  var hasOwn$6 = hasOwnProperty_1;
800
814
  var shared$1 = sharedStore;
@@ -813,34 +827,34 @@ var enforce = function (it) {
813
827
  var getterFor = function (TYPE) {
814
828
  return function (it) {
815
829
  var state;
816
- if (!isObject(it) || (state = get(it)).type !== TYPE) {
830
+ if (!isObject$1(it) || (state = get(it)).type !== TYPE) {
817
831
  throw TypeError$1('Incompatible receiver, ' + TYPE + ' required');
818
832
  } return state;
819
833
  };
820
834
  };
821
835
 
822
836
  if (NATIVE_WEAK_MAP || shared$1.state) {
823
- var store = shared$1.state || (shared$1.state = new WeakMap());
824
- var wmget = uncurryThis$5(store.get);
825
- var wmhas = uncurryThis$5(store.has);
826
- var wmset = uncurryThis$5(store.set);
837
+ var store$1 = shared$1.state || (shared$1.state = new WeakMap());
838
+ var wmget = uncurryThis$6(store$1.get);
839
+ var wmhas = uncurryThis$6(store$1.has);
840
+ var wmset = uncurryThis$6(store$1.set);
827
841
  set = function (it, metadata) {
828
- if (wmhas(store, it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
842
+ if (wmhas(store$1, it)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
829
843
  metadata.facade = it;
830
- wmset(store, it, metadata);
844
+ wmset(store$1, it, metadata);
831
845
  return metadata;
832
846
  };
833
847
  get = function (it) {
834
- return wmget(store, it) || {};
848
+ return wmget(store$1, it) || {};
835
849
  };
836
850
  has = function (it) {
837
- return wmhas(store, it);
851
+ return wmhas(store$1, it);
838
852
  };
839
853
  } else {
840
854
  var STATE = sharedKey$1('state');
841
855
  hiddenKeys$1[STATE] = true;
842
856
  set = function (it, metadata) {
843
- if (hasOwn$6(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
857
+ if (hasOwn$6(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
844
858
  metadata.facade = it;
845
859
  createNonEnumerableProperty$4(it, STATE, metadata);
846
860
  return metadata;
@@ -866,7 +880,7 @@ var objectGetOwnPropertyDescriptor = {};
866
880
  var objectPropertyIsEnumerable = {};
867
881
 
868
882
  var $propertyIsEnumerable = {}.propertyIsEnumerable;
869
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
883
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
870
884
  var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
871
885
 
872
886
  // Nashorn ~ JDK8 bug
@@ -888,7 +902,7 @@ var toPropertyKey = toPropertyKey$2;
888
902
  var hasOwn$5 = hasOwnProperty_1;
889
903
  var IE8_DOM_DEFINE = ie8DomDefine;
890
904
 
891
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
905
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
892
906
  var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
893
907
 
894
908
  // `Object.getOwnPropertyDescriptor` method
@@ -908,7 +922,7 @@ var DESCRIPTORS$3 = descriptors;
908
922
  var hasOwn$4 = hasOwnProperty_1;
909
923
 
910
924
  var FunctionPrototype = Function.prototype;
911
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
925
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
912
926
  var getDescriptor = DESCRIPTORS$3 && Object.getOwnPropertyDescriptor;
913
927
 
914
928
  var EXISTS = hasOwn$4(FunctionPrototype, 'name');
@@ -922,17 +936,32 @@ var functionName = {
922
936
  CONFIGURABLE: CONFIGURABLE
923
937
  };
924
938
 
939
+ var uncurryThis$5 = functionUncurryThis;
940
+ var isCallable$9 = isCallable$g;
941
+ var store = sharedStore;
942
+
943
+ var functionToString = uncurryThis$5(Function.toString);
944
+
945
+ // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
946
+ if (!isCallable$9(store.inspectSource)) {
947
+ store.inspectSource = function (it) {
948
+ return functionToString(it);
949
+ };
950
+ }
951
+
952
+ var inspectSource$1 = store.inspectSource;
953
+
925
954
  var fails$8 = fails$f;
926
955
  var isCallable$8 = isCallable$g;
927
956
  var hasOwn$3 = hasOwnProperty_1;
928
957
  var DESCRIPTORS$2 = descriptors;
929
958
  var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
930
- var inspectSource = inspectSource$2;
959
+ var inspectSource = inspectSource$1;
931
960
  var InternalStateModule$1 = internalState;
932
961
 
933
962
  var enforceInternalState = InternalStateModule$1.enforce;
934
963
  var getInternalState$2 = InternalStateModule$1.get;
935
- // eslint-disable-next-line es-x/no-object-defineproperty -- safe
964
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
936
965
  var defineProperty$3 = Object.defineProperty;
937
966
 
938
967
  var CONFIGURABLE_LENGTH = DESCRIPTORS$2 && !fails$8(function () {
@@ -1009,14 +1038,14 @@ var hiddenKeys = enumBugKeys.concat('length', 'prototype');
1009
1038
 
1010
1039
  // `Object.getOwnPropertyNames` method
1011
1040
  // https://tc39.es/ecma262/#sec-object.getownpropertynames
1012
- // eslint-disable-next-line es-x/no-object-getownpropertynames -- safe
1041
+ // eslint-disable-next-line es/no-object-getownpropertynames -- safe
1013
1042
  objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
1014
1043
  return internalObjectKeys(O, hiddenKeys);
1015
1044
  };
1016
1045
 
1017
1046
  var objectGetOwnPropertySymbols = {};
1018
1047
 
1019
- // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
1048
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
1020
1049
  objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
1021
1050
 
1022
1051
  var getBuiltIn = getBuiltIn$4;
@@ -1134,7 +1163,7 @@ var fails$6 = fails$f;
1134
1163
  var correctPrototypeGetter = !fails$6(function () {
1135
1164
  function F() { /* empty */ }
1136
1165
  F.prototype.constructor = null;
1137
- // eslint-disable-next-line es-x/no-object-getprototypeof -- required for testing
1166
+ // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
1138
1167
  return Object.getPrototypeOf(new F()) !== F.prototype;
1139
1168
  });
1140
1169
 
@@ -1150,7 +1179,7 @@ var ObjectPrototype = $Object$1.prototype;
1150
1179
 
1151
1180
  // `Object.getPrototypeOf` method
1152
1181
  // https://tc39.es/ecma262/#sec-object.getprototypeof
1153
- // eslint-disable-next-line es-x/no-object-getprototypeof -- safe
1182
+ // eslint-disable-next-line es/no-object-getprototypeof -- safe
1154
1183
  var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
1155
1184
  var object = toObject$1(O);
1156
1185
  if (hasOwn$1(object, IE_PROTO)) return object[IE_PROTO];
@@ -1162,6 +1191,7 @@ var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf :
1162
1191
 
1163
1192
  var fails$5 = fails$f;
1164
1193
  var isCallable$4 = isCallable$g;
1194
+ var isObject = isObject$6;
1165
1195
  var getPrototypeOf$1 = objectGetPrototypeOf;
1166
1196
  var defineBuiltIn$2 = defineBuiltIn$4;
1167
1197
  var wellKnownSymbol$6 = wellKnownSymbol$9;
@@ -1173,7 +1203,7 @@ var BUGGY_SAFARI_ITERATORS$1 = false;
1173
1203
  // https://tc39.es/ecma262/#sec-%iteratorprototype%-object
1174
1204
  var IteratorPrototype$2, PrototypeOfArrayIteratorPrototype, arrayIterator;
1175
1205
 
1176
- /* eslint-disable es-x/no-array-prototype-keys -- safe */
1206
+ /* eslint-disable es/no-array-prototype-keys -- safe */
1177
1207
  if ([].keys) {
1178
1208
  arrayIterator = [].keys();
1179
1209
  // Safari 8 has buggy iterators w/o `next`
@@ -1184,7 +1214,7 @@ if ([].keys) {
1184
1214
  }
1185
1215
  }
1186
1216
 
1187
- var NEW_ITERATOR_PROTOTYPE = IteratorPrototype$2 == undefined || fails$5(function () {
1217
+ var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype$2) || fails$5(function () {
1188
1218
  var test = {};
1189
1219
  // FF44- legacy iterators case
1190
1220
  return IteratorPrototype$2[ITERATOR$2].call(test) !== test;
@@ -1226,7 +1256,7 @@ var Iterators$2 = iterators;
1226
1256
 
1227
1257
  var returnThis$1 = function () { return this; };
1228
1258
 
1229
- var createIteratorConstructor$1 = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
1259
+ var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
1230
1260
  var TO_STRING_TAG = NAME + ' Iterator';
1231
1261
  IteratorConstructor.prototype = create$1(IteratorPrototype$1, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
1232
1262
  setToStringTag$1(IteratorConstructor, TO_STRING_TAG, false);
@@ -1253,13 +1283,13 @@ var aPossiblePrototype = aPossiblePrototype$1;
1253
1283
  // `Object.setPrototypeOf` method
1254
1284
  // https://tc39.es/ecma262/#sec-object.setprototypeof
1255
1285
  // Works with __proto__ only. Old v8 can't work with null proto objects.
1256
- // eslint-disable-next-line es-x/no-object-setprototypeof -- safe
1286
+ // eslint-disable-next-line es/no-object-setprototypeof -- safe
1257
1287
  var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
1258
1288
  var CORRECT_SETTER = false;
1259
1289
  var test = {};
1260
1290
  var setter;
1261
1291
  try {
1262
- // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
1292
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1263
1293
  setter = uncurryThis$3(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
1264
1294
  setter(test, []);
1265
1295
  CORRECT_SETTER = test instanceof Array;
@@ -1277,7 +1307,7 @@ var $$2 = _export;
1277
1307
  var call$4 = functionCall;
1278
1308
  var FunctionName = functionName;
1279
1309
  var isCallable$2 = isCallable$g;
1280
- var createIteratorConstructor = createIteratorConstructor$1;
1310
+ var createIteratorConstructor = iteratorCreateConstructor;
1281
1311
  var getPrototypeOf = objectGetPrototypeOf;
1282
1312
  var setPrototypeOf = objectSetPrototypeOf;
1283
1313
  var setToStringTag = setToStringTag$2;
@@ -1298,7 +1328,7 @@ var ENTRIES = 'entries';
1298
1328
 
1299
1329
  var returnThis = function () { return this; };
1300
1330
 
1301
- var defineIterator$1 = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
1331
+ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
1302
1332
  createIteratorConstructor(IteratorConstructor, NAME, next);
1303
1333
 
1304
1334
  var getIterationMethod = function (KIND) {
@@ -1370,12 +1400,19 @@ var defineIterator$1 = function (Iterable, NAME, IteratorConstructor, next, DEFA
1370
1400
  return methods;
1371
1401
  };
1372
1402
 
1403
+ // `CreateIterResultObject` abstract operation
1404
+ // https://tc39.es/ecma262/#sec-createiterresultobject
1405
+ var createIterResultObject$1 = function (value, done) {
1406
+ return { value: value, done: done };
1407
+ };
1408
+
1373
1409
  var toIndexedObject = toIndexedObject$5;
1374
1410
  var addToUnscopables = addToUnscopables$1;
1375
1411
  var Iterators = iterators;
1376
1412
  var InternalStateModule = internalState;
1377
1413
  var defineProperty$1 = objectDefineProperty.f;
1378
- var defineIterator = defineIterator$1;
1414
+ var defineIterator = iteratorDefine;
1415
+ var createIterResultObject = createIterResultObject$1;
1379
1416
  var DESCRIPTORS$1 = descriptors;
1380
1417
 
1381
1418
  var ARRAY_ITERATOR = 'Array Iterator';
@@ -1408,11 +1445,11 @@ var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind)
1408
1445
  var index = state.index++;
1409
1446
  if (!target || index >= target.length) {
1410
1447
  state.target = undefined;
1411
- return { value: undefined, done: true };
1448
+ return createIterResultObject(undefined, true);
1412
1449
  }
1413
- if (kind == 'keys') return { value: index, done: false };
1414
- if (kind == 'values') return { value: target[index], done: false };
1415
- return { value: [index, target[index]], done: false };
1450
+ if (kind == 'keys') return createIterResultObject(index, false);
1451
+ if (kind == 'values') return createIterResultObject(target[index], false);
1452
+ return createIterResultObject([index, target[index]], false);
1416
1453
  }, 'values');
1417
1454
 
1418
1455
  // argumentsList[@@iterator] is %ArrayProto_values%
@@ -1523,9 +1560,9 @@ var propertyIsEnumerableModule = objectPropertyIsEnumerable;
1523
1560
  var toObject = toObject$3;
1524
1561
  var IndexedObject = indexedObject;
1525
1562
 
1526
- // eslint-disable-next-line es-x/no-object-assign -- safe
1563
+ // eslint-disable-next-line es/no-object-assign -- safe
1527
1564
  var $assign = Object.assign;
1528
- // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
1565
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1529
1566
  var defineProperty = Object.defineProperty;
1530
1567
  var concat = uncurryThis$2([].concat);
1531
1568
 
@@ -1545,7 +1582,7 @@ var objectAssign = !$assign || fails$4(function () {
1545
1582
  // should work with symbols and should have deterministic property order (V8 bug)
1546
1583
  var A = {};
1547
1584
  var B = {};
1548
- // eslint-disable-next-line es-x/no-symbol -- safe
1585
+ // eslint-disable-next-line es/no-symbol -- safe
1549
1586
  var symbol = Symbol();
1550
1587
  var alphabet = 'abcdefghijklmnopqrst';
1551
1588
  A[symbol] = 7;
@@ -1575,7 +1612,7 @@ var assign = objectAssign;
1575
1612
 
1576
1613
  // `Object.assign` method
1577
1614
  // https://tc39.es/ecma262/#sec-object.assign
1578
- // eslint-disable-next-line es-x/no-object-assign -- required for testing
1615
+ // eslint-disable-next-line es/no-object-assign -- required for testing
1579
1616
  $$1({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1580
1617
  assign: assign
1581
1618
  });
@@ -1953,7 +1990,7 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
1953
1990
 
1954
1991
  // `SameValue` abstract operation
1955
1992
  // https://tc39.es/ecma262/#sec-samevalue
1956
- // eslint-disable-next-line es-x/no-object-is -- safe
1993
+ // eslint-disable-next-line es/no-object-is -- safe
1957
1994
  var sameValue$1 = Object.is || function is(x, y) {
1958
1995
  // eslint-disable-next-line no-self-compare -- NaN check
1959
1996
  return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;
@@ -1983,6 +2020,7 @@ var regexpExecAbstract = function (R, S) {
1983
2020
  var call = functionCall;
1984
2021
  var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
1985
2022
  var anObject = anObject$8;
2023
+ var isNullOrUndefined = isNullOrUndefined$3;
1986
2024
  var requireObjectCoercible = requireObjectCoercible$3;
1987
2025
  var sameValue = sameValue$1;
1988
2026
  var toString = toString$2;
@@ -1996,7 +2034,7 @@ fixRegExpWellKnownSymbolLogic('search', function (SEARCH, nativeSearch, maybeCal
1996
2034
  // https://tc39.es/ecma262/#sec-string.prototype.search
1997
2035
  function search(regexp) {
1998
2036
  var O = requireObjectCoercible(this);
1999
- var searcher = regexp == undefined ? undefined : getMethod(regexp, SEARCH);
2037
+ var searcher = isNullOrUndefined(regexp) ? undefined : getMethod(regexp, SEARCH);
2000
2038
  return searcher ? call(searcher, regexp, O) : new RegExp(regexp)[SEARCH](toString(O));
2001
2039
  },
2002
2040
  // `RegExp.prototype[@@search]` method
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-core-hooks",
3
- "version": "0.0.66",
3
+ "version": "0.0.67",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "module": "./index.js",
@@ -8,11 +8,11 @@
8
8
  "type": "module",
9
9
  "types": "./index.d.ts",
10
10
  "dependencies": {
11
- "@trackunit/react-core-contexts-api": "0.0.58",
12
- "launchdarkly-react-client-sdk": "^2.25.1",
13
- "react": "17.0.1",
14
- "@trackunit/iris-app-runtime-core": "0.0.67",
15
- "react-router-dom": "^6.2.2"
11
+ "@trackunit/react-core-contexts-api": "0.0.59",
12
+ "launchdarkly-react-client-sdk": "^2.27.0",
13
+ "react": "17.0.2",
14
+ "@trackunit/iris-app-runtime-core": "0.0.68",
15
+ "react-router-dom": "6.4.1"
16
16
  },
17
17
  "peerDependencies": {}
18
18
  }