Skip to content

Commit 736a344

Browse files
committed
fix: wrong imports
1 parent cf9bd1f commit 736a344

File tree

14 files changed

+20
-13
lines changed

14 files changed

+20
-13
lines changed

src/hooks/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export * from './lowercase-result/lowercase-result.js'
1111
export * from './omit-data/omit-data.js'
1212
export * from './omit-query/omit-query.js'
1313
export * from './omit-result/omit-result.js'
14+
export * from './params-for-server/params-for-server.js'
1415
export * from './params-from-client/params-from-client.js'
1516
export * from './pick-data/pick-data.js'
1617
export * from './pick-query/pick-query.js'

src/hooks/lowercase-result/lowercase-result.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import _get from 'lodash/get.js'
22
import _set from 'lodash/set.js'
33
import { BadRequest } from '@feathersjs/errors'
4-
import { transformResult } from '../transform-data/transform-result.js'
4+
import { transformResult } from '../transform-result/transform-result.js'
55
import type { DispatchOption } from '../../types.js'
66
import type { MaybeArray } from '../../internal.utils.js'
77
import { toArray } from '../../internal.utils.js'

src/hooks/omit-result/omit-result.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import _omit from 'lodash/omit.js'
2-
import { transformResult } from '../transform-data/transform-result.js'
2+
import { transformResult } from '../transform-result/transform-result.js'
33
import type { MaybeArray } from '../../internal.utils.js'
44
import { toArray } from '../../internal.utils.js'
55
import type { DispatchOption } from '../../types.js'
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export const FROM_CLIENT_FOR_SERVER_DEFAULT_KEY = '_$client' as const

src/hooks/params-for-server/params-for-server.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import type { HookContext, NextFunction } from '@feathersjs/feathers'
22
import type { MaybeArray } from '../../internal.utils.js'
33
import { toArray } from '../../internal.utils.js'
4-
5-
export const FROM_CLIENT_FOR_SERVER_DEFAULT_KEY = '_$client' as const
4+
import { FROM_CLIENT_FOR_SERVER_DEFAULT_KEY } from './params-for-from-shared.js'
65

76
export type ParamsForServerOptions = {
87
/**

src/hooks/params-from-client/params-from-client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { HookContext, NextFunction } from '@feathersjs/feathers'
2-
import { FROM_CLIENT_FOR_SERVER_DEFAULT_KEY } from '../params-for-server/params-for-server.js'
32
import type { MaybeArray } from '../../internal.utils.js'
43
import { toArray } from '../../internal.utils.js'
4+
import { FROM_CLIENT_FOR_SERVER_DEFAULT_KEY } from '../params-for-server/params-for-from-shared.js'
55

66
export type paramsFromClientOptions = {
77
/**

src/hooks/pick-result/pick-result.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import _pick from 'lodash/pick.js'
22

3-
import { transformResult } from '../transform-data/transform-result.js'
3+
import { transformResult } from '../transform-result/transform-result.js'
44
import type { DispatchOption } from '../../types.js'
55
import type { MaybeArray } from '../../internal.utils.js'
66
import { toArray } from '../../internal.utils.js'

src/hooks/set-now-result/set-now-result.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import _set from 'lodash/set.js'
2-
import { transformResult } from '../transform-data/transform-result.js'
2+
import { transformResult } from '../transform-result/transform-result.js'
33
import type { MaybeArray } from '../../internal.utils.js'
44
import { toArray } from '../../internal.utils.js'
55
import type { DispatchOption } from '../../types.js'

src/hooks/throw-if-is-multi/throw-if-is-multi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { HookContext } from '@feathersjs/feathers'
22
import type { PredicateFn } from '../../types.js'
33
import { type FeathersError } from '@feathersjs/errors'
44
import { every, isMulti } from '../../predicates/index.js'
5-
import { throwIf } from './throw-if.js'
5+
import { throwIf } from '../throw-if/throw-if.js'
66

77
export type ThrowIfIsMultiOptions = {
88
filter?: PredicateFn

src/hooks/throw-if-is-provider/throw-if-is-provider.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { HookContext } from '@feathersjs/feathers'
22
import type { PredicateFn, TransportName } from '../../types.js'
3-
import type { ThrowIfOptions } from './throw-if.js'
4-
import { throwIf } from './throw-if.js'
3+
import type { ThrowIfOptions } from '../throw-if/throw-if.js'
4+
import { throwIf } from '../throw-if/throw-if.js'
55
import { toArray } from 'lodash'
66
import { every, isProvider } from '../../predicates/index.js'
77
import { MethodNotAllowed } from '@feathersjs/errors'

0 commit comments

Comments
 (0)