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

@augment-vir/common

Package Overview
Dependencies
Maintainers
1
Versions
222
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@augment-vir/common - npm Package Compare versions

Comparing version 21.2.0 to 21.3.0

12

dist/cjs/augments/number.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.toEnsuredNumber = void 0;
exports.wrapNumber = exports.toEnsuredNumber = void 0;
function toEnsuredNumber(input) {

@@ -14,1 +14,11 @@ const numeric = Number(input);

exports.toEnsuredNumber = toEnsuredNumber;
function wrapNumber({ max, min, value }) {
if (value > max) {
return min;
}
else if (value < min) {
return max;
}
return value;
}
exports.wrapNumber = wrapNumber;

@@ -10,1 +10,10 @@ export function toEnsuredNumber(input) {

}
export function wrapNumber({ max, min, value }) {
if (value > max) {
return min;
}
else if (value < min) {
return max;
}
return value;
}
export declare function toEnsuredNumber(input: any): number;
export declare function wrapNumber({ max, min, value }: {
value: number;
max: number;
min: number;
}): number;

2

package.json
{
"name": "@augment-vir/common",
"version": "21.2.0",
"version": "21.3.0",
"homepage": "https://github.com/electrovir/augment-vir/tree/main/packages/common",

@@ -5,0 +5,0 @@ "bugs": {

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