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

unitlib

Package Overview
Dependencies
Maintainers
1
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.2.3 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

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