@trackunit/react-core-hooks 0.0.67 → 0.0.69

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 +41 -33
  2. package/package.json +3 -3
package/index.js CHANGED
@@ -27,33 +27,40 @@ var functionBindNative = !fails$e(function () {
27
27
  var NATIVE_BIND$1 = functionBindNative;
28
28
 
29
29
  var FunctionPrototype$1 = Function.prototype;
30
- var bind = FunctionPrototype$1.bind;
31
30
  var call$9 = FunctionPrototype$1.call;
32
- var uncurryThis$d = NATIVE_BIND$1 && bind.bind(call$9, call$9);
31
+ var uncurryThisWithBind = NATIVE_BIND$1 && FunctionPrototype$1.bind.bind(call$9, call$9);
33
32
 
34
- var functionUncurryThis = NATIVE_BIND$1 ? function (fn) {
35
- return fn && uncurryThis$d(fn);
36
- } : function (fn) {
37
- return fn && function () {
33
+ var functionUncurryThisRaw = function (fn) {
34
+ return NATIVE_BIND$1 ? uncurryThisWithBind(fn) : function () {
38
35
  return call$9.apply(fn, arguments);
39
36
  };
40
37
  };
41
38
 
42
- var uncurryThis$c = functionUncurryThis;
39
+ var uncurryThisRaw$1 = functionUncurryThisRaw;
43
40
 
44
- var toString$4 = uncurryThis$c({}.toString);
45
- var stringSlice$1 = uncurryThis$c(''.slice);
41
+ var toString$4 = uncurryThisRaw$1({}.toString);
42
+ var stringSlice$1 = uncurryThisRaw$1(''.slice);
46
43
 
47
- var classofRaw$1 = function (it) {
44
+ var classofRaw$2 = function (it) {
48
45
  return stringSlice$1(toString$4(it), 8, -1);
49
46
  };
50
47
 
51
- var uncurryThis$b = functionUncurryThis;
48
+ var classofRaw$1 = classofRaw$2;
49
+ var uncurryThisRaw = functionUncurryThisRaw;
50
+
51
+ var functionUncurryThis = function (fn) {
52
+ // Nashorn bug:
53
+ // https://github.com/zloirock/core-js/issues/1128
54
+ // https://github.com/zloirock/core-js/issues/1130
55
+ if (classofRaw$1(fn) === 'Function') return uncurryThisRaw(fn);
56
+ };
57
+
58
+ var uncurryThis$a = functionUncurryThis;
52
59
  var fails$d = fails$f;
53
- var classof$3 = classofRaw$1;
60
+ var classof$3 = classofRaw$2;
54
61
 
55
62
  var $Object$4 = Object;
56
- var split = uncurryThis$b(''.split);
63
+ var split = uncurryThis$a(''.split);
57
64
 
58
65
  // fallback for non-array-like ES3 and non-enumerable old V8 strings
59
66
  var indexedObject = fails$d(function () {
@@ -132,10 +139,10 @@ var store$2 = sharedStore;
132
139
  (shared$4.exports = function (key, value) {
133
140
  return store$2[key] || (store$2[key] = value !== undefined ? value : {});
134
141
  })('versions', []).push({
135
- version: '3.25.3',
142
+ version: '3.25.5',
136
143
  mode: 'global',
137
144
  copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
138
- license: 'https://github.com/zloirock/core-js/blob/v3.25.3/LICENSE',
145
+ license: 'https://github.com/zloirock/core-js/blob/v3.25.5/LICENSE',
139
146
  source: 'https://github.com/zloirock/core-js'
140
147
  });
141
148
 
@@ -149,10 +156,10 @@ var toObject$3 = function (argument) {
149
156
  return $Object$3(requireObjectCoercible$1(argument));
150
157
  };
151
158
 
152
- var uncurryThis$a = functionUncurryThis;
159
+ var uncurryThis$9 = functionUncurryThis;
153
160
  var toObject$2 = toObject$3;
154
161
 
155
- var hasOwnProperty = uncurryThis$a({}.hasOwnProperty);
162
+ var hasOwnProperty = uncurryThis$9({}.hasOwnProperty);
156
163
 
157
164
  // `HasOwnProperty` abstract operation
158
165
  // https://tc39.es/ecma262/#sec-hasownproperty
@@ -161,11 +168,11 @@ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
161
168
  return hasOwnProperty(toObject$2(it), key);
162
169
  };
163
170
 
164
- var uncurryThis$9 = functionUncurryThis;
171
+ var uncurryThis$8 = functionUncurryThis;
165
172
 
166
173
  var id = 0;
167
174
  var postfix = Math.random();
168
- var toString$3 = uncurryThis$9(1.0.toString);
175
+ var toString$3 = uncurryThis$8(1.0.toString);
169
176
 
170
177
  var uid$2 = function (key) {
171
178
  return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$3(++id + postfix, 36);
@@ -362,9 +369,9 @@ var functionCall = NATIVE_BIND ? call$8.bind(call$8) : function () {
362
369
  return call$8.apply(call$8, arguments);
363
370
  };
364
371
 
365
- var uncurryThis$8 = functionUncurryThis;
372
+ var uncurryThis$7 = functionUncurryThis;
366
373
 
367
- var objectIsPrototypeOf = uncurryThis$8({}.isPrototypeOf);
374
+ var objectIsPrototypeOf = uncurryThis$7({}.isPrototypeOf);
368
375
 
369
376
  var getBuiltIn$2 = getBuiltIn$4;
370
377
  var isCallable$d = isCallable$g;
@@ -594,13 +601,13 @@ var arrayIncludes = {
594
601
 
595
602
  var hiddenKeys$4 = {};
596
603
 
597
- var uncurryThis$7 = functionUncurryThis;
604
+ var uncurryThis$6 = functionUncurryThis;
598
605
  var hasOwn$7 = hasOwnProperty_1;
599
606
  var toIndexedObject$3 = toIndexedObject$5;
600
607
  var indexOf$1 = arrayIncludes.indexOf;
601
608
  var hiddenKeys$3 = hiddenKeys$4;
602
609
 
603
- var push = uncurryThis$7([].push);
610
+ var push = uncurryThis$6([].push);
604
611
 
605
612
  var objectKeysInternal = function (object, names) {
606
613
  var O = toIndexedObject$3(object);
@@ -807,7 +814,6 @@ var createNonEnumerableProperty$5 = DESCRIPTORS$5 ? function (object, key, value
807
814
 
808
815
  var NATIVE_WEAK_MAP = weakMapBasicDetection;
809
816
  var global$6 = global$e;
810
- var uncurryThis$6 = functionUncurryThis;
811
817
  var isObject$1 = isObject$6;
812
818
  var createNonEnumerableProperty$4 = createNonEnumerableProperty$5;
813
819
  var hasOwn$6 = hasOwnProperty_1;
@@ -835,20 +841,22 @@ var getterFor = function (TYPE) {
835
841
 
836
842
  if (NATIVE_WEAK_MAP || shared$1.state) {
837
843
  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);
844
+ /* eslint-disable no-self-assign -- prototype methods protection */
845
+ store$1.get = store$1.get;
846
+ store$1.has = store$1.has;
847
+ store$1.set = store$1.set;
848
+ /* eslint-enable no-self-assign -- prototype methods protection */
841
849
  set = function (it, metadata) {
842
- if (wmhas(store$1, it)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
850
+ if (store$1.has(it)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
843
851
  metadata.facade = it;
844
- wmset(store$1, it, metadata);
852
+ store$1.set(it, metadata);
845
853
  return metadata;
846
854
  };
847
855
  get = function (it) {
848
- return wmget(store$1, it) || {};
856
+ return store$1.get(it) || {};
849
857
  };
850
858
  has = function (it) {
851
- return wmhas(store$1, it);
859
+ return store$1.has(it);
852
860
  };
853
861
  } else {
854
862
  var STATE = sharedKey$1('state');
@@ -1679,7 +1687,7 @@ var toStringTagSupport = String(test) === '[object z]';
1679
1687
 
1680
1688
  var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1681
1689
  var isCallable$1 = isCallable$g;
1682
- var classofRaw = classofRaw$1;
1690
+ var classofRaw = classofRaw$2;
1683
1691
  var wellKnownSymbol$1 = wellKnownSymbol$9;
1684
1692
 
1685
1693
  var TO_STRING_TAG = wellKnownSymbol$1('toStringTag');
@@ -1999,7 +2007,7 @@ var sameValue$1 = Object.is || function is(x, y) {
1999
2007
  var call$1 = functionCall;
2000
2008
  var anObject$1 = anObject$8;
2001
2009
  var isCallable = isCallable$g;
2002
- var classof = classofRaw$1;
2010
+ var classof = classofRaw$2;
2003
2011
  var regexpExec = regexpExec$2;
2004
2012
 
2005
2013
  var $TypeError = TypeError;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-core-hooks",
3
- "version": "0.0.67",
3
+ "version": "0.0.69",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "module": "./index.js",
@@ -8,10 +8,10 @@
8
8
  "type": "module",
9
9
  "types": "./index.d.ts",
10
10
  "dependencies": {
11
- "@trackunit/react-core-contexts-api": "0.0.59",
11
+ "@trackunit/react-core-contexts-api": "0.0.61",
12
12
  "launchdarkly-react-client-sdk": "^2.27.0",
13
13
  "react": "17.0.2",
14
- "@trackunit/iris-app-runtime-core": "0.0.68",
14
+ "@trackunit/iris-app-runtime-core": "0.0.70",
15
15
  "react-router-dom": "6.4.1"
16
16
  },
17
17
  "peerDependencies": {}