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.6.1 to 0.6.2

dist/UnitSystem-060658e6.mjs

4

dist/UnitSystem.d.ts

@@ -18,4 +18,8 @@ import { Unit } from './Unit.ts';

getFactorSymbol(f: FactorDefinition): keyof F | undefined;
getNearestLowerFactor(needle: FactorDefinition): {
factor: keyof F;
ratio: number;
};
createUnit(baseUnit: Unit<U, F, D>['baseUnits'], factor?: FactorDefinition | keyof F): Unit<U, F, D>;
parseUnit(text: string): Unit<U, F, D>;
}
import { FactorDefinition } from './types.ts';
export declare const divideFactors: (a: Readonly<FactorDefinition>, b: Readonly<FactorDefinition>) => number;
export declare const normalizeFactor: (factor: Readonly<FactorDefinition>) => FactorDefinition;
export declare function toUnicodeSuperscript(exponent: string): string;

12

package.json
{
"name": "unitlib",
"version": "0.6.1",
"version": "0.6.2",
"description": "A unit library",

@@ -33,9 +33,6 @@ "repository": {

"devDependencies": {
"@types/jest": "^29.5.4",
"@types/bun": "latest",
"console": "^0.7.2",
"http-server": "^14.1.1",
"jest": "^29.6.4",
"prettier": "^3.0.3",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.1",
"typescript": "^5.2.2",

@@ -46,6 +43,7 @@ "vite": "^4.4.9",

"dependencies": {
"fraction.js": "^4.2.1"
"fraction.js": "^4.2.1",
"yeet-ts": "^1.0.3"
},
"scripts": {
"test": "jest --coverage",
"test": "bun test",
"build": "vite build",

@@ -52,0 +50,0 @@ "dev": "vite dev"

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