@trackunit/react-core-contexts-test 1.12.55-alpha-ae1ff73fc64.0 → 1.12.56
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 +5 -1
- package/index.esm2.js +5 -1
- package/package.json +4 -4
package/index.cjs2.js
CHANGED
|
@@ -13405,7 +13405,7 @@ const defaultOptions = {
|
|
|
13405
13405
|
* This is a wrapper around the MockedProvider that logs errors to the console.
|
|
13406
13406
|
*/
|
|
13407
13407
|
function ApolloMockedProviderWithError(props) {
|
|
13408
|
-
const isDebugging = !!process.env.VSCODE_INSPECTOR_OPTIONS || !!process.env.DEBUG;
|
|
13408
|
+
const isDebugging = typeof globalThis.process !== "undefined" && (!!globalThis.process.env.VSCODE_INSPECTOR_OPTIONS || !!globalThis.process.env.DEBUG);
|
|
13409
13409
|
dev.loadDevMessages();
|
|
13410
13410
|
dev.loadErrorMessages();
|
|
13411
13411
|
const { mocks, ...otherProps } = props;
|
|
@@ -13672,6 +13672,9 @@ const RouterContainer = ({ addTestRootContainer, selectedRouterProps, rootRoute,
|
|
|
13672
13672
|
hasFeatureFlag: async () => {
|
|
13673
13673
|
return true;
|
|
13674
13674
|
},
|
|
13675
|
+
hasPermission: async () => {
|
|
13676
|
+
return true;
|
|
13677
|
+
},
|
|
13675
13678
|
showMarketplace: true,
|
|
13676
13679
|
showHelpCenter: true,
|
|
13677
13680
|
showAppLibrary: true,
|
|
@@ -13685,6 +13688,7 @@ const RouterContainer = ({ addTestRootContainer, selectedRouterProps, rootRoute,
|
|
|
13685
13688
|
hasAccessToHostRoute: async () => true,
|
|
13686
13689
|
hasAccessToRoute: async () => true,
|
|
13687
13690
|
hasFeatureFlag: async () => true,
|
|
13691
|
+
hasPermission: async () => true,
|
|
13688
13692
|
isAuthenticated: true,
|
|
13689
13693
|
client,
|
|
13690
13694
|
defaultUserRoute: "/",
|
package/index.esm2.js
CHANGED
|
@@ -13383,7 +13383,7 @@ const defaultOptions = {
|
|
|
13383
13383
|
* This is a wrapper around the MockedProvider that logs errors to the console.
|
|
13384
13384
|
*/
|
|
13385
13385
|
function ApolloMockedProviderWithError(props) {
|
|
13386
|
-
const isDebugging = !!process.env.VSCODE_INSPECTOR_OPTIONS || !!process.env.DEBUG;
|
|
13386
|
+
const isDebugging = typeof globalThis.process !== "undefined" && (!!globalThis.process.env.VSCODE_INSPECTOR_OPTIONS || !!globalThis.process.env.DEBUG);
|
|
13387
13387
|
loadDevMessages();
|
|
13388
13388
|
loadErrorMessages();
|
|
13389
13389
|
const { mocks, ...otherProps } = props;
|
|
@@ -13650,6 +13650,9 @@ const RouterContainer = ({ addTestRootContainer, selectedRouterProps, rootRoute,
|
|
|
13650
13650
|
hasFeatureFlag: async () => {
|
|
13651
13651
|
return true;
|
|
13652
13652
|
},
|
|
13653
|
+
hasPermission: async () => {
|
|
13654
|
+
return true;
|
|
13655
|
+
},
|
|
13653
13656
|
showMarketplace: true,
|
|
13654
13657
|
showHelpCenter: true,
|
|
13655
13658
|
showAppLibrary: true,
|
|
@@ -13663,6 +13666,7 @@ const RouterContainer = ({ addTestRootContainer, selectedRouterProps, rootRoute,
|
|
|
13663
13666
|
hasAccessToHostRoute: async () => true,
|
|
13664
13667
|
hasAccessToRoute: async () => true,
|
|
13665
13668
|
hasFeatureFlag: async () => true,
|
|
13669
|
+
hasPermission: async () => true,
|
|
13666
13670
|
isAuthenticated: true,
|
|
13667
13671
|
client,
|
|
13668
13672
|
defaultUserRoute: "/",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-core-contexts-test",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.56",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
"@apollo/client": "3.13.8",
|
|
11
11
|
"react": "19.0.0",
|
|
12
12
|
"@tanstack/react-router": "1.114.29",
|
|
13
|
-
"@trackunit/shared-utils": "1.13.
|
|
13
|
+
"@trackunit/shared-utils": "1.13.68",
|
|
14
14
|
"graphql": "^16.10.0",
|
|
15
15
|
"@tanstack/router-core": "1.114.29",
|
|
16
|
-
"@trackunit/iris-app-runtime-core-api": "1.12.
|
|
17
|
-
"@trackunit/react-core-contexts-api": "1.13.
|
|
16
|
+
"@trackunit/iris-app-runtime-core-api": "1.12.51",
|
|
17
|
+
"@trackunit/react-core-contexts-api": "1.13.51",
|
|
18
18
|
"es-toolkit": "^1.39.10"
|
|
19
19
|
},
|
|
20
20
|
"module": "./index.esm.js",
|