@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.
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/index.mjs.map +1 -1
- package/dist/production.analysis.txt +4 -4
- package/dist/types/cjs/__testUtils__/generatePageResponse.d.cts +2 -2
- package/dist/types/cjs/__testUtils__/generatePageResponse.d.cts.map +1 -1
- package/dist/types/cjs/helpers/getDirection.d.cts +1 -1
- package/dist/types/cjs/helpers/getDirection.d.cts.map +1 -1
- package/dist/types/cjs/helpers/getIndexesOnCurrentPage.d.cts +1 -1
- package/dist/types/cjs/helpers/getIndexesOnCurrentPage.d.cts.map +1 -1
- package/dist/types/cjs/helpers/isCursorSupplied.d.cts +1 -1
- package/dist/types/cjs/helpers/isCursorSupplied.d.cts.map +1 -1
- package/dist/types/cjs/helpers/requestAndCachePages.d.cts +1 -1
- package/dist/types/cjs/helpers/requestAndCachePages.d.cts.map +1 -1
- package/dist/types/cjs/helpers/requestOutstandingPages.d.cts +1 -1
- package/dist/types/cjs/helpers/requestOutstandingPages.d.cts.map +1 -1
- package/dist/types/cjs/helpers/resolveConnection.d.cts +1 -1
- package/dist/types/cjs/helpers/resolveConnection.d.cts.map +1 -1
- package/dist/types/cjs/helpers/retrieveEntry.d.cts +2 -2
- package/dist/types/cjs/helpers/retrieveEntry.d.cts.map +1 -1
- package/dist/types/cjs/main/index.d.cts +1 -1
- package/dist/types/cjs/main/index.d.cts.map +1 -1
- package/dist/types/cjs/types.d.cts +1 -1
- package/dist/types/cjs/types.d.cts.map +1 -1
- package/dist/types/esm/__testUtils__/generatePageResponse.d.ts +2 -2
- package/dist/types/esm/__testUtils__/generatePageResponse.d.ts.map +1 -1
- package/dist/types/esm/helpers/getDirection.d.ts +1 -1
- package/dist/types/esm/helpers/getDirection.d.ts.map +1 -1
- package/dist/types/esm/helpers/getIndexesOnCurrentPage.d.ts +1 -1
- package/dist/types/esm/helpers/getIndexesOnCurrentPage.d.ts.map +1 -1
- package/dist/types/esm/helpers/isCursorSupplied.d.ts +1 -1
- package/dist/types/esm/helpers/isCursorSupplied.d.ts.map +1 -1
- package/dist/types/esm/helpers/requestAndCachePages.d.ts +1 -1
- package/dist/types/esm/helpers/requestAndCachePages.d.ts.map +1 -1
- package/dist/types/esm/helpers/requestOutstandingPages.d.ts +1 -1
- package/dist/types/esm/helpers/requestOutstandingPages.d.ts.map +1 -1
- package/dist/types/esm/helpers/resolveConnection.d.ts +1 -1
- package/dist/types/esm/helpers/resolveConnection.d.ts.map +1 -1
- package/dist/types/esm/helpers/retrieveEntry.d.ts +2 -2
- package/dist/types/esm/helpers/retrieveEntry.d.ts.map +1 -1
- package/dist/types/esm/main/index.d.ts +1 -1
- package/dist/types/esm/main/index.d.ts.map +1 -1
- package/dist/types/esm/types.d.ts +1 -1
- package/dist/types/esm/types.d.ts.map +1 -1
- package/dist/types/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/__testUtils__/generatePageResponse.ts +2 -2
- package/src/helpers/getDirection.ts +1 -1
- package/src/helpers/getIndexesOnCurrentPage.ts +1 -1
- package/src/helpers/isCursorSupplied.ts +1 -1
- package/src/helpers/requestAndCachePages.ts +1 -1
- package/src/helpers/requestOutstandingPages.ts +1 -1
- package/src/helpers/resolveConnection.ts +1 -1
- package/src/helpers/retrieveEntry.ts +6 -6
- package/src/main/index.test.ts +2 -2
- package/src/main/index.ts +1 -1
- 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.
|
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.
|
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
|
1
|
+
import { type PlainObject } from '@graphql-box/core';
|
2
2
|
import { encode } from 'js-base64';
|
3
|
-
import type
|
3
|
+
import { type ResourceResponse } from '../types.ts';
|
4
4
|
|
5
5
|
export type Params = {
|
6
6
|
resultsPerPage: number;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type
|
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
|
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,5 +1,5 @@
|
|
1
1
|
import { type Core } from '@cachemap/core';
|
2
|
-
import type
|
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
|
2
|
-
import
|
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';
|
package/src/main/index.test.ts
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
import { Core } from '@cachemap/core';
|
2
2
|
import { init as map } from '@cachemap/map';
|
3
|
-
import type
|
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
|
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
|
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