@tmdb-graphql-api/resolvers 0.0.8 → 0.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/dist/types/tsconfig.build.tsbuildinfo +1 -1
  2. package/package.json +22 -20
  3. package/src/queries/certifications.test.ts +1 -2
  4. package/src/queries/collection.test.ts +1 -2
  5. package/src/queries/collectionImages.test.ts +1 -2
  6. package/src/queries/collectionTranslations.test.ts +1 -2
  7. package/src/queries/company.test.ts +1 -2
  8. package/src/queries/companyAlternativeNames.test.ts +1 -2
  9. package/src/queries/companyLogos.test.ts +1 -2
  10. package/src/queries/configuration.test.ts +1 -2
  11. package/src/queries/configurationCountries.test.ts +1 -2
  12. package/src/queries/configurationJobs.test.ts +1 -2
  13. package/src/queries/configurationLanguages.test.ts +1 -2
  14. package/src/queries/configurationPrimaryTranslations.test.ts +1 -2
  15. package/src/queries/configurationTimezones.test.ts +1 -2
  16. package/src/queries/credit.test.ts +1 -2
  17. package/src/queries/discoverMovies.test.ts +1 -2
  18. package/src/queries/discoverTv.test.ts +1 -2
  19. package/src/queries/episode.test.ts +1 -2
  20. package/src/queries/episodeCredits.test.ts +1 -2
  21. package/src/queries/episodeExternalIds.test.ts +1 -2
  22. package/src/queries/episodeStills.test.ts +1 -2
  23. package/src/queries/episodeTranslations.test.ts +1 -2
  24. package/src/queries/episodeVideos.test.ts +1 -2
  25. package/src/queries/find.test.ts +1 -2
  26. package/src/queries/genres.test.ts +1 -2
  27. package/src/queries/keyword.test.ts +1 -2
  28. package/src/queries/movie.test.ts +1 -2
  29. package/src/queries/movieAlternativeTitles.test.ts +1 -2
  30. package/src/queries/movieCredits.test.ts +1 -2
  31. package/src/queries/movieExternalIds.test.ts +1 -2
  32. package/src/queries/movieImages.test.ts +1 -2
  33. package/src/queries/movieKeywords.test.ts +1 -2
  34. package/src/queries/movieRecommendations.test.ts +1 -2
  35. package/src/queries/movieReleaseDates.test.ts +1 -2
  36. package/src/queries/movieReviews.test.ts +1 -2
  37. package/src/queries/movieSimilarMovies.test.ts +1 -2
  38. package/src/queries/movieTranslations.test.ts +1 -2
  39. package/src/queries/movieVideos.test.ts +1 -2
  40. package/src/queries/movieWatchProviders.test.ts +1 -2
  41. package/src/queries/network.test.ts +1 -2
  42. package/src/queries/networkAlternativeNames.test.ts +1 -2
  43. package/src/queries/networkLogos.test.ts +1 -2
  44. package/src/queries/person.test.ts +1 -2
  45. package/src/queries/personCombinedCredits.test.ts +1 -2
  46. package/src/queries/personExternalIds.test.ts +1 -2
  47. package/src/queries/personMovieCredits.test.ts +1 -2
  48. package/src/queries/personProfiles.test.ts +1 -2
  49. package/src/queries/personTranslations.test.ts +1 -2
  50. package/src/queries/personTvCredits.test.ts +1 -2
  51. package/src/queries/rated.test.ts +1 -2
  52. package/src/queries/review.test.ts +1 -2
  53. package/src/queries/search.test.ts +1 -2
  54. package/src/queries/season.test.ts +1 -2
  55. package/src/queries/seasonCredits.test.ts +1 -2
  56. package/src/queries/seasonExternalIds.test.ts +1 -2
  57. package/src/queries/seasonPosters.test.ts +1 -2
  58. package/src/queries/seasonTranslations.test.ts +1 -2
  59. package/src/queries/seasonVideos.test.ts +1 -2
  60. package/src/queries/trending.test.ts +1 -2
  61. package/src/queries/tv.test.ts +1 -2
  62. package/src/queries/tvAlternativeTitles.test.ts +1 -2
  63. package/src/queries/tvContentRatings.test.ts +1 -2
  64. package/src/queries/tvCredits.test.ts +1 -2
  65. package/src/queries/tvEpisodeGroups.test.ts +1 -2
  66. package/src/queries/tvExternalIds.test.ts +1 -2
  67. package/src/queries/tvImages.test.ts +1 -2
  68. package/src/queries/tvKeywords.test.ts +1 -2
  69. package/src/queries/tvRecommendations.test.ts +1 -2
  70. package/src/queries/tvReviews.test.ts +1 -2
  71. package/src/queries/tvSimilarTvShows.test.ts +1 -2
  72. package/src/queries/tvTranslations.test.ts +1 -2
  73. package/src/queries/tvVideos.test.ts +1 -2
  74. package/src/queries/tvWatchProviders.test.ts +1 -2
  75. package/tsconfig.build.json +2 -2
  76. package/tsconfig.json +1 -1
