Skip to content

Commit

Permalink
add range to utils lodash imports
Browse files Browse the repository at this point in the history
  • Loading branch information
busma13 committed Dec 16, 2024
1 parent 0992646 commit 0a1e3ed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
7 changes: 1 addition & 6 deletions packages/teraslice/src/lib/utils/port_utils.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
import {
get, times, pDelay,
toIntegerOrThrow, shuffle, range
get, toIntegerOrThrow, shuffle, range
} from '@terascope/utils';

import getPort from 'get-port';
import { Context } from '@terascope/job-components';
import range from 'lodash/range.js';
import getPort from 'get-port';
import { get, toIntegerOrThrow } from '@terascope/utils';
import { Context } from '@terascope/job-components';

export interface PortOptions {
start?: number;
Expand Down
6 changes: 4 additions & 2 deletions packages/utils/src/deps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import {
has, set, get, unset,
merge, debounce, padEnd,
difference, throttle, chain,
orderBy, shuffle, defaultsDeep, sortBy
orderBy, shuffle, defaultsDeep,
sortBy, range
} from 'lodash-es';
import { isPlainObject as _isPlainObject } from 'is-plain-object';
import _clone from 'shallow-clone';
Expand Down Expand Up @@ -131,5 +132,6 @@ export {
orderBy,
shuffle,
defaultsDeep,
multiFieldSort
multiFieldSort,
range
};

0 comments on commit 0a1e3ed

Please sign in to comment.