@trackunit/react-core-contexts-test 0.1.121-alpha-5bf259599b.0 → 0.1.121
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.cjs2.js +4 -4
- package/index.esm2.js +4 -4
- package/package.json +3 -3
package/index.cjs2.js
CHANGED
|
@@ -43912,8 +43912,8 @@ const trackunitProviders = () => new TrackunitProvidersMockBuilder();
|
|
|
43912
43912
|
const useDebugger = ({ id, propsToWatch, }) => {
|
|
43913
43913
|
const prevPropsRef = React.useRef(propsToWatch);
|
|
43914
43914
|
const uniqueId = React.useMemo(() => {
|
|
43915
|
-
var _a;
|
|
43916
|
-
return id || ((_a = new Error().stack) === null || _a === void 0 ? void 0 : _a.split("\n")[2].trim()) || "unknown-id";
|
|
43915
|
+
var _a, _b;
|
|
43916
|
+
return id || ((_b = (_a = new Error().stack) === null || _a === void 0 ? void 0 : _a.split("\n")[2]) === null || _b === void 0 ? void 0 : _b.trim()) || "unknown-id";
|
|
43917
43917
|
}, [id]);
|
|
43918
43918
|
React.useEffect(() => {
|
|
43919
43919
|
const changedProps = Object.entries(propsToWatch || {}).reduce((result, [key, value]) => {
|
|
@@ -43960,12 +43960,12 @@ const useDebugger = ({ id, propsToWatch, }) => {
|
|
|
43960
43960
|
* @param children the children to render
|
|
43961
43961
|
*/
|
|
43962
43962
|
const Debugger = ({ id, logPropsChanges, stop, children, }) => {
|
|
43963
|
-
var _a, _b, _c, _d, _e, _f;
|
|
43963
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
43964
43964
|
const uniqueId = id ||
|
|
43965
43965
|
(
|
|
43966
43966
|
// @ts-ignore
|
|
43967
43967
|
(_e = (_d = (_c = (_b = (_a = React__default["default"]["__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED"]) === null || _a === void 0 ? void 0 : _a.ReactCurrentOwner) === null || _b === void 0 ? void 0 : _b.current) === null || _c === void 0 ? void 0 : _c._debugOwner) === null || _d === void 0 ? void 0 : _d.type) === null || _e === void 0 ? void 0 : _e.name) ||
|
|
43968
|
-
((_f = new Error().stack) === null || _f === void 0 ? void 0 : _f.split("\n")[2].trim()) ||
|
|
43968
|
+
((_g = (_f = new Error().stack) === null || _f === void 0 ? void 0 : _f.split("\n")[2]) === null || _g === void 0 ? void 0 : _g.trim()) ||
|
|
43969
43969
|
"unknown-id";
|
|
43970
43970
|
useDebugger({ id: uniqueId, propsToWatch: logPropsChanges || {} });
|
|
43971
43971
|
// eslint-disable-next-line no-console
|
package/index.esm2.js
CHANGED
|
@@ -43884,8 +43884,8 @@ const trackunitProviders = () => new TrackunitProvidersMockBuilder();
|
|
|
43884
43884
|
const useDebugger = ({ id, propsToWatch, }) => {
|
|
43885
43885
|
const prevPropsRef = useRef(propsToWatch);
|
|
43886
43886
|
const uniqueId = useMemo(() => {
|
|
43887
|
-
var _a;
|
|
43888
|
-
return id || ((_a = new Error().stack) === null || _a === void 0 ? void 0 : _a.split("\n")[2].trim()) || "unknown-id";
|
|
43887
|
+
var _a, _b;
|
|
43888
|
+
return id || ((_b = (_a = new Error().stack) === null || _a === void 0 ? void 0 : _a.split("\n")[2]) === null || _b === void 0 ? void 0 : _b.trim()) || "unknown-id";
|
|
43889
43889
|
}, [id]);
|
|
43890
43890
|
useEffect(() => {
|
|
43891
43891
|
const changedProps = Object.entries(propsToWatch || {}).reduce((result, [key, value]) => {
|
|
@@ -43932,12 +43932,12 @@ const useDebugger = ({ id, propsToWatch, }) => {
|
|
|
43932
43932
|
* @param children the children to render
|
|
43933
43933
|
*/
|
|
43934
43934
|
const Debugger = ({ id, logPropsChanges, stop, children, }) => {
|
|
43935
|
-
var _a, _b, _c, _d, _e, _f;
|
|
43935
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
43936
43936
|
const uniqueId = id ||
|
|
43937
43937
|
(
|
|
43938
43938
|
// @ts-ignore
|
|
43939
43939
|
(_e = (_d = (_c = (_b = (_a = React__default["__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED"]) === null || _a === void 0 ? void 0 : _a.ReactCurrentOwner) === null || _b === void 0 ? void 0 : _b.current) === null || _c === void 0 ? void 0 : _c._debugOwner) === null || _d === void 0 ? void 0 : _d.type) === null || _e === void 0 ? void 0 : _e.name) ||
|
|
43940
|
-
((_f = new Error().stack) === null || _f === void 0 ? void 0 : _f.split("\n")[2].trim()) ||
|
|
43940
|
+
((_g = (_f = new Error().stack) === null || _f === void 0 ? void 0 : _f.split("\n")[2]) === null || _g === void 0 ? void 0 : _g.trim()) ||
|
|
43941
43941
|
"unknown-id";
|
|
43942
43942
|
useDebugger({ id: uniqueId, propsToWatch: logPropsChanges || {} });
|
|
43943
43943
|
// eslint-disable-next-line no-console
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-core-contexts-test",
|
|
3
|
-
"version": "0.1.121
|
|
3
|
+
"version": "0.1.121",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"main": "./index.cjs.js",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@apollo/client": "3.7.10",
|
|
13
|
-
"@trackunit/react-core-contexts-api": "0.2.64
|
|
14
|
-
"@trackunit/react-core-hooks": "0.2.106
|
|
13
|
+
"@trackunit/react-core-contexts-api": "0.2.64",
|
|
14
|
+
"@trackunit/react-core-hooks": "0.2.106",
|
|
15
15
|
"graphql": "15.8.0",
|
|
16
16
|
"lodash": "4.17.21",
|
|
17
17
|
"react": "18.2.0",
|