@@ -3,7 +3,7 @@ import { jest } from '@jest/globals';
3
3
  import { type ShortcutMethodNames, TV_PATH } from '@tmdb-graphql-api/rest-client';
4
4
  import tvDetails from '@tmdb-graphql-api/test-utils/responses/themoviedb/tv/1399/details.json';
5
5
  import tvImages from '@tmdb-graphql-api/test-utils/responses/themoviedb/tv/1399/images.json';
6
- import { mockFetch, polyfillFetch } from 'fetch-mocked';
6
+ import { mockFetch } from 'fetch-mocked';
7
7
  import type { FetchResponse, Getta, ShortcutProperties } from 'getta';
8
8
  import type { GraphQLResolveInfo } from 'graphql';
9
9
  import { buildEndpoint } from '../__testUtils__/helpers/buildEndpoint.ts';
@@ -11,7 +11,6 @@ import { createRestClient } from '../__testUtils__/helpers/createRestClient.ts';
11
11
  import type { Context, RawTvWithAppendToResponse } from '../types.ts';
12
12
  import { resolveTvImages } from './tvImages.ts';
13
13
 
14
- polyfillFetch();
15
14
  const mockedFetch = mockFetch(jest.fn);
16
15
 
17
16
  describe('resolveTvImages >', () => {
@@ -3,7 +3,7 @@ import { jest } from '@jest/globals';
3
3
  import { type ShortcutMethodNames, TV_PATH } from '@tmdb-graphql-api/rest-client';
4
4
  import tvDetails from '@tmdb-graphql-api/test-utils/responses/themoviedb/tv/1399/details.json';
5
5
  import tvKeywords from '@tmdb-graphql-api/test-utils/responses/themoviedb/tv/1399/keywords.json';
6
- import { mockFetch, polyfillFetch } from 'fetch-mocked';
6
+ import { mockFetch } from 'fetch-mocked';
7
7
  import type { FetchResponse, Getta, ShortcutProperties } from 'getta';
8
8
  import type { GraphQLResolveInfo } from 'graphql';
9
9
  import { buildEndpoint } from '../__testUtils__/helpers/buildEndpoint.ts';
@@ -11,7 +11,6 @@ import { createRestClient } from '../__testUtils__/helpers/createRestClient.ts';
11
11
  import type { Context, RawTvWithAppendToResponse } from '../types.ts';
12
12
  import { resolveTvKeywords } from './tvKeywords.ts';
13
13
 
14
- polyfillFetch();
15
14
  const mockedFetch = mockFetch(jest.fn);
16
15
 
17
16
  describe('resolveTvKeywords >', () => {
@@ -3,7 +3,7 @@ import { jest } from '@jest/globals';
3
3
  import { type ShortcutMethodNames, TV_PATH } from '@tmdb-graphql-api/rest-client';
4
4
  import tvDetails from '@tmdb-graphql-api/test-utils/responses/themoviedb/tv/1399/details.json';
5
5
  import tvRecommendations from '@tmdb-graphql-api/test-utils/responses/themoviedb/tv/1399/recommendations.json';
6
- import { type Jsonifiable, mockFetch, polyfillFetch } from 'fetch-mocked';
6
+ import { type Jsonifiable, mockFetch } from 'fetch-mocked';
7
7
  import type { FetchResponse, Getta, ShortcutProperties } from 'getta';
8
8
  import type { GraphQLResolveInfo } from 'graphql';
9
9
  import { decode } from 'js-base64';
@@ -18,7 +18,6 @@ import {
18
18
  resolveTvRecommendations,
19
19
  } from './tvRecommendations.ts';
20
20
 
21
- polyfillFetch();
22
21
  const mockedFetch = mockFetch(jest.fn);
23
22
  const id = 1399;
24
23
 
@@ -3,7 +3,7 @@ import { jest } from '@jest/globals';
3
3
  import { type ShortcutMethodNames, TV_PATH } from '@tmdb-graphql-api/rest-client';
4
4
  import tvDetails from '@tmdb-graphql-api/test-utils/responses/themoviedb/tv/1399/details.json';
5
5
  import tvReviews from '@tmdb-graphql-api/test-utils/responses/themoviedb/tv/1399/reviews.json';
6
- import { type Jsonifiable, mockFetch, polyfillFetch } from 'fetch-mocked';
6
+ import { type Jsonifiable, mockFetch } from 'fetch-mocked';
7
7
  import type { FetchResponse, Getta, ShortcutProperties } from 'getta';
8
8
  import type { GraphQLResolveInfo } from 'graphql';
9
9
  import { decode } from 'js-base64';
@@ -13,7 +13,6 @@ import { REVIEWS, TV } from '../constants.ts';
13
13
  import type { Context, RawTv, RawTvWithAppendToResponse } from '../types.ts';
14
14
  import { createMakeCursors, createResourceResolver, cursorCache, resolveTvReviews } from './tvReviews.ts';
15
15
 
16
- polyfillFetch();
17
16
  const mockedFetch = mockFetch(jest.fn);
18
17
  const id = 1399;
19
18
 
@@ -3,7 +3,7 @@ import { jest } from '@jest/globals';
3
3
  import { type ShortcutMethodNames, TV_PATH } from '@tmdb-graphql-api/rest-client';
4
4
  import tvDetails from '@tmdb-graphql-api/test-utils/responses/themoviedb/tv/1399/details.json';
5
5
  import tvSimilarTvShows from '@tmdb-graphql-api/test-utils/responses/themoviedb/tv/1399/similarTvShows.json';
6
- import { type Jsonifiable, mockFetch, polyfillFetch } from 'fetch-mocked';
6
+ import { type Jsonifiable, mockFetch } from 'fetch-mocked';
7
7
  import type { FetchResponse, Getta, ShortcutProperties } from 'getta';
8
8
  import type { GraphQLResolveInfo } from 'graphql';
9
9
  import { decode } from 'js-base64';
@@ -13,7 +13,6 @@ import { SIMILAR, TV } from '../constants.ts';
13
13
  import type { Context, RawTv, RawTvWithAppendToResponse } from '../types.ts';
14
14
  import { createMakeCursors, createResourceResolver, cursorCache, resolveTvSimilarTvShows } from './tvSimilarTvShows.ts';
15
15
 
16
- polyfillFetch();
17
16
  const mockedFetch = mockFetch(jest.fn);
18
17
  const id = 1399;
19
18
 
@@ -3,7 +3,7 @@ import { jest } from '@jest/globals';
3
3
  import { type ShortcutMethodNames, TV_PATH } from '@tmdb-graphql-api/rest-client';
4
4
  import tvDetails from '@tmdb-graphql-api/test-utils/responses/themoviedb/tv/1399/details.json';
5
5
  import tvTranslations from '@tmdb-graphql-api/test-utils/responses/themoviedb/tv/1399/translations.json';
6
- import { mockFetch, polyfillFetch } from 'fetch-mocked';
6
+ import { mockFetch } from 'fetch-mocked';
7
7
  import type { FetchResponse, Getta, ShortcutProperties } from 'getta';
8
8
  import type { GraphQLResolveInfo } from 'graphql';
9
9
  import { buildEndpoint } from '../__testUtils__/helpers/buildEndpoint.ts';
@@ -11,7 +11,6 @@ import { createRestClient } from '../__testUtils__/helpers/createRestClient.ts';
11
11
  import type { Context, RawTvWithAppendToResponse } from '../types.ts';
12
12
  import { resolveTvTranslations } from './tvTranslations.ts';
13
13
 
14
- polyfillFetch();
15
14
  const mockedFetch = mockFetch(jest.fn);
16
15
 
17
16
  describe('resolveTvTranslations >', () => {
@@ -3,7 +3,7 @@ import { jest } from '@jest/globals';
3
3
  import { type ShortcutMethodNames, TV_PATH } from '@tmdb-graphql-api/rest-client';
4
4
  import tvDetails from '@tmdb-graphql-api/test-utils/responses/themoviedb/tv/1399/details.json';
5
5
  import tvVideos from '@tmdb-graphql-api/test-utils/responses/themoviedb/tv/1399/videos.json';
6
- import { mockFetch, polyfillFetch } from 'fetch-mocked';
6
+ import { mockFetch } from 'fetch-mocked';
7
7
  import type { FetchResponse, Getta, ShortcutProperties } from 'getta';
8
8
  import type { GraphQLResolveInfo } from 'graphql';
9
9
  import { buildEndpoint } from '../__testUtils__/helpers/buildEndpoint.ts';
@@ -11,7 +11,6 @@ import { createRestClient } from '../__testUtils__/helpers/createRestClient.ts';
11
11
  import type { Context, RawTvWithAppendToResponse } from '../types.ts';
12
12
  import { resolveTvVideos } from './tvVideos.ts';
13
13
 
14
- polyfillFetch();
15
14
  const mockedFetch = mockFetch(jest.fn);
16
15
 
17
16
  describe('resolveTvVideos >', () => {
@@ -3,7 +3,7 @@ import { jest } from '@jest/globals';
3
3
  import { type ShortcutMethodNames, WATCH_PROVIDER_PATH } from '@tmdb-graphql-api/rest-client';
4
4
  import tvDetails from '@tmdb-graphql-api/test-utils/responses/themoviedb/tv/1399/details.json';
5
5
  import tvWatchProviders from '@tmdb-graphql-api/test-utils/responses/themoviedb/tv/1399/watchProviders.json';
6
- import { mockFetch, polyfillFetch } from 'fetch-mocked';
6
+ import { mockFetch } from 'fetch-mocked';
7
7
  import type { FetchResponse, Getta, ShortcutProperties } from 'getta';
8
8
  import type { GraphQLResolveInfo } from 'graphql';
9
9
  import { buildEndpoint } from '../__testUtils__/helpers/buildEndpoint.ts';
@@ -11,7 +11,6 @@ import { createRestClient } from '../__testUtils__/helpers/createRestClient.ts';
11
11
  import type { Context, RawTvWithAppendToResponse } from '../types.ts';
12
12
  import { resolveTvWatchProviders } from './tvWatchProviders.ts';
13
13
 
14
- polyfillFetch();
15
14
  const mockedFetch = mockFetch(jest.fn);
16
15
 
17
16
  describe('resolveTvWatchProviders >', () => {
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "extends": "./tsconfig.json",
3
3
  "compilerOptions": {
4
- "rootDir": "src",
5
- "outDir": "dist/types/esm"
4
+ "outDir": "dist/types/esm",
5
+ "rootDir": "src"
6
6
  },
7
7
  "exclude": [
8
8
  "**/*.test.*",
package/tsconfig.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "extends": "@repodog/ts-config/build.json",
2
+ "extends": ["@repodog/ts-config/index.json", "@repodog/ts-config/build.json"],
3
3
  "include": [
4
4
  "src/**/*",
5
5
  "src/**/*.json"