We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
p-map
1 parent e428ed8 commit 9b9f369Copy full SHA for 9b9f369
src/sql-cursor-pagination.ts
@@ -1,4 +1,3 @@
1
-import pMap from 'p-map';
2
import { notNull } from './assert';
3
import { RawCursor, buildCursor, encryptCursor, resolveCursor } from './cursor';
4
import { CursorSecret } from './cursor-secret';
@@ -462,6 +461,7 @@ async function _withPagination<
462
461
: false;
463
464
const seenCursors: Set<string> = new Set();
+ const { default: pMap } = await import('p-map');
465
const edgesWithRawCursor: _WithPaginationResultEdge<TNode, boolean, true>[] =
466
await pMap(
467
lastNodes,
0 commit comments