🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

unitlib

Package Overview
Dependencies
Maintainers
1
Versions
42
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

to
0.3.0

2

dist/Unit.d.ts
import Fraction from 'fraction.js';
import { UnitSystem } from './UnitSystem';
import type { BaseUnitDefinition, DerivedUnitDefinition, FactorDefinition } from './types';
export declare const UnityFactor: FactorDefinition;
export declare class Unit<U extends Record<string, BaseUnitDefinition>, F extends Record<string, FactorDefinition>, D extends Record<string, DerivedUnitDefinition>> {

@@ -17,2 +18,3 @@ readonly unitSystem: UnitSystem<U, F, D>;

divide(rhs: Unit<U, F, D>): Unit<U, F, D>;
withFactor(factor?: Partial<FactorDefinition>): Unit<U, F, D>;
withBestFactorFor(value: number): Unit<U, F, D>;

@@ -19,0 +21,0 @@ applyFactor(value: number): number;

2

package.json
{
"name": "unitlib",
"version": "0.2.3",
"version": "0.3.0",
"description": "A unit library",

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

Sorry, the diff of this file is not supported yet