@trackunit/react-core-contexts 0.0.44 → 0.0.46
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/index.js +111 -73
- package/package.json +8 -8
package/index.js
CHANGED
|
@@ -18,7 +18,7 @@ var check = function (it) {
|
|
|
18
18
|
|
|
19
19
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
20
20
|
var global$e =
|
|
21
|
-
// eslint-disable-next-line es
|
|
21
|
+
// eslint-disable-next-line es/no-global-this -- safe
|
|
22
22
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
23
23
|
check(typeof window == 'object' && window) ||
|
|
24
24
|
// eslint-disable-next-line no-restricted-globals -- safe
|
|
@@ -41,14 +41,14 @@ var fails$f = fails$g;
|
|
|
41
41
|
|
|
42
42
|
// Detect IE8's incomplete defineProperty implementation
|
|
43
43
|
var descriptors = !fails$f(function () {
|
|
44
|
-
// eslint-disable-next-line es
|
|
44
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
45
45
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
|
46
46
|
});
|
|
47
47
|
|
|
48
48
|
var fails$e = fails$g;
|
|
49
49
|
|
|
50
50
|
var functionBindNative = !fails$e(function () {
|
|
51
|
-
// eslint-disable-next-line es
|
|
51
|
+
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
52
52
|
var test = (function () { /* empty */ }).bind();
|
|
53
53
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
54
54
|
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
|
@@ -65,7 +65,7 @@ var functionCall = NATIVE_BIND$2 ? call$a.bind(call$a) : function () {
|
|
|
65
65
|
var objectPropertyIsEnumerable = {};
|
|
66
66
|
|
|
67
67
|
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
68
|
-
// eslint-disable-next-line es
|
|
68
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
69
69
|
var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
70
70
|
|
|
71
71
|
// Nashorn ~ JDK8 bug
|
|
@@ -127,12 +127,20 @@ var indexedObject = fails$d(function () {
|
|
|
127
127
|
return classof$4(it) == 'String' ? split(it, '') : $Object$4(it);
|
|
128
128
|
} : $Object$4;
|
|
129
129
|
|
|
130
|
+
// we can't use just `it == null` since of `document.all` special case
|
|
131
|
+
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
|
|
132
|
+
var isNullOrUndefined$3 = function (it) {
|
|
133
|
+
return it === null || it === undefined;
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
var isNullOrUndefined$2 = isNullOrUndefined$3;
|
|
137
|
+
|
|
130
138
|
var $TypeError$8 = TypeError;
|
|
131
139
|
|
|
132
140
|
// `RequireObjectCoercible` abstract operation
|
|
133
141
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
134
142
|
var requireObjectCoercible$5 = function (it) {
|
|
135
|
-
if (it
|
|
143
|
+
if (isNullOrUndefined$2(it)) throw $TypeError$8("Can't call method on " + it);
|
|
136
144
|
return it;
|
|
137
145
|
};
|
|
138
146
|
|
|
@@ -144,15 +152,36 @@ var toIndexedObject$5 = function (it) {
|
|
|
144
152
|
return IndexedObject$1(requireObjectCoercible$4(it));
|
|
145
153
|
};
|
|
146
154
|
|
|
155
|
+
var documentAll$2 = typeof document == 'object' && document.all;
|
|
156
|
+
|
|
157
|
+
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
|
|
158
|
+
var IS_HTMLDDA = typeof documentAll$2 == 'undefined' && documentAll$2 !== undefined;
|
|
159
|
+
|
|
160
|
+
var documentAll_1 = {
|
|
161
|
+
all: documentAll$2,
|
|
162
|
+
IS_HTMLDDA: IS_HTMLDDA
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
var $documentAll$1 = documentAll_1;
|
|
166
|
+
|
|
167
|
+
var documentAll$1 = $documentAll$1.all;
|
|
168
|
+
|
|
147
169
|
// `IsCallable` abstract operation
|
|
148
170
|
// https://tc39.es/ecma262/#sec-iscallable
|
|
149
|
-
var isCallable$h = function (argument) {
|
|
171
|
+
var isCallable$h = $documentAll$1.IS_HTMLDDA ? function (argument) {
|
|
172
|
+
return typeof argument == 'function' || argument === documentAll$1;
|
|
173
|
+
} : function (argument) {
|
|
150
174
|
return typeof argument == 'function';
|
|
151
175
|
};
|
|
152
176
|
|
|
153
177
|
var isCallable$g = isCallable$h;
|
|
178
|
+
var $documentAll = documentAll_1;
|
|
179
|
+
|
|
180
|
+
var documentAll = $documentAll.all;
|
|
154
181
|
|
|
155
|
-
var isObject$
|
|
182
|
+
var isObject$7 = $documentAll.IS_HTMLDDA ? function (it) {
|
|
183
|
+
return typeof it == 'object' ? it !== null : isCallable$g(it) || it === documentAll;
|
|
184
|
+
} : function (it) {
|
|
156
185
|
return typeof it == 'object' ? it !== null : isCallable$g(it);
|
|
157
186
|
};
|
|
158
187
|
|
|
@@ -203,13 +232,13 @@ if (!version && userAgent) {
|
|
|
203
232
|
|
|
204
233
|
var engineV8Version = version;
|
|
205
234
|
|
|
206
|
-
/* eslint-disable es
|
|
235
|
+
/* eslint-disable es/no-symbol -- required for testing */
|
|
207
236
|
|
|
208
237
|
var V8_VERSION = engineV8Version;
|
|
209
238
|
var fails$c = fails$g;
|
|
210
239
|
|
|
211
|
-
// eslint-disable-next-line es
|
|
212
|
-
var
|
|
240
|
+
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
241
|
+
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$c(function () {
|
|
213
242
|
var symbol = Symbol();
|
|
214
243
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
215
244
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
@@ -218,9 +247,9 @@ var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$c(function () {
|
|
|
218
247
|
!Symbol.sham && V8_VERSION && V8_VERSION < 41;
|
|
219
248
|
});
|
|
220
249
|
|
|
221
|
-
/* eslint-disable es
|
|
250
|
+
/* eslint-disable es/no-symbol -- required for testing */
|
|
222
251
|
|
|
223
|
-
var NATIVE_SYMBOL$1 =
|
|
252
|
+
var NATIVE_SYMBOL$1 = symbolConstructorDetection;
|
|
224
253
|
|
|
225
254
|
var useSymbolAsUid = NATIVE_SYMBOL$1
|
|
226
255
|
&& !Symbol.sham
|
|
@@ -262,17 +291,18 @@ var aCallable$1 = function (argument) {
|
|
|
262
291
|
};
|
|
263
292
|
|
|
264
293
|
var aCallable = aCallable$1;
|
|
294
|
+
var isNullOrUndefined$1 = isNullOrUndefined$3;
|
|
265
295
|
|
|
266
296
|
// `GetMethod` abstract operation
|
|
267
297
|
// https://tc39.es/ecma262/#sec-getmethod
|
|
268
298
|
var getMethod$2 = function (V, P) {
|
|
269
299
|
var func = V[P];
|
|
270
|
-
return func
|
|
300
|
+
return isNullOrUndefined$1(func) ? undefined : aCallable(func);
|
|
271
301
|
};
|
|
272
302
|
|
|
273
303
|
var call$8 = functionCall;
|
|
274
304
|
var isCallable$c = isCallable$h;
|
|
275
|
-
var isObject$
|
|
305
|
+
var isObject$6 = isObject$7;
|
|
276
306
|
|
|
277
307
|
var $TypeError$6 = TypeError;
|
|
278
308
|
|
|
@@ -280,9 +310,9 @@ var $TypeError$6 = TypeError;
|
|
|
280
310
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
281
311
|
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
282
312
|
var fn, val;
|
|
283
|
-
if (pref === 'string' && isCallable$c(fn = input.toString) && !isObject$
|
|
284
|
-
if (isCallable$c(fn = input.valueOf) && !isObject$
|
|
285
|
-
if (pref !== 'string' && isCallable$c(fn = input.toString) && !isObject$
|
|
313
|
+
if (pref === 'string' && isCallable$c(fn = input.toString) && !isObject$6(val = call$8(fn, input))) return val;
|
|
314
|
+
if (isCallable$c(fn = input.valueOf) && !isObject$6(val = call$8(fn, input))) return val;
|
|
315
|
+
if (pref !== 'string' && isCallable$c(fn = input.toString) && !isObject$6(val = call$8(fn, input))) return val;
|
|
286
316
|
throw $TypeError$6("Can't convert object to primitive value");
|
|
287
317
|
};
|
|
288
318
|
|
|
@@ -290,7 +320,7 @@ var shared$4 = {exports: {}};
|
|
|
290
320
|
|
|
291
321
|
var global$b = global$e;
|
|
292
322
|
|
|
293
|
-
// eslint-disable-next-line es
|
|
323
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
294
324
|
var defineProperty$5 = Object.defineProperty;
|
|
295
325
|
|
|
296
326
|
var defineGlobalProperty$3 = function (key, value) {
|
|
@@ -314,10 +344,10 @@ var store$2 = sharedStore;
|
|
|
314
344
|
(shared$4.exports = function (key, value) {
|
|
315
345
|
return store$2[key] || (store$2[key] = value !== undefined ? value : {});
|
|
316
346
|
})('versions', []).push({
|
|
317
|
-
version: '3.
|
|
347
|
+
version: '3.25.3',
|
|
318
348
|
mode: 'global',
|
|
319
349
|
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
|
320
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
350
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.25.3/LICENSE',
|
|
321
351
|
source: 'https://github.com/zloirock/core-js'
|
|
322
352
|
});
|
|
323
353
|
|
|
@@ -338,7 +368,7 @@ var hasOwnProperty = uncurryThis$d({}.hasOwnProperty);
|
|
|
338
368
|
|
|
339
369
|
// `HasOwnProperty` abstract operation
|
|
340
370
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
341
|
-
// eslint-disable-next-line es
|
|
371
|
+
// eslint-disable-next-line es/no-object-hasown -- safe
|
|
342
372
|
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
343
373
|
return hasOwnProperty(toObject$3(it), key);
|
|
344
374
|
};
|
|
@@ -357,7 +387,7 @@ var global$9 = global$e;
|
|
|
357
387
|
var shared$3 = shared$4.exports;
|
|
358
388
|
var hasOwn$8 = hasOwnProperty_1;
|
|
359
389
|
var uid$1 = uid$2;
|
|
360
|
-
var NATIVE_SYMBOL =
|
|
390
|
+
var NATIVE_SYMBOL = symbolConstructorDetection;
|
|
361
391
|
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
362
392
|
|
|
363
393
|
var WellKnownSymbolsStore = shared$3('wks');
|
|
@@ -379,7 +409,7 @@ var wellKnownSymbol$c = function (name) {
|
|
|
379
409
|
};
|
|
380
410
|
|
|
381
411
|
var call$7 = functionCall;
|
|
382
|
-
var isObject$
|
|
412
|
+
var isObject$5 = isObject$7;
|
|
383
413
|
var isSymbol$1 = isSymbol$2;
|
|
384
414
|
var getMethod$1 = getMethod$2;
|
|
385
415
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
@@ -391,13 +421,13 @@ var TO_PRIMITIVE = wellKnownSymbol$b('toPrimitive');
|
|
|
391
421
|
// `ToPrimitive` abstract operation
|
|
392
422
|
// https://tc39.es/ecma262/#sec-toprimitive
|
|
393
423
|
var toPrimitive$1 = function (input, pref) {
|
|
394
|
-
if (!isObject$
|
|
424
|
+
if (!isObject$5(input) || isSymbol$1(input)) return input;
|
|
395
425
|
var exoticToPrim = getMethod$1(input, TO_PRIMITIVE);
|
|
396
426
|
var result;
|
|
397
427
|
if (exoticToPrim) {
|
|
398
428
|
if (pref === undefined) pref = 'default';
|
|
399
429
|
result = call$7(exoticToPrim, input, pref);
|
|
400
|
-
if (!isObject$
|
|
430
|
+
if (!isObject$5(result) || isSymbol$1(result)) return result;
|
|
401
431
|
throw $TypeError$5("Can't convert object to primitive value");
|
|
402
432
|
}
|
|
403
433
|
if (pref === undefined) pref = 'number';
|
|
@@ -415,11 +445,11 @@ var toPropertyKey$2 = function (argument) {
|
|
|
415
445
|
};
|
|
416
446
|
|
|
417
447
|
var global$8 = global$e;
|
|
418
|
-
var isObject$
|
|
448
|
+
var isObject$4 = isObject$7;
|
|
419
449
|
|
|
420
450
|
var document$1 = global$8.document;
|
|
421
451
|
// typeof document.createElement is 'object' in old IE
|
|
422
|
-
var EXISTS$1 = isObject$
|
|
452
|
+
var EXISTS$1 = isObject$4(document$1) && isObject$4(document$1.createElement);
|
|
423
453
|
|
|
424
454
|
var documentCreateElement$2 = function (it) {
|
|
425
455
|
return EXISTS$1 ? document$1.createElement(it) : {};
|
|
@@ -431,7 +461,7 @@ var createElement = documentCreateElement$2;
|
|
|
431
461
|
|
|
432
462
|
// Thanks to IE8 for its funny defineProperty
|
|
433
463
|
var ie8DomDefine = !DESCRIPTORS$9 && !fails$b(function () {
|
|
434
|
-
// eslint-disable-next-line es
|
|
464
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
435
465
|
return Object.defineProperty(createElement('div'), 'a', {
|
|
436
466
|
get: function () { return 7; }
|
|
437
467
|
}).a != 7;
|
|
@@ -446,7 +476,7 @@ var toPropertyKey$1 = toPropertyKey$2;
|
|
|
446
476
|
var hasOwn$7 = hasOwnProperty_1;
|
|
447
477
|
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
|
448
478
|
|
|
449
|
-
// eslint-disable-next-line es
|
|
479
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
450
480
|
var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
451
481
|
|
|
452
482
|
// `Object.getOwnPropertyDescriptor` method
|
|
@@ -468,21 +498,21 @@ var fails$a = fails$g;
|
|
|
468
498
|
// V8 ~ Chrome 36-
|
|
469
499
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
470
500
|
var v8PrototypeDefineBug = DESCRIPTORS$7 && fails$a(function () {
|
|
471
|
-
// eslint-disable-next-line es
|
|
501
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
472
502
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
473
503
|
value: 42,
|
|
474
504
|
writable: false
|
|
475
505
|
}).prototype != 42;
|
|
476
506
|
});
|
|
477
507
|
|
|
478
|
-
var isObject$
|
|
508
|
+
var isObject$3 = isObject$7;
|
|
479
509
|
|
|
480
510
|
var $String$2 = String;
|
|
481
511
|
var $TypeError$4 = TypeError;
|
|
482
512
|
|
|
483
513
|
// `Assert: Type(argument) is Object`
|
|
484
514
|
var anObject$8 = function (argument) {
|
|
485
|
-
if (isObject$
|
|
515
|
+
if (isObject$3(argument)) return argument;
|
|
486
516
|
throw $TypeError$4($String$2(argument) + ' is not an object');
|
|
487
517
|
};
|
|
488
518
|
|
|
@@ -493,9 +523,9 @@ var anObject$7 = anObject$8;
|
|
|
493
523
|
var toPropertyKey = toPropertyKey$2;
|
|
494
524
|
|
|
495
525
|
var $TypeError$3 = TypeError;
|
|
496
|
-
// eslint-disable-next-line es
|
|
526
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
497
527
|
var $defineProperty = Object.defineProperty;
|
|
498
|
-
// eslint-disable-next-line es
|
|
528
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
499
529
|
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
500
530
|
var ENUMERABLE = 'enumerable';
|
|
501
531
|
var CONFIGURABLE$1 = 'configurable';
|
|
@@ -547,7 +577,7 @@ var DESCRIPTORS$4 = descriptors;
|
|
|
547
577
|
var hasOwn$6 = hasOwnProperty_1;
|
|
548
578
|
|
|
549
579
|
var FunctionPrototype$1 = Function.prototype;
|
|
550
|
-
// eslint-disable-next-line es
|
|
580
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
551
581
|
var getDescriptor = DESCRIPTORS$4 && Object.getOwnPropertyDescriptor;
|
|
552
582
|
|
|
553
583
|
var EXISTS = hasOwn$6(FunctionPrototype$1, 'name');
|
|
@@ -574,15 +604,14 @@ if (!isCallable$b(store$1.inspectSource)) {
|
|
|
574
604
|
};
|
|
575
605
|
}
|
|
576
606
|
|
|
577
|
-
var inspectSource$
|
|
607
|
+
var inspectSource$1 = store$1.inspectSource;
|
|
578
608
|
|
|
579
609
|
var global$7 = global$e;
|
|
580
610
|
var isCallable$a = isCallable$h;
|
|
581
|
-
var inspectSource$1 = inspectSource$2;
|
|
582
611
|
|
|
583
612
|
var WeakMap$1 = global$7.WeakMap;
|
|
584
613
|
|
|
585
|
-
var
|
|
614
|
+
var weakMapBasicDetection = isCallable$a(WeakMap$1) && /native code/.test(String(WeakMap$1));
|
|
586
615
|
|
|
587
616
|
var shared$2 = shared$4.exports;
|
|
588
617
|
var uid = uid$2;
|
|
@@ -595,10 +624,10 @@ var sharedKey$3 = function (key) {
|
|
|
595
624
|
|
|
596
625
|
var hiddenKeys$4 = {};
|
|
597
626
|
|
|
598
|
-
var NATIVE_WEAK_MAP =
|
|
627
|
+
var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
|
599
628
|
var global$6 = global$e;
|
|
600
629
|
var uncurryThis$a = functionUncurryThis;
|
|
601
|
-
var isObject$
|
|
630
|
+
var isObject$2 = isObject$7;
|
|
602
631
|
var createNonEnumerableProperty$4 = createNonEnumerableProperty$5;
|
|
603
632
|
var hasOwn$5 = hasOwnProperty_1;
|
|
604
633
|
var shared$1 = sharedStore;
|
|
@@ -617,7 +646,7 @@ var enforce = function (it) {
|
|
|
617
646
|
var getterFor = function (TYPE) {
|
|
618
647
|
return function (it) {
|
|
619
648
|
var state;
|
|
620
|
-
if (!isObject$
|
|
649
|
+
if (!isObject$2(it) || (state = get(it)).type !== TYPE) {
|
|
621
650
|
throw TypeError$1('Incompatible receiver, ' + TYPE + ' required');
|
|
622
651
|
} return state;
|
|
623
652
|
};
|
|
@@ -629,7 +658,7 @@ if (NATIVE_WEAK_MAP || shared$1.state) {
|
|
|
629
658
|
var wmhas = uncurryThis$a(store.has);
|
|
630
659
|
var wmset = uncurryThis$a(store.set);
|
|
631
660
|
set = function (it, metadata) {
|
|
632
|
-
if (wmhas(store, it)) throw
|
|
661
|
+
if (wmhas(store, it)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
633
662
|
metadata.facade = it;
|
|
634
663
|
wmset(store, it, metadata);
|
|
635
664
|
return metadata;
|
|
@@ -644,7 +673,7 @@ if (NATIVE_WEAK_MAP || shared$1.state) {
|
|
|
644
673
|
var STATE = sharedKey$2('state');
|
|
645
674
|
hiddenKeys$3[STATE] = true;
|
|
646
675
|
set = function (it, metadata) {
|
|
647
|
-
if (hasOwn$5(it, STATE)) throw
|
|
676
|
+
if (hasOwn$5(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
648
677
|
metadata.facade = it;
|
|
649
678
|
createNonEnumerableProperty$4(it, STATE, metadata);
|
|
650
679
|
return metadata;
|
|
@@ -670,12 +699,12 @@ var isCallable$9 = isCallable$h;
|
|
|
670
699
|
var hasOwn$4 = hasOwnProperty_1;
|
|
671
700
|
var DESCRIPTORS$3 = descriptors;
|
|
672
701
|
var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
|
|
673
|
-
var inspectSource = inspectSource$
|
|
702
|
+
var inspectSource = inspectSource$1;
|
|
674
703
|
var InternalStateModule$1 = internalState;
|
|
675
704
|
|
|
676
705
|
var enforceInternalState = InternalStateModule$1.enforce;
|
|
677
706
|
var getInternalState$2 = InternalStateModule$1.get;
|
|
678
|
-
// eslint-disable-next-line es
|
|
707
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
679
708
|
var defineProperty$4 = Object.defineProperty;
|
|
680
709
|
|
|
681
710
|
var CONFIGURABLE_LENGTH = DESCRIPTORS$3 && !fails$9(function () {
|
|
@@ -750,7 +779,7 @@ var floor$1 = Math.floor;
|
|
|
750
779
|
|
|
751
780
|
// `Math.trunc` method
|
|
752
781
|
// https://tc39.es/ecma262/#sec-math.trunc
|
|
753
|
-
// eslint-disable-next-line es
|
|
782
|
+
// eslint-disable-next-line es/no-math-trunc -- safe
|
|
754
783
|
var mathTrunc = Math.trunc || function trunc(x) {
|
|
755
784
|
var n = +x;
|
|
756
785
|
return (n > 0 ? floor$1 : ceil)(n);
|
|
@@ -869,14 +898,14 @@ var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
|
|
|
869
898
|
|
|
870
899
|
// `Object.getOwnPropertyNames` method
|
|
871
900
|
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
|
872
|
-
// eslint-disable-next-line es
|
|
901
|
+
// eslint-disable-next-line es/no-object-getownpropertynames -- safe
|
|
873
902
|
objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
|
874
903
|
return internalObjectKeys$1(O, hiddenKeys$1);
|
|
875
904
|
};
|
|
876
905
|
|
|
877
906
|
var objectGetOwnPropertySymbols = {};
|
|
878
907
|
|
|
879
|
-
// eslint-disable-next-line es
|
|
908
|
+
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
|
880
909
|
objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
|
881
910
|
|
|
882
911
|
var getBuiltIn$1 = getBuiltIn$4;
|
|
@@ -994,7 +1023,7 @@ var enumBugKeys$1 = enumBugKeys$3;
|
|
|
994
1023
|
|
|
995
1024
|
// `Object.keys` method
|
|
996
1025
|
// https://tc39.es/ecma262/#sec-object.keys
|
|
997
|
-
// eslint-disable-next-line es
|
|
1026
|
+
// eslint-disable-next-line es/no-object-keys -- safe
|
|
998
1027
|
var objectKeys$2 = Object.keys || function keys(O) {
|
|
999
1028
|
return internalObjectKeys(O, enumBugKeys$1);
|
|
1000
1029
|
};
|
|
@@ -1009,9 +1038,9 @@ var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
|
1009
1038
|
var toObject$2 = toObject$4;
|
|
1010
1039
|
var IndexedObject = indexedObject;
|
|
1011
1040
|
|
|
1012
|
-
// eslint-disable-next-line es
|
|
1041
|
+
// eslint-disable-next-line es/no-object-assign -- safe
|
|
1013
1042
|
var $assign = Object.assign;
|
|
1014
|
-
// eslint-disable-next-line es
|
|
1043
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
1015
1044
|
var defineProperty$3 = Object.defineProperty;
|
|
1016
1045
|
var concat$1 = uncurryThis$7([].concat);
|
|
1017
1046
|
|
|
@@ -1031,7 +1060,7 @@ var objectAssign = !$assign || fails$7(function () {
|
|
|
1031
1060
|
// should work with symbols and should have deterministic property order (V8 bug)
|
|
1032
1061
|
var A = {};
|
|
1033
1062
|
var B = {};
|
|
1034
|
-
// eslint-disable-next-line es
|
|
1063
|
+
// eslint-disable-next-line es/no-symbol -- safe
|
|
1035
1064
|
var symbol = Symbol();
|
|
1036
1065
|
var alphabet = 'abcdefghijklmnopqrst';
|
|
1037
1066
|
A[symbol] = 7;
|
|
@@ -1061,12 +1090,12 @@ var assign = objectAssign;
|
|
|
1061
1090
|
|
|
1062
1091
|
// `Object.assign` method
|
|
1063
1092
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
1064
|
-
// eslint-disable-next-line es
|
|
1093
|
+
// eslint-disable-next-line es/no-object-assign -- required for testing
|
|
1065
1094
|
$$3({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
|
|
1066
1095
|
assign: assign
|
|
1067
1096
|
});
|
|
1068
1097
|
|
|
1069
|
-
var isObject = isObject$
|
|
1098
|
+
var isObject$1 = isObject$7;
|
|
1070
1099
|
var classof$3 = classofRaw$1;
|
|
1071
1100
|
var wellKnownSymbol$a = wellKnownSymbol$c;
|
|
1072
1101
|
|
|
@@ -1076,7 +1105,7 @@ var MATCH$1 = wellKnownSymbol$a('match');
|
|
|
1076
1105
|
// https://tc39.es/ecma262/#sec-isregexp
|
|
1077
1106
|
var isRegexp = function (it) {
|
|
1078
1107
|
var isRegExp;
|
|
1079
|
-
return isObject(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$3(it) == 'RegExp');
|
|
1108
|
+
return isObject$1(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$3(it) == 'RegExp');
|
|
1080
1109
|
};
|
|
1081
1110
|
|
|
1082
1111
|
var isRegExp = isRegexp;
|
|
@@ -1234,7 +1263,7 @@ var objectKeys = objectKeys$2;
|
|
|
1234
1263
|
|
|
1235
1264
|
// `Object.defineProperties` method
|
|
1236
1265
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
1237
|
-
// eslint-disable-next-line es
|
|
1266
|
+
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
1238
1267
|
objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
1239
1268
|
anObject$4(O);
|
|
1240
1269
|
var props = toIndexedObject$1(Properties);
|
|
@@ -1322,7 +1351,7 @@ hiddenKeys[IE_PROTO$1] = true;
|
|
|
1322
1351
|
|
|
1323
1352
|
// `Object.create` method
|
|
1324
1353
|
// https://tc39.es/ecma262/#sec-object.create
|
|
1325
|
-
// eslint-disable-next-line es
|
|
1354
|
+
// eslint-disable-next-line es/no-object-create -- safe
|
|
1326
1355
|
var objectCreate = Object.create || function create(O, Properties) {
|
|
1327
1356
|
var result;
|
|
1328
1357
|
if (O !== null) {
|
|
@@ -1490,7 +1519,7 @@ var FunctionPrototype = Function.prototype;
|
|
|
1490
1519
|
var apply$1 = FunctionPrototype.apply;
|
|
1491
1520
|
var call$3 = FunctionPrototype.call;
|
|
1492
1521
|
|
|
1493
|
-
// eslint-disable-next-line es
|
|
1522
|
+
// eslint-disable-next-line es/no-reflect -- safe
|
|
1494
1523
|
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$3.bind(apply$1) : function () {
|
|
1495
1524
|
return call$3.apply(apply$1, arguments);
|
|
1496
1525
|
});
|
|
@@ -1687,6 +1716,7 @@ var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
|
|
|
1687
1716
|
var fails$2 = fails$g;
|
|
1688
1717
|
var anObject$1 = anObject$8;
|
|
1689
1718
|
var isCallable$4 = isCallable$h;
|
|
1719
|
+
var isNullOrUndefined = isNullOrUndefined$3;
|
|
1690
1720
|
var toIntegerOrInfinity = toIntegerOrInfinity$4;
|
|
1691
1721
|
var toLength = toLength$2;
|
|
1692
1722
|
var toString = toString$4;
|
|
@@ -1744,7 +1774,7 @@ fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNa
|
|
|
1744
1774
|
// https://tc39.es/ecma262/#sec-string.prototype.replace
|
|
1745
1775
|
function replace(searchValue, replaceValue) {
|
|
1746
1776
|
var O = requireObjectCoercible(this);
|
|
1747
|
-
var replacer = searchValue
|
|
1777
|
+
var replacer = isNullOrUndefined(searchValue) ? undefined : getMethod(searchValue, REPLACE);
|
|
1748
1778
|
return replacer
|
|
1749
1779
|
? call$1(replacer, searchValue, O, replaceValue)
|
|
1750
1780
|
: call$1(nativeReplace, toString(O), searchValue, replaceValue);
|
|
@@ -1998,7 +2028,7 @@ var fails$1 = fails$g;
|
|
|
1998
2028
|
var correctPrototypeGetter = !fails$1(function () {
|
|
1999
2029
|
function F() { /* empty */ }
|
|
2000
2030
|
F.prototype.constructor = null;
|
|
2001
|
-
// eslint-disable-next-line es
|
|
2031
|
+
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
2002
2032
|
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
2003
2033
|
});
|
|
2004
2034
|
|
|
@@ -2014,7 +2044,7 @@ var ObjectPrototype = $Object.prototype;
|
|
|
2014
2044
|
|
|
2015
2045
|
// `Object.getPrototypeOf` method
|
|
2016
2046
|
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
2017
|
-
// eslint-disable-next-line es
|
|
2047
|
+
// eslint-disable-next-line es/no-object-getprototypeof -- safe
|
|
2018
2048
|
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {
|
|
2019
2049
|
var object = toObject(O);
|
|
2020
2050
|
if (hasOwn$1(object, IE_PROTO)) return object[IE_PROTO];
|
|
@@ -2026,6 +2056,7 @@ var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : f
|
|
|
2026
2056
|
|
|
2027
2057
|
var fails = fails$g;
|
|
2028
2058
|
var isCallable$2 = isCallable$h;
|
|
2059
|
+
var isObject = isObject$7;
|
|
2029
2060
|
var getPrototypeOf$1 = objectGetPrototypeOf;
|
|
2030
2061
|
var defineBuiltIn$1 = defineBuiltIn$4;
|
|
2031
2062
|
var wellKnownSymbol$3 = wellKnownSymbol$c;
|
|
@@ -2037,7 +2068,7 @@ var BUGGY_SAFARI_ITERATORS$1 = false;
|
|
|
2037
2068
|
// https://tc39.es/ecma262/#sec-%iteratorprototype%-object
|
|
2038
2069
|
var IteratorPrototype$2, PrototypeOfArrayIteratorPrototype, arrayIterator;
|
|
2039
2070
|
|
|
2040
|
-
/* eslint-disable es
|
|
2071
|
+
/* eslint-disable es/no-array-prototype-keys -- safe */
|
|
2041
2072
|
if ([].keys) {
|
|
2042
2073
|
arrayIterator = [].keys();
|
|
2043
2074
|
// Safari 8 has buggy iterators w/o `next`
|
|
@@ -2048,7 +2079,7 @@ if ([].keys) {
|
|
|
2048
2079
|
}
|
|
2049
2080
|
}
|
|
2050
2081
|
|
|
2051
|
-
var NEW_ITERATOR_PROTOTYPE = IteratorPrototype$2
|
|
2082
|
+
var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype$2) || fails(function () {
|
|
2052
2083
|
var test = {};
|
|
2053
2084
|
// FF44- legacy iterators case
|
|
2054
2085
|
return IteratorPrototype$2[ITERATOR$2].call(test) !== test;
|
|
@@ -2090,7 +2121,7 @@ var Iterators$2 = iterators;
|
|
|
2090
2121
|
|
|
2091
2122
|
var returnThis$1 = function () { return this; };
|
|
2092
2123
|
|
|
2093
|
-
var
|
|
2124
|
+
var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
|
|
2094
2125
|
var TO_STRING_TAG = NAME + ' Iterator';
|
|
2095
2126
|
IteratorConstructor.prototype = create(IteratorPrototype$1, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
|
|
2096
2127
|
setToStringTag$1(IteratorConstructor, TO_STRING_TAG, false);
|
|
@@ -2117,13 +2148,13 @@ var aPossiblePrototype = aPossiblePrototype$1;
|
|
|
2117
2148
|
// `Object.setPrototypeOf` method
|
|
2118
2149
|
// https://tc39.es/ecma262/#sec-object.setprototypeof
|
|
2119
2150
|
// Works with __proto__ only. Old v8 can't work with null proto objects.
|
|
2120
|
-
// eslint-disable-next-line es
|
|
2151
|
+
// eslint-disable-next-line es/no-object-setprototypeof -- safe
|
|
2121
2152
|
var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
|
|
2122
2153
|
var CORRECT_SETTER = false;
|
|
2123
2154
|
var test = {};
|
|
2124
2155
|
var setter;
|
|
2125
2156
|
try {
|
|
2126
|
-
// eslint-disable-next-line es
|
|
2157
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
2127
2158
|
setter = uncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
|
|
2128
2159
|
setter(test, []);
|
|
2129
2160
|
CORRECT_SETTER = test instanceof Array;
|
|
@@ -2141,7 +2172,7 @@ var $ = _export;
|
|
|
2141
2172
|
var call = functionCall;
|
|
2142
2173
|
var FunctionName = functionName;
|
|
2143
2174
|
var isCallable = isCallable$h;
|
|
2144
|
-
var createIteratorConstructor =
|
|
2175
|
+
var createIteratorConstructor = iteratorCreateConstructor;
|
|
2145
2176
|
var getPrototypeOf = objectGetPrototypeOf;
|
|
2146
2177
|
var setPrototypeOf = objectSetPrototypeOf;
|
|
2147
2178
|
var setToStringTag = setToStringTag$2;
|
|
@@ -2162,7 +2193,7 @@ var ENTRIES = 'entries';
|
|
|
2162
2193
|
|
|
2163
2194
|
var returnThis = function () { return this; };
|
|
2164
2195
|
|
|
2165
|
-
var
|
|
2196
|
+
var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
|
|
2166
2197
|
createIteratorConstructor(IteratorConstructor, NAME, next);
|
|
2167
2198
|
|
|
2168
2199
|
var getIterationMethod = function (KIND) {
|
|
@@ -2234,12 +2265,19 @@ var defineIterator$1 = function (Iterable, NAME, IteratorConstructor, next, DEFA
|
|
|
2234
2265
|
return methods;
|
|
2235
2266
|
};
|
|
2236
2267
|
|
|
2268
|
+
// `CreateIterResultObject` abstract operation
|
|
2269
|
+
// https://tc39.es/ecma262/#sec-createiterresultobject
|
|
2270
|
+
var createIterResultObject$1 = function (value, done) {
|
|
2271
|
+
return { value: value, done: done };
|
|
2272
|
+
};
|
|
2273
|
+
|
|
2237
2274
|
var toIndexedObject = toIndexedObject$5;
|
|
2238
2275
|
var addToUnscopables = addToUnscopables$1;
|
|
2239
2276
|
var Iterators = iterators;
|
|
2240
2277
|
var InternalStateModule = internalState;
|
|
2241
2278
|
var defineProperty = objectDefineProperty.f;
|
|
2242
|
-
var defineIterator =
|
|
2279
|
+
var defineIterator = iteratorDefine;
|
|
2280
|
+
var createIterResultObject = createIterResultObject$1;
|
|
2243
2281
|
var DESCRIPTORS = descriptors;
|
|
2244
2282
|
|
|
2245
2283
|
var ARRAY_ITERATOR = 'Array Iterator';
|
|
@@ -2272,11 +2310,11 @@ var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind)
|
|
|
2272
2310
|
var index = state.index++;
|
|
2273
2311
|
if (!target || index >= target.length) {
|
|
2274
2312
|
state.target = undefined;
|
|
2275
|
-
return
|
|
2313
|
+
return createIterResultObject(undefined, true);
|
|
2276
2314
|
}
|
|
2277
|
-
if (kind == 'keys') return
|
|
2278
|
-
if (kind == 'values') return
|
|
2279
|
-
return
|
|
2315
|
+
if (kind == 'keys') return createIterResultObject(index, false);
|
|
2316
|
+
if (kind == 'values') return createIterResultObject(target[index], false);
|
|
2317
|
+
return createIterResultObject([index, target[index]], false);
|
|
2280
2318
|
}, 'values');
|
|
2281
2319
|
|
|
2282
2320
|
// argumentsList[@@iterator] is %ArrayProto_values%
|
package/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-core-contexts",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.46",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"graphql": "^15.8.0",
|
|
8
|
-
"@trackunit/iris-app-runtime-core": "0.0.
|
|
9
|
-
"@trackunit/react-core-contexts-api": "0.0.
|
|
10
|
-
"@trackunit/react-core-hooks": "0.0.
|
|
11
|
-
"react": "17.0.
|
|
12
|
-
"@trackunit/react-core-contexts-test": "0.0.
|
|
8
|
+
"@trackunit/iris-app-runtime-core": "0.0.68",
|
|
9
|
+
"@trackunit/react-core-contexts-api": "0.0.59",
|
|
10
|
+
"@trackunit/react-core-hooks": "0.0.67",
|
|
11
|
+
"react": "17.0.2",
|
|
12
|
+
"@trackunit/react-core-contexts-test": "0.0.39",
|
|
13
13
|
"@apollo/client": "3.6.9",
|
|
14
|
-
"@sentry/browser": "^7.
|
|
14
|
+
"@sentry/browser": "^7.14.0",
|
|
15
15
|
"apollo-upload-client": "^14.1.3",
|
|
16
|
-
"react-router-dom": "
|
|
16
|
+
"react-router-dom": "6.4.1"
|
|
17
17
|
},
|
|
18
18
|
"module": "./index.js",
|
|
19
19
|
"main": "./index.js",
|