Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@zag-js/numeric-range

Package Overview
Dependencies
Maintainers
0
Versions
671
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zag-js/numeric-range - npm Package Compare versions

Comparing version 0.70.0 to 0.71.0

85

dist/index.js

@@ -1,44 +0,4 @@

"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod2) => __copyProps(__defProp({}, "__esModule", { value: true }), mod2);
'use strict';
// src/index.ts
var src_exports = {};
__export(src_exports, {
clampValue: () => clampValue,
getClosestValueIndex: () => getClosestValueIndex,
getMaxValueAtIndex: () => getMaxValueAtIndex,
getMinValueAtIndex: () => getMinValueAtIndex,
getNextStepValue: () => getNextStepValue,
getPercentValue: () => getPercentValue,
getPreviousStepValue: () => getPreviousStepValue,
getRoundedValue: () => getRoundedValue,
getValuePercent: () => getValuePercent,
getValueRanges: () => getValueRanges,
getValueSetterAtIndex: () => getValueSetterAtIndex,
getValueTransformer: () => getValueTransformer,
isValueAtMax: () => isValueAtMax,
isValueAtMin: () => isValueAtMin,
isValueWithinRange: () => isValueWithinRange,
mod: () => mod,
roundToStepPrecision: () => roundToStepPrecision,
snapValueToStep: () => snapValueToStep,
toFixedNumber: () => toFixedNumber
});
module.exports = __toCommonJS(src_exports);
function getMinValueAtIndex(index, values, minValue) {

@@ -165,24 +125,21 @@ return index === 0 ? minValue : values[index - 1];

}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
clampValue,
getClosestValueIndex,
getMaxValueAtIndex,
getMinValueAtIndex,
getNextStepValue,
getPercentValue,
getPreviousStepValue,
getRoundedValue,
getValuePercent,
getValueRanges,
getValueSetterAtIndex,
getValueTransformer,
isValueAtMax,
isValueAtMin,
isValueWithinRange,
mod,
roundToStepPrecision,
snapValueToStep,
toFixedNumber
});
//# sourceMappingURL=index.js.map
exports.clampValue = clampValue;
exports.getClosestValueIndex = getClosestValueIndex;
exports.getMaxValueAtIndex = getMaxValueAtIndex;
exports.getMinValueAtIndex = getMinValueAtIndex;
exports.getNextStepValue = getNextStepValue;
exports.getPercentValue = getPercentValue;
exports.getPreviousStepValue = getPreviousStepValue;
exports.getRoundedValue = getRoundedValue;
exports.getValuePercent = getValuePercent;
exports.getValueRanges = getValueRanges;
exports.getValueSetterAtIndex = getValueSetterAtIndex;
exports.getValueTransformer = getValueTransformer;
exports.isValueAtMax = isValueAtMax;
exports.isValueAtMin = isValueAtMin;
exports.isValueWithinRange = isValueWithinRange;
exports.mod = mod;
exports.roundToStepPrecision = roundToStepPrecision;
exports.snapValueToStep = snapValueToStep;
exports.toFixedNumber = toFixedNumber;
{
"name": "@zag-js/numeric-range",
"version": "0.70.0",
"version": "0.71.0",
"description": "Numeric range utilities",

@@ -17,4 +17,3 @@ "keywords": [

"files": [
"dist",
"src"
"dist"
],

@@ -21,0 +20,0 @@ "publishConfig": {

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