@graphql-box/connection-resolver 5.2.3 → 5.2.5

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 (56) hide show
  1. package/dist/cjs/index.cjs.map +1 -1
  2. package/dist/esm/index.mjs.map +1 -1
  3. package/dist/production.analysis.txt +4 -4
  4. package/dist/types/cjs/__testUtils__/generatePageResponse.d.cts +2 -2
  5. package/dist/types/cjs/__testUtils__/generatePageResponse.d.cts.map +1 -1
  6. package/dist/types/cjs/helpers/getDirection.d.cts +1 -1
  7. package/dist/types/cjs/helpers/getDirection.d.cts.map +1 -1
  8. package/dist/types/cjs/helpers/getIndexesOnCurrentPage.d.cts +1 -1
  9. package/dist/types/cjs/helpers/getIndexesOnCurrentPage.d.cts.map +1 -1
  10. package/dist/types/cjs/helpers/isCursorSupplied.d.cts +1 -1
  11. package/dist/types/cjs/helpers/isCursorSupplied.d.cts.map +1 -1
  12. package/dist/types/cjs/helpers/requestAndCachePages.d.cts +1 -1
  13. package/dist/types/cjs/helpers/requestAndCachePages.d.cts.map +1 -1
  14. package/dist/types/cjs/helpers/requestOutstandingPages.d.cts +1 -1
  15. package/dist/types/cjs/helpers/requestOutstandingPages.d.cts.map +1 -1
  16. package/dist/types/cjs/helpers/resolveConnection.d.cts +1 -1
  17. package/dist/types/cjs/helpers/resolveConnection.d.cts.map +1 -1
  18. package/dist/types/cjs/helpers/retrieveEntry.d.cts +2 -2
  19. package/dist/types/cjs/helpers/retrieveEntry.d.cts.map +1 -1
  20. package/dist/types/cjs/main/index.d.cts +1 -1
  21. package/dist/types/cjs/main/index.d.cts.map +1 -1
  22. package/dist/types/cjs/types.d.cts +1 -1
  23. package/dist/types/cjs/types.d.cts.map +1 -1
  24. package/dist/types/esm/__testUtils__/generatePageResponse.d.ts +2 -2
  25. package/dist/types/esm/__testUtils__/generatePageResponse.d.ts.map +1 -1
  26. package/dist/types/esm/helpers/getDirection.d.ts +1 -1
  27. package/dist/types/esm/helpers/getDirection.d.ts.map +1 -1
  28. package/dist/types/esm/helpers/getIndexesOnCurrentPage.d.ts +1 -1
  29. package/dist/types/esm/helpers/getIndexesOnCurrentPage.d.ts.map +1 -1
  30. package/dist/types/esm/helpers/isCursorSupplied.d.ts +1 -1
  31. package/dist/types/esm/helpers/isCursorSupplied.d.ts.map +1 -1
  32. package/dist/types/esm/helpers/requestAndCachePages.d.ts +1 -1
  33. package/dist/types/esm/helpers/requestAndCachePages.d.ts.map +1 -1
  34. package/dist/types/esm/helpers/requestOutstandingPages.d.ts +1 -1
  35. package/dist/types/esm/helpers/requestOutstandingPages.d.ts.map +1 -1
  36. package/dist/types/esm/helpers/resolveConnection.d.ts +1 -1
  37. package/dist/types/esm/helpers/resolveConnection.d.ts.map +1 -1
  38. package/dist/types/esm/helpers/retrieveEntry.d.ts +2 -2
  39. package/dist/types/esm/helpers/retrieveEntry.d.ts.map +1 -1
  40. package/dist/types/esm/main/index.d.ts +1 -1
  41. package/dist/types/esm/main/index.d.ts.map +1 -1
  42. package/dist/types/esm/types.d.ts +1 -1
  43. package/dist/types/esm/types.d.ts.map +1 -1
  44. package/dist/types/tsconfig.build.tsbuildinfo +1 -1
  45. package/package.json +2 -2
  46. package/src/__testUtils__/generatePageResponse.ts +2 -2
  47. package/src/helpers/getDirection.ts +1 -1
  48. package/src/helpers/getIndexesOnCurrentPage.ts +1 -1
  49. package/src/helpers/isCursorSupplied.ts +1 -1
  50. package/src/helpers/requestAndCachePages.ts +1 -1
  51. package/src/helpers/requestOutstandingPages.ts +1 -1
  52. package/src/helpers/resolveConnection.ts +1 -1
  53. package/src/helpers/retrieveEntry.ts +6 -6
  54. package/src/main/index.test.ts +2 -2
  55. package/src/main/index.ts +1 -1
  56. package/src/types.ts +1 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@graphql-box/connection-resolver",
3
3
  "description": "The GraphQL Box connection resolver module.",
4
- "version": "5.2.3",
4
+ "version": "5.2.5",
5
5
  "author": "Dylan Aubrey",
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/badbatch/graphql-box",
@@ -29,7 +29,7 @@
29
29
  "access": "public"
30
30
  },
