From 35b85812750f7cd4be94293219679afc19d1e5bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Wendt?= Date: Tue, 12 Mar 2024 10:03:26 +0100 Subject: [PATCH] Incorporate spelling change of export See BREAKING CHANGE here: https://github.com/octokit/plugin-paginate-graphql.js/pull/175 --- __tests__/apiwrapper.js | 4 ++-- __tests__/integration.js | 4 ++-- dist/index.js | 2 +- index.js | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/__tests__/apiwrapper.js b/__tests__/apiwrapper.js index 2b8c47a..8e975a9 100644 --- a/__tests__/apiwrapper.js +++ b/__tests__/apiwrapper.js @@ -1,12 +1,12 @@ import { Octokit } from '@octokit/core'; // eslint-disable-line import/no-extraneous-dependencies -import { paginateGraphql } from '@octokit/plugin-paginate-graphql'; +import { paginateGraphQL } from '@octokit/plugin-paginate-graphql'; import { graphql, HttpResponse } from 'msw'; // https://mswjs.io/docs/getting-started import { setupServer } from 'msw/node'; // https://mswjs.io/docs/getting-started/integrate/node import { ApiWrapper } from '../apiwrapper'; -const GraphQlOctokit = Octokit.plugin(paginateGraphql); +const GraphQlOctokit = Octokit.plugin(paginateGraphQL); const octokit = new GraphQlOctokit({ auth: 'fake-token-value' }); // don't use default GITHUB_TOKEN token from env const apiWrapper = new ApiWrapper({ octokit }); diff --git a/__tests__/integration.js b/__tests__/integration.js index 379ffb6..7b2c4d8 100644 --- a/__tests__/integration.js +++ b/__tests__/integration.js @@ -1,5 +1,5 @@ import { Octokit } from '@octokit/core'; // eslint-disable-line import/no-extraneous-dependencies -import { paginateGraphql } from '@octokit/plugin-paginate-graphql'; +import { paginateGraphQL } from '@octokit/plugin-paginate-graphql'; import { graphql, HttpResponse } from 'msw'; // https://mswjs.io/docs/getting-started import { setupServer } from 'msw/node'; // https://mswjs.io/docs/getting-started/integrate/node @@ -7,7 +7,7 @@ import { setupServer } from 'msw/node'; // https://mswjs.io/docs/getting-started import { ApiWrapper } from '../apiwrapper'; import { RepositoryProjectsManager } from '../projects.js'; // eslint-disable-line import/extensions -const GraphQlOctokit = Octokit.plugin(paginateGraphql); +const GraphQlOctokit = Octokit.plugin(paginateGraphQL); const octokit = new GraphQlOctokit({ auth: 'fake-token-value' }); // don't use default GITHUB_TOKEN token from env const apiWrapper = new ApiWrapper({ octokit }); diff --git a/dist/index.js b/dist/index.js index ae44a9a..4a84b51 100644 --- a/dist/index.js +++ b/dist/index.js @@ -31011,7 +31011,7 @@ __nccwpck_require__.a(__webpack_module__, async (__webpack_handle_async_dependen // eslint-disable-line import/extensions // eslint-disable-line import/extensions -const GraphQlOctokit = _octokit_core__WEBPACK_IMPORTED_MODULE_2__.Octokit.plugin(_octokit_plugin_paginate_graphql__WEBPACK_IMPORTED_MODULE_3__.paginateGraphql); +const GraphQlOctokit = _octokit_core__WEBPACK_IMPORTED_MODULE_2__.Octokit.plugin(_octokit_plugin_paginate_graphql__WEBPACK_IMPORTED_MODULE_3__.paginateGraphQL); // https://github.com/octokit/authentication-strategies.js // example: https://github.com/octokit/graphql.js/issues/61#issuecomment-542399763 diff --git a/index.js b/index.js index 925d2d1..35f9608 100644 --- a/index.js +++ b/index.js @@ -2,12 +2,12 @@ import core from '@actions/core'; import github from '@actions/github'; import { Octokit } from '@octokit/core'; // eslint-disable-line import/no-extraneous-dependencies -import { paginateGraphql } from '@octokit/plugin-paginate-graphql'; +import { paginateGraphQL } from '@octokit/plugin-paginate-graphql'; import { ApiWrapper } from './apiwrapper.js'; // eslint-disable-line import/extensions import { RepositoryProjectsManager } from './projects.js'; // eslint-disable-line import/extensions -const GraphQlOctokit = Octokit.plugin(paginateGraphql); +const GraphQlOctokit = Octokit.plugin(paginateGraphQL); // https://github.com/octokit/authentication-strategies.js // example: https://github.com/octokit/graphql.js/issues/61#issuecomment-542399763