Socket
Socket
Sign inDemoInstall

@nivo/scales

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nivo/scales - npm Package Compare versions

Comparing version 0.61.0 to 0.62.0

4

dist/nivo-scales.cjs.js

@@ -179,3 +179,3 @@ 'use strict';

} else if (format !== 'native') {
minValue = normalize(values.min);
minValue = normalize(min);
}

@@ -186,3 +186,3 @@ var maxValue = max;

} else if (format !== 'native') {
maxValue = normalize(values.max);
maxValue = normalize(max);
}

@@ -189,0 +189,0 @@ var scale = useUTC ? d3Scale.scaleUtc() : d3Scale.scaleTime();

@@ -173,3 +173,3 @@ import PropTypes from 'prop-types';

} else if (format !== 'native') {
minValue = normalize(values.min);
minValue = normalize(min);
}

@@ -180,3 +180,3 @@ var maxValue = max;

} else if (format !== 'native') {
maxValue = normalize(values.max);
maxValue = normalize(max);
}

@@ -183,0 +183,0 @@ var scale = useUTC ? scaleUtc() : scaleTime();

@@ -177,3 +177,3 @@ (function (global, factory) {

} else if (format !== 'native') {
minValue = normalize(values.min);
minValue = normalize(min);
}

@@ -184,3 +184,3 @@ var maxValue = max;

} else if (format !== 'native') {
maxValue = normalize(values.max);
maxValue = normalize(max);
}

@@ -187,0 +187,0 @@ var scale = useUTC ? d3Scale.scaleUtc() : d3Scale.scaleTime();

@@ -22,7 +22,17 @@ /*

export interface TimeScaleFormatted {
type: 'time'
format: string
precision?: 'millisecond' | 'second' | 'minute' | 'hour' | 'month' | 'year' | 'day'
useUTC?: boolean
min?: 'auto' | string
max?: 'auto' | string
}
export interface TimeScale {
type: 'time'
format?: string
precision?: 'millisecond' | 'second' | 'minute' | 'hour' | 'month' | 'year' | 'day'
useUTC?: boolean
min?: 'auto' | Date
max?: 'auto' | Date
}

@@ -37,5 +47,5 @@

export type Scale = LinearScale | PointScale | TimeScale | LogScale
export type Scale = LinearScale | PointScale | TimeScale | TimeScaleFormatted | LogScale
export type ScaleFunc = (value: string | number | Date) => number
}
{
"name": "@nivo/scales",
"version": "0.61.0",
"version": "0.62.0",
"license": "MIT",

@@ -28,3 +28,3 @@ "author": {

},
"gitHead": "441383999dad1c9697ef6f4bc89b1c19b4505153"
"gitHead": "a98a072c4fe5339457d26f396d032dfc302187bc"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc