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

unitlib

Package Overview
Dependencies
Maintainers
2
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unitlib - npm Package Compare versions

Comparing version 0.8.0 to 0.8.1

dist/UnitSystem-573101eb.mjs

14

dist/Unit.d.ts

@@ -44,4 +44,18 @@ import Fraction from 'fraction.js';

divideValueByFactor(value: number): number;
/**
* Takes another unit, which is compatible with this one, and returns
* a number such that if you take a quantity expressed in this unit
* and multiply it by the number, you will have computed the quantity
* expressed in the provided unit.
*/
conversionFactorTo(targetUnit: Unit<U, F, D>): number;
/**
* Takes another unit, which is compatible with this one, and returns
* a number such that if you take a quantity expressed in the provided
* unit and multiply it by the number, you will have computed the quantity
* expressed in this unit.
*/
conversionFactorFrom(sourceUnit: Unit<U, F, D>): number;
toString(opts?: UnitFormatOptions): string;
toParts(opts?: UnitFormatOptions): UnitFormatPart[];
}

2

package.json
{
"name": "unitlib",
"version": "0.8.0",
"version": "0.8.1",
"description": "A unit library",

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

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