@trackunit/react-core-contexts-test 0.1.151 → 0.1.152

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 CHANGED
@@ -61,12 +61,12 @@ const defaultOptions = {
61
61
  errorPolicy: "all",
62
62
  },
63
63
  };
64
- const isDebugging = !!process.env.VSCODE_INSPECTOR_OPTIONS || !!process.env.DEBUG;
65
64
  /**
66
65
  * This is a wrapper around the MockedProvider that logs errors to the console.
67
66
  */
68
67
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
69
68
  function ApolloMockedProviderWithError(props) {
69
+ const isDebugging = process ? !!process.env.VSCODE_INSPECTOR_OPTIONS || !!process.env.DEBUG : false;
70
70
  const { mocks } = props, otherProps = __rest(props, ["mocks"]);
71
71
  const mockLink = new testing.MockLink(mocks, false, { showWarnings: isDebugging });
72
72
  const errorLoggingLink = error.onError(({ graphQLErrors, networkError }) => {
package/index.esm2.js CHANGED
@@ -55,12 +55,12 @@ const defaultOptions = {
55
55
  errorPolicy: "all",
56
56
  },
57
57
  };
58
- const isDebugging = !!process.env.VSCODE_INSPECTOR_OPTIONS || !!process.env.DEBUG;
59
58
  /**
60
59
  * This is a wrapper around the MockedProvider that logs errors to the console.
61
60
  */
62
61
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
63
62
  function ApolloMockedProviderWithError(props) {
63
+ const isDebugging = process ? !!process.env.VSCODE_INSPECTOR_OPTIONS || !!process.env.DEBUG : false;
64
64
  const { mocks } = props, otherProps = __rest(props, ["mocks"]);
65
65
  const mockLink = new MockLink(mocks, false, { showWarnings: isDebugging });
66
66
  const errorLoggingLink = onError(({ graphQLErrors, networkError }) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-core-contexts-test",
3
- "version": "0.1.151",
3
+ "version": "0.1.152",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {