New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@react-stately/slider

Package Overview
Dependencies
Maintainers
2
Versions
886
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-stately/slider - npm Package Compare versions

Comparing version 3.0.0-nightly-262cc758b-241115 to 3.0.0-nightly-2788d8afd-250205

13

package.json
{
"name": "@react-stately/slider",
"version": "3.0.0-nightly-262cc758b-241115",
"version": "3.0.0-nightly-2788d8afd-250205",
"description": "Spectrum UI components in React",

@@ -25,14 +25,13 @@ "license": "Apache-2.0",

"dependencies": {
"@react-stately/utils": "^3.0.0-nightly-262cc758b-241115",
"@react-types/shared": "^3.0.0-nightly-262cc758b-241115",
"@react-types/slider": "^3.0.0-nightly-262cc758b-241115",
"@react-stately/utils": "3.0.0-nightly-2788d8afd-250205",
"@react-types/shared": "3.0.0-nightly-2788d8afd-250205",
"@react-types/slider": "3.0.0-nightly-2788d8afd-250205",
"@swc/helpers": "^0.5.0"
},
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0"
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
},
"publishConfig": {
"access": "public"
},
"stableVersion": "3.5.8"
}
}

@@ -179,3 +179,3 @@ /*

let restrictValues = useCallback((values: number[]) => values?.map((val, idx) => {
let restrictValues = useCallback((values: number[] | undefined) => values?.map((val, idx) => {
let min = idx === 0 ? minValue : values[idx - 1];

@@ -187,3 +187,3 @@ let max = idx === values.length - 1 ? maxValue : values[idx + 1];

let value = useMemo(() => restrictValues(convertValue(props.value)), [props.value]);
let defaultValue = useMemo(() => restrictValues(convertValue(props.defaultValue) ?? [minValue]), [props.defaultValue, minValue]);
let defaultValue = useMemo(() => restrictValues(convertValue(props.defaultValue) ?? [minValue])!, [props.defaultValue, minValue]);
let onChange = createOnChange(props.value, props.defaultValue, props.onChange);

@@ -326,3 +326,3 @@ let onChangeEnd = createOnChange(props.value, props.defaultValue, props.onChangeEnd);

function convertValue(value: number | number[]) {
function convertValue(value?: number | number[]) {
if (value == null) {

@@ -329,0 +329,0 @@ return undefined;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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