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

@zag-js/number-utils

Package Overview
Dependencies
Maintainers
0
Versions
729
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zag-js/number-utils - npm Package Compare versions

Comparing version 0.70.0 to 0.71.0

84

dist/index.js

@@ -1,44 +0,3 @@

"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 = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
'use strict';
// src/index.ts
var src_exports = {};
__export(src_exports, {
clamp: () => clamp,
countDecimals: () => countDecimals,
decrement: () => decrement,
formatDecimal: () => formatDecimal,
increment: () => increment,
isAtMax: () => isAtMax,
isAtMin: () => isAtMin,
isWithinRange: () => isWithinRange,
nan: () => nan,
percentToValue: () => percentToValue,
round: () => round,
roundToDevicePixel: () => roundToDevicePixel,
snapToStep: () => snapToStep,
toRangeArray: () => toRangeArray,
toRanges: () => toRanges,
transform: () => transform,
valueToPercent: () => valueToPercent,
wrap: () => wrap
});
module.exports = __toCommonJS(src_exports);
// src/number.ts

@@ -144,23 +103,20 @@ function wrap(num, max) {

}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
clamp,
countDecimals,
decrement,
formatDecimal,
increment,
isAtMax,
isAtMin,
isWithinRange,
nan,
percentToValue,
round,
roundToDevicePixel,
snapToStep,
toRangeArray,
toRanges,
transform,
valueToPercent,
wrap
});
//# sourceMappingURL=index.js.map
exports.clamp = clamp;
exports.countDecimals = countDecimals;
exports.decrement = decrement;
exports.formatDecimal = formatDecimal;
exports.increment = increment;
exports.isAtMax = isAtMax;
exports.isAtMin = isAtMin;
exports.isWithinRange = isWithinRange;
exports.nan = nan;
exports.percentToValue = percentToValue;
exports.round = round;
exports.roundToDevicePixel = roundToDevicePixel;
exports.snapToStep = snapToStep;
exports.toRangeArray = toRangeArray;
exports.toRanges = toRanges;
exports.transform = transform;
exports.valueToPercent = valueToPercent;
exports.wrap = wrap;
{
"name": "@zag-js/number-utils",
"version": "0.70.0",
"version": "0.71.0",
"description": "",

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

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

@@ -20,0 +19,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