Comparing version 0.1.3 to 0.2.0
@@ -7,4 +7,4 @@ import type { BaseUnitDefinition, FactorDefinition } from './types'; | ||
export declare const CompsciBaseUnits: BUDict<"IO" | "B">; | ||
export declare const SIFactors: FactorDict<"f" | "a" | "k" | "m" | "da" | "h" | "M" | "G" | "T" | "P" | "E" | "Z" | "Y" | "d" | "c" | "u" | "n" | "p" | "z" | "y">; | ||
export declare const SIFactors: FactorDict<"m" | "da" | "h" | "k" | "M" | "G" | "T" | "P" | "E" | "Z" | "Y" | "d" | "c" | "u" | "n" | "p" | "f" | "a" | "z" | "y">; | ||
export declare const BinaryFactors: FactorDict<"Ki" | "Mi" | "Gi" | "Ti" | "Pi" | "Ei" | "Zi" | "Yi">; | ||
export {}; |
/// <reference path="types.d.ts" /> | ||
export { Unit } from './Unit'; | ||
export { UnitSystem } from './UnitSystem'; | ||
export * as Definitions from './definitions'; | ||
export * as Utils from './definitions'; | ||
export type { ValueWithUnit, BaseUnitDefinition, FactorDefinition, DerivedUnitDefinition, } from './types'; |
@@ -19,3 +19,7 @@ import Fraction from 'fraction.js'; | ||
applyFactor(value: number): number; | ||
toString(compact?: boolean): string; | ||
toString(opts?: Partial<{ | ||
compact: boolean; | ||
fancyUnicode: boolean; | ||
noDenom: boolean; | ||
}>): string; | ||
} |
import { FactorDefinition } from './types'; | ||
export declare const normalizeFactor: (factor: Readonly<FactorDefinition>) => FactorDefinition; | ||
export declare function toUnicodeSuperscript(exponent: string): string; |
{ | ||
"name": "unitlib", | ||
"version": "0.1.3", | ||
"version": "0.2.0", | ||
"description": "A unit library", | ||
"module": "dist/", | ||
"scripts": { | ||
"test": "jest", | ||
"build": "rollup --config rollup.config.ts --configPlugin typescript" | ||
}, | ||
"repository": { | ||
@@ -25,30 +20,29 @@ "type": "git", | ||
"homepage": "https://github.com/RisaI/unitlib#readme", | ||
"module": "dist/", | ||
"exports": { | ||
".": { | ||
"types": "./dist/index.d.ts", | ||
"import": "./dist/index.mjs" | ||
} | ||
}, | ||
"scripts": { | ||
"test": "jest", | ||
"build": "vite build", | ||
"dev": "vite dev" | ||
}, | ||
"devDependencies": { | ||
"@rollup/plugin-typescript": "^8.3.4", | ||
"@types/jest": "^28.1.6", | ||
"http-server": "^14.1.1", | ||
"jest": "^28.1.3", | ||
"prettier": "^2.7.1", | ||
"rollup": "^2.77.2", | ||
"ts-jest": "^28.0.7", | ||
"ts-node": "^10.9.1", | ||
"tslib": "^2.4.0", | ||
"typescript": "^4.7.4" | ||
"typescript": "^4.7.4", | ||
"vite": "^3.1.3", | ||
"vite-plugin-dts": "^1.5.0" | ||
}, | ||
"dependencies": { | ||
"fraction.js": "^4.2.0" | ||
}, | ||
"exports": { | ||
".": { | ||
"types": "./dist/index.d.ts", | ||
"import": "./dist/index.js" | ||
}, | ||
"./definitions": { | ||
"types": "./dist/definitions.d.ts", | ||
"import": "./dist/definitions.js" | ||
}, | ||
"./utils": { | ||
"types": "./dist/utils.d.ts", | ||
"import": "./dist/utils.js" | ||
} | ||
} | ||
} |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
18657
10
10
428
1