diff --git a/package.json b/package.json
index 0f04a2fba3b65..635f13c393076 100644
--- a/package.json
+++ b/package.json
@@ -84,6 +84,8 @@
"**/@types/angular": "^1.6.56",
"**/@types/hoist-non-react-statics": "^3.3.1",
"**/typescript": "3.7.2",
+ "**/apollo-link": "^1.2.13",
+ "**/graphql-tools": "^4.0.7",
"**/graphql-toolkit/lodash": "^4.17.13",
"**/hoist-non-react-statics": "^3.3.2",
"**/isomorphic-git/**/base64-js": "^1.2.1",
@@ -107,7 +109,6 @@
],
"nohoist": [
"**/@types/*",
- "**/@types/*/**",
"**/grunt-*",
"**/grunt-*/**",
"x-pack/typescript"
@@ -179,6 +180,7 @@
"glob": "^7.1.2",
"glob-all": "^3.1.0",
"globby": "^8.0.1",
+ "graphql": "^14.6.0",
"good-squeeze": "2.1.0",
"h2o2": "^8.1.2",
"handlebars": "4.5.3",
@@ -325,7 +327,6 @@
"@types/getopts": "^2.0.1",
"@types/glob": "^7.1.1",
"@types/globby": "^8.0.0",
- "@types/graphql": "^0.13.2",
"@types/hapi": "^17.0.18",
"@types/hapi-auth-cookie": "^9.1.0",
"@types/has-ansi": "^3.0.0",
@@ -341,6 +342,7 @@
"@types/listr": "^0.14.0",
"@types/lodash": "^3.10.1",
"@types/lodash.clonedeep": "^4.5.4",
+ "@types/long": "^4.0.0",
"@types/lru-cache": "^5.1.0",
"@types/markdown-it": "^0.0.7",
"@types/minimatch": "^2.0.29",
@@ -379,6 +381,7 @@
"@types/type-detect": "^4.0.1",
"@types/uuid": "^3.4.4",
"@types/vinyl-fs": "^2.4.11",
+ "@types/ws": "^5.1.0",
"@types/zen-observable": "^0.8.0",
"@typescript-eslint/eslint-plugin": "^2.15.0",
"@typescript-eslint/parser": "^2.15.0",
diff --git a/packages/kbn-optimizer/src/worker/webpack.config.ts b/packages/kbn-optimizer/src/worker/webpack.config.ts
index 3c6ae78bc4d91..f0dcb9f6e8879 100644
--- a/packages/kbn-optimizer/src/worker/webpack.config.ts
+++ b/packages/kbn-optimizer/src/worker/webpack.config.ts
@@ -213,11 +213,16 @@ export function getWebpackConfig(bundle: Bundle, worker: WorkerConfig) {
loader: 'raw-loader',
},
},
+ {
+ test: /\.mjs$/,
+ include: /node_modules/,
+ type: 'javascript/auto',
+ },
],
},
resolve: {
- extensions: ['.js', '.ts', '.tsx', '.json'],
+ extensions: ['.mjs', '.js', '.ts', '.tsx', '.json'],
alias: {
tinymath: require.resolve('tinymath/lib/tinymath.es5.js'),
},
diff --git a/renovate.json5 b/renovate.json5
index 58a64a5d0f967..4a12164fbe29b 100644
--- a/renovate.json5
+++ b/renovate.json5
@@ -547,6 +547,14 @@
'@types/log-symbols',
],
},
+ {
+ groupSlug: 'long',
+ groupName: 'long related packages',
+ packageNames: [
+ 'long',
+ '@types/long',
+ ],
+ },
{
groupSlug: 'lru-cache',
groupName: 'lru-cache related packages',
@@ -985,6 +993,14 @@
'@types/write-pkg',
],
},
+ {
+ groupSlug: 'ws',
+ groupName: 'ws related packages',
+ packageNames: [
+ 'ws',
+ '@types/ws',
+ ],
+ },
{
groupSlug: 'xml-crypto',
groupName: 'xml-crypto related packages',
@@ -1001,6 +1017,14 @@
'@types/xml2js',
],
},
+ {
+ groupSlug: 'yargs',
+ groupName: 'yargs related packages',
+ packageNames: [
+ 'yargs',
+ '@types/yargs',
+ ],
+ },
{
groupSlug: 'zen-observable',
groupName: 'zen-observable related packages',
diff --git a/x-pack/legacy/plugins/siem/public/components/drag_and_drop/drag_drop_context_wrapper.test.tsx b/x-pack/legacy/plugins/siem/public/components/drag_and_drop/drag_drop_context_wrapper.test.tsx
index 9e8bde8d9ff92..ed75fedffe589 100644
--- a/x-pack/legacy/plugins/siem/public/components/drag_and_drop/drag_drop_context_wrapper.test.tsx
+++ b/x-pack/legacy/plugins/siem/public/components/drag_and_drop/drag_drop_context_wrapper.test.tsx
@@ -6,7 +6,7 @@
import { mount, shallow } from 'enzyme';
import React from 'react';
-import { MockedProvider } from 'react-apollo/test-utils';
+import { MockedProvider } from '@apollo/react-testing';
import { mockBrowserFields, mocksSource } from '../../containers/source/mock';
import { TestProviders } from '../../mock';
@@ -20,7 +20,7 @@ describe('DragDropContextWrapper', () => {
const wrapper = shallow(
-
+
{message}
diff --git a/x-pack/legacy/plugins/siem/public/components/drag_and_drop/draggable_wrapper.test.tsx b/x-pack/legacy/plugins/siem/public/components/drag_and_drop/draggable_wrapper.test.tsx
index e846c923c5cbe..4529736057058 100644
--- a/x-pack/legacy/plugins/siem/public/components/drag_and_drop/draggable_wrapper.test.tsx
+++ b/x-pack/legacy/plugins/siem/public/components/drag_and_drop/draggable_wrapper.test.tsx
@@ -6,7 +6,7 @@
import { shallow } from 'enzyme';
import React from 'react';
-import { MockedProvider } from 'react-apollo/test-utils';
+import { MockedProvider } from '@apollo/react-testing';
import { mockBrowserFields, mocksSource } from '../../containers/source/mock';
import { TestProviders } from '../../mock';
@@ -24,7 +24,7 @@ describe('DraggableWrapper', () => {
test('it renders against the snapshot', () => {
const wrapper = shallow(
-
+
message} />
diff --git a/x-pack/legacy/plugins/siem/public/components/drag_and_drop/droppable_wrapper.test.tsx b/x-pack/legacy/plugins/siem/public/components/drag_and_drop/droppable_wrapper.test.tsx
index bd2f01721290f..b8549af3a2f42 100644
--- a/x-pack/legacy/plugins/siem/public/components/drag_and_drop/droppable_wrapper.test.tsx
+++ b/x-pack/legacy/plugins/siem/public/components/drag_and_drop/droppable_wrapper.test.tsx
@@ -6,7 +6,7 @@
import { shallow } from 'enzyme';
import React from 'react';
-import { MockedProvider } from 'react-apollo/test-utils';
+import { MockedProvider } from '@apollo/react-testing';
import { mockBrowserFields, mocksSource } from '../../containers/source/mock';
import { TestProviders } from '../../mock';
@@ -24,7 +24,7 @@ describe('DroppableWrapper', () => {
const wrapper = shallow(
-
+
{message}
diff --git a/x-pack/legacy/plugins/siem/public/components/events_viewer/events_viewer.test.tsx b/x-pack/legacy/plugins/siem/public/components/events_viewer/events_viewer.test.tsx
index d3cdf9886e469..3f0fc889ef22f 100644
--- a/x-pack/legacy/plugins/siem/public/components/events_viewer/events_viewer.test.tsx
+++ b/x-pack/legacy/plugins/siem/public/components/events_viewer/events_viewer.test.tsx
@@ -5,7 +5,8 @@
*/
import React from 'react';
-import { MockedProvider } from 'react-apollo/test-utils';
+import { act } from 'react-dom/test-utils';
+import { MockedProvider } from '@apollo/react-testing';
import useResizeObserver from 'use-resize-observer/polyfilled';
import { mockIndexPattern, TestProviders } from '../../mock';
@@ -52,7 +53,7 @@ describe('EventsViewer', () => {
);
- await wait();
+ await act(() => wait());
wrapper.update();
expect(
@@ -77,7 +78,7 @@ describe('EventsViewer', () => {
);
- await wait();
+ await act(() => wait());
wrapper.update();
expect(
@@ -102,7 +103,7 @@ describe('EventsViewer', () => {
);
- await wait();
+ await act(() => wait());
wrapper.update();
expect(
@@ -128,7 +129,7 @@ describe('EventsViewer', () => {
);
- await wait();
+ await act(() => wait());
wrapper.update();
defaultHeaders.forEach(h =>
diff --git a/x-pack/legacy/plugins/siem/public/components/events_viewer/index.test.tsx b/x-pack/legacy/plugins/siem/public/components/events_viewer/index.test.tsx
index 6f614c1e32f65..c5253d917eaa7 100644
--- a/x-pack/legacy/plugins/siem/public/components/events_viewer/index.test.tsx
+++ b/x-pack/legacy/plugins/siem/public/components/events_viewer/index.test.tsx
@@ -5,7 +5,8 @@
*/
import React from 'react';
-import { MockedProvider } from 'react-apollo/test-utils';
+import { act } from 'react-dom/test-utils';
+import { MockedProvider } from '@apollo/react-testing';
import useResizeObserver from 'use-resize-observer/polyfilled';
import { wait } from '../../lib/helpers';
@@ -51,7 +52,7 @@ describe('StatefulEventsViewer', () => {
);
- await wait();
+ await act(() => wait());
wrapper.update();
expect(
@@ -77,7 +78,7 @@ describe('StatefulEventsViewer', () => {
);
- await wait();
+ await act(() => wait());
wrapper.update();
expect(wrapper.find(`InspectButtonContainer`).exists()).toBe(true);
diff --git a/x-pack/legacy/plugins/siem/public/components/open_timeline/index.test.tsx b/x-pack/legacy/plugins/siem/public/components/open_timeline/index.test.tsx
index 520e2094fb336..335d514bee65c 100644
--- a/x-pack/legacy/plugins/siem/public/components/open_timeline/index.test.tsx
+++ b/x-pack/legacy/plugins/siem/public/components/open_timeline/index.test.tsx
@@ -6,7 +6,8 @@
import euiDarkVars from '@elastic/eui/dist/eui_theme_dark.json';
import { mount } from 'enzyme';
-import { MockedProvider } from 'react-apollo/test-utils';
+import { act } from 'react-dom/test-utils';
+import { MockedProvider } from '@apollo/react-testing';
import React from 'react';
import { ThemeProvider } from 'styled-components';
@@ -104,7 +105,7 @@ describe('StatefulOpenTimeline', () => {
);
- await wait();
+ await act(() => wait());
wrapper
.find('[data-test-subj="search-bar"] input')
@@ -134,7 +135,7 @@ describe('StatefulOpenTimeline', () => {
);
- await wait();
+ await act(() => wait());
wrapper
.find('[data-test-subj="search-bar"] input')
@@ -166,7 +167,7 @@ describe('StatefulOpenTimeline', () => {
);
- await wait();
+ await act(() => wait());
expect(
wrapper
@@ -197,7 +198,7 @@ describe('StatefulOpenTimeline', () => {
);
- await wait();
+ await act(() => wait());
wrapper
.find('.euiCheckbox__input')
@@ -243,7 +244,7 @@ describe('StatefulOpenTimeline', () => {
);
- await wait();
+ await act(() => wait());
wrapper
.find('.euiCheckbox__input')
@@ -287,7 +288,7 @@ describe('StatefulOpenTimeline', () => {
);
- await wait();
+ await act(() => wait());
wrapper
.find('.euiCheckbox__input')
@@ -399,7 +400,7 @@ describe('StatefulOpenTimeline', () => {
);
- await wait();
+ await act(() => wait());
wrapper.update();
expect(
@@ -451,7 +452,7 @@ describe('StatefulOpenTimeline', () => {
);
- await wait();
+ await act(() => wait());
wrapper.update();
@@ -487,7 +488,7 @@ describe('StatefulOpenTimeline', () => {
);
- await wait();
+ await act(() => wait());
expect(
wrapper
@@ -519,7 +520,7 @@ describe('StatefulOpenTimeline', () => {
.find('[data-test-subj="open-timeline"]')
.last()
.prop('selectedItems');
- await wait();
+ await act(() => wait());
expect(getSelectedItem().length).toEqual(0);
wrapper
.find('.euiCheckbox__input')
@@ -551,7 +552,7 @@ describe('StatefulOpenTimeline', () => {
);
- await wait();
+ await act(() => wait());
wrapper.update();
@@ -583,7 +584,7 @@ describe('StatefulOpenTimeline', () => {
);
- await wait();
+ await act(() => wait());
wrapper
.find(
@@ -621,7 +622,7 @@ describe('StatefulOpenTimeline', () => {
);
- await wait();
+ await act(() => wait());
wrapper
.find('[data-test-subj="open-duplicate"]')
diff --git a/x-pack/legacy/plugins/siem/public/components/open_timeline/open_timeline_modal/index.test.tsx b/x-pack/legacy/plugins/siem/public/components/open_timeline/open_timeline_modal/index.test.tsx
index ca8fa50c572fe..950d68701df89 100644
--- a/x-pack/legacy/plugins/siem/public/components/open_timeline/open_timeline_modal/index.test.tsx
+++ b/x-pack/legacy/plugins/siem/public/components/open_timeline/open_timeline_modal/index.test.tsx
@@ -7,7 +7,8 @@
import euiDarkVars from '@elastic/eui/dist/eui_theme_dark.json';
import { mount } from 'enzyme';
import React from 'react';
-import { MockedProvider } from 'react-apollo/test-utils';
+import { act } from 'react-dom/test-utils';
+import { MockedProvider } from '@apollo/react-testing';
import { ThemeProvider } from 'styled-components';
import { wait } from '../../../lib/helpers';
@@ -35,7 +36,7 @@ describe('OpenTimelineModal', () => {
);
- await wait();
+ await act(() => wait());
wrapper.update();
diff --git a/x-pack/legacy/plugins/siem/public/components/open_timeline/open_timeline_modal/open_timeline_modal_button.test.tsx b/x-pack/legacy/plugins/siem/public/components/open_timeline/open_timeline_modal/open_timeline_modal_button.test.tsx
index 66947a313f5e5..271524902c4d2 100644
--- a/x-pack/legacy/plugins/siem/public/components/open_timeline/open_timeline_modal/open_timeline_modal_button.test.tsx
+++ b/x-pack/legacy/plugins/siem/public/components/open_timeline/open_timeline_modal/open_timeline_modal_button.test.tsx
@@ -7,7 +7,8 @@
import euiDarkVars from '@elastic/eui/dist/eui_theme_dark.json';
import { mount } from 'enzyme';
import React from 'react';
-import { MockedProvider } from 'react-apollo/test-utils';
+import { act } from 'react-dom/test-utils';
+import { MockedProvider } from '@apollo/react-testing';
import { ThemeProvider } from 'styled-components';
import { wait } from '../../../lib/helpers';
@@ -29,7 +30,7 @@ describe('OpenTimelineModalButton', () => {
);
- await wait();
+ await act(() => wait());
wrapper.update();
@@ -54,7 +55,7 @@ describe('OpenTimelineModalButton', () => {
);
- await wait();
+ await act(() => wait());
wrapper
.find('[data-test-subj="open-timeline-button"]')
diff --git a/x-pack/legacy/plugins/siem/public/components/page/hosts/first_last_seen_host/index.test.tsx b/x-pack/legacy/plugins/siem/public/components/page/hosts/first_last_seen_host/index.test.tsx
index 4a836333f3311..2bd7fca86f209 100644
--- a/x-pack/legacy/plugins/siem/public/components/page/hosts/first_last_seen_host/index.test.tsx
+++ b/x-pack/legacy/plugins/siem/public/components/page/hosts/first_last_seen_host/index.test.tsx
@@ -6,7 +6,7 @@
import { cloneDeep } from 'lodash/fp';
import React from 'react';
-import { MockedProvider } from 'react-apollo/test-utils';
+import { MockedProvider } from '@apollo/react-testing';
import { render, act } from '@testing-library/react';
import { mockFirstLastSeenHostQuery } from '../../../../containers/hosts/first_last_seen/mock';
diff --git a/x-pack/legacy/plugins/siem/public/components/page/hosts/first_last_seen_host/index.tsx b/x-pack/legacy/plugins/siem/public/components/page/hosts/first_last_seen_host/index.tsx
index 70dff5eda5939..ab8d0d0aed0ae 100644
--- a/x-pack/legacy/plugins/siem/public/components/page/hosts/first_last_seen_host/index.tsx
+++ b/x-pack/legacy/plugins/siem/public/components/page/hosts/first_last_seen_host/index.tsx
@@ -6,7 +6,8 @@
import { EuiIcon, EuiLoadingSpinner, EuiText, EuiToolTip } from '@elastic/eui';
import React from 'react';
-import { ApolloConsumer } from 'react-apollo';
+import ApolloClient from 'apollo-client';
+import { withApollo } from 'react-apollo';
import { useFirstLastSeenHostQuery } from '../../../../containers/hosts/first_last_seen';
import { getEmptyTagValue } from '../../../empty_value';
@@ -17,48 +18,53 @@ export enum FirstLastSeenHostType {
LAST_SEEN = 'last-seen',
}
-export const FirstLastSeenHost = React.memo<{ hostname: string; type: FirstLastSeenHostType }>(
- ({ hostname, type }) => {
+interface OwnProps {
+ hostname: string;
+ type: FirstLastSeenHostType;
+}
+
+type FirstLastSeenHostComponentProps = OwnProps & {
+ client: ApolloClient;
+};
+
+const FirstLastSeenHostComponent = React.memo(
+ ({ client, hostname, type }) => {
+ const { loading, firstSeen, lastSeen, errorMessage } = useFirstLastSeenHostQuery(
+ hostname,
+ 'default',
+ client
+ );
+ if (errorMessage != null) {
+ return (
+
+
+
+ );
+ }
+ const valueSeen = type === FirstLastSeenHostType.FIRST_SEEN ? firstSeen : lastSeen;
return (
-
- {client => {
- const { loading, firstSeen, lastSeen, errorMessage } = useFirstLastSeenHostQuery(
- hostname,
- 'default',
- client
- );
- if (errorMessage != null) {
- return (
-
-
-
- );
- }
- const valueSeen = type === FirstLastSeenHostType.FIRST_SEEN ? firstSeen : lastSeen;
- return (
- <>
- {loading && }
- {!loading && valueSeen != null && new Date(valueSeen).toString() === 'Invalid Date'
- ? valueSeen
- : !loading &&
- valueSeen != null && (
-
-
-
- )}
- {!loading && valueSeen == null && getEmptyTagValue()}
- >
- );
- }}
-
+ <>
+ {loading && }
+ {!loading && valueSeen != null && new Date(valueSeen).toString() === 'Invalid Date'
+ ? valueSeen
+ : !loading &&
+ valueSeen != null && (
+
+
+
+ )}
+ {!loading && valueSeen == null && getEmptyTagValue()}
+ >
);
}
);
-FirstLastSeenHost.displayName = 'FirstLastSeenHost';
+FirstLastSeenHostComponent.displayName = 'FirstLastSeenHost';
+
+export const FirstLastSeenHost = withApollo(FirstLastSeenHostComponent);
diff --git a/x-pack/legacy/plugins/siem/public/components/page/hosts/hosts_table/index.test.tsx b/x-pack/legacy/plugins/siem/public/components/page/hosts/hosts_table/index.test.tsx
index e561594013dea..d0ad50aea511f 100644
--- a/x-pack/legacy/plugins/siem/public/components/page/hosts/hosts_table/index.test.tsx
+++ b/x-pack/legacy/plugins/siem/public/components/page/hosts/hosts_table/index.test.tsx
@@ -7,7 +7,7 @@
import { shallow } from 'enzyme';
import { getOr } from 'lodash/fp';
import React from 'react';
-import { MockedProvider } from 'react-apollo/test-utils';
+import { MockedProvider } from '@apollo/react-testing';
import {
apolloClientObservable,
diff --git a/x-pack/legacy/plugins/siem/public/components/page/network/network_dns_table/index.test.tsx b/x-pack/legacy/plugins/siem/public/components/page/network/network_dns_table/index.test.tsx
index e425057dd0f75..670dd7b4bb7ba 100644
--- a/x-pack/legacy/plugins/siem/public/components/page/network/network_dns_table/index.test.tsx
+++ b/x-pack/legacy/plugins/siem/public/components/page/network/network_dns_table/index.test.tsx
@@ -7,7 +7,7 @@
import { shallow } from 'enzyme';
import { getOr } from 'lodash/fp';
import React from 'react';
-import { MockedProvider } from 'react-apollo/test-utils';
+import { MockedProvider } from '@apollo/react-testing';
import { Provider as ReduxStoreProvider } from 'react-redux';
import { apolloClientObservable, mockGlobalState, TestProviders } from '../../../../mock';
diff --git a/x-pack/legacy/plugins/siem/public/components/page/network/network_http_table/index.test.tsx b/x-pack/legacy/plugins/siem/public/components/page/network/network_http_table/index.test.tsx
index c4596ada5c74d..c31aeeaf87b32 100644
--- a/x-pack/legacy/plugins/siem/public/components/page/network/network_http_table/index.test.tsx
+++ b/x-pack/legacy/plugins/siem/public/components/page/network/network_http_table/index.test.tsx
@@ -7,7 +7,7 @@
import { shallow } from 'enzyme';
import { getOr } from 'lodash/fp';
import React from 'react';
-import { MockedProvider } from 'react-apollo/test-utils';
+import { MockedProvider } from '@apollo/react-testing';
import { Provider as ReduxStoreProvider } from 'react-redux';
import { apolloClientObservable, mockGlobalState, TestProviders } from '../../../../mock';
diff --git a/x-pack/legacy/plugins/siem/public/components/page/network/network_top_countries_table/index.test.tsx b/x-pack/legacy/plugins/siem/public/components/page/network/network_top_countries_table/index.test.tsx
index 764e440a5a4be..9bcbe00e32430 100644
--- a/x-pack/legacy/plugins/siem/public/components/page/network/network_top_countries_table/index.test.tsx
+++ b/x-pack/legacy/plugins/siem/public/components/page/network/network_top_countries_table/index.test.tsx
@@ -7,7 +7,7 @@
import { shallow } from 'enzyme';
import { getOr } from 'lodash/fp';
import React from 'react';
-import { MockedProvider } from 'react-apollo/test-utils';
+import { MockedProvider } from '@apollo/react-testing';
import { Provider as ReduxStoreProvider } from 'react-redux';
import { FlowTargetSourceDest } from '../../../../graphql/types';
diff --git a/x-pack/legacy/plugins/siem/public/components/page/network/network_top_n_flow_table/index.test.tsx b/x-pack/legacy/plugins/siem/public/components/page/network/network_top_n_flow_table/index.test.tsx
index 78e8b15005f43..2943dc829c81b 100644
--- a/x-pack/legacy/plugins/siem/public/components/page/network/network_top_n_flow_table/index.test.tsx
+++ b/x-pack/legacy/plugins/siem/public/components/page/network/network_top_n_flow_table/index.test.tsx
@@ -7,7 +7,7 @@
import { shallow } from 'enzyme';
import { getOr } from 'lodash/fp';
import React from 'react';
-import { MockedProvider } from 'react-apollo/test-utils';
+import { MockedProvider } from '@apollo/react-testing';
import { Provider as ReduxStoreProvider } from 'react-redux';
import { FlowTargetSourceDest } from '../../../../graphql/types';
diff --git a/x-pack/legacy/plugins/siem/public/components/page/network/tls_table/index.test.tsx b/x-pack/legacy/plugins/siem/public/components/page/network/tls_table/index.test.tsx
index 81a472f3175e5..35c41d1800a67 100644
--- a/x-pack/legacy/plugins/siem/public/components/page/network/tls_table/index.test.tsx
+++ b/x-pack/legacy/plugins/siem/public/components/page/network/tls_table/index.test.tsx
@@ -7,7 +7,7 @@
import { shallow } from 'enzyme';
import { getOr } from 'lodash/fp';
import React from 'react';
-import { MockedProvider } from 'react-apollo/test-utils';
+import { MockedProvider } from '@apollo/react-testing';
import { Provider as ReduxStoreProvider } from 'react-redux';
import { apolloClientObservable, mockGlobalState, TestProviders } from '../../../../mock';
diff --git a/x-pack/legacy/plugins/siem/public/components/page/network/users_table/index.test.tsx b/x-pack/legacy/plugins/siem/public/components/page/network/users_table/index.test.tsx
index 8dc3704a089ea..2936aaa12d2c6 100644
--- a/x-pack/legacy/plugins/siem/public/components/page/network/users_table/index.test.tsx
+++ b/x-pack/legacy/plugins/siem/public/components/page/network/users_table/index.test.tsx
@@ -7,7 +7,7 @@
import { shallow } from 'enzyme';
import { getOr } from 'lodash/fp';
import React from 'react';
-import { MockedProvider } from 'react-apollo/test-utils';
+import { MockedProvider } from '@apollo/react-testing';
import { Provider as ReduxStoreProvider } from 'react-redux';
import { FlowTarget } from '../../../../graphql/types';
diff --git a/x-pack/legacy/plugins/siem/public/components/page/overview/overview_host/index.test.tsx b/x-pack/legacy/plugins/siem/public/components/page/overview/overview_host/index.test.tsx
index 568cf032fb01c..7eb8b1979ceda 100644
--- a/x-pack/legacy/plugins/siem/public/components/page/overview/overview_host/index.test.tsx
+++ b/x-pack/legacy/plugins/siem/public/components/page/overview/overview_host/index.test.tsx
@@ -7,14 +7,14 @@
import { cloneDeep } from 'lodash/fp';
import { mount } from 'enzyme';
import React from 'react';
+import { act } from 'react-dom/test-utils';
+import { MockedProvider, MockedResponse } from '@apollo/react-testing';
import { apolloClientObservable, mockGlobalState, TestProviders } from '../../../../mock';
import { OverviewHost } from '.';
import { createStore, State } from '../../../../store';
import { overviewHostQuery } from '../../../../containers/overview/overview_host/index.gql_query';
-import { GetOverviewHostQuery } from '../../../../graphql/types';
-import { MockedProvider } from 'react-apollo/test-utils';
import { wait } from '../../../../lib/helpers';
jest.mock('../../../../lib/kibana');
@@ -22,12 +22,7 @@ jest.mock('../../../../lib/kibana');
const startDate = 1579553397080;
const endDate = 1579639797080;
-interface MockedProvidedQuery {
- request: {
- query: GetOverviewHostQuery.Query;
- fetchPolicy: string;
- variables: GetOverviewHostQuery.Variables;
- };
+interface MockedProvidedQuery extends MockedResponse {
result: {
data: {
source: unknown;
@@ -39,7 +34,6 @@ const mockOpenTimelineQueryResults: MockedProvidedQuery[] = [
{
request: {
query: overviewHostQuery,
- fetchPolicy: 'cache-and-network',
variables: {
sourceId: 'default',
timerange: { interval: '12h', from: startDate, to: endDate },
@@ -131,7 +125,7 @@ describe('OverviewHost', () => {
);
- await wait();
+ await act(() => wait());
wrapper.update();
expect(
diff --git a/x-pack/legacy/plugins/siem/public/components/page/overview/overview_network/index.test.tsx b/x-pack/legacy/plugins/siem/public/components/page/overview/overview_network/index.test.tsx
index 151bb444cfe75..31eacca22d146 100644
--- a/x-pack/legacy/plugins/siem/public/components/page/overview/overview_network/index.test.tsx
+++ b/x-pack/legacy/plugins/siem/public/components/page/overview/overview_network/index.test.tsx
@@ -7,14 +7,14 @@
import { cloneDeep } from 'lodash/fp';
import { mount } from 'enzyme';
import React from 'react';
+import { act } from 'react-dom/test-utils';
+import { MockedProvider, MockedResponse } from '@apollo/react-testing';
import { apolloClientObservable, mockGlobalState, TestProviders } from '../../../../mock';
import { OverviewNetwork } from '.';
import { createStore, State } from '../../../../store';
import { overviewNetworkQuery } from '../../../../containers/overview/overview_network/index.gql_query';
-import { GetOverviewHostQuery } from '../../../../graphql/types';
-import { MockedProvider } from 'react-apollo/test-utils';
import { wait } from '../../../../lib/helpers';
jest.mock('../../../../lib/kibana');
@@ -22,12 +22,7 @@ jest.mock('../../../../lib/kibana');
const startDate = 1579553397080;
const endDate = 1579639797080;
-interface MockedProvidedQuery {
- request: {
- query: GetOverviewHostQuery.Query;
- fetchPolicy: string;
- variables: GetOverviewHostQuery.Variables;
- };
+interface MockedProvidedQuery extends MockedResponse {
result: {
data: {
source: unknown;
@@ -39,7 +34,6 @@ const mockOpenTimelineQueryResults: MockedProvidedQuery[] = [
{
request: {
query: overviewNetworkQuery,
- fetchPolicy: 'cache-and-network',
variables: {
sourceId: 'default',
timerange: { interval: '12h', from: startDate, to: endDate },
@@ -124,7 +118,7 @@ describe('OverviewNetwork', () => {
);
- await wait();
+ await act(() => wait());
wrapper.update();
expect(
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/body/index.test.tsx b/x-pack/legacy/plugins/siem/public/components/timeline/body/index.test.tsx
index cf35c8e565bbc..18a34acdd6d24 100644
--- a/x-pack/legacy/plugins/siem/public/components/timeline/body/index.test.tsx
+++ b/x-pack/legacy/plugins/siem/public/components/timeline/body/index.test.tsx
@@ -5,6 +5,7 @@
*/
import React from 'react';
+import { act } from 'react-dom/test-utils';
import { mockBrowserFields } from '../../../containers/source/mock';
import { Direction } from '../../../graphql/types';
@@ -207,7 +208,7 @@ describe('Body', () => {
);
wrapper.update();
- await wait();
+ await act(() => wait());
wrapper.update();
headersJustTimestamp.forEach(() => {
expect(
diff --git a/x-pack/legacy/plugins/siem/public/components/timeline/timeline.test.tsx b/x-pack/legacy/plugins/siem/public/components/timeline/timeline.test.tsx
index 4c5238d213e43..99f5622df1c6c 100644
--- a/x-pack/legacy/plugins/siem/public/components/timeline/timeline.test.tsx
+++ b/x-pack/legacy/plugins/siem/public/components/timeline/timeline.test.tsx
@@ -6,7 +6,7 @@
import { shallow } from 'enzyme';
import React from 'react';
-import { MockedProvider } from 'react-apollo/test-utils';
+import { MockedProvider } from '@apollo/react-testing';
import useResizeObserver from 'use-resize-observer/polyfilled';
import { timelineQuery } from '../../containers/timeline/index.gql_query';
diff --git a/x-pack/legacy/plugins/siem/public/components/url_state/index.test.tsx b/x-pack/legacy/plugins/siem/public/components/url_state/index.test.tsx
index 10aa388449d91..855d590a7e9cd 100644
--- a/x-pack/legacy/plugins/siem/public/components/url_state/index.test.tsx
+++ b/x-pack/legacy/plugins/siem/public/components/url_state/index.test.tsx
@@ -6,6 +6,7 @@
import { mount } from 'enzyme';
import React from 'react';
+import { act } from 'react-dom/test-utils';
import { HookWrapper } from '../../mock';
import { SiemPageName } from '../../pages/home/types';
@@ -193,7 +194,7 @@ describe('UrlStateContainer', () => {
}).relativeTimeSearch.undefinedQuery,
});
wrapper.update();
- await wait();
+ await act(() => wait());
if (CONSTANTS.detectionsPage === page) {
expect(mockSetRelativeRangeDatePicker.mock.calls[3][0]).toEqual({
diff --git a/x-pack/legacy/plugins/siem/public/containers/authentications/index.tsx b/x-pack/legacy/plugins/siem/public/containers/authentications/index.tsx
index 6d4a88c45a768..b995667cae204 100644
--- a/x-pack/legacy/plugins/siem/public/containers/authentications/index.tsx
+++ b/x-pack/legacy/plugins/siem/public/containers/authentications/index.tsx
@@ -39,7 +39,7 @@ export interface AuthenticationArgs {
}
export interface OwnProps extends QueryTemplatePaginatedProps {
- children: (args: AuthenticationArgs) => React.ReactNode;
+ children: (args: AuthenticationArgs) => React.ReactElement;
type: hostsModel.HostsType;
}
diff --git a/x-pack/legacy/plugins/siem/public/containers/events/last_event_time/index.ts b/x-pack/legacy/plugins/siem/public/containers/events/last_event_time/index.ts
index 9cae503d30940..b8cb8ad0c076f 100644
--- a/x-pack/legacy/plugins/siem/public/containers/events/last_event_time/index.ts
+++ b/x-pack/legacy/plugins/siem/public/containers/events/last_event_time/index.ts
@@ -25,7 +25,7 @@ export interface LastEventTimeArgs {
}
export interface OwnProps extends QueryTemplateProps {
- children: (args: LastEventTimeArgs) => React.ReactNode;
+ children: (args: LastEventTimeArgs) => React.ReactElement;
indexKey: LastEventIndexKey;
}
diff --git a/x-pack/legacy/plugins/siem/public/containers/events/last_event_time/mock.ts b/x-pack/legacy/plugins/siem/public/containers/events/last_event_time/mock.ts
index ca8786077851f..039f616286e15 100644
--- a/x-pack/legacy/plugins/siem/public/containers/events/last_event_time/mock.ts
+++ b/x-pack/legacy/plugins/siem/public/containers/events/last_event_time/mock.ts
@@ -4,16 +4,14 @@
* you may not use this file except in compliance with the Elastic License.
*/
+import { MockedResponse } from '@apollo/react-testing';
+
import { defaultIndexPattern } from '../../../../default_index_pattern';
-import { GetLastEventTimeQuery, LastEventIndexKey } from '../../../graphql/types';
+import { LastEventIndexKey } from '../../../graphql/types';
import { LastEventTimeGqlQuery } from './last_event_time.gql_query';
-interface MockLastEventTimeQuery {
- request: {
- query: GetLastEventTimeQuery.Query;
- variables: GetLastEventTimeQuery.Variables;
- };
+interface MockLastEventTimeQuery extends MockedResponse {
result: {
data?: {
source: {
@@ -24,7 +22,6 @@ interface MockLastEventTimeQuery {
};
};
};
- errors?: [{ message: string }];
};
}
diff --git a/x-pack/legacy/plugins/siem/public/containers/helpers.ts b/x-pack/legacy/plugins/siem/public/containers/helpers.ts
index 5f66e3f4b88d4..8ab42cc52023f 100644
--- a/x-pack/legacy/plugins/siem/public/containers/helpers.ts
+++ b/x-pack/legacy/plugins/siem/public/containers/helpers.ts
@@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { FetchPolicy } from 'apollo-client';
+import { WatchQueryFetchPolicy } from 'apollo-client';
import { isString } from 'lodash/fp';
import { ESQuery } from '../../common/typed_json';
@@ -12,4 +12,4 @@ import { ESQuery } from '../../common/typed_json';
export const createFilter = (filterQuery: ESQuery | string | undefined) =>
isString(filterQuery) ? filterQuery : JSON.stringify(filterQuery);
-export const getDefaultFetchPolicy = (): FetchPolicy => 'cache-and-network';
+export const getDefaultFetchPolicy = (): WatchQueryFetchPolicy => 'cache-and-network';
diff --git a/x-pack/legacy/plugins/siem/public/containers/hosts/first_last_seen/index.ts b/x-pack/legacy/plugins/siem/public/containers/hosts/first_last_seen/index.ts
index e36da5bfbe4ee..76c5e710f9208 100644
--- a/x-pack/legacy/plugins/siem/public/containers/hosts/first_last_seen/index.ts
+++ b/x-pack/legacy/plugins/siem/public/containers/hosts/first_last_seen/index.ts
@@ -26,7 +26,7 @@ export interface FirstLastSeenHostArgs {
}
export interface OwnProps extends QueryTemplateProps {
- children: (args: FirstLastSeenHostArgs) => React.ReactNode;
+ children: (args: FirstLastSeenHostArgs) => React.ReactElement;
hostName: string;
}
diff --git a/x-pack/legacy/plugins/siem/public/containers/hosts/first_last_seen/mock.ts b/x-pack/legacy/plugins/siem/public/containers/hosts/first_last_seen/mock.ts
index 2c9d418763e8e..db82f30f3d54a 100644
--- a/x-pack/legacy/plugins/siem/public/containers/hosts/first_last_seen/mock.ts
+++ b/x-pack/legacy/plugins/siem/public/containers/hosts/first_last_seen/mock.ts
@@ -4,16 +4,12 @@
* you may not use this file except in compliance with the Elastic License.
*/
+import { MockedResponse } from '@apollo/react-testing';
import { defaultIndexPattern } from '../../../../default_index_pattern';
-import { GetHostFirstLastSeenQuery } from '../../../graphql/types';
import { HostFirstLastSeenGqlQuery } from './first_last_seen.gql_query';
-interface MockedProvidedQuery {
- request: {
- query: GetHostFirstLastSeenQuery.Query;
- variables: GetHostFirstLastSeenQuery.Variables;
- };
+interface MockedProvidedQuery extends MockedResponse {
result: {
data?: {
source: {
@@ -24,7 +20,6 @@ interface MockedProvidedQuery {
};
};
};
- errors?: [{ message: string }];
};
}
export const mockFirstLastSeenHostQuery: MockedProvidedQuery[] = [
diff --git a/x-pack/legacy/plugins/siem/public/containers/hosts/index.tsx b/x-pack/legacy/plugins/siem/public/containers/hosts/index.tsx
index 733c2224d840a..adec25867dde1 100644
--- a/x-pack/legacy/plugins/siem/public/containers/hosts/index.tsx
+++ b/x-pack/legacy/plugins/siem/public/containers/hosts/index.tsx
@@ -44,7 +44,7 @@ export interface HostsArgs {
}
export interface OwnProps extends QueryTemplatePaginatedProps {
- children: (args: HostsArgs) => React.ReactNode;
+ children: (args: HostsArgs) => React.ReactElement;
type: hostsModel.HostsType;
startDate: number;
endDate: number;
diff --git a/x-pack/legacy/plugins/siem/public/containers/hosts/overview/index.tsx b/x-pack/legacy/plugins/siem/public/containers/hosts/overview/index.tsx
index 5057e872b5313..65c71f67f72c1 100644
--- a/x-pack/legacy/plugins/siem/public/containers/hosts/overview/index.tsx
+++ b/x-pack/legacy/plugins/siem/public/containers/hosts/overview/index.tsx
@@ -36,7 +36,7 @@ export interface HostOverviewReduxProps {
}
export interface OwnProps extends QueryTemplateProps {
- children: (args: HostOverviewArgs) => React.ReactNode;
+ children: (args: HostOverviewArgs) => React.ReactElement;
hostName: string;
startDate: number;
endDate: number;
diff --git a/x-pack/legacy/plugins/siem/public/containers/ip_overview/index.tsx b/x-pack/legacy/plugins/siem/public/containers/ip_overview/index.tsx
index ade94c430c6ef..799768a817de0 100644
--- a/x-pack/legacy/plugins/siem/public/containers/ip_overview/index.tsx
+++ b/x-pack/legacy/plugins/siem/public/containers/ip_overview/index.tsx
@@ -29,7 +29,7 @@ export interface IpOverviewArgs {
}
export interface IpOverviewProps extends QueryTemplateProps {
- children: (args: IpOverviewArgs) => React.ReactNode;
+ children: (args: IpOverviewArgs) => React.ReactElement;
type: networkModel.NetworkType;
ip: string;
}
diff --git a/x-pack/legacy/plugins/siem/public/containers/kpi_host_details/index.tsx b/x-pack/legacy/plugins/siem/public/containers/kpi_host_details/index.tsx
index de9d54b1a185c..1fd53775fc039 100644
--- a/x-pack/legacy/plugins/siem/public/containers/kpi_host_details/index.tsx
+++ b/x-pack/legacy/plugins/siem/public/containers/kpi_host_details/index.tsx
@@ -29,7 +29,7 @@ export interface KpiHostDetailsArgs {
}
export interface QueryKpiHostDetailsProps extends QueryTemplateProps {
- children: (args: KpiHostDetailsArgs) => React.ReactNode;
+ children: (args: KpiHostDetailsArgs) => React.ReactElement;
}
const KpiHostDetailsComponentQuery = React.memo(
diff --git a/x-pack/legacy/plugins/siem/public/containers/kpi_hosts/index.tsx b/x-pack/legacy/plugins/siem/public/containers/kpi_hosts/index.tsx
index 5be2423e8a162..aaf3fe0241c4c 100644
--- a/x-pack/legacy/plugins/siem/public/containers/kpi_hosts/index.tsx
+++ b/x-pack/legacy/plugins/siem/public/containers/kpi_hosts/index.tsx
@@ -29,7 +29,7 @@ export interface KpiHostsArgs {
}
export interface KpiHostsProps extends QueryTemplateProps {
- children: (args: KpiHostsArgs) => React.ReactNode;
+ children: (args: KpiHostsArgs) => React.ReactElement;
}
const KpiHostsComponentQuery = React.memo(
diff --git a/x-pack/legacy/plugins/siem/public/containers/kpi_network/index.tsx b/x-pack/legacy/plugins/siem/public/containers/kpi_network/index.tsx
index 338cdc39b178c..b692ff8ba16f9 100644
--- a/x-pack/legacy/plugins/siem/public/containers/kpi_network/index.tsx
+++ b/x-pack/legacy/plugins/siem/public/containers/kpi_network/index.tsx
@@ -29,7 +29,7 @@ export interface KpiNetworkArgs {
}
export interface KpiNetworkProps extends QueryTemplateProps {
- children: (args: KpiNetworkArgs) => React.ReactNode;
+ children: (args: KpiNetworkArgs) => React.ReactElement;
}
const KpiNetworkComponentQuery = React.memo(
diff --git a/x-pack/legacy/plugins/siem/public/containers/network_dns/index.tsx b/x-pack/legacy/plugins/siem/public/containers/network_dns/index.tsx
index 04c8783c30a0f..ab02a877725eb 100644
--- a/x-pack/legacy/plugins/siem/public/containers/network_dns/index.tsx
+++ b/x-pack/legacy/plugins/siem/public/containers/network_dns/index.tsx
@@ -49,7 +49,7 @@ export interface NetworkDnsArgs {
}
export interface OwnProps extends QueryTemplatePaginatedProps {
- children: (args: NetworkDnsArgs) => React.ReactNode;
+ children: (args: NetworkDnsArgs) => React.ReactElement;
type: networkModel.NetworkType;
}
diff --git a/x-pack/legacy/plugins/siem/public/containers/network_http/index.tsx b/x-pack/legacy/plugins/siem/public/containers/network_http/index.tsx
index bf4e64f63d559..9a9459a9d1ac0 100644
--- a/x-pack/legacy/plugins/siem/public/containers/network_http/index.tsx
+++ b/x-pack/legacy/plugins/siem/public/containers/network_http/index.tsx
@@ -40,7 +40,7 @@ export interface NetworkHttpArgs {
}
export interface OwnProps extends QueryTemplatePaginatedProps {
- children: (args: NetworkHttpArgs) => React.ReactNode;
+ children: (args: NetworkHttpArgs) => React.ReactElement;
ip?: string;
type: networkModel.NetworkType;
}
diff --git a/x-pack/legacy/plugins/siem/public/containers/network_top_countries/index.tsx b/x-pack/legacy/plugins/siem/public/containers/network_top_countries/index.tsx
index bd1e1a002bbcd..f329f4365e6f2 100644
--- a/x-pack/legacy/plugins/siem/public/containers/network_top_countries/index.tsx
+++ b/x-pack/legacy/plugins/siem/public/containers/network_top_countries/index.tsx
@@ -41,7 +41,7 @@ export interface NetworkTopCountriesArgs {
}
export interface OwnProps extends QueryTemplatePaginatedProps {
- children: (args: NetworkTopCountriesArgs) => React.ReactNode;
+ children: (args: NetworkTopCountriesArgs) => React.ReactElement;
flowTarget: FlowTargetSourceDest;
ip?: string;
type: networkModel.NetworkType;
diff --git a/x-pack/legacy/plugins/siem/public/containers/network_top_n_flow/index.tsx b/x-pack/legacy/plugins/siem/public/containers/network_top_n_flow/index.tsx
index f0f1f8257f29f..24654e98ac18f 100644
--- a/x-pack/legacy/plugins/siem/public/containers/network_top_n_flow/index.tsx
+++ b/x-pack/legacy/plugins/siem/public/containers/network_top_n_flow/index.tsx
@@ -41,7 +41,7 @@ export interface NetworkTopNFlowArgs {
}
export interface OwnProps extends QueryTemplatePaginatedProps {
- children: (args: NetworkTopNFlowArgs) => React.ReactNode;
+ children: (args: NetworkTopNFlowArgs) => React.ReactElement;
flowTarget: FlowTargetSourceDest;
ip?: string;
type: networkModel.NetworkType;
diff --git a/x-pack/legacy/plugins/siem/public/containers/overview/overview_host/index.tsx b/x-pack/legacy/plugins/siem/public/containers/overview/overview_host/index.tsx
index 2dd9ccf24d802..61807bf186810 100644
--- a/x-pack/legacy/plugins/siem/public/containers/overview/overview_host/index.tsx
+++ b/x-pack/legacy/plugins/siem/public/containers/overview/overview_host/index.tsx
@@ -30,7 +30,7 @@ export interface OverviewHostArgs {
}
export interface OverviewHostProps extends QueryTemplateProps {
- children: (args: OverviewHostArgs) => React.ReactNode;
+ children: (args: OverviewHostArgs) => React.ReactElement;
sourceId: string;
endDate: number;
startDate: number;
diff --git a/x-pack/legacy/plugins/siem/public/containers/overview/overview_network/index.tsx b/x-pack/legacy/plugins/siem/public/containers/overview/overview_network/index.tsx
index d0acd41c224a5..b1867a3f5232d 100644
--- a/x-pack/legacy/plugins/siem/public/containers/overview/overview_network/index.tsx
+++ b/x-pack/legacy/plugins/siem/public/containers/overview/overview_network/index.tsx
@@ -30,7 +30,7 @@ export interface OverviewNetworkArgs {
}
export interface OverviewNetworkProps extends QueryTemplateProps {
- children: (args: OverviewNetworkArgs) => React.ReactNode;
+ children: (args: OverviewNetworkArgs) => React.ReactElement;
sourceId: string;
endDate: number;
startDate: number;
diff --git a/x-pack/legacy/plugins/siem/public/containers/query_template.tsx b/x-pack/legacy/plugins/siem/public/containers/query_template.tsx
index dfb452c24b86e..0e855b67f995a 100644
--- a/x-pack/legacy/plugins/siem/public/containers/query_template.tsx
+++ b/x-pack/legacy/plugins/siem/public/containers/query_template.tsx
@@ -4,9 +4,9 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { ApolloQueryResult } from 'apollo-client';
+import { ApolloQueryResult, FetchMoreOptions, FetchMoreQueryOptions } from 'apollo-client';
import React from 'react';
-import { FetchMoreOptions, FetchMoreQueryOptions, OperationVariables } from 'react-apollo';
+import { OperationVariables } from 'react-apollo';
import { ESQuery } from '../../common/typed_json';
diff --git a/x-pack/legacy/plugins/siem/public/containers/query_template_paginated.tsx b/x-pack/legacy/plugins/siem/public/containers/query_template_paginated.tsx
index db618f216d83e..ee8362d0a87cb 100644
--- a/x-pack/legacy/plugins/siem/public/containers/query_template_paginated.tsx
+++ b/x-pack/legacy/plugins/siem/public/containers/query_template_paginated.tsx
@@ -4,10 +4,15 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import { ApolloQueryResult, NetworkStatus } from 'apollo-client';
+import {
+ ApolloQueryResult,
+ NetworkStatus,
+ FetchMoreOptions,
+ FetchMoreQueryOptions,
+} from 'apollo-client';
import memoizeOne from 'memoize-one';
import React from 'react';
-import { FetchMoreOptions, FetchMoreQueryOptions, OperationVariables } from 'react-apollo';
+import { OperationVariables } from 'react-apollo';
import deepEqual from 'fast-deep-equal';
import { ESQuery } from '../../common/typed_json';
diff --git a/x-pack/legacy/plugins/siem/public/containers/source/index.test.tsx b/x-pack/legacy/plugins/siem/public/containers/source/index.test.tsx
index d1a183a402e37..f2b3494fc2138 100644
--- a/x-pack/legacy/plugins/siem/public/containers/source/index.test.tsx
+++ b/x-pack/legacy/plugins/siem/public/containers/source/index.test.tsx
@@ -7,9 +7,7 @@
import { isEqual } from 'lodash/fp';
import { mount } from 'enzyme';
import React from 'react';
-import { MockedProvider } from 'react-apollo/test-utils';
-
-import { wait } from '../../lib/helpers';
+import { MockedProvider } from '@apollo/react-testing';
import { WithSource, indicesExistOrDataTemporarilyUnavailable } from '.';
import { mockBrowserFields, mockIndexFields, mocksSource } from './mock';
@@ -26,14 +24,11 @@ describe('Index Fields & Browser Fields', () => {
expect(indexPattern.fields).toEqual(mockIndexFields);
}
- return null;
+ return ;
}}
);
-
- // Why => https://github.com/apollographql/react-apollo/issues/1711
- await wait();
});
test('Browser Fields', async () => {
@@ -45,14 +40,11 @@ describe('Index Fields & Browser Fields', () => {
expect(browserFields).toEqual(mockBrowserFields);
}
- return null;
+ return ;
}}
);
-
- // Why => https://github.com/apollographql/react-apollo/issues/1711
- await wait();
});
describe('indicesExistOrDataTemporarilyUnavailable', () => {
diff --git a/x-pack/legacy/plugins/siem/public/containers/source/index.tsx b/x-pack/legacy/plugins/siem/public/containers/source/index.tsx
index e454421ca955d..306a830f782b4 100644
--- a/x-pack/legacy/plugins/siem/public/containers/source/index.tsx
+++ b/x-pack/legacy/plugins/siem/public/containers/source/index.tsx
@@ -57,7 +57,7 @@ interface WithSourceArgs {
}
interface WithSourceProps {
- children: (args: WithSourceArgs) => React.ReactNode;
+ children: (args: WithSourceArgs) => React.ReactElement;
indexToAdd?: string[] | null;
sourceId: string;
}
diff --git a/x-pack/legacy/plugins/siem/public/containers/timeline/all/index.tsx b/x-pack/legacy/plugins/siem/public/containers/timeline/all/index.tsx
index 22c7b03f34dd5..708c8060b3cf9 100644
--- a/x-pack/legacy/plugins/siem/public/containers/timeline/all/index.tsx
+++ b/x-pack/legacy/plugins/siem/public/containers/timeline/all/index.tsx
@@ -33,7 +33,7 @@ export interface AllTimelinesVariables {
}
interface OwnProps extends AllTimelinesVariables {
- children?: (args: AllTimelinesArgs) => React.ReactNode;
+ children?: (args: AllTimelinesArgs) => React.ReactElement;
}
const getAllTimeline = memoizeOne(
diff --git a/x-pack/legacy/plugins/siem/public/containers/timeline/index.tsx b/x-pack/legacy/plugins/siem/public/containers/timeline/index.tsx
index ccd8babd41e68..6a1c77c939830 100644
--- a/x-pack/legacy/plugins/siem/public/containers/timeline/index.tsx
+++ b/x-pack/legacy/plugins/siem/public/containers/timeline/index.tsx
@@ -46,7 +46,7 @@ export interface CustomReduxProps {
}
export interface OwnProps extends QueryTemplateProps {
- children?: (args: TimelineArgs) => React.ReactNode;
+ children?: (args: TimelineArgs) => React.ReactElement;
eventType?: EventType;
id: string;
indexPattern?: IIndexPattern;
diff --git a/x-pack/legacy/plugins/siem/public/containers/tls/index.tsx b/x-pack/legacy/plugins/siem/public/containers/tls/index.tsx
index 3738355c8846e..43e2b51f51986 100644
--- a/x-pack/legacy/plugins/siem/public/containers/tls/index.tsx
+++ b/x-pack/legacy/plugins/siem/public/containers/tls/index.tsx
@@ -40,7 +40,7 @@ export interface TlsArgs {
}
export interface OwnProps extends QueryTemplatePaginatedProps {
- children: (args: TlsArgs) => React.ReactNode;
+ children: (args: TlsArgs) => React.ReactElement;
flowTarget: FlowTargetSourceDest;
ip: string;
type: networkModel.NetworkType;
diff --git a/x-pack/legacy/plugins/siem/public/containers/uncommon_processes/index.tsx b/x-pack/legacy/plugins/siem/public/containers/uncommon_processes/index.tsx
index 0a2ce67d9be80..64e58a08a3086 100644
--- a/x-pack/legacy/plugins/siem/public/containers/uncommon_processes/index.tsx
+++ b/x-pack/legacy/plugins/siem/public/containers/uncommon_processes/index.tsx
@@ -39,7 +39,7 @@ export interface UncommonProcessesArgs {
}
export interface OwnProps extends QueryTemplatePaginatedProps {
- children: (args: UncommonProcessesArgs) => React.ReactNode;
+ children: (args: UncommonProcessesArgs) => React.ReactElement;
type: hostsModel.HostsType;
}
diff --git a/x-pack/legacy/plugins/siem/public/containers/users/index.tsx b/x-pack/legacy/plugins/siem/public/containers/users/index.tsx
index 5f71449c52460..8aee84fc439dd 100644
--- a/x-pack/legacy/plugins/siem/public/containers/users/index.tsx
+++ b/x-pack/legacy/plugins/siem/public/containers/users/index.tsx
@@ -35,7 +35,7 @@ export interface UsersArgs {
}
export interface OwnProps extends QueryTemplatePaginatedProps {
- children: (args: UsersArgs) => React.ReactNode;
+ children: (args: UsersArgs) => React.ReactElement;
flowTarget: FlowTarget;
ip: string;
type: networkModel.NetworkType;
diff --git a/x-pack/legacy/plugins/siem/public/mock/timeline_results.ts b/x-pack/legacy/plugins/siem/public/mock/timeline_results.ts
index d6dc0ae131391..8ed3a4c0c12c8 100644
--- a/x-pack/legacy/plugins/siem/public/mock/timeline_results.ts
+++ b/x-pack/legacy/plugins/siem/public/mock/timeline_results.ts
@@ -4,15 +4,12 @@
* you may not use this file except in compliance with the Elastic License.
*/
+import { MockedResponse } from '@apollo/react-testing';
import { OpenTimelineResult } from '../components/open_timeline/types';
-import { GetAllTimeline, SortFieldTimeline, TimelineResult, Direction } from '../graphql/types';
+import { SortFieldTimeline, TimelineResult, Direction } from '../graphql/types';
import { allTimelinesQuery } from '../containers/timeline/all/index.gql_query';
-export interface MockedProvidedQuery {
- request: {
- query: GetAllTimeline.Query;
- variables: GetAllTimeline.Variables;
- };
+export interface MockedProvidedQuery extends MockedResponse {
result: {
data: {
getAllTimeline: {
diff --git a/x-pack/legacy/plugins/siem/public/pages/hosts/hosts.test.tsx b/x-pack/legacy/plugins/siem/public/pages/hosts/hosts.test.tsx
index 99cf767c65e08..d68e90856a252 100644
--- a/x-pack/legacy/plugins/siem/public/pages/hosts/hosts.test.tsx
+++ b/x-pack/legacy/plugins/siem/public/pages/hosts/hosts.test.tsx
@@ -7,8 +7,9 @@
import { mount } from 'enzyme';
import { cloneDeep } from 'lodash/fp';
import React from 'react';
+import { act } from 'react-dom/test-utils';
import { Router } from 'react-router-dom';
-import { MockedProvider } from 'react-apollo/test-utils';
+import { MockedProvider, MockedResponse } from '@apollo/react-testing';
import { Filter } from '../../../../../../../src/plugins/data/common/es_query';
import '../../mock/match_media';
@@ -31,8 +32,7 @@ jest.mock('../../components/query_bar', () => ({
QueryBar: () => null,
}));
-let localSource: Array<{
- request: {};
+interface LocalSoure extends MockedResponse {
result: {
data: {
source: {
@@ -42,7 +42,9 @@ let localSource: Array<{
};
};
};
-}>;
+}
+
+let localSource: LocalSoure[];
type Action = 'PUSH' | 'POP' | 'REPLACE';
const pop: Action = 'POP';
@@ -127,7 +129,7 @@ describe('Hosts - rendering', () => {
);
- await wait();
+ await act(() => wait());
wrapper.update();
expect(wrapper.find(SiemNavigation).exists()).toBe(true);
});
@@ -176,7 +178,7 @@ describe('Hosts - rendering', () => {
);
- await wait();
+ await act(() => wait());
wrapper.update();
myStore.dispatch(inputsActions.setSearchBarFilter({ id: 'global', filters: newFilters }));
diff --git a/x-pack/legacy/plugins/siem/public/pages/network/ip_details/index.test.tsx b/x-pack/legacy/plugins/siem/public/pages/network/ip_details/index.test.tsx
index 02132d790796c..941a886b28566 100644
--- a/x-pack/legacy/plugins/siem/public/pages/network/ip_details/index.test.tsx
+++ b/x-pack/legacy/plugins/siem/public/pages/network/ip_details/index.test.tsx
@@ -8,7 +8,7 @@ import { shallow } from 'enzyme';
import { cloneDeep } from 'lodash/fp';
import React from 'react';
import { Router } from 'react-router-dom';
-import { MockedProvider } from 'react-apollo/test-utils';
+import { MockedProvider, MockedResponse } from '@apollo/react-testing';
import { ActionCreator } from 'typescript-fsa';
import '../../../mock/match_media';
@@ -36,8 +36,7 @@ jest.mock('../../../components/query_bar', () => ({
QueryBar: () => null,
}));
-let localSource: Array<{
- request: {};
+interface LocalSoure extends MockedResponse {
result: {
data: {
source: {
@@ -47,7 +46,9 @@ let localSource: Array<{
};
};
};
-}>;
+}
+
+let localSource: LocalSoure[];
const getMockHistory = (ip: string) => ({
length: 2,
@@ -143,9 +144,6 @@ describe('Ip Details', () => {
);
- // Why => https://github.com/apollographql/react-apollo/issues/1711
- await new Promise(resolve => setTimeout(resolve));
- wrapper.update();
expect(
wrapper
.find('[data-test-subj="ip-details-headline"] [data-test-subj="header-page-title"]')
diff --git a/x-pack/legacy/plugins/siem/public/pages/network/network.test.tsx b/x-pack/legacy/plugins/siem/public/pages/network/network.test.tsx
index 797fef1586518..5938203fe372c 100644
--- a/x-pack/legacy/plugins/siem/public/pages/network/network.test.tsx
+++ b/x-pack/legacy/plugins/siem/public/pages/network/network.test.tsx
@@ -8,7 +8,7 @@ import { mount } from 'enzyme';
import { cloneDeep } from 'lodash/fp';
import React from 'react';
import { Router } from 'react-router-dom';
-import { MockedProvider } from 'react-apollo/test-utils';
+import { MockedProvider, MockedResponse } from '@apollo/react-testing';
import '../../mock/match_media';
import { Filter } from '../../../../../../../src/plugins/data/common/es_query';
@@ -28,8 +28,7 @@ jest.mock('../../components/query_bar', () => ({
QueryBar: () => null,
}));
-let localSource: Array<{
- request: {};
+interface LocalSoure extends MockedResponse {
result: {
data: {
source: {
@@ -39,7 +38,9 @@ let localSource: Array<{
};
};
};
-}>;
+}
+
+let localSource: LocalSoure[];
type Action = 'PUSH' | 'POP' | 'REPLACE';
const pop: Action = 'POP';
diff --git a/x-pack/legacy/plugins/siem/public/pages/overview/overview.test.tsx b/x-pack/legacy/plugins/siem/public/pages/overview/overview.test.tsx
index b20cd84295566..0f96ecbaecea4 100644
--- a/x-pack/legacy/plugins/siem/public/pages/overview/overview.test.tsx
+++ b/x-pack/legacy/plugins/siem/public/pages/overview/overview.test.tsx
@@ -7,7 +7,7 @@
import { mount } from 'enzyme';
import { cloneDeep } from 'lodash/fp';
import React from 'react';
-import { MockedProvider } from 'react-apollo/test-utils';
+import { MockedProvider, MockedResponse } from '@apollo/react-testing';
import { MemoryRouter } from 'react-router-dom';
import '../../mock/match_media';
@@ -33,8 +33,7 @@ jest.mock('../../components/query_bar', () => ({
QueryBar: () => null,
}));
-let localSource: Array<{
- request: {};
+interface LocalSoure extends MockedResponse {
result: {
data: {
source: {
@@ -44,7 +43,9 @@ let localSource: Array<{
};
};
};
-}>;
+}
+
+let localSource: LocalSoure[];
describe('Overview', () => {
describe('rendering', () => {
diff --git a/x-pack/legacy/plugins/siem/public/pages/timelines/index.tsx b/x-pack/legacy/plugins/siem/public/pages/timelines/index.tsx
index aa5c891de3628..ab356329bab35 100644
--- a/x-pack/legacy/plugins/siem/public/pages/timelines/index.tsx
+++ b/x-pack/legacy/plugins/siem/public/pages/timelines/index.tsx
@@ -4,13 +4,10 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import React from 'react';
-import { ApolloConsumer } from 'react-apollo';
+import { withApollo } from 'react-apollo';
import { TimelinesPage } from './timelines_page';
-export const Timelines = React.memo(() => (
- {client => }
-));
+export const Timelines = withApollo<{}>(TimelinesPage);
Timelines.displayName = 'Timelines';
diff --git a/x-pack/legacy/plugins/siem/public/pages/timelines/timelines_page.tsx b/x-pack/legacy/plugins/siem/public/pages/timelines/timelines_page.tsx
index 86f702a8ad8a4..badfb39fe1e20 100644
--- a/x-pack/legacy/plugins/siem/public/pages/timelines/timelines_page.tsx
+++ b/x-pack/legacy/plugins/siem/public/pages/timelines/timelines_page.tsx
@@ -19,21 +19,21 @@ const TimelinesContainer = styled.div`
`;
interface TimelinesProps {
- apolloClient: ApolloClient;
+ client: ApolloClient;
}
type OwnProps = TimelinesProps;
export const DEFAULT_SEARCH_RESULTS_PER_PAGE = 10;
-const TimelinesPageComponent: React.FC = ({ apolloClient }) => (
+const TimelinesPageComponent: React.FC = ({ client }) => (
<>
{
kind: 'IntValue',
value: '1514782800000',
};
- const date = dateScalar.parseLiteral(valueNode);
+ const date = dateScalar.parseLiteral(valueNode, {});
expect(date).toEqual(1514782800000);
});
@@ -47,7 +47,7 @@ describe('Test ScalarDate Resolver', () => {
kind: 'StringValue',
value: '2018-01-01T05:00:00.000Z',
};
- const date = dateScalar.parseLiteral(valueNode);
+ const date = dateScalar.parseLiteral(valueNode, {});
expect(date).toEqual('2018-01-01T05:00:00.000Z');
});
});
diff --git a/x-pack/legacy/plugins/siem/server/lib/compose/kibana.ts b/x-pack/legacy/plugins/siem/server/lib/compose/kibana.ts
index 9c46f3320e37e..48a7ee440ec42 100644
--- a/x-pack/legacy/plugins/siem/server/lib/compose/kibana.ts
+++ b/x-pack/legacy/plugins/siem/server/lib/compose/kibana.ts
@@ -32,12 +32,8 @@ import { PinnedEvent } from '../pinned_event/saved_object';
import { Timeline } from '../timeline/saved_object';
import { ElasticsearchMatrixHistogramAdapter, MatrixHistogram } from '../matrix_histogram';
-export function compose(
- core: CoreSetup,
- plugins: SetupPlugins,
- isProductionMode: boolean
-): AppBackendLibs {
- const framework = new KibanaBackendFrameworkAdapter(core, plugins, isProductionMode);
+export function compose(core: CoreSetup, plugins: SetupPlugins): AppBackendLibs {
+ const framework = new KibanaBackendFrameworkAdapter(core, plugins);
const sources = new Sources(new ConfigurationSourcesAdapter());
const sourceStatus = new SourceStatus(new ElasticsearchSourceStatusAdapter(framework));
diff --git a/x-pack/legacy/plugins/siem/server/lib/framework/kibana_framework_adapter.ts b/x-pack/legacy/plugins/siem/server/lib/framework/kibana_framework_adapter.ts
index 4cce0b0999257..f5bfe478bb64d 100644
--- a/x-pack/legacy/plugins/siem/server/lib/framework/kibana_framework_adapter.ts
+++ b/x-pack/legacy/plugins/siem/server/lib/framework/kibana_framework_adapter.ts
@@ -4,9 +4,8 @@
* you may not use this file except in compliance with the Elastic License.
*/
-import * as GraphiQL from 'apollo-server-module-graphiql';
import { GraphQLSchema } from 'graphql';
-import { runHttpQuery } from 'apollo-server-core';
+import { runHttpQuery, HttpQueryRequest } from 'apollo-server-core';
import { schema as configSchema } from '@kbn/config-schema';
import {
IRouter,
@@ -29,7 +28,7 @@ export class KibanaBackendFrameworkAdapter implements FrameworkAdapter {
private router: IRouter;
private security: SetupPlugins['security'];
- constructor(core: CoreSetup, plugins: SetupPlugins, private isProductionMode: boolean) {
+ constructor(core: CoreSetup, plugins: SetupPlugins) {
this.router = core.http.createRouter();
this.security = plugins.security;
}
@@ -75,10 +74,18 @@ export class KibanaBackendFrameworkAdapter implements FrameworkAdapter {
schema,
}),
query: request.body,
+ request: (request as unknown) as HttpQueryRequest['request'],
});
+ // https://github.com/apollographql/apollo-server/blob/master/packages/apollo-server-core/src/runHttpQuery.ts#L46
+ const parsedResponse = JSON.parse(gqlResponse.graphqlResponse);
+
return response.ok({
- body: gqlResponse,
+ body: {
+ errors: parsedResponse.errors,
+ data: parsedResponse.data,
+ extensions: parsedResponse.extensions,
+ },
headers: {
'content-type': 'application/json',
},
@@ -88,35 +95,6 @@ export class KibanaBackendFrameworkAdapter implements FrameworkAdapter {
}
}
);
-
- if (!this.isProductionMode) {
- this.router.get(
- {
- path: `${routePath}/graphiql`,
- validate: false,
- options: {
- tags: ['access:siem'],
- },
- },
- async (context, request, response) => {
- const graphiqlString = await GraphiQL.resolveGraphiQLString(
- request.query,
- {
- endpointURL: routePath,
- passHeader: "'kbn-xsrf': 'graphiql'",
- },
- request
- );
-
- return response.ok({
- body: graphiqlString,
- headers: {
- 'content-type': 'text/html',
- },
- });
- }
- );
- }
}
private async getCurrentUserInfo(request: KibanaRequest): Promise {
diff --git a/x-pack/legacy/plugins/siem/server/plugin.ts b/x-pack/legacy/plugins/siem/server/plugin.ts
index 6f28fd7d67bd0..e166e70b7aec0 100644
--- a/x-pack/legacy/plugins/siem/server/plugin.ts
+++ b/x-pack/legacy/plugins/siem/server/plugin.ts
@@ -146,7 +146,7 @@ export class Plugin {
}
}
- const libs = compose(core, plugins, this.context.env.mode.prod);
+ const libs = compose(core, plugins);
initServer(libs);
}
diff --git a/x-pack/legacy/plugins/uptime/public/components/higher_order/uptime_graphql_query.tsx b/x-pack/legacy/plugins/uptime/public/components/higher_order/uptime_graphql_query.tsx
index 6839050cec7a8..956db6b45bac3 100644
--- a/x-pack/legacy/plugins/uptime/public/components/higher_order/uptime_graphql_query.tsx
+++ b/x-pack/legacy/plugins/uptime/public/components/higher_order/uptime_graphql_query.tsx
@@ -7,7 +7,7 @@
import { OperationVariables } from 'apollo-client';
import { GraphQLError } from 'graphql';
import React, { Fragment, useContext, useEffect, useState } from 'react';
-import { withApollo, WithApolloClient } from 'react-apollo';
+import { withApollo } from 'react-apollo';
import { formatUptimeGraphQLErrorList } from '../../lib/helper/format_error_list';
import { UptimeRefreshContext } from '../../contexts';
@@ -32,9 +32,9 @@ interface UptimeGraphQLProps {
* @param query - the graphQL query
*/
export function withUptimeGraphQL(WrappedComponent: any, query: any) {
- type Props = UptimeGraphQLProps & WithApolloClient & P;
+ type Props = UptimeGraphQLProps & P;
- return withApollo((props: Props) => {
+ return withApollo(props => {
const { lastRefresh } = useContext(UptimeRefreshContext);
const [loading, setLoading] = useState(true);
const [data, setData] = useState(undefined);
diff --git a/x-pack/package.json b/x-pack/package.json
index 96e06dd71b3fe..a700ebbd2ca9d 100644
--- a/x-pack/package.json
+++ b/x-pack/package.json
@@ -62,7 +62,6 @@
"@types/getos": "^3.0.0",
"@types/git-url-parse": "^9.0.0",
"@types/glob": "^7.1.1",
- "@types/graphql": "^0.13.2",
"@types/gulp": "^4.0.6",
"@types/hapi__wreck": "^15.0.1",
"@types/hoist-non-react-statics": "^3.3.1",
@@ -104,9 +103,11 @@
"@types/tinycolor2": "^1.4.1",
"@types/use-resize-observer": "^6.0.0",
"@types/uuid": "^3.4.4",
+ "@types/yargs": "^15.0.0",
"@types/xml-crypto": "^1.4.0",
"@types/xml2js": "^0.4.5",
"@welldone-software/why-did-you-render": "^4.0.0",
+ "@apollo/react-testing": "^3.1.3",
"abab": "^1.0.4",
"axios": "^0.19.0",
"babel-jest": "^24.9.0",
@@ -190,7 +191,7 @@
"@kbn/interpreter": "1.0.0",
"@kbn/storybook": "1.0.0",
"@kbn/ui-framework": "1.0.0",
- "@mapbox/mapbox-gl-draw": "^1.1.1",
+ "@mapbox/mapbox-gl-draw": "^1.1.2",
"@mapbox/mapbox-gl-rtl-text": "0.2.3",
"@scant/router": "^0.1.0",
"@slack/webhook": "^5.0.0",
@@ -199,15 +200,16 @@
"angular-resource": "1.7.9",
"angular-sanitize": "1.7.9",
"angular-ui-ace": "0.2.3",
- "apollo-cache-inmemory": "1.6.2",
- "apollo-client": "^2.3.8",
- "apollo-link": "^1.2.3",
- "apollo-link-error": "^1.1.7",
+ "apollo-cache": "^1.3.4",
+ "apollo-cache-inmemory": "^1.6.5",
+ "apollo-client": "^2.6.8",
+ "apollo-link": "^1.2.13",
+ "apollo-link-error": "^1.1.12",
"apollo-link-http": "^1.5.16",
- "apollo-link-schema": "^1.1.0",
- "apollo-link-state": "^0.4.1",
- "apollo-server-errors": "^2.0.2",
- "apollo-server-hapi": "^1.3.6",
+ "apollo-link-state": "^0.4.2",
+ "apollo-server-core": "^2.10.1",
+ "apollo-server-errors": "^2.3.4",
+ "apollo-utilities": "^1.3.3",
"archiver": "3.1.1",
"axios": "^0.19.0",
"bluebird": "3.5.5",
@@ -241,10 +243,9 @@
"git-url-parse": "11.1.2",
"github-markdown-css": "^2.10.0",
"glob": "^7.1.2",
- "graphql": "^0.13.2",
- "graphql-fields": "^1.0.2",
- "graphql-tag": "^2.9.2",
- "graphql-tools": "^3.0.2",
+ "graphql": "^14.6.0",
+ "graphql-tag": "^2.10.3",
+ "graphql-tools": "^4.0.7",
"h2o2": "^8.1.2",
"handlebars": "4.5.3",
"history": "4.9.0",
@@ -299,7 +300,7 @@
"raw-loader": "3.1.0",
"re-resizable": "^6.1.1",
"react": "^16.12.0",
- "react-apollo": "^2.1.4",
+ "react-apollo": "^3.1.3",
"react-beautiful-dnd": "^8.0.7",
"react-datetime": "^2.14.0",
"react-dom": "^16.12.0",
@@ -311,7 +312,7 @@
"react-redux": "^7.1.3",
"react-reverse-portal": "^1.0.4",
"react-router-dom": "^5.1.2",
- "react-shortcuts": "^2.0.0",
+ "react-shortcuts": "^2.1.0",
"react-sticky": "^6.0.3",
"react-syntax-highlighter": "^5.7.0",
"react-tiny-virtual-list": "^2.2.0",
diff --git a/x-pack/plugins/infra/server/lib/adapters/framework/kibana_framework_adapter.ts b/x-pack/plugins/infra/server/lib/adapters/framework/kibana_framework_adapter.ts
index 7c12e23d7e903..71a6cfb36b2d7 100644
--- a/x-pack/plugins/infra/server/lib/adapters/framework/kibana_framework_adapter.ts
+++ b/x-pack/plugins/infra/server/lib/adapters/framework/kibana_framework_adapter.ts
@@ -8,7 +8,7 @@
import { GraphQLSchema } from 'graphql';
import { Legacy } from 'kibana';
-import { runHttpQuery } from 'apollo-server-core';
+import { runHttpQuery, HttpQueryRequest } from 'apollo-server-core';
import { schema, TypeOf } from '@kbn/config-schema';
import {
InfraRouteConfig,
@@ -106,10 +106,18 @@ export class KibanaFramework {
schema: gqlSchema,
}),
query,
+ request: (request as unknown) as HttpQueryRequest['request'],
});
+ // https://github.com/apollographql/apollo-server/blob/master/packages/apollo-server-core/src/runHttpQuery.ts#L46
+ const parsedResponse = JSON.parse(gqlResponse.graphqlResponse);
+
return response.ok({
- body: gqlResponse,
+ body: {
+ errors: parsedResponse.errors,
+ data: parsedResponse.data,
+ extensions: parsedResponse.extensions,
+ },
headers: {
'content-type': 'application/json',
},
diff --git a/x-pack/plugins/infra/types/graphql_fields.d.ts b/x-pack/plugins/infra/types/graphql_fields.d.ts
deleted file mode 100644
index 5e5320a31b3bf..0000000000000
--- a/x-pack/plugins/infra/types/graphql_fields.d.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-/*
- * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
- * or more contributor license agreements. Licensed under the Elastic License;
- * you may not use this file except in compliance with the Elastic License.
- */
-
-declare module 'graphql-fields' {
- function graphqlFields(info: any, obj?: any): any;
- // eslint-disable-next-line import/no-default-export
- export default graphqlFields;
-}
diff --git a/x-pack/plugins/uptime/server/lib/adapters/framework/kibana_framework_adapter.ts b/x-pack/plugins/uptime/server/lib/adapters/framework/kibana_framework_adapter.ts
index 7ac3db9d0f3d7..02b2c75067a8e 100644
--- a/x-pack/plugins/uptime/server/lib/adapters/framework/kibana_framework_adapter.ts
+++ b/x-pack/plugins/uptime/server/lib/adapters/framework/kibana_framework_adapter.ts
@@ -6,7 +6,7 @@
import { GraphQLSchema } from 'graphql';
import { schema as kbnSchema } from '@kbn/config-schema';
-import { runHttpQuery } from 'apollo-server-core';
+import { runHttpQuery, HttpQueryRequest } from 'apollo-server-core';
import { UptimeCoreSetup } from './adapter_types';
import { UMBackendFrameworkAdapter } from './adapter_types';
import { UMKibanaRoute } from '../../../rest_api';
@@ -76,10 +76,18 @@ export class UMKibanaBackendFrameworkAdapter implements UMBackendFrameworkAdapte
method: 'POST',
options: options.graphQLOptions,
query,
+ request: (request as unknown) as HttpQueryRequest['request'],
});
+ // https://github.com/apollographql/apollo-server/blob/master/packages/apollo-server-core/src/runHttpQuery.ts#L46
+ const parsedResponse = JSON.parse(graphQLResponse.graphqlResponse);
+
return resp.ok({
- body: graphQLResponse,
+ body: {
+ errors: parsedResponse.errors,
+ data: parsedResponse.data,
+ extensions: parsedResponse.extensions,
+ },
headers: {
'content-type': 'application/json',
},
diff --git a/yarn.lock b/yarn.lock
index 7f38495c20f4a..7a03ee982be93 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -2,6 +2,95 @@
# yarn lockfile v1
+"@apollo/protobufjs@^1.0.3":
+ version "1.0.3"
+ resolved "https://registry.yarnpkg.com/@apollo/protobufjs/-/protobufjs-1.0.3.tgz#02c655aedd4ba7c7f64cbc3d2b1dd9a000a391ba"
+ integrity sha512-gqeT810Ect9WIqsrgfUvr+ljSB5m1PyBae9HGdrRyQ3HjHjTcjVvxpsMYXlUk4rUHnrfUqyoGvLSy2yLlRGEOw==
+ dependencies:
+ "@protobufjs/aspromise" "^1.1.2"
+ "@protobufjs/base64" "^1.1.2"
+ "@protobufjs/codegen" "^2.0.4"
+ "@protobufjs/eventemitter" "^1.1.0"
+ "@protobufjs/fetch" "^1.1.0"
+ "@protobufjs/float" "^1.0.2"
+ "@protobufjs/inquire" "^1.1.0"
+ "@protobufjs/path" "^1.1.2"
+ "@protobufjs/pool" "^1.1.0"
+ "@protobufjs/utf8" "^1.1.0"
+ "@types/long" "^4.0.0"
+ "@types/node" "^10.1.0"
+ long "^4.0.0"
+
+"@apollo/react-common@^3.1.3":
+ version "3.1.3"
+ resolved "https://registry.yarnpkg.com/@apollo/react-common/-/react-common-3.1.3.tgz#ddc34f6403f55d47c0da147fd4756dfd7c73dac5"
+ integrity sha512-Q7ZjDOeqjJf/AOGxUMdGxKF+JVClRXrYBGVq+SuVFqANRpd68MxtVV2OjCWavsFAN0eqYnRqRUrl7vtUCiJqeg==
+ dependencies:
+ ts-invariant "^0.4.4"
+ tslib "^1.10.0"
+
+"@apollo/react-components@^3.1.3":
+ version "3.1.3"
+ resolved "https://registry.yarnpkg.com/@apollo/react-components/-/react-components-3.1.3.tgz#8f6726847cd9b0eb4b22586b1a038d29aa8b1da4"
+ integrity sha512-H0l2JKDQMz+LkM93QK7j3ThbNXkWQCduN3s3eKxFN3Rdg7rXsrikJWvx2wQ868jmqy0VhwJbS1vYdRLdh114uQ==
+ dependencies:
+ "@apollo/react-common" "^3.1.3"
+ "@apollo/react-hooks" "^3.1.3"
+ prop-types "^15.7.2"
+ ts-invariant "^0.4.4"
+ tslib "^1.10.0"
+
+"@apollo/react-hoc@^3.1.3":
+ version "3.1.3"
+ resolved "https://registry.yarnpkg.com/@apollo/react-hoc/-/react-hoc-3.1.3.tgz#5742ee74f57611058f5ea1f966c38fc6429dda7b"
+ integrity sha512-oCPma0uBVPTcYTR5sOvtMbpaWll4xDBvYfKr6YkDorUcQVeNzFu1LK1kmQjJP64bKsaziKYji5ibFaeCnVptmA==
+ dependencies:
+ "@apollo/react-common" "^3.1.3"
+ "@apollo/react-components" "^3.1.3"
+ hoist-non-react-statics "^3.3.0"
+ ts-invariant "^0.4.4"
+ tslib "^1.10.0"
+
+"@apollo/react-hooks@^3.1.3":
+ version "3.1.3"
+ resolved "https://registry.yarnpkg.com/@apollo/react-hooks/-/react-hooks-3.1.3.tgz#ad42c7af78e81fee0f30e53242640410d5bd0293"
+ integrity sha512-reIRO9xKdfi+B4gT/o/hnXuopUnm7WED/ru8VQydPw+C/KG/05Ssg1ZdxFKHa3oxwiTUIDnevtccIH35POanbA==
+ dependencies:
+ "@apollo/react-common" "^3.1.3"
+ "@wry/equality" "^0.1.9"
+ ts-invariant "^0.4.4"
+ tslib "^1.10.0"
+
+"@apollo/react-ssr@^3.1.3":
+ version "3.1.3"
+ resolved "https://registry.yarnpkg.com/@apollo/react-ssr/-/react-ssr-3.1.3.tgz#0791280d5b735f42f87dbfe849564e78843045bc"
+ integrity sha512-fUTmEYHxSTX1GA43B8vICxXXplpcEBnDwn0IgdAc3eG0p2YK97ZrJDRFCJ5vD7fyDZsrYhMf+rAI3sd+H2SS+A==
+ dependencies:
+ "@apollo/react-common" "^3.1.3"
+ "@apollo/react-hooks" "^3.1.3"
+ tslib "^1.10.0"
+
+"@apollo/react-testing@^3.1.3":
+ version "3.1.3"
+ resolved "https://registry.yarnpkg.com/@apollo/react-testing/-/react-testing-3.1.3.tgz#d8dd318f58fb6a404976bfa3f8a79e976a5c6562"
+ integrity sha512-58R7gROl4TZMHm5kS76Nof9FfZhD703AU3SmJTA2f7naiMqC9Qd8pZ4oNCBafcab0SYN//UtWvLcluK5O7V/9g==
+ dependencies:
+ "@apollo/react-common" "^3.1.3"
+ fast-json-stable-stringify "^2.0.0"
+ tslib "^1.10.0"
+
+"@apollographql/apollo-tools@^0.4.3":
+ version "0.4.3"
+ resolved "https://registry.yarnpkg.com/@apollographql/apollo-tools/-/apollo-tools-0.4.3.tgz#938a50aea0935973a75155a73417f2f6fc7ac2ef"
+ integrity sha512-CtC1bmohB1owdGMT2ZZKacI94LcPAZDN2WvCe+4ZXT5d7xO5PHOAb70EP/LcFbvnS8QI+pkYRSCGFQnUcv9efg==
+ dependencies:
+ apollo-env "^0.6.1"
+
+"@apollographql/graphql-playground-html@1.6.24":
+ version "1.6.24"
+ resolved "https://registry.yarnpkg.com/@apollographql/graphql-playground-html/-/graphql-playground-html-1.6.24.tgz#3ce939cb127fb8aaa3ffc1e90dff9b8af9f2e3dc"
+ integrity sha512-8GqG48m1XqyXh4mIZrtB5xOhUwSsh1WsrrsaZQOEYYql3YN9DEu9OOSg0ILzXHZo/h2Q74777YE4YzlArQzQEQ==
+
"@babel/cli@^7.5.5":
version "7.5.5"
resolved "https://registry.yarnpkg.com/@babel/cli/-/cli-7.5.5.tgz#bdb6d9169e93e241a08f5f7b0265195bf38ef5ec"
@@ -2721,10 +2810,10 @@
resolved "https://registry.yarnpkg.com/@mapbox/jsonlint-lines-primitives/-/jsonlint-lines-primitives-2.0.2.tgz#ce56e539f83552b58d10d672ea4d6fc9adc7b234"
integrity sha1-zlblOfg1UrWNENZy6k1vya3HsjQ=
-"@mapbox/mapbox-gl-draw@^1.1.1":
- version "1.1.1"
- resolved "https://registry.yarnpkg.com/@mapbox/mapbox-gl-draw/-/mapbox-gl-draw-1.1.1.tgz#b88a7919c8de04eb7946885e747e22049c3a3138"
- integrity sha512-Xg+R0VUXKdXC7MaSSMiWfz96eLssJZa28/D6MxK/Xc19G5HvU6w/wytm8EeI28T7Sa2C7FII/0/XOwuAfJgDJw==
+"@mapbox/mapbox-gl-draw@^1.1.2":
+ version "1.1.2"
+ resolved "https://registry.yarnpkg.com/@mapbox/mapbox-gl-draw/-/mapbox-gl-draw-1.1.2.tgz#247b3f0727db34c2641ab718df5eebeee69a2585"
+ integrity sha512-DWtATUAnJaGZYoH/y2O+QTRybxrp5y3w3eV5FXHFNVcKsCAojKEMB8ALKUG2IsiCKqV/JCAguK9AlPWR7Bjafw==
dependencies:
"@mapbox/geojson-area" "^0.2.1"
"@mapbox/geojson-extent" "^0.3.2"
@@ -3054,6 +3143,59 @@
retry-axios "^1.0.1"
winston "^2.0.0"
+"@protobufjs/aspromise@^1.1.1", "@protobufjs/aspromise@^1.1.2":
+ version "1.1.2"
+ resolved "https://registry.yarnpkg.com/@protobufjs/aspromise/-/aspromise-1.1.2.tgz#9b8b0cc663d669a7d8f6f5d0893a14d348f30fbf"
+ integrity sha1-m4sMxmPWaafY9vXQiToU00jzD78=
+
+"@protobufjs/base64@^1.1.2":
+ version "1.1.2"
+ resolved "https://registry.yarnpkg.com/@protobufjs/base64/-/base64-1.1.2.tgz#4c85730e59b9a1f1f349047dbf24296034bb2735"
+ integrity sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==
+
+"@protobufjs/codegen@^2.0.4":
+ version "2.0.4"
+ resolved "https://registry.yarnpkg.com/@protobufjs/codegen/-/codegen-2.0.4.tgz#7ef37f0d010fb028ad1ad59722e506d9262815cb"
+ integrity sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==
+
+"@protobufjs/eventemitter@^1.1.0":
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz#355cbc98bafad5978f9ed095f397621f1d066b70"
+ integrity sha1-NVy8mLr61ZePntCV85diHx0Ga3A=
+
+"@protobufjs/fetch@^1.1.0":
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/@protobufjs/fetch/-/fetch-1.1.0.tgz#ba99fb598614af65700c1619ff06d454b0d84c45"
+ integrity sha1-upn7WYYUr2VwDBYZ/wbUVLDYTEU=
+ dependencies:
+ "@protobufjs/aspromise" "^1.1.1"
+ "@protobufjs/inquire" "^1.1.0"
+
+"@protobufjs/float@^1.0.2":
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/@protobufjs/float/-/float-1.0.2.tgz#5e9e1abdcb73fc0a7cb8b291df78c8cbd97b87d1"
+ integrity sha1-Xp4avctz/Ap8uLKR33jIy9l7h9E=
+
+"@protobufjs/inquire@^1.1.0":
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/@protobufjs/inquire/-/inquire-1.1.0.tgz#ff200e3e7cf2429e2dcafc1140828e8cc638f089"
+ integrity sha1-/yAOPnzyQp4tyvwRQIKOjMY48Ik=
+
+"@protobufjs/path@^1.1.2":
+ version "1.1.2"
+ resolved "https://registry.yarnpkg.com/@protobufjs/path/-/path-1.1.2.tgz#6cc2b20c5c9ad6ad0dccfd21ca7673d8d7fbf68d"
+ integrity sha1-bMKyDFya1q0NzP0hynZz2Nf79o0=
+
+"@protobufjs/pool@^1.1.0":
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/@protobufjs/pool/-/pool-1.1.0.tgz#09fd15f2d6d3abfa9b65bc366506d6ad7846ff54"
+ integrity sha1-Cf0V8tbTq/qbZbw2ZQbWrXhG/1Q=
+
+"@protobufjs/utf8@^1.1.0":
+ version "1.1.0"
+ resolved "https://registry.yarnpkg.com/@protobufjs/utf8/-/utf8-1.1.0.tgz#a777360b5b39a1a2e5106f8e858f2fd2d060c570"
+ integrity sha1-p3c2C1s5oaLlEG+OhY8v0tBgxXA=
+
"@reach/router@^1.2.1":
version "1.2.1"
resolved "https://registry.yarnpkg.com/@reach/router/-/router-1.2.1.tgz#34ae3541a5ac44fa7796e5506a5d7274a162be4e"
@@ -4091,6 +4233,13 @@
dependencies:
"@turf/helpers" "6.x"
+"@types/accepts@*":
+ version "1.3.5"
+ resolved "https://registry.yarnpkg.com/@types/accepts/-/accepts-1.3.5.tgz#c34bec115cfc746e04fe5a059df4ce7e7b391575"
+ integrity sha512-jOdnI/3qTpHABjM5cx1Hc0sKsPoYCp+DP/GJRGtDlPd7fiV9oXGGIcjW/ZOxLIvjGz8MA+uMZI9metHlgqbgwQ==
+ dependencies:
+ "@types/node" "*"
+
"@types/angular-mocks@^1.7.0":
version "1.7.0"
resolved "https://registry.yarnpkg.com/@types/angular-mocks/-/angular-mocks-1.7.0.tgz#310d999a3c47c10ecd8eef466b5861df84799429"
@@ -4120,11 +4269,6 @@
resolved "https://registry.yarnpkg.com/@types/argparse/-/argparse-1.0.33.tgz#2728669427cdd74a99e53c9f457ca2866a37c52d"
integrity sha512-VQgHxyPMTj3hIlq9SY1mctqx+Jj8kpQfoLvDlVSDNOyuYs8JYfkuY3OW/4+dO657yPmNhHpePRx0/Tje5ImNVQ==
-"@types/async@2.0.49":
- version "2.0.49"
- resolved "https://registry.yarnpkg.com/@types/async/-/async-2.0.49.tgz#92e33d13f74c895cb9a7f38ba97db8431ed14bc0"
- integrity sha512-Benr3i5odUkvpFkOpzGqrltGdbSs+EVCkEBGXbuR7uT0VzhXKIkhem6PDzHdx5EonA+rfbB3QvP6aDOw5+zp5Q==
-
"@types/babel-types@*", "@types/babel-types@^7.0.0":
version "7.0.4"
resolved "https://registry.yarnpkg.com/@types/babel-types/-/babel-types-7.0.4.tgz#bfd5b0d0d1ba13e351dff65b6e52783b816826c8"
@@ -4210,6 +4354,14 @@
resolved "https://registry.yarnpkg.com/@types/bluebird/-/bluebird-3.5.20.tgz#f6363172add6f4eabb8cada53ca9af2781e8d6a1"
integrity sha512-Wk41MVdF+cHBfVXj/ufUHJeO3BlIQr1McbHZANErMykaCWeDSZbH5erGjNBw2/3UlRdSxZbLfSuQTzFmPOYFsA==
+"@types/body-parser@*":
+ version "1.19.0"
+ resolved "https://registry.yarnpkg.com/@types/body-parser/-/body-parser-1.19.0.tgz#0685b3c47eb3006ffed117cdd55164b61f80538f"
+ integrity sha512-W98JrE0j2K78swW4ukqMleo8R7h/pFETjM2DQ90MF6XK2i4LO4W3gQ71Lt4w3bfm2EvVSyWHplECvB5sK22yFQ==
+ dependencies:
+ "@types/connect" "*"
+ "@types/node" "*"
+
"@types/boom@*", "@types/boom@^7.2.0":
version "7.2.0"
resolved "https://registry.yarnpkg.com/@types/boom/-/boom-7.2.0.tgz#19c36cbb5811a7493f0f2e37f31d42b28df1abc1"
@@ -4291,11 +4443,28 @@
dependencies:
"@types/color-convert" "*"
+"@types/connect@*":
+ version "3.4.33"
+ resolved "https://registry.yarnpkg.com/@types/connect/-/connect-3.4.33.tgz#31610c901eca573b8713c3330abc6e6b9f588546"
+ integrity sha512-2+FrkXY4zllzTNfJth7jOqEHC+enpLeGslEhpnTAkg21GkRrWV4SsAtqchtT4YS9/nODBU2/ZfsBY2X4J/dX7A==
+ dependencies:
+ "@types/node" "*"
+
"@types/cookiejar@*":
version "2.1.0"
resolved "https://registry.yarnpkg.com/@types/cookiejar/-/cookiejar-2.1.0.tgz#4b7daf2c51696cfc70b942c11690528229d1a1ce"
integrity sha512-EIjmpvnHj+T4nMcKwHwxZKUfDmphIKJc2qnEMhSoOvr1lYEQpuRKRz8orWr//krYIIArS/KGGLfL2YGVUYXmIA==
+"@types/cookies@*":
+ version "0.7.4"
+ resolved "https://registry.yarnpkg.com/@types/cookies/-/cookies-0.7.4.tgz#26dedf791701abc0e36b5b79a5722f40e455f87b"
+ integrity sha512-oTGtMzZZAVuEjTwCjIh8T8FrC8n/uwy+PG0yTvQcdZ7etoel7C7/3MSd7qrukENTgQtotG7gvBlBojuVs7X5rw==
+ dependencies:
+ "@types/connect" "*"
+ "@types/express" "*"
+ "@types/keygrip" "*"
+ "@types/node" "*"
+
"@types/cp-file@*":
version "4.2.0"
resolved "https://registry.yarnpkg.com/@types/cp-file/-/cp-file-4.2.0.tgz#2b12186b50dad407b11021284627bdf4adb87a87"
@@ -4409,6 +4578,23 @@
resolved "https://registry.yarnpkg.com/@types/events/-/events-1.2.0.tgz#81a6731ce4df43619e5c8c945383b3e62a89ea86"
integrity sha512-KEIlhXnIutzKwRbQkGWb/I4HFqBuUykAdHgDED6xqwXJfONCjF5VoE0cXEiurh3XauygxzeDzgtXUqvLkxFzzA==
+"@types/express-serve-static-core@*":
+ version "4.17.2"
+ resolved "https://registry.yarnpkg.com/@types/express-serve-static-core/-/express-serve-static-core-4.17.2.tgz#f6f41fa35d42e79dbf6610eccbb2637e6008a0cf"
+ integrity sha512-El9yMpctM6tORDAiBwZVLMcxoTMcqqRO9dVyYcn7ycLWbvR8klrDn8CAOwRfZujZtWD7yS/mshTdz43jMOejbg==
+ dependencies:
+ "@types/node" "*"
+ "@types/range-parser" "*"
+
+"@types/express@*":
+ version "4.17.2"
+ resolved "https://registry.yarnpkg.com/@types/express/-/express-4.17.2.tgz#a0fb7a23d8855bac31bc01d5a58cadd9b2173e6c"
+ integrity sha512-5mHFNyavtLoJmnusB8OKJ5bshSzw+qkMIBAobLrIM48HJvunFva9mOa6aBwh64lBFyNwBbs0xiEFuj4eU/NjCA==
+ dependencies:
+ "@types/body-parser" "*"
+ "@types/express-serve-static-core" "*"
+ "@types/serve-static" "*"
+
"@types/fancy-log@^1.3.1":
version "1.3.1"
resolved "https://registry.yarnpkg.com/@types/fancy-log/-/fancy-log-1.3.1.tgz#dd94fbc8c2e2ab8ab402ca8d04bb8c34965f0696"
@@ -4431,6 +4617,13 @@
dependencies:
"@types/jquery" "*"
+"@types/fs-capacitor@*":
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/@types/fs-capacitor/-/fs-capacitor-2.0.0.tgz#17113e25817f584f58100fb7a08eed288b81956e"
+ integrity sha512-FKVPOCFbhCvZxpVAMhdBdTfVfXUpsh15wFHgqOKxh9N9vzWZVuWCSijZ5T4U34XYNnuj2oduh6xcs1i+LPI+BQ==
+ dependencies:
+ "@types/node" "*"
+
"@types/geojson@*":
version "7946.0.7"
resolved "https://registry.yarnpkg.com/@types/geojson/-/geojson-7946.0.7.tgz#c8fa532b60a0042219cdf173ca21a975ef0666ad"
@@ -4499,10 +4692,15 @@
dependencies:
"@types/node" "*"
-"@types/graphql@^0.13.2":
- version "0.13.4"
- resolved "https://registry.yarnpkg.com/@types/graphql/-/graphql-0.13.4.tgz#55ae9c29f0fd6b85ee536f5c72b4769d5c5e06b1"
- integrity sha512-B4yel4ro2nTb3v0pYO8vO6SjgvFJSrwUY+IO6TUSLdOSB+gQFslylrhRCHxvXMIhxB71mv5PEE9dAX+24S8sew==
+"@types/graphql-upload@^8.0.0":
+ version "8.0.3"
+ resolved "https://registry.yarnpkg.com/@types/graphql-upload/-/graphql-upload-8.0.3.tgz#b371edb5f305a2a1f7b7843a890a2a7adc55c3ec"
+ integrity sha512-hmLg9pCU/GmxBscg8GCr1vmSoEmbItNNxdD5YH2TJkXm//8atjwuprB+xJBK714JG1dkxbbhp5RHX+Pz1KsCMA==
+ dependencies:
+ "@types/express" "*"
+ "@types/fs-capacitor" "*"
+ "@types/koa" "*"
+ graphql "^14.5.3"
"@types/gulp@^4.0.6":
version "4.0.6"
@@ -4575,6 +4773,11 @@
"@types/react" "*"
hoist-non-react-statics "^3.3.0"
+"@types/http-assert@*":
+ version "1.5.1"
+ resolved "https://registry.yarnpkg.com/@types/http-assert/-/http-assert-1.5.1.tgz#d775e93630c2469c2f980fc27e3143240335db3b"
+ integrity sha512-PGAK759pxyfXE78NbKxyfRcWYA/KwW17X290cNev/qAsn9eQIxkH4shoNBafH37wewhDG/0p1cHPbK6+SzZjWQ==
+
"@types/indent-string@^3.0.0":
version "3.0.0"
resolved "https://registry.yarnpkg.com/@types/indent-string/-/indent-string-3.0.0.tgz#9ebb391ceda548926f5819ad16405349641b999f"
@@ -4689,6 +4892,30 @@
dependencies:
"@types/node" "*"
+"@types/keygrip@*":
+ version "1.0.2"
+ resolved "https://registry.yarnpkg.com/@types/keygrip/-/keygrip-1.0.2.tgz#513abfd256d7ad0bf1ee1873606317b33b1b2a72"
+ integrity sha512-GJhpTepz2udxGexqos8wgaBx4I/zWIDPh/KOGEwAqtuGDkOUJu5eFvwmdBX4AmB8Odsr+9pHCQqiAqDL/yKMKw==
+
+"@types/koa-compose@*":
+ version "3.2.5"
+ resolved "https://registry.yarnpkg.com/@types/koa-compose/-/koa-compose-3.2.5.tgz#85eb2e80ac50be95f37ccf8c407c09bbe3468e9d"
+ integrity sha512-B8nG/OoE1ORZqCkBVsup/AKcvjdgoHnfi4pZMn5UwAPCbhk/96xyv284eBYW8JlQbQ7zDmnpFr68I/40mFoIBQ==
+ dependencies:
+ "@types/koa" "*"
+
+"@types/koa@*":
+ version "2.11.2"
+ resolved "https://registry.yarnpkg.com/@types/koa/-/koa-2.11.2.tgz#0595656a59ff13ca97edf6dde7da1e5319651f9b"
+ integrity sha512-2UPelagNNW6bnc1I5kIzluCaheXRA9S+NyOdXEFFj9Az7jc15ek5V03kb8OTbb3tdZ5i2BIJObe86PhHvpMolg==
+ dependencies:
+ "@types/accepts" "*"
+ "@types/cookies" "*"
+ "@types/http-assert" "*"
+ "@types/keygrip" "*"
+ "@types/koa-compose" "*"
+ "@types/node" "*"
+
"@types/license-checker@15.0.0":
version "15.0.0"
resolved "https://registry.yarnpkg.com/@types/license-checker/-/license-checker-15.0.0.tgz#685d69e2cf61ffd862320434601f51c85e28bba1"
@@ -4744,6 +4971,11 @@
resolved "https://registry.yarnpkg.com/@types/log-symbols/-/log-symbols-2.0.0.tgz#7919e2ec3c8d13879bfdcab310dd7a3f7fc9466d"
integrity sha512-YJhbp0sz3egFFKl3BcCNPQKzuGFOP4PACcsifhK6ROGnJUW9ViYLuLybQ9GQZm7Zejy3tkGuiXYMq3GiyGkU4g==
+"@types/long@^4.0.0":
+ version "4.0.1"
+ resolved "https://registry.yarnpkg.com/@types/long/-/long-4.0.1.tgz#459c65fa1867dafe6a8f322c4c51695663cc55e9"
+ integrity sha512-5tXH6Bx/kNGd3MgffdmP4dy2Z+G4eaXw0SE81Tq3BNadtnMR5/ySMzX4SLEzHJzSmPNn4HIdpQsBvXMUykr58w==
+
"@types/lru-cache@^5.1.0":
version "5.1.0"
resolved "https://registry.yarnpkg.com/@types/lru-cache/-/lru-cache-5.1.0.tgz#57f228f2b80c046b4a1bd5cac031f81f207f4f03"
@@ -4773,7 +5005,7 @@
resolved "https://registry.yarnpkg.com/@types/mime-db/-/mime-db-1.27.0.tgz#9bc014a1fd1fdf47649c1a54c6dd7966b8284792"
integrity sha1-m8AUof0f30dknBpUxt15ZrgoR5I=
-"@types/mime@^2.0.1":
+"@types/mime@*", "@types/mime@^2.0.1":
version "2.0.1"
resolved "https://registry.yarnpkg.com/@types/mime/-/mime-2.0.1.tgz#dc488842312a7f075149312905b5e3c0b054c79d"
integrity sha512-FwI9gX75FgVBJ7ywgnq/P7tw+/o1GUbtP0KzbtusLigAOgIgNISRK0ZPl4qertvXSIE8YbsVJueQ90cDt9YYyw==
@@ -4826,6 +5058,13 @@
dependencies:
"@types/node" "*"
+"@types/node-fetch@2.5.4":
+ version "2.5.4"
+ resolved "https://registry.yarnpkg.com/@types/node-fetch/-/node-fetch-2.5.4.tgz#5245b6d8841fc3a6208b82291119bc11c4e0ce44"
+ integrity sha512-Oz6id++2qAOFuOlE1j0ouk1dzl3mmI1+qINPNBhi9nt/gVOz0G+13Ao6qjhdF0Ys+eOkhu6JnFmt38bR3H0POQ==
+ dependencies:
+ "@types/node" "*"
+
"@types/node-fetch@^2.5.0":
version "2.5.0"
resolved "https://registry.yarnpkg.com/@types/node-fetch/-/node-fetch-2.5.0.tgz#1c55616a4591bdd15a389fbd0da4a55b9502add5"
@@ -4847,7 +5086,7 @@
dependencies:
"@types/node" "*"
-"@types/node@*", "@types/node@10.12.27", "@types/node@8.10.54", "@types/node@>=8.9.0", "@types/node@^10.12.27", "@types/node@^12.0.2":
+"@types/node@*", "@types/node@10.12.27", "@types/node@8.10.54", "@types/node@>=8.9.0", "@types/node@^10.1.0", "@types/node@^10.12.27", "@types/node@^12.0.2":
version "10.12.27"
resolved "https://registry.yarnpkg.com/@types/node/-/node-10.12.27.tgz#eb3843f15d0ba0986cc7e4d734d2ee8b50709ef8"
integrity sha512-e9wgeY6gaY21on3ve0xAjgBVjGDWq/xUteK0ujsE53bUoxycMkqfnkUgMt6ffZtykZ5X12Mg3T7Pw4TRCObDKg==
@@ -4956,6 +5195,11 @@
resolved "https://registry.yarnpkg.com/@types/q/-/q-1.5.2.tgz#690a1475b84f2a884fd07cd797c00f5f31356ea8"
integrity sha512-ce5d3q03Ex0sy4R14722Rmt6MT07Ua+k4FwDfdcToYJcMKNtRVQvJ6JCAPdAmAnbRb6CsX6aYb9m96NGod9uTw==
+"@types/range-parser@*":
+ version "1.2.3"
+ resolved "https://registry.yarnpkg.com/@types/range-parser/-/range-parser-1.2.3.tgz#7ee330ba7caafb98090bece86a5ee44115904c2c"
+ integrity sha512-ewFXqrQHlFsgc09MK5jP5iR7vumV/BYayNC6PgJO2LPe8vrnNFyjQjSppfEngITi0qvfKtzFvgKymGheFM9UOA==
+
"@types/reach__router@^1.2.3", "@types/reach__router@^1.2.6":
version "1.2.6"
resolved "https://registry.yarnpkg.com/@types/reach__router/-/reach__router-1.2.6.tgz#b14cf1adbd1a365d204bbf6605cd9dd7b8816c87"
@@ -5153,6 +5397,14 @@
resolved "https://registry.yarnpkg.com/@types/semver/-/semver-5.5.0.tgz#146c2a29ee7d3bae4bf2fcb274636e264c813c45"
integrity sha512-41qEJgBH/TWgo5NFSvBCJ1qkoi3Q6ONSF2avrHq1LVEZfYpdHmj0y9SuTK+u9ZhG1sYQKBL1AWXKyLWP4RaUoQ==
+"@types/serve-static@*":
+ version "1.13.3"
+ resolved "https://registry.yarnpkg.com/@types/serve-static/-/serve-static-1.13.3.tgz#eb7e1c41c4468272557e897e9171ded5e2ded9d1"
+ integrity sha512-oprSwp094zOglVrXdlo/4bAHtKTAxX6VT8FOZlBKrmyLbNvE1zxZyJ6yikMVtHIvwP45+ZQGJn+FdXGKTozq0g==
+ dependencies:
+ "@types/express-serve-static-core" "*"
+ "@types/mime" "*"
+
"@types/shot@*":
version "4.0.0"
resolved "https://registry.yarnpkg.com/@types/shot/-/shot-4.0.0.tgz#7545500c489b65c69b5bc5446ba4fef3bd26af92"
@@ -5421,6 +5673,21 @@
resolved "https://registry.yarnpkg.com/@types/write-pkg/-/write-pkg-3.1.0.tgz#f58767f4fb9a6a3ad8e95d3e9cd1f2d026ceab26"
integrity sha512-JRGsPEPCrYqTXU0Cr+Yu7esPBE2yvH7ucOHr+JuBy0F59kglPvO5gkmtyEvf3P6dASSkScvy/XQ6SC1QEBFDuA==
+"@types/ws@^5.1.0":
+ version "5.1.2"
+ resolved "https://registry.yarnpkg.com/@types/ws/-/ws-5.1.2.tgz#f02d3b1cd46db7686734f3ce83bdf46c49decd64"
+ integrity sha512-NkTXUKTYdXdnPE2aUUbGOXE1XfMK527SCvU/9bj86kyFF6kZ9ZnOQ3mK5jADn98Y2vEUD/7wKDgZa7Qst2wYOg==
+ dependencies:
+ "@types/events" "*"
+ "@types/node" "*"
+
+"@types/ws@^6.0.0":
+ version "6.0.4"
+ resolved "https://registry.yarnpkg.com/@types/ws/-/ws-6.0.4.tgz#7797707c8acce8f76d8c34b370d4645b70421ff1"
+ integrity sha512-PpPrX7SZW9re6+Ha8ojZG4Se8AZXgf0GK6zmfqEuCsY49LFDNXO3SByp44X3dFEqtB73lkCDAdUazhAjVPiNwg==
+ dependencies:
+ "@types/node" "*"
+
"@types/xml-crypto@^1.4.0":
version "1.4.0"
resolved "https://registry.yarnpkg.com/@types/xml-crypto/-/xml-crypto-1.4.0.tgz#b586e4819f6bdd0571a3faa9a8098049d5c3cc5a"
@@ -5694,7 +5961,7 @@
"@types/node" "^12.0.2"
tslib "^1.9.3"
-"@wry/equality@^0.1.2":
+"@wry/equality@^0.1.2", "@wry/equality@^0.1.9":
version "0.1.9"
resolved "https://registry.yarnpkg.com/@wry/equality/-/equality-0.1.9.tgz#b13e18b7a8053c6858aa6c85b54911fb31e3a909"
integrity sha512-mB6ceGjpMGz1ZTza8HYnrPGos2mC6So4NhS1PtZ8s4Qt0K7fBiIGhpSxUbQmhwcSWE3no+bYxmI2OL6KuXYmoQ==
@@ -6359,77 +6626,101 @@ anymatch@~3.1.1:
normalize-path "^3.0.0"
picomatch "^2.0.4"
-apollo-cache-control@^0.1.0:
- version "0.1.1"
- resolved "https://registry.yarnpkg.com/apollo-cache-control/-/apollo-cache-control-0.1.1.tgz#173d14ceb3eb9e7cb53de7eb8b61bee6159d4171"
- integrity sha512-XJQs167e9u+e5ybSi51nGYr70NPBbswdvTEHtbtXbwkZ+n9t0SLPvUcoqceayOSwjK1XYOdU/EKPawNdb3rLQA==
+apollo-cache-control@^0.8.11:
+ version "0.8.11"
+ resolved "https://registry.yarnpkg.com/apollo-cache-control/-/apollo-cache-control-0.8.11.tgz#726e4e3c5685bacbf26c8fbba1f41b4e6252c597"
+ integrity sha512-8yz4qbRBIFDWRHdT8uPh0HHh+VbQXxoFGJQRAG8hyMRvR+EuURXX1ltXYkn5J3YJ3MKEqgsvwGaq60dFZq63UQ==
dependencies:
- graphql-extensions "^0.0.x"
+ apollo-server-env "^2.4.3"
+ graphql-extensions "^0.10.10"
-apollo-cache-inmemory@1.6.2:
- version "1.6.2"
- resolved "https://registry.yarnpkg.com/apollo-cache-inmemory/-/apollo-cache-inmemory-1.6.2.tgz#bbf2e4e1eacdf82b2d526f5c2f3b37e5acee3c5e"
- integrity sha512-AyCl3PGFv5Qv1w4N9vlg63GBPHXgMCekZy5mhlS042ji0GW84uTySX+r3F61ZX3+KM1vA4m9hQyctrEGiv5XjQ==
+apollo-cache-inmemory@^1.6.5:
+ version "1.6.5"
+ resolved "https://registry.yarnpkg.com/apollo-cache-inmemory/-/apollo-cache-inmemory-1.6.5.tgz#2ccaa3827686f6ed7fb634203dbf2b8d7015856a"
+ integrity sha512-koB76JUDJaycfejHmrXBbWIN9pRKM0Z9CJGQcBzIOtmte1JhEBSuzsOUu7NQgiXKYI4iGoMREcnaWffsosZynA==
dependencies:
- apollo-cache "^1.3.2"
- apollo-utilities "^1.3.2"
- optimism "^0.9.0"
+ apollo-cache "^1.3.4"
+ apollo-utilities "^1.3.3"
+ optimism "^0.10.0"
ts-invariant "^0.4.0"
- tslib "^1.9.3"
-
-apollo-cache@^1.1.14:
- version "1.1.14"
- resolved "https://registry.yarnpkg.com/apollo-cache/-/apollo-cache-1.1.14.tgz#c7d54cdbc7f544161f78fa5e4bae56650e22f7ad"
- integrity sha512-Zmo9nVqpWFogki2QyulX6Xx6KYXMyYWX74grwgsYYUOukl4pIAdtYyK8e874o0QDgzSOq5AYPXjtfkoVpqhCRw==
- dependencies:
- apollo-utilities "^1.0.18"
+ tslib "^1.10.0"
-apollo-cache@^1.3.2:
- version "1.3.2"
- resolved "https://registry.yarnpkg.com/apollo-cache/-/apollo-cache-1.3.2.tgz#df4dce56240d6c95c613510d7e409f7214e6d26a"
- integrity sha512-+KA685AV5ETEJfjZuviRTEImGA11uNBp/MJGnaCvkgr+BYRrGLruVKBv6WvyFod27WEB2sp7SsG8cNBKANhGLg==
+apollo-cache@1.3.4, apollo-cache@^1.3.4:
+ version "1.3.4"
+ resolved "https://registry.yarnpkg.com/apollo-cache/-/apollo-cache-1.3.4.tgz#0c9f63c793e1cd6e34c450f7668e77aff58c9a42"
+ integrity sha512-7X5aGbqaOWYG+SSkCzJNHTz2ZKDcyRwtmvW4mGVLRqdQs+HxfXS4dUS2CcwrAj449se6tZ6NLUMnjko4KMt3KA==
dependencies:
- apollo-utilities "^1.3.2"
- tslib "^1.9.3"
+ apollo-utilities "^1.3.3"
+ tslib "^1.10.0"
-apollo-client@^2.3.8:
- version "2.3.8"
- resolved "https://registry.yarnpkg.com/apollo-client/-/apollo-client-2.3.8.tgz#0384a7210eb601ab88b1c13750da076fc9255b95"
- integrity sha512-X5wsBD1be1P/mScGsH5H+2hIE8d78WAfqOvFvBpP+C+jzJ9387uHLyFmYYMLRRqDQ3ihjI4iSID7KEOW2gyCcQ==
+apollo-client@^2.6.8:
+ version "2.6.8"
+ resolved "https://registry.yarnpkg.com/apollo-client/-/apollo-client-2.6.8.tgz#01cebc18692abf90c6b3806414e081696b0fa537"
+ integrity sha512-0zvJtAcONiozpa5z5zgou83iEKkBaXhhSSXJebFHRXs100SecDojyUWKjwTtBPn9HbM6o5xrvC5mo9VQ5fgAjw==
dependencies:
"@types/zen-observable" "^0.8.0"
- apollo-cache "^1.1.14"
+ apollo-cache "1.3.4"
apollo-link "^1.0.0"
- apollo-link-dedup "^1.0.0"
- apollo-utilities "^1.0.18"
+ apollo-utilities "1.3.3"
symbol-observable "^1.0.2"
+ ts-invariant "^0.4.0"
+ tslib "^1.10.0"
zen-observable "^0.8.0"
- optionalDependencies:
- "@types/async" "2.0.49"
-apollo-link-dedup@^1.0.0:
- version "1.0.9"
- resolved "https://registry.yarnpkg.com/apollo-link-dedup/-/apollo-link-dedup-1.0.9.tgz#3c4e4af88ef027cbddfdb857c043fd0574051dad"
- integrity sha512-RbuEKpmSHVMtoREMPh2wUFTeh65q+0XPVeqgaOP/rGEAfvLyOMvX0vT2nVaejMohoMxuUnfZwpldXaDFWnlVbg==
+apollo-datasource@^0.7.0:
+ version "0.7.0"
+ resolved "https://registry.yarnpkg.com/apollo-datasource/-/apollo-datasource-0.7.0.tgz#2a6d82edb2eba21b4ddf21877009ba39ff821945"
+ integrity sha512-Yja12BgNQhzuFGG/5Nw2MQe0hkuQy2+9er09HxeEyAf2rUDIPnhPrn1MDoZTB8MU7UGfjwITC+1ofzKkkrZobA==
dependencies:
- apollo-link "^1.2.2"
+ apollo-server-caching "^0.5.1"
+ apollo-server-env "^2.4.3"
-apollo-link-error@^1.1.7:
- version "1.1.10"
- resolved "https://registry.yarnpkg.com/apollo-link-error/-/apollo-link-error-1.1.10.tgz#ce57f0793f0923b598655de5bf5e028d4cf4fba6"
- integrity sha512-itG5UV7mQqaalmRkuRsF0cUS4zW2ja8XCbxkMZnIEeN24X3yoJi5hpJeAaEkXf0KgYNsR0+rmtCQNruWyxDnZQ==
+apollo-engine-reporting-protobuf@^0.4.4:
+ version "0.4.4"
+ resolved "https://registry.yarnpkg.com/apollo-engine-reporting-protobuf/-/apollo-engine-reporting-protobuf-0.4.4.tgz#73a064f8c9f2d6605192d1673729c66ec47d9cb7"
+ integrity sha512-SGrIkUR7Q/VjU8YG98xcvo340C4DaNUhg/TXOtGsMlfiJDzHwVau/Bv6zifAzBafp2lj0XND6Daj5kyT/eSI/w==
dependencies:
- apollo-link "^1.2.11"
- apollo-link-http-common "^0.2.13"
- tslib "^1.9.3"
+ "@apollo/protobufjs" "^1.0.3"
-apollo-link-http-common@^0.2.13:
- version "0.2.13"
- resolved "https://registry.yarnpkg.com/apollo-link-http-common/-/apollo-link-http-common-0.2.13.tgz#c688f6baaffdc7b269b2db7ae89dae7c58b5b350"
- integrity sha512-Uyg1ECQpTTA691Fwx5e6Rc/6CPSu4TB4pQRTGIpwZ4l5JDOQ+812Wvi/e3IInmzOZpwx5YrrOfXrtN8BrsDXoA==
+apollo-engine-reporting@^1.6.0:
+ version "1.6.0"
+ resolved "https://registry.yarnpkg.com/apollo-engine-reporting/-/apollo-engine-reporting-1.6.0.tgz#a5073a2e350ea4c8ce6adb5a5b536028ed165390"
+ integrity sha512-prA17Tp/WYBJdCd4ey1CnGX8d4Xis1n9PsFmT7x8PV/oNpxG21/x3yNw5kPBZuKAoKz8yEggYtHhkYie1ZBjPQ==
+ dependencies:
+ apollo-engine-reporting-protobuf "^0.4.4"
+ apollo-graphql "^0.4.0"
+ apollo-server-caching "^0.5.1"
+ apollo-server-env "^2.4.3"
+ apollo-server-errors "^2.3.4"
+ apollo-server-types "^0.2.10"
+ async-retry "^1.2.1"
+ graphql-extensions "^0.10.10"
+
+apollo-env@^0.6.1:
+ version "0.6.1"
+ resolved "https://registry.yarnpkg.com/apollo-env/-/apollo-env-0.6.1.tgz#12cc869c4276a5f794edf5e5f243676038d4fb07"
+ integrity sha512-B9BgpQGR1ndeDtb4Gtor0J4CITQ+OPACZrVW6lgStnljKEe9ZB76DZ1dAd3OCeizAswW6Lo9uvfK8jhVS5nBhQ==
+ dependencies:
+ "@types/node-fetch" "2.5.4"
+ core-js "^3.0.1"
+ node-fetch "^2.2.0"
+ sha.js "^2.4.11"
+
+apollo-graphql@^0.4.0:
+ version "0.4.0"
+ resolved "https://registry.yarnpkg.com/apollo-graphql/-/apollo-graphql-0.4.0.tgz#dd0afe31a6241b8e2ded20b906c9ee8dfbe03497"
+ integrity sha512-abCHcKln1EGbzSItW087EjBI5wnluikyUqEn4VsdeWHCtdENWpHCn/MnM0+jJa1prNasxN7tCukp4nMpJYYVqg==
+ dependencies:
+ apollo-env "^0.6.1"
+ lodash.sortby "^4.7.0"
+
+apollo-link-error@^1.1.12:
+ version "1.1.12"
+ resolved "https://registry.yarnpkg.com/apollo-link-error/-/apollo-link-error-1.1.12.tgz#e24487bb3c30af0654047611cda87038afbacbf9"
+ integrity sha512-psNmHyuy3valGikt/XHJfe0pKJnRX19tLLs6P6EHRxg+6q6JMXNVLYPaQBkL0FkwdTCB0cbFJAGRYCBviG8TDA==
dependencies:
- apollo-link "^1.2.11"
- ts-invariant "^0.3.2"
+ apollo-link "^1.2.13"
+ apollo-link-http-common "^0.2.15"
tslib "^1.9.3"
apollo-link-http-common@^0.2.15:
@@ -6450,40 +6741,15 @@ apollo-link-http@^1.5.16:
apollo-link-http-common "^0.2.15"
tslib "^1.9.3"
-apollo-link-schema@^1.1.0:
- version "1.1.0"
- resolved "https://registry.yarnpkg.com/apollo-link-schema/-/apollo-link-schema-1.1.0.tgz#033fda26ffdbfc809d04892de554867f50e2af8e"
- integrity sha512-sqWjse5RfrMAhrXecv0WdSLLdF1R5lI4YpbfkioIeJAkB7VB2o+mgA/+onATYKp214MSjloCDWzkvnVpRPFoBw==
- dependencies:
- apollo-link "^1.2.2"
-
-apollo-link-state@^0.4.1:
- version "0.4.1"
- resolved "https://registry.yarnpkg.com/apollo-link-state/-/apollo-link-state-0.4.1.tgz#65e9e0e12c67936b8c4b12b8438434f393104579"
- integrity sha512-69/til4ENfl/Fvf7br2xSsLSBcxcXPbOHVNkzLLejvUZickl93HLO4/fO+uvoBi4dCYRgN17Zr8FwI41ueRx0g==
+apollo-link-state@^0.4.2:
+ version "0.4.2"
+ resolved "https://registry.yarnpkg.com/apollo-link-state/-/apollo-link-state-0.4.2.tgz#ac00e9be9b0ca89eae0be6ba31fe904b80bbe2e8"
+ integrity sha512-xMPcAfuiPVYXaLwC6oJFIZrKgV3GmdO31Ag2eufRoXpvT0AfJZjdaPB4450Nu9TslHRePN9A3quxNueILlQxlw==
dependencies:
apollo-utilities "^1.0.8"
graphql-anywhere "^4.1.0-alpha.0"
-apollo-link@^1.0.0, apollo-link@^1.2.2, apollo-link@^1.2.3:
- version "1.2.3"
- resolved "https://registry.yarnpkg.com/apollo-link/-/apollo-link-1.2.3.tgz#9bd8d5fe1d88d31dc91dae9ecc22474d451fb70d"
- integrity sha512-iL9yS2OfxYhigme5bpTbmRyC+Htt6tyo2fRMHT3K1XRL/C5IQDDz37OjpPy4ndx7WInSvfSZaaOTKFja9VWqSw==
- dependencies:
- apollo-utilities "^1.0.0"
- zen-observable-ts "^0.8.10"
-
-apollo-link@^1.2.11:
- version "1.2.11"
- resolved "https://registry.yarnpkg.com/apollo-link/-/apollo-link-1.2.11.tgz#493293b747ad3237114ccd22e9f559e5e24a194d"
- integrity sha512-PQvRCg13VduLy3X/0L79M6uOpTh5iHdxnxYuo8yL7sJlWybKRJwsv4IcRBJpMFbChOOaHY7Og9wgPo6DLKDKDA==
- dependencies:
- apollo-utilities "^1.2.1"
- ts-invariant "^0.3.2"
- tslib "^1.9.3"
- zen-observable-ts "^0.8.18"
-
-apollo-link@^1.2.13:
+apollo-link@^1.0.0, apollo-link@^1.2.13, apollo-link@^1.2.3:
version "1.2.13"
resolved "https://registry.yarnpkg.com/apollo-link/-/apollo-link-1.2.13.tgz#dff00fbf19dfcd90fddbc14b6a3f9a771acac6c4"
integrity sha512-+iBMcYeevMm1JpYgwDEIDt/y0BB7VWyvlm/7x+TIPNLHCTCMgcEgDuW5kH86iQZWo0I7mNwQiTOz+/3ShPFmBw==
@@ -6493,58 +6759,95 @@ apollo-link@^1.2.13:
tslib "^1.9.3"
zen-observable-ts "^0.8.20"
-apollo-server-core@^1.3.6:
- version "1.3.6"
- resolved "https://registry.yarnpkg.com/apollo-server-core/-/apollo-server-core-1.3.6.tgz#08636243c2de56fa8c267d68dd602cb1fbd323e3"
- integrity sha1-CGNiQ8LeVvqMJn1o3WAssfvTI+M=
+apollo-server-caching@^0.5.1:
+ version "0.5.1"
+ resolved "https://registry.yarnpkg.com/apollo-server-caching/-/apollo-server-caching-0.5.1.tgz#5cd0536ad5473abb667cc82b59bc56b96fb35db6"
+ integrity sha512-L7LHZ3k9Ao5OSf2WStvQhxdsNVplRQi7kCAPfqf9Z3GBEnQ2uaL0EgO0hSmtVHfXTbk5CTRziMT1Pe87bXrFIw==
dependencies:
- apollo-cache-control "^0.1.0"
- apollo-tracing "^0.1.0"
- graphql-extensions "^0.0.x"
+ lru-cache "^5.0.0"
-apollo-server-errors@^2.0.2:
- version "2.0.2"
- resolved "https://registry.yarnpkg.com/apollo-server-errors/-/apollo-server-errors-2.0.2.tgz#e9cbb1b74d2cd78aed23cd886ca2d0c186323b2b"
- integrity sha512-zyWDqAVDCkj9espVsoUpZr9PwDznM8UW6fBfhV+i1br//s2AQb07N6ektZ9pRIEvkhykDZW+8tQbDwAO0vUROg==
+apollo-server-core@^2.10.1:
+ version "2.10.1"
+ resolved "https://registry.yarnpkg.com/apollo-server-core/-/apollo-server-core-2.10.1.tgz#5fa4ce7992d0bf1cce616dedf1a22a41c7589c7c"
+ integrity sha512-BVITSJRMnj+CWFkjt7FMcaoqg/Ni9gfyVE9iu8bUc1IebBfFDcQj652Iolr7dTqyUziN2jbf0wfcybKYJLQHQQ==
+ dependencies:
+ "@apollographql/apollo-tools" "^0.4.3"
+ "@apollographql/graphql-playground-html" "1.6.24"
+ "@types/graphql-upload" "^8.0.0"
+ "@types/ws" "^6.0.0"
+ apollo-cache-control "^0.8.11"
+ apollo-datasource "^0.7.0"
+ apollo-engine-reporting "^1.6.0"
+ apollo-server-caching "^0.5.1"
+ apollo-server-env "^2.4.3"
+ apollo-server-errors "^2.3.4"
+ apollo-server-plugin-base "^0.6.10"
+ apollo-server-types "^0.2.10"
+ apollo-tracing "^0.8.11"
+ fast-json-stable-stringify "^2.0.0"
+ graphql-extensions "^0.10.10"
+ graphql-tag "^2.9.2"
+ graphql-tools "^4.0.0"
+ graphql-upload "^8.0.2"
+ sha.js "^2.4.11"
+ subscriptions-transport-ws "^0.9.11"
+ ws "^6.0.0"
+
+apollo-server-env@^2.4.3:
+ version "2.4.3"
+ resolved "https://registry.yarnpkg.com/apollo-server-env/-/apollo-server-env-2.4.3.tgz#9bceedaae07eafb96becdfd478f8d92617d825d2"
+ integrity sha512-23R5Xo9OMYX0iyTu2/qT0EUb+AULCBriA9w8HDfMoChB8M+lFClqUkYtaTTHDfp6eoARLW8kDBhPOBavsvKAjA==
+ dependencies:
+ node-fetch "^2.1.2"
+ util.promisify "^1.0.0"
-apollo-server-hapi@^1.3.6:
- version "1.3.6"
- resolved "https://registry.yarnpkg.com/apollo-server-hapi/-/apollo-server-hapi-1.3.6.tgz#44dea128b64c1c10fdd35ac8307896a57ba1f4a8"
- integrity sha1-RN6hKLZMHBD901rIMHiWpXuh9Kg=
+apollo-server-errors@^2.3.4:
+ version "2.3.4"
+ resolved "https://registry.yarnpkg.com/apollo-server-errors/-/apollo-server-errors-2.3.4.tgz#b70ef01322f616cbcd876f3e0168a1a86b82db34"
+ integrity sha512-Y0PKQvkrb2Kd18d1NPlHdSqmlr8TgqJ7JQcNIfhNDgdb45CnqZlxL1abuIRhr8tiw8OhVOcFxz2KyglBi8TKdA==
+
+apollo-server-plugin-base@^0.6.10:
+ version "0.6.10"
+ resolved "https://registry.yarnpkg.com/apollo-server-plugin-base/-/apollo-server-plugin-base-0.6.10.tgz#33d3e2bb82fca22a00b6648a2f1c6b2cc032a8a0"
+ integrity sha512-/xT7UT/tbCDIoTQ4lcEQsJ0ACh7h7QG0BDmeSlDXjwDuENRI50bQ2QoluCMPitZXGe+FCQfLhvzFgzbsZGT0IA==
dependencies:
- apollo-server-core "^1.3.6"
- apollo-server-module-graphiql "^1.3.4"
- boom "^7.1.0"
+ apollo-server-types "^0.2.10"
-apollo-server-module-graphiql@^1.3.4:
- version "1.3.4"
- resolved "https://registry.yarnpkg.com/apollo-server-module-graphiql/-/apollo-server-module-graphiql-1.3.4.tgz#50399b7c51b7267d0c841529f5173e5fc7304de4"
- integrity sha1-UDmbfFG3Jn0MhBUp9Rc+X8cwTeQ=
+apollo-server-types@^0.2.10:
+ version "0.2.10"
+ resolved "https://registry.yarnpkg.com/apollo-server-types/-/apollo-server-types-0.2.10.tgz#017ee0c812e70b0846826834eb2c9eda036c1c7a"
+ integrity sha512-ke9ViPEWfW+2XLe66CaKGVZdS7duSLbamSKSprmmeMBd8s6tmjf0FumUVxV7X4quxPZi0OPo8x0LoLU7GWsmaA==
+ dependencies:
+ apollo-engine-reporting-protobuf "^0.4.4"
+ apollo-server-caching "^0.5.1"
+ apollo-server-env "^2.4.3"
-apollo-tracing@^0.1.0:
- version "0.1.4"
- resolved "https://registry.yarnpkg.com/apollo-tracing/-/apollo-tracing-0.1.4.tgz#5b8ae1b01526b160ee6e552a7f131923a9aedcc7"
- integrity sha512-Uv+1nh5AsNmC3m130i2u3IqbS+nrxyVV3KYimH5QKsdPjxxIQB3JAT+jJmpeDxBel8gDVstNmCh82QSLxLSIdQ==
+apollo-tracing@^0.8.11:
+ version "0.8.11"
+ resolved "https://registry.yarnpkg.com/apollo-tracing/-/apollo-tracing-0.8.11.tgz#55822aac7381da77c703b52d35c4dab9393ec33c"
+ integrity sha512-Z0wDZ5QOBmpGoajB74ZKGTM7GzG6rqZRzAph4kxud6axcyNqUDKiKZ3Eere+NSLwvvt8M3qnPW4UJSUy/wwOXg==
dependencies:
- graphql-extensions "~0.0.9"
+ apollo-server-env "^2.4.3"
+ graphql-extensions "^0.10.10"
-apollo-utilities@^1.0.0, apollo-utilities@^1.0.1, apollo-utilities@^1.0.18, apollo-utilities@^1.0.8:
- version "1.0.18"
- resolved "https://registry.yarnpkg.com/apollo-utilities/-/apollo-utilities-1.0.18.tgz#e4ee91534283fde2b744a26caaea120fe6a94f67"
- integrity sha512-hHrmsoMYzzzfUlTOPpxr0qRpTLotMkBIQ93Ub7ki2SWdLfYYKrp6/KB8YOUkbCwXxSFvYSV24ccuwUEqZIaHIA==
+apollo-utilities@1.3.3, apollo-utilities@^1.3.3:
+ version "1.3.3"
+ resolved "https://registry.yarnpkg.com/apollo-utilities/-/apollo-utilities-1.3.3.tgz#f1854715a7be80cd810bc3ac95df085815c0787c"
+ integrity sha512-F14aX2R/fKNYMvhuP2t9GD9fggID7zp5I96MF5QeKYWDWTrkRdHRp4+SVfXUVN+cXOaB/IebfvRtzPf25CM0zw==
dependencies:
+ "@wry/equality" "^0.1.2"
fast-json-stable-stringify "^2.0.0"
+ ts-invariant "^0.4.0"
+ tslib "^1.10.0"
-apollo-utilities@^1.2.1:
- version "1.2.1"
- resolved "https://registry.yarnpkg.com/apollo-utilities/-/apollo-utilities-1.2.1.tgz#1c3a1ebf5607d7c8efe7636daaf58e7463b41b3c"
- integrity sha512-Zv8Udp9XTSFiN8oyXOjf6PMHepD4yxxReLsl6dPUy5Ths7jti3nmlBzZUOxuTWRwZn0MoclqL7RQ5UEJN8MAxg==
+apollo-utilities@^1.0.1, apollo-utilities@^1.0.18, apollo-utilities@^1.0.8:
+ version "1.0.18"
+ resolved "https://registry.yarnpkg.com/apollo-utilities/-/apollo-utilities-1.0.18.tgz#e4ee91534283fde2b744a26caaea120fe6a94f67"
+ integrity sha512-hHrmsoMYzzzfUlTOPpxr0qRpTLotMkBIQ93Ub7ki2SWdLfYYKrp6/KB8YOUkbCwXxSFvYSV24ccuwUEqZIaHIA==
dependencies:
fast-json-stable-stringify "^2.0.0"
- ts-invariant "^0.2.1"
- tslib "^1.9.3"
-apollo-utilities@^1.3.0, apollo-utilities@^1.3.2:
+apollo-utilities@^1.3.0:
version "1.3.2"
resolved "https://registry.yarnpkg.com/apollo-utilities/-/apollo-utilities-1.3.2.tgz#8cbdcf8b012f664cd6cb5767f6130f5aed9115c9"
integrity sha512-JWNHj8XChz7S4OZghV6yc9FNnzEXj285QYp/nLNh943iObycI5GTDO3NGR9Dth12LRrSFMeDOConPfPln+WGfg==
@@ -6987,6 +7290,13 @@ async-limiter@~1.0.0:
resolved "https://registry.yarnpkg.com/async-limiter/-/async-limiter-1.0.0.tgz#78faed8c3d074ab81f22b4e985d79e8738f720f8"
integrity sha512-jp/uFnooOiO+L211eZOoSyzpOITMXx1rBITauYykG3BRYPu8h0UcxsPNB04RR5vo4Tyz3+ay17tR6JVf9qzYWg==
+async-retry@^1.2.1:
+ version "1.3.1"
+ resolved "https://registry.yarnpkg.com/async-retry/-/async-retry-1.3.1.tgz#139f31f8ddce50c0870b0ba558a6079684aaed55"
+ integrity sha512-aiieFW/7h3hY0Bq5d+ktDBejxuwR78vRu9hDUdR8rNhSaQ29VzPL4AoIRG7D/c7tdenwOcKvgPM6tIxB3cB6HA==
+ dependencies:
+ retry "0.12.0"
+
async-retry@^1.2.3:
version "1.2.3"
resolved "https://registry.yarnpkg.com/async-retry/-/async-retry-1.2.3.tgz#a6521f338358d322b1a0012b79030c6f411d1ce0"
@@ -7694,7 +8004,7 @@ bach@^1.0.0:
async-settle "^1.0.0"
now-and-later "^2.0.0"
-backo2@1.0.2:
+backo2@1.0.2, backo2@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/backo2/-/backo2-1.0.2.tgz#31ab1ac8b129363463e35b3ebb69f4dfcfba7947"
integrity sha1-MasayLEpNjRj41s+u2n038+6eUc=
@@ -8037,7 +8347,7 @@ boom@5.x.x:
dependencies:
hoek "4.x.x"
-boom@7.x.x, boom@^7.1.0, boom@^7.2.0:
+boom@7.x.x, boom@^7.2.0:
version "7.2.2"
resolved "https://registry.yarnpkg.com/boom/-/boom-7.2.2.tgz#ac92101451aa5cea901aed07d881dd32b4f08345"
integrity sha512-IFUbOa8PS7xqmhIjpeStwT3d09hGkNYQ6aj2iELSTxcVs2u0aKn1NzhkdUQSzsRg1FVkj3uit3I6mXQCBixw+A==
@@ -8403,6 +8713,13 @@ builtins@0.0.7:
resolved "https://registry.yarnpkg.com/builtins/-/builtins-0.0.7.tgz#355219cd6cf18dbe7c01cc7fd2dce765cfdc549a"
integrity sha1-NVIZzWzxjb58Acx/0tznZc/cVJo=
+busboy@^0.3.1:
+ version "0.3.1"
+ resolved "https://registry.yarnpkg.com/busboy/-/busboy-0.3.1.tgz#170899274c5bf38aae27d5c62b71268cd585fd1b"
+ integrity sha512-y7tTxhGKXcyBxRKAni+awqx8uqaJKrSFSNFSeRG5CsWNdmy2BIK+6VGWEW7TZnIO/533mtMEA4rOevQV815YJw==
+ dependencies:
+ dicer "0.3.0"
+
bytes@1:
version "1.0.0"
resolved "https://registry.yarnpkg.com/bytes/-/bytes-1.0.0.tgz#3569ede8ba34315fab99c3e92cb04c7220de1fa8"
@@ -10079,7 +10396,7 @@ core-js@^1.0.0:
resolved "https://registry.yarnpkg.com/core-js/-/core-js-1.2.7.tgz#652294c14651db28fa93bd2d5ff2983a4f08c636"
integrity sha1-ZSKUwUZR2yj6k70tX/KYOk8IxjY=
-core-js@^2.2.0, core-js@^2.4.0, core-js@^2.5.0, core-js@^2.5.1, core-js@^2.5.3, core-js@^2.5.7, core-js@^2.6.5, core-js@^2.6.9:
+core-js@^2.2.0, core-js@^2.4.0, core-js@^2.5.0, core-js@^2.5.1, core-js@^2.5.7, core-js@^2.6.5, core-js@^2.6.9:
version "2.6.9"
resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.6.9.tgz#6b4b214620c834152e179323727fc19741b084f2"
integrity sha512-HOpZf6eXmnl7la+cUdMnLvUxKNqLUzJvgIziQ0DiF3JwSImNphIqdGqzj6hIKyX04MmV0poclQ7+wjWvxQyR2A==
@@ -11585,6 +11902,13 @@ diagnostics@^1.1.1:
enabled "1.0.x"
kuler "1.0.x"
+dicer@0.3.0:
+ version "0.3.0"
+ resolved "https://registry.yarnpkg.com/dicer/-/dicer-0.3.0.tgz#eacd98b3bfbf92e8ab5c2fdb71aaac44bb06b872"
+ integrity sha512-MdceRRWqltEG2dZqO769g27N/3PXfcKl04VhYnBlo2YhH7zPi88VebsjTKclaOyiuMaGU72hTfw3VkUitGcVCA==
+ dependencies:
+ streamsearch "0.1.2"
+
diff-match-patch@^1.0.4:
version "1.0.4"
resolved "https://registry.yarnpkg.com/diff-match-patch/-/diff-match-patch-1.0.4.tgz#6ac4b55237463761c4daf0dc603eb869124744b1"
@@ -13054,6 +13378,11 @@ eventemitter3@^3.0.0:
resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-3.1.0.tgz#090b4d6cdbd645ed10bf750d4b5407942d7ba163"
integrity sha512-ivIvhpq/Y0uSjcHDcOIccjmYjGLcP09MFGE7ysAwkAvkXfpZlC985pH2/ui64DKazbTW/4kN3yqozUxlXzI6cA==
+eventemitter3@^3.1.0:
+ version "3.1.2"
+ resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-3.1.2.tgz#2d3d48f9c346698fce83a85d7d664e98535df6e7"
+ integrity sha512-tvtQIeLVHjDkJYnzf2dgVMxfuSGJeM/7UCG17TT4EumTfNtF+0nebF/4zWOIkCreAbtNqhGEboB6BWrwqNaw4Q==
+
eventemitter3@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-4.0.0.tgz#d65176163887ee59f386d64c82610b696a4a74eb"
@@ -14338,6 +14667,11 @@ fs-access@^1.0.0:
dependencies:
null-check "^1.0.0"
+fs-capacitor@^2.0.4:
+ version "2.0.4"
+ resolved "https://registry.yarnpkg.com/fs-capacitor/-/fs-capacitor-2.0.4.tgz#5a22e72d40ae5078b4fe64fe4d08c0d3fc88ad3c"
+ integrity sha512-8S4f4WsCryNw2mJJchi46YgB6CR5Ze+4L1h8ewl9tEpL4SJ3ZO+c/bS4BWhB8bK+O3TMqhuZarTitd0S0eh2pA==
+
fs-constants@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/fs-constants/-/fs-constants-1.0.0.tgz#6be0de9be998ce16af8afc24497b9ee9b7ccd9ad"
@@ -15431,18 +15765,14 @@ graphql-config@2.2.1:
lodash "^4.17.4"
minimatch "^3.0.4"
-graphql-extensions@^0.0.x, graphql-extensions@~0.0.9:
- version "0.0.10"
- resolved "https://registry.yarnpkg.com/graphql-extensions/-/graphql-extensions-0.0.10.tgz#34bdb2546d43f6a5bc89ab23c295ec0466c6843d"
- integrity sha512-TnQueqUDCYzOSrpQb3q1ngDSP2otJSF+9yNLrQGPzkMsvnQ+v6e2d5tl+B35D4y+XpmvVnAn4T3ZK28mkILveA==
+graphql-extensions@^0.10.10:
+ version "0.10.10"
+ resolved "https://registry.yarnpkg.com/graphql-extensions/-/graphql-extensions-0.10.10.tgz#6b89d6b171f02a83bd4252f1e71c8d69147e7e2d"
+ integrity sha512-pNb1DmUk6vsGtCjCRecpKoXadKNMyKxyLyE9IX65N9aKSmLL+AF7dJOOc4MWhdaAXlzxaDDhe54GpaOfoH7AOw==
dependencies:
- core-js "^2.5.3"
- source-map-support "^0.5.1"
-
-graphql-fields@^1.0.2:
- version "1.2.1"
- resolved "https://registry.yarnpkg.com/graphql-fields/-/graphql-fields-1.2.1.tgz#3777112af0bd6f55cc3c7b8f6d7748ab7a1b23bb"
- integrity sha512-ufg/dxb78IjQUblNfiaEMkZWD1CwcZjdK0nTEW0dBQyNArxKZI7N+zohZdIdqVJcihPWJod1yymx4NM+1bZjTw==
+ "@apollographql/apollo-tools" "^0.4.3"
+ apollo-server-env "^2.4.3"
+ apollo-server-types "^0.2.10"
graphql-import@0.7.1, graphql-import@^0.7.1:
version "0.7.1"
@@ -15475,6 +15805,11 @@ graphql-tag@2.10.1, graphql-tag@^2.9.2:
resolved "https://registry.yarnpkg.com/graphql-tag/-/graphql-tag-2.10.1.tgz#10aa41f1cd8fae5373eaf11f1f67260a3cad5e02"
integrity sha512-jApXqWBzNXQ8jYa/HLkZJaVw9jgwNqZkywa2zfFn16Iv1Zb7ELNHkJaXHR7Quvd5SIGsy6Ny7SUKATgnu05uEg==
+graphql-tag@^2.10.3:
+ version "2.10.3"
+ resolved "https://registry.yarnpkg.com/graphql-tag/-/graphql-tag-2.10.3.tgz#ea1baba5eb8fc6339e4c4cf049dabe522b0edf03"
+ integrity sha512-4FOv3ZKfA4WdOKJeHdz6B3F/vxBLSgmBcGeAFPf4n1F64ltJUvOOerNj0rsJxONQGdhUMynQIvd6LzB+1J5oKA==
+
graphql-toolkit@0.2.0:
version "0.2.0"
resolved "https://registry.yarnpkg.com/graphql-toolkit/-/graphql-toolkit-0.2.0.tgz#91364b69911d51bc915269a37963f4ea2d5f335c"
@@ -15492,10 +15827,10 @@ graphql-toolkit@0.2.0:
tslib "^1.9.3"
valid-url "1.0.9"
-graphql-tools@4.0.4:
- version "4.0.4"
- resolved "https://registry.yarnpkg.com/graphql-tools/-/graphql-tools-4.0.4.tgz#ca08a63454221fdde825fe45fbd315eb2a6d566b"
- integrity sha512-chF12etTIGVVGy3fCTJ1ivJX2KB7OSG4c6UOJQuqOHCmBQwTyNgCDuejZKvpYxNZiEx7bwIjrodDgDe9RIkjlw==
+graphql-tools@4.0.4, graphql-tools@^4.0.0, graphql-tools@^4.0.7:
+ version "4.0.7"
+ resolved "https://registry.yarnpkg.com/graphql-tools/-/graphql-tools-4.0.7.tgz#743309b96cb657ff45b607ee0a07193cd987e43c"
+ integrity sha512-rApl8sT8t/W1uQRcwzxMYyUBiCl/XicluApiDkNze5TX/GR0BSTQMjM2UcRGdTmkbsb1Eqq6afkyyeG/zMxZYQ==
dependencies:
apollo-link "^1.2.3"
apollo-utilities "^1.0.1"
@@ -15503,23 +15838,22 @@ graphql-tools@4.0.4:
iterall "^1.1.3"
uuid "^3.1.0"
-graphql-tools@^3.0.2:
- version "3.1.1"
- resolved "https://registry.yarnpkg.com/graphql-tools/-/graphql-tools-3.1.1.tgz#d593358f01e7c8b1671a17b70ddb034dea9dbc50"
- integrity sha512-yHvPkweUB0+Q/GWH5wIG60bpt8CTwBklCSzQdEHmRUgAdEQKxw+9B7zB3dG7wB3Ym7M7lfrS4Ej+jtDZfA2UXg==
+graphql-upload@^8.0.2:
+ version "8.1.0"
+ resolved "https://registry.yarnpkg.com/graphql-upload/-/graphql-upload-8.1.0.tgz#6d0ab662db5677a68bfb1f2c870ab2544c14939a"
+ integrity sha512-U2OiDI5VxYmzRKw0Z2dmfk0zkqMRaecH9Smh1U277gVgVe9Qn+18xqf4skwr4YJszGIh7iQDZ57+5ygOK9sM/Q==
dependencies:
- apollo-link "^1.2.2"
- apollo-utilities "^1.0.1"
- deprecated-decorator "^0.1.6"
- iterall "^1.1.3"
- uuid "^3.1.0"
+ busboy "^0.3.1"
+ fs-capacitor "^2.0.4"
+ http-errors "^1.7.3"
+ object-path "^0.11.4"
-graphql@^0.13.2:
- version "0.13.2"
- resolved "https://registry.yarnpkg.com/graphql/-/graphql-0.13.2.tgz#4c740ae3c222823e7004096f832e7b93b2108270"
- integrity sha512-QZ5BL8ZO/B20VA8APauGBg3GyEgZ19eduvpLWoq5x7gMmWnHoy8rlQWPLmWgFvo1yNgjSEFMesmS4R6pPr7xog==
+graphql@^14.5.3, graphql@^14.6.0:
+ version "14.6.0"
+ resolved "https://registry.yarnpkg.com/graphql/-/graphql-14.6.0.tgz#57822297111e874ea12f5cd4419616930cd83e49"
+ integrity sha512-VKzfvHEKybTKjQVpTFrA5yUq2S9ihcZvfJAtsDBBCuV6wauPu1xl/f9ehgVf0FcEJJs4vz6ysb/ZMkGigQZseg==
dependencies:
- iterall "^1.2.1"
+ iterall "^1.2.2"
graphviz@^0.0.8:
version "0.0.8"
@@ -16336,6 +16670,17 @@ http-errors@1.7.2, http-errors@~1.7.2:
statuses ">= 1.5.0 < 2"
toidentifier "1.0.0"
+http-errors@^1.7.3:
+ version "1.7.3"
+ resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.7.3.tgz#6c619e4f9c60308c38519498c14fbb10aacebb06"
+ integrity sha512-ZTTX0MWrsQ2ZAhA1cejAwDLycFsd7I7nVtnkT3Ol0aqodaKW+0CTZDQ1uBv5whptCnc8e8HeRRJxRs0kmm/Qfw==
+ dependencies:
+ depd "~1.1.2"
+ inherits "2.0.4"
+ setprototypeof "1.1.1"
+ statuses ">= 1.5.0 < 2"
+ toidentifier "1.0.0"
+
http-headers@^3.0.2:
version "3.0.2"
resolved "https://registry.yarnpkg.com/http-headers/-/http-headers-3.0.2.tgz#5147771292f0b39d6778d930a3a59a76fc7ef44d"
@@ -16723,7 +17068,7 @@ inflight@^1.0.4:
once "^1.3.0"
wrappy "1"
-inherits@2, inherits@~2.0.3:
+inherits@2, inherits@2.0.4, inherits@~2.0.3:
version "2.0.4"
resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c"
integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==
@@ -17948,11 +18293,16 @@ items@2.x.x:
resolved "https://registry.yarnpkg.com/items/-/items-2.1.1.tgz#8bd16d9c83b19529de5aea321acaada78364a198"
integrity sha1-i9FtnIOxlSneWuoyGsqtp4NkoZg=
-iterall@^1.1.3, iterall@^1.2.1:
+iterall@^1.1.3:
version "1.2.2"
resolved "https://registry.yarnpkg.com/iterall/-/iterall-1.2.2.tgz#92d70deb8028e0c39ff3164fdbf4d8b088130cd7"
integrity sha512-yynBb1g+RFUPY64fTrFv7nsjRrENBQJaX2UL+2Szc9REFrSNm1rpSXHGzhmAy7a9uv3vlvgBlXnf9RqmPH1/DA==
+iterall@^1.2.1, iterall@^1.2.2:
+ version "1.3.0"
+ resolved "https://registry.yarnpkg.com/iterall/-/iterall-1.3.0.tgz#afcb08492e2915cbd8a0884eb93a8c94d0d72fea"
+ integrity sha512-QZ9qOMdF+QLHxy1QIpUHUU1D5pS2CG2P69LF6L6CPjPYA/XMOmKV3PZpawHoAjHNyB0swdVTRxdYT4tbBbxqwg==
+
jest-changed-files@^24.9.0:
version "24.9.0"
resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-24.9.0.tgz#08d8c15eb79a7fa3fc98269bc14b451ee82f8039"
@@ -19947,7 +20297,7 @@ lru-cache@4.1.x, lru-cache@^4.0.0:
pseudomap "^1.0.2"
yallist "^2.1.2"
-lru-cache@^5.1.1:
+lru-cache@^5.0.0, lru-cache@^5.1.1:
version "5.1.1"
resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-5.1.1.tgz#1da27e6710271947695daf6848e847f01d84b920"
integrity sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==
@@ -21321,16 +21671,16 @@ node-fetch@2.1.2:
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.1.2.tgz#ab884e8e7e57e38a944753cec706f788d1768bb5"
integrity sha1-q4hOjn5X44qUR1POxwb3iNF2i7U=
+node-fetch@^2.1.2, node-fetch@^2.2.0, node-fetch@^2.6.0:
+ version "2.6.0"
+ resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.0.tgz#e633456386d4aa55863f676a7ab0daa8fdecb0fd"
+ integrity sha512-8dG4H5ujfvFiqDmVu9fQ5bOHUC15JMjMY/Zumv26oOvvVJjM67KF8koCWIabKQ1GJIa9r2mMZscBq/TbdOcmNA==
+
node-fetch@^2.3.0:
version "2.3.0"
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.3.0.tgz#1a1d940bbfb916a1d3e0219f037e89e71f8c5fa5"
integrity sha512-MOd8pV3fxENbryESLgVIeaGKrdl+uaYhCSSVkjeOb/31/njTpcis5aWfdqgNlHIrKOLRbMnfPINPOML2CIFeXA==
-node-fetch@^2.6.0:
- version "2.6.0"
- resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.0.tgz#e633456386d4aa55863f676a7ab0daa8fdecb0fd"
- integrity sha512-8dG4H5ujfvFiqDmVu9fQ5bOHUC15JMjMY/Zumv26oOvvVJjM67KF8koCWIabKQ1GJIa9r2mMZscBq/TbdOcmNA==
-
node-forge@0.9.0:
version "0.9.0"
resolved "https://registry.yarnpkg.com/node-forge/-/node-forge-0.9.0.tgz#d624050edbb44874adca12bb9a52ec63cb782579"
@@ -21874,7 +22224,7 @@ object-path-immutable@^3.1.1:
dependencies:
is-plain-object "3.0.0"
-object-path@0.11.4:
+object-path@0.11.4, object-path@^0.11.4:
version "0.11.4"
resolved "https://registry.yarnpkg.com/object-path/-/object-path-0.11.4.tgz#370ae752fbf37de3ea70a861c23bba8915691949"
integrity sha1-NwrnUvvzfePqcKhhwju6iRVpGUk=
@@ -22107,10 +22457,10 @@ oppsy@2.x.x, oppsy@^2.0.0:
dependencies:
hoek "5.x.x"
-optimism@^0.9.0:
- version "0.9.5"
- resolved "https://registry.yarnpkg.com/optimism/-/optimism-0.9.5.tgz#b8b5dc9150e97b79ddbf2d2c6c0e44de4d255527"
- integrity sha512-lNvmuBgONAGrUbj/xpH69FjMOz1d0jvMNoOCKyVynUPzq2jgVlGL4jFYJqrUHzUfBv+jAFSCP61x5UkfbduYJA==
+optimism@^0.10.0:
+ version "0.10.3"
+ resolved "https://registry.yarnpkg.com/optimism/-/optimism-0.10.3.tgz#163268fdc741dea2fb50f300bedda80356445fd7"
+ integrity sha512-9A5pqGoQk49H6Vhjb9kPgAeeECfUDF6aIICbMDL23kDLStBn1MWk3YvcZ4xWF9CsSf6XEgvRLkXy4xof/56vVw==
dependencies:
"@wry/context" "^0.4.0"
@@ -24134,16 +24484,16 @@ react-addons-create-fragment@^15.6.2:
loose-envify "^1.3.1"
object-assign "^4.1.0"
-react-apollo@^2.1.4:
- version "2.1.8"
- resolved "https://registry.yarnpkg.com/react-apollo/-/react-apollo-2.1.8.tgz#ebac0d9bee0f0906df3ce29207f94df337009887"
- integrity sha512-HBz9WDhvaqNxahKvBvW915a9MYSbarJ2Nrwh2pCeDctFiZ/bhixX1xJE/Ea0aU6gU5tGDEl+aWjxzx852FXHoA==
+react-apollo@^3.1.3:
+ version "3.1.3"
+ resolved "https://registry.yarnpkg.com/react-apollo/-/react-apollo-3.1.3.tgz#5d8540b401bba36173b63e6c5e75fa561960c63e"
+ integrity sha512-orCZNoAkgveaK5b75y7fw1MSqSHOU/Wuu9rRFOGmRQBSQVZjvV4DI+hj604rHmuN9+WDABxb5W48wTa0F/xNZQ==
dependencies:
- fbjs "^0.8.16"
- hoist-non-react-statics "^2.5.0"
- invariant "^2.2.2"
- lodash "^4.17.10"
- prop-types "^15.6.0"
+ "@apollo/react-common" "^3.1.3"
+ "@apollo/react-components" "^3.1.3"
+ "@apollo/react-hoc" "^3.1.3"
+ "@apollo/react-hooks" "^3.1.3"
+ "@apollo/react-ssr" "^3.1.3"
react-beautiful-dnd@^10.1.0:
version "10.1.1"
@@ -24723,10 +25073,10 @@ react-select@^3.0.0:
react-input-autosize "^2.2.2"
react-transition-group "^2.2.1"
-react-shortcuts@^2.0.0:
- version "2.0.1"
- resolved "https://registry.yarnpkg.com/react-shortcuts/-/react-shortcuts-2.0.1.tgz#6de302244ce33ac9f9273dbeec540a8f81808f91"
- integrity sha512-Io51aosqU29ERe7uPDqvmZYVV1r8IrOCM3Vc46wkPqbLo84uqPphHfqijM0BkOnJMmwOfj8o5OIUZbTtoRBbDA==
+react-shortcuts@^2.1.0:
+ version "2.1.0"
+ resolved "https://registry.yarnpkg.com/react-shortcuts/-/react-shortcuts-2.1.0.tgz#e1ac50be4f847b96a473ce0ad877edadc5067ec6"
+ integrity sha512-yETQgoy/KRCOPjdlGSnfTjyVHwJYsFoHtVmuLzJABYBAnilpm1M14DhDavuAAMElbaQlXunOwKjh0Oq3I6Vt0A==
dependencies:
combokeys "^3.0.1"
events "^1.0.2"
@@ -26868,6 +27218,14 @@ sha.js@^2.4.0, sha.js@^2.4.8:
inherits "^2.0.1"
safe-buffer "^5.0.1"
+sha.js@^2.4.11:
+ version "2.4.11"
+ resolved "https://registry.yarnpkg.com/sha.js/-/sha.js-2.4.11.tgz#37a5cf0b81ecbc6943de109ba2960d1b26584ae7"
+ integrity sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ==
+ dependencies:
+ inherits "^2.0.1"
+ safe-buffer "^5.0.1"
+
shallow-clone-shim@^1.0.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/shallow-clone-shim/-/shallow-clone-shim-1.1.0.tgz#c1048ba9167f313f4f4c019ff3f0a40626322960"
@@ -27301,7 +27659,7 @@ source-map-support@^0.3.2:
dependencies:
source-map "0.1.32"
-source-map-support@^0.5.1, source-map-support@^0.5.16, source-map-support@^0.5.6, source-map-support@^0.5.9, source-map-support@~0.5.12:
+source-map-support@^0.5.16, source-map-support@^0.5.6, source-map-support@^0.5.9, source-map-support@~0.5.12:
version "0.5.16"
resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.16.tgz#0ae069e7fe3ba7538c64c98515e35339eac5a042"
integrity sha512-efyLRJDr68D9hBBNIPWFjhpFzURh+KJykQwvMyW5UiZzYwoF6l4YMMDIJJEyFWxWCqfyxLzz6tSfUFR+kXXsVQ==
@@ -27802,6 +28160,11 @@ streamroller@0.7.0:
mkdirp "^0.5.1"
readable-stream "^2.3.0"
+streamsearch@0.1.2:
+ version "0.1.2"
+ resolved "https://registry.yarnpkg.com/streamsearch/-/streamsearch-0.1.2.tgz#808b9d0e56fc273d809ba57338e929919a1a9f1a"
+ integrity sha1-gIudDlb8Jz2Am6VzOOkpkZoanxo=
+
strict-uri-encode@^1.0.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/strict-uri-encode/-/strict-uri-encode-1.1.0.tgz#279b225df1d582b1f54e65addd4352e18faa0713"
@@ -28194,6 +28557,17 @@ stylus-lookup@^3.0.1:
commander "^2.8.1"
debug "^4.1.0"
+subscriptions-transport-ws@^0.9.11:
+ version "0.9.16"
+ resolved "https://registry.yarnpkg.com/subscriptions-transport-ws/-/subscriptions-transport-ws-0.9.16.tgz#90a422f0771d9c32069294c08608af2d47f596ec"
+ integrity sha512-pQdoU7nC+EpStXnCfh/+ho0zE0Z+ma+i7xvj7bkXKb1dvYHSZxgRPaU6spRP+Bjzow67c/rRDoix5RT0uU9omw==
+ dependencies:
+ backo2 "^1.0.2"
+ eventemitter3 "^3.1.0"
+ iterall "^1.2.1"
+ symbol-observable "^1.0.4"
+ ws "^5.2.0"
+
subtext@6.x.x:
version "6.0.7"
resolved "https://registry.yarnpkg.com/subtext/-/subtext-6.0.7.tgz#8e40a67901a734d598142665c90e398369b885f9"
@@ -29228,20 +29602,6 @@ ts-easing@^0.2.0:
resolved "https://registry.yarnpkg.com/ts-easing/-/ts-easing-0.2.0.tgz#c8a8a35025105566588d87dbda05dd7fbfa5a4ec"
integrity sha512-Z86EW+fFFh/IFB1fqQ3/+7Zpf9t2ebOAxNI/V6Wo7r5gqiqtxmgTlQ1qbqQcjLKYeSHPTsEmvlJUDg/EuL0uHQ==
-ts-invariant@^0.2.1:
- version "0.2.1"
- resolved "https://registry.yarnpkg.com/ts-invariant/-/ts-invariant-0.2.1.tgz#3d587f9d6e3bded97bf9ec17951dd9814d5a9d3f"
- integrity sha512-Z/JSxzVmhTo50I+LKagEISFJW3pvPCqsMWLamCTX8Kr3N5aMrnGOqcflbe5hLUzwjvgPfnLzQtHZv0yWQ+FIHg==
- dependencies:
- tslib "^1.9.3"
-
-ts-invariant@^0.3.2:
- version "0.3.3"
- resolved "https://registry.yarnpkg.com/ts-invariant/-/ts-invariant-0.3.3.tgz#b5742b1885ecf9e29c31a750307480f045ec0b16"
- integrity sha512-UReOKsrJFGC9tUblgSRWo+BsVNbEd77Cl6WiV/XpMlkifXwNIJbknViCucHvVZkXSC/mcWeRnIGdY7uprcwvdQ==
- dependencies:
- tslib "^1.9.3"
-
ts-invariant@^0.4.0:
version "0.4.2"
resolved "https://registry.yarnpkg.com/ts-invariant/-/ts-invariant-0.4.2.tgz#8685131b8083e67c66d602540e78763408be9113"
@@ -29249,6 +29609,13 @@ ts-invariant@^0.4.0:
dependencies:
tslib "^1.9.3"
+ts-invariant@^0.4.4:
+ version "0.4.4"
+ resolved "https://registry.yarnpkg.com/ts-invariant/-/ts-invariant-0.4.4.tgz#97a523518688f93aafad01b0e80eb803eb2abd86"
+ integrity sha512-uEtWkFM/sdZvRNNDL3Ehu4WVpwaulhwQszV8mrtcdeE8nN00BV9mAmQ88RkrBhFgl9gMgvjJLAQcZbnPXI9mlA==
+ dependencies:
+ tslib "^1.9.3"
+
ts-loader@^6.0.4:
version "6.0.4"
resolved "https://registry.yarnpkg.com/ts-loader/-/ts-loader-6.0.4.tgz#bc331ad91a887a60632d94c9f79448666f2c4b63"
@@ -31828,20 +32195,27 @@ write@^0.2.1:
dependencies:
mkdirp "^0.5.1"
-ws@^6.1.0:
- version "6.2.0"
- resolved "https://registry.yarnpkg.com/ws/-/ws-6.2.0.tgz#13806d9913b2a5f3cbb9ba47b563c002cbc7c526"
- integrity sha512-deZYUNlt2O4buFCa3t5bKLf8A7FPP/TVjwOeVNpw818Ma5nk4MLXls2eoEGS39o8119QIYxTrTDoPQ5B/gTD6w==
+ws@^5.2.0:
+ version "5.2.2"
+ resolved "https://registry.yarnpkg.com/ws/-/ws-5.2.2.tgz#dffef14866b8e8dc9133582514d1befaf96e980f"
+ integrity sha512-jaHFD6PFv6UgoIVda6qZllptQsMlDEJkTQcybzzXDYM1XO9Y8em691FGMPmM46WGyLU4z9KMgQN+qrux/nhlHA==
dependencies:
async-limiter "~1.0.0"
-ws@^6.2.1:
+ws@^6.0.0, ws@^6.2.1:
version "6.2.1"
resolved "https://registry.yarnpkg.com/ws/-/ws-6.2.1.tgz#442fdf0a47ed64f59b6a5d8ff130f4748ed524fb"
integrity sha512-GIyAXC2cB7LjvpgMt9EKS2ldqr0MTrORaleiOno6TweZ6r3TKtoFQWay/2PceJ3RuBasOHzXNn5Lrw1X0bEjqA==
dependencies:
async-limiter "~1.0.0"
+ws@^6.1.0:
+ version "6.2.0"
+ resolved "https://registry.yarnpkg.com/ws/-/ws-6.2.0.tgz#13806d9913b2a5f3cbb9ba47b563c002cbc7c526"
+ integrity sha512-deZYUNlt2O4buFCa3t5bKLf8A7FPP/TVjwOeVNpw818Ma5nk4MLXls2eoEGS39o8119QIYxTrTDoPQ5B/gTD6w==
+ dependencies:
+ async-limiter "~1.0.0"
+
ws@^7.0.0:
version "7.2.0"
resolved "https://registry.yarnpkg.com/ws/-/ws-7.2.0.tgz#422eda8c02a4b5dba7744ba66eebbd84bcef0ec7"
@@ -32455,21 +32829,6 @@ z-schema@~3.18.3:
optionalDependencies:
commander "^2.7.1"
-zen-observable-ts@^0.8.10:
- version "0.8.10"
- resolved "https://registry.yarnpkg.com/zen-observable-ts/-/zen-observable-ts-0.8.10.tgz#18e2ce1c89fe026e9621fd83cc05168228fce829"
- integrity sha512-5vqMtRggU/2GhePC9OU4sYEWOdvmayp2k3gjPf4F0mXwB3CSbbNznfDUvDJx9O2ZTa1EIXdJhPchQveFKwNXPQ==
- dependencies:
- zen-observable "^0.8.0"
-
-zen-observable-ts@^0.8.18:
- version "0.8.18"
- resolved "https://registry.yarnpkg.com/zen-observable-ts/-/zen-observable-ts-0.8.18.tgz#ade44b1060cc4a800627856ec10b9c67f5f639c8"
- integrity sha512-q7d05s75Rn1j39U5Oapg3HI2wzriVwERVo4N7uFGpIYuHB9ff02P/E92P9B8T7QVC93jCMHpbXH7X0eVR5LA7A==
- dependencies:
- tslib "^1.9.3"
- zen-observable "^0.8.0"
-
zen-observable-ts@^0.8.20:
version "0.8.20"
resolved "https://registry.yarnpkg.com/zen-observable-ts/-/zen-observable-ts-0.8.20.tgz#44091e335d3fcbc97f6497e63e7f57d5b516b163"