31
31
  "dependencies": {
32
- "@cachemap/core": "^5.0.8",
32
+ "@cachemap/core": "^5.0.9",
33
33
  "js-base64": "^3.7.5",
34
34
  "type-fest": "^4.5.0",
35
35
  "@graphql-box/core": "5.2.3"
@@ -1,6 +1,6 @@
1
- import type { PlainObject } from '@graphql-box/core';
1
+ import { type PlainObject } from '@graphql-box/core';
2
2
  import { encode } from 'js-base64';
3
- import type { ResourceResponse } from '../types.ts';
3
+ import { type ResourceResponse } from '../types.ts';
4
4
 
5
5
  export type Params = {
6
6
  resultsPerPage: number;
@@ -1,3 +1,3 @@
1
- import type { Direction } from '../types.ts';
1
+ import { type Direction } from '../types.ts';
2
2
 
3
3
  export const getDirection = (last?: number): Direction => (last ? 'backward' : 'forward');
@@ -1,4 +1,4 @@
1
- import type { CursorGroupMetadata } from '../types.ts';
1
+ import { type CursorGroupMetadata } from '../types.ts';
2
2
  import { getResultsOnLastPage } from './getResultsOnLastPage.ts';
3
3
  import { isLastPage } from './isLastPage.ts';
4
4
 
@@ -1,4 +1,4 @@
1
- import type { PlainObject } from '@graphql-box/core';
1
+ import { type PlainObject } from '@graphql-box/core';
2
2
  import { type ConnectionInputOptions } from '../types.ts';
3
3
 
4
4
  export const isCursorSupplied = ({ after, before }: PlainObject & ConnectionInputOptions) => !!(after ?? before);
@@ -1,5 +1,5 @@
1
1
  import { type Core } from '@cachemap/core';
2
- import type { PlainObject } from '@graphql-box/core';
2
+ import { type PlainObject } from '@graphql-box/core';
3
3
  import { type Getters, type Node, type ResourceResolver } from '../types.ts';
4
4
  import { cacheCursors } from './cacheCursors.ts';
5
5
  import { makeEdges } from './makeEdges.ts';
@@ -1,4 +1,4 @@
1
- import type { PlainArray } from '@graphql-box/core';
1
+ import { type PlainArray } from '@graphql-box/core';
2
2
 
3
3
  export type RequestMissingPagesParams = {
4
4
  count: number;
@@ -1,5 +1,5 @@
1
1
  import { type Core } from '@cachemap/core';
2
- import type { PlainObject } from '@graphql-box/core';
2
+ import { type PlainObject } from '@graphql-box/core';
3
3
  import { type ConnectionInputOptions, type Getters, type Node, type ResourceResolver } from '../types.ts';
4
4
  import { extractEdges } from './extractEdges.ts';
5
5
  import { extractNodes } from './extractNodes.ts';
@@ -1,9 +1,9 @@
1
- import type { Core } from '@cachemap/core';
2
- import type {
3
- ConnectionInputOptions,
4
- CursorCacheEntry,
5
- CursorGroupMetadata,
6
- PartialCursorCacheEntry,
1
+ import { type Core } from '@cachemap/core';
2
+ import {
3
+ type ConnectionInputOptions,
4
+ type CursorCacheEntry,
5
+ type CursorGroupMetadata,
6
+ type PartialCursorCacheEntry,
7
7
  } from '../types.ts';
8
8
  import { getCursor } from './getCursor.ts';
9
9
  import { makeEntry } from './makeEntry.ts';
@@ -1,13 +1,13 @@
1
1
  import { Core } from '@cachemap/core';
2
2
  import { init as map } from '@cachemap/map';
3
- import type { PlainObject } from '@graphql-box/core';
3
+ import { type PlainObject } from '@graphql-box/core';
4
4
  import { expect, jest } from '@jest/globals';
5
5
  import { GraphQLError, type GraphQLResolveInfo } from 'graphql';
6
6
  import { encode } from 'js-base64';
7
7
  import { generateCursorCache } from '../__testUtils__/generateCursorCache.ts';
8
8
  import { generatePageResponse } from '../__testUtils__/generatePageResponse.ts';
9
9
  import { removeConnectionInputOptions } from '../helpers/removeConnectionInputOptions.ts';
10
- import type { Getters, Node, ResourceResponse } from '../types.ts';
10
+ import { type Getters, type Node, type ResourceResponse } from '../types.ts';
11
11
  import { makeConnectionResolver } from './index.ts';
12
12
 
13
13
  const createMakeCursors = (_source: PlainObject, args: PlainObject) => ({
package/src/main/index.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { PlainObject } from '@graphql-box/core';
1
+ import { type PlainObject } from '@graphql-box/core';
2
2
  import { type GraphQLResolveInfo } from 'graphql';
3
3
  import { isCursorSupplied } from '../helpers/isCursorSupplied.ts';
4
4
  import { requestAndCachePages } from '../helpers/requestAndCachePages.ts';
package/src/types.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { type Core } from '@cachemap/core';
2
- import type { PlainObject } from '@graphql-box/core';
2
+ import { type PlainObject } from '@graphql-box/core';
3
3
  import { type GraphQLResolveInfo } from 'graphql';
4
4
  import { type SetOptional } from 'type-fest';
5
5