Skip to content

Commit

Permalink
sed
Browse files Browse the repository at this point in the history
  • Loading branch information
odanado committed Aug 27, 2024
1 parent 566bf43 commit f4c9671
Show file tree
Hide file tree
Showing 17 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion packages/annotations/src/compute.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import filter from 'lodash/filter.js'
import isNumber from 'lodash/isNumber'
import isNumber from 'lodash/isNumber.js'
import omit from 'lodash/omit.js'
import {
radiansToDegrees,
Expand Down
2 changes: 1 addition & 1 deletion packages/boxplot/src/compute/legends.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { BoxPlotDatum, BoxPlotCommonProps, ComputedBoxPlotSummary, LegendData } from '../types'
import { getPropertyAccessor } from '@nivo/core'
import uniqBy from 'lodash/uniqBy.js'
import sortBy from 'lodash/sortBy'
import sortBy from 'lodash/sortBy.js'

export const getLegendData = <RawDatum extends BoxPlotDatum>({
boxPlots,
Expand Down
2 changes: 1 addition & 1 deletion packages/calendar/src/compute/calendar.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import isDate from 'lodash/isDate'
import isDate from 'lodash/isDate.js'
import memoize from 'lodash/memoize.js'
import range from 'lodash/range.js'
import { alignBox } from '@nivo/core'
Expand Down
2 changes: 1 addition & 1 deletion packages/calendar/src/compute/timeRange.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
} from 'd3-time'
import { timeFormat } from 'd3-time-format'
import { DateOrString, Weekday } from '../types'
import isDate from 'lodash/isDate'
import isDate from 'lodash/isDate.js'

// Interfaces
interface ComputeBaseProps {
Expand Down
2 changes: 1 addition & 1 deletion packages/circle-packing/src/hooks.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useMemo, MouseEvent, MutableRefObject, useCallback } from 'react'
import { pack as d3Pack, hierarchy as d3Hierarchy } from 'd3-hierarchy'
import cloneDeep from 'lodash/cloneDeep.js'
import sortBy from 'lodash/sortBy'
import sortBy from 'lodash/sortBy.js'
import {
usePropertyAccessor,
useValueFormatter,
Expand Down
2 changes: 1 addition & 1 deletion packages/colors/src/inheritedColor.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useMemo } from 'react'
import get from 'lodash/get.js'
import isPlainObject from 'lodash/isPlainObject'
import isPlainObject from 'lodash/isPlainObject.js'
import { rgb, RGBColor } from 'd3-color'
import { Theme } from '@nivo/core'

Expand Down
2 changes: 1 addition & 1 deletion packages/colors/src/scales/ordinalColorScale.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useMemo } from 'react'
import get from 'lodash/get.js'
import isPlainObject from 'lodash/isPlainObject'
import isPlainObject from 'lodash/isPlainObject.js'
import { scaleOrdinal } from 'd3-scale'
import {
ColorSchemeId,
Expand Down
2 changes: 1 addition & 1 deletion packages/generators/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import range from 'lodash/range.js'
import random from 'lodash/random.js'
import shuffle from 'lodash/shuffle'
import shuffle from 'lodash/shuffle.js'
import { timeDays } from 'd3-time'
import { timeFormat } from 'd3-time-format'
import * as color from './color'
Expand Down
2 changes: 1 addition & 1 deletion packages/generators/src/sankey.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import range from 'lodash/range.js'
import random from 'lodash/random.js'
import shuffle from 'lodash/shuffle'
import shuffle from 'lodash/shuffle.js'
import { randColor } from './color'
import { names } from './sets'

Expand Down
2 changes: 1 addition & 1 deletion packages/generators/src/swarmplot.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import range from 'lodash/range.js'
import random from 'lodash/random.js'
import shuffle from 'lodash/shuffle'
import shuffle from 'lodash/shuffle.js'

type SwarmPlotDatum = {
id: string
Expand Down
2 changes: 1 addition & 1 deletion packages/geo/src/hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* file that was distributed with this source code.
*/
import { useMemo } from 'react'
import isFunction from 'lodash/isFunction'
import isFunction from 'lodash/isFunction.js'
import get from 'lodash/get.js'
import { format } from 'd3-format'
import {
Expand Down
6 changes: 3 additions & 3 deletions packages/scales/src/compute.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import uniq from 'lodash/uniq.js'
import uniqBy from 'lodash/uniqBy.js'
import sortBy from 'lodash/sortBy'
import last from 'lodash/last'
import isDate from 'lodash/isDate'
import sortBy from 'lodash/sortBy.js'
import last from 'lodash/last.js'
import isDate from 'lodash/isDate.js'
import { createDateNormalizer } from './timeHelpers'
import { ScaleAxis, ScaleSpec, ScaleValue, SerieAxis, ComputedSerieAxis } from './types'
import { createLinearScale } from './linearScale'
Expand Down
6 changes: 3 additions & 3 deletions packages/scatterplot/src/compute.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import get from 'lodash/get.js'
import isString from 'lodash/isString'
import isNumber from 'lodash/isNumber'
import isPlainObject from 'lodash/isPlainObject'
import isString from 'lodash/isString.js'
import isNumber from 'lodash/isNumber.js'
import isPlainObject from 'lodash/isPlainObject.js'
import { scaleLinear } from 'd3-scale'
import { ComputedSerie } from '@nivo/scales'
import {
Expand Down
2 changes: 1 addition & 1 deletion packages/sunburst/src/hooks.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useMemo } from 'react'
import { partition as d3Partition, hierarchy as d3Hierarchy } from 'd3-hierarchy'
import cloneDeep from 'lodash/cloneDeep.js'
import sortBy from 'lodash/sortBy'
import sortBy from 'lodash/sortBy.js'
import { usePropertyAccessor, useTheme, useValueFormatter } from '@nivo/core'
import { Arc, useArcGenerator } from '@nivo/arcs'
import { useOrdinalColorScale, useInheritedColor, InheritedColorConfig } from '@nivo/colors'
Expand Down
2 changes: 1 addition & 1 deletion packages/swarmplot/src/SwarmPlotCanvas.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createElement, useCallback, useEffect, useRef, useState } from 'react'
import * as React from 'react'
import isNumber from 'lodash/isNumber'
import isNumber from 'lodash/isNumber.js'
import { Container, getRelativeCursor, isCursorInRect, useDimensions, useTheme } from '@nivo/core'
import { InheritedColorConfig, OrdinalColorScaleConfig, useInheritedColor } from '@nivo/colors'
import { AnyScale } from '@nivo/scales'
Expand Down
6 changes: 3 additions & 3 deletions packages/swarmplot/src/compute.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import isNumber from 'lodash/isNumber'
import isPlainObject from 'lodash/isPlainObject'
import isString from 'lodash/isString'
import isNumber from 'lodash/isNumber.js'
import isPlainObject from 'lodash/isPlainObject.js'
import isString from 'lodash/isString.js'
import get from 'lodash/get.js'
import { scaleLinear, ScaleOrdinal, scaleOrdinal } from 'd3-scale'
import { forceSimulation, forceX, forceY, forceCollide, ForceX, ForceY } from 'd3-force'
Expand Down
2 changes: 1 addition & 1 deletion packages/treemap/src/hooks.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { createElement, useCallback, useMemo, MouseEvent } from 'react'
import omit from 'lodash/omit.js'
import cloneDeep from 'lodash/cloneDeep.js'
import startCase from 'lodash/startCase'
import startCase from 'lodash/startCase.js'
import {
treemap as d3Treemap,
hierarchy,
Expand Down

0 comments on commit f4c9671

Please sign in to comment.