@zag-js/number-utils
Advanced tools
Comparing version 0.70.0 to 0.71.0
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12830
7
254