Skip to content

Commit

Permalink
bump p-memoize
Browse files Browse the repository at this point in the history
  • Loading branch information
mmkal committed Sep 19, 2024
1 parent 5064abb commit 3efc547
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 483 deletions.
2 changes: 1 addition & 1 deletion packages/typegen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"dependencies": {
"@pgkit/client": "workspace:^",
"@rebundled/execa": "8.0.2-next.0",
"@rebundled/p-memoize": "7.1.2-next.4",
"@rebundled/p-memoize": "7.1.2-next.6",
"chokidar": "^3.5.3",
"execa": "^5.1.1",
"find-up": "^5.0.0",
Expand Down
5 changes: 1 addition & 4 deletions packages/typegen/src/utils/memoize.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import type {Client} from '@pgkit/client'

// @ts-expect-error types are all messed up
// eslint-disable-next-line @typescript-eslint/no-var-requires
const {pMemoize} = require('@rebundled/p-memoize') as typeof import('@rebundled/p-memoize')
import {pMemoize} from '@rebundled/p-memoize'

export const memoizeQueryFn = <Fn extends (client: Client, ...args: unknown[]) => Promise<unknown>>(fn: Fn) => {
return pMemoize(fn, {
Expand Down
Loading

0 comments on commit 3efc547

Please sign in to comment.