@danielsimonjr/mathts-units 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14 -0
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -9,6 +9,6 @@
|
|
|
9
9
|
*
|
|
10
10
|
* @packageDocumentation
|
|
11
11
|
*/
|
|
12
|
-
export { Unit, isUnit, isUnitValue, DimensionMismatchError, UnitParseError, DIMENSIONLESS, dim, UNIT_DIMENSION_LENGTH, SI_DIMENSION_LENGTH, toSiDimensions, toSiDimensionVector, fromSiDimensions, fromSiDimensionVector, BASE_UNITS, DERIVED_UNITS, ALL_UNITS, UNIT_ALIASES, getUnitDef, SI_PREFIXES, BEST_PREFIXES, getPrefix, UNIT_EXACT_SCALE, PI_EXACT_SCALE, decimalExactScale, exactScaleOf, binaryExactScale, ratioExactScale, multiplyExactScales, divideExactScales, powerExactScale, addExactScales, exactScalesEqual, exactScaleToNumber, formatExactScale, readScaleExpression, NAMED_SCALES, UNIT_ROWS, UNIT_ROW_ALIASES, namedExactScale, readUnitScale, getUnitRow, unitRowExactScale, unitRowValue, unitRowExactOffset, UNIT_PREFIX_SETS, unitPrefixExactScale, getUnitPrefix, } from '@danielsimonjr/mathts-core';
|
|
13
|
-
export type { Dimensions, UnitDef, SiDimensionVector, SiDimensionOptions, ExactScale, UnitRow, UnitBaseKey, UnitPrefixSetKey, UnitPrefix, } from '@danielsimonjr/mathts-core';
|
|
12
|
+
export { Unit, isUnit, isUnitValue, DimensionMismatchError, UnitParseError, DIMENSIONLESS, dim, UNIT_DIMENSION_LENGTH, SI_DIMENSION_LENGTH, toSiDimensions, toSiDimensionVector, fromSiDimensions, fromSiDimensionVector, BASE_UNITS, DERIVED_UNITS, ALL_UNITS, UNIT_ALIASES, getUnitDef, SI_PREFIXES, BEST_PREFIXES, getPrefix, UNIT_EXACT_SCALE, PI_EXACT_SCALE, LN2_EXACT_SCALE, NAMED_IRRATIONALS, namedIrrationalScale, irrationalPower, isRationalScale, decimalExactScale, exactScaleOf, binaryExactScale, ratioExactScale, multiplyExactScales, divideExactScales, powerExactScale, addExactScales, exactScalesEqual, exactScaleToNumber, clearExactScaleNumberCache, exactScaleNumberCacheSize, formatExactScale, readScaleExpression, NAMED_SCALES, UNIT_ROWS, UNIT_ROW_ALIASES, namedExactScale, readUnitScale, getUnitRow, unitRowExactScale, unitRowValue, unitRowExactOffset, UNIT_PREFIX_SETS, unitPrefixExactScale, getUnitPrefix, } from '@danielsimonjr/mathts-core';
|
|
13
|
+
export type { Dimensions, UnitDef, SiDimensionVector, SiDimensionOptions, ExactScale, IrrationalName, IrrationalPowers, UnitRow, UnitBaseKey, UnitPrefixSetKey, UnitPrefix, } from '@danielsimonjr/mathts-core';
|
|
14
14
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EACL,IAAI,EACJ,MAAM,EACN,WAAW,EACX,sBAAsB,EACtB,cAAc,EACd,aAAa,EACb,GAAG,EACH,qBAAqB,EACrB,mBAAmB,EACnB,cAAc,EACd,mBAAmB,EACnB,gBAAgB,EAChB,qBAAqB,EACrB,UAAU,EACV,aAAa,EACb,SAAS,EACT,YAAY,EACZ,UAAU,EACV,WAAW,EACX,aAAa,EACb,SAAS,EACT,gBAAgB,EAChB,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,gBAAgB,EAChB,eAAe,EACf,mBAAmB,EACnB,iBAAiB,EACjB,eAAe,EACf,cAAc,EACd,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EAChB,mBAAmB,EACnB,YAAY,EACZ,SAAS,EACT,gBAAgB,EAChB,eAAe,EACf,aAAa,EACb,UAAU,EACV,iBAAiB,EACjB,YAAY,EACZ,kBAAkB,EAClB,gBAAgB,EAChB,oBAAoB,EACpB,aAAa,GACd,MAAM,4BAA4B,CAAC;AAEpC,YAAY,EACV,UAAU,EACV,OAAO,EACP,iBAAiB,EACjB,kBAAkB,EAClB,UAAU,EACV,OAAO,EACP,WAAW,EACX,gBAAgB,EAChB,UAAU,GACX,MAAM,4BAA4B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EACL,IAAI,EACJ,MAAM,EACN,WAAW,EACX,sBAAsB,EACtB,cAAc,EACd,aAAa,EACb,GAAG,EACH,qBAAqB,EACrB,mBAAmB,EACnB,cAAc,EACd,mBAAmB,EACnB,gBAAgB,EAChB,qBAAqB,EACrB,UAAU,EACV,aAAa,EACb,SAAS,EACT,YAAY,EACZ,UAAU,EACV,WAAW,EACX,aAAa,EACb,SAAS,EACT,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,oBAAoB,EACpB,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,YAAY,EACZ,gBAAgB,EAChB,eAAe,EACf,mBAAmB,EACnB,iBAAiB,EACjB,eAAe,EACf,cAAc,EACd,gBAAgB,EAChB,kBAAkB,EAClB,0BAA0B,EAC1B,yBAAyB,EACzB,gBAAgB,EAChB,mBAAmB,EACnB,YAAY,EACZ,SAAS,EACT,gBAAgB,EAChB,eAAe,EACf,aAAa,EACb,UAAU,EACV,iBAAiB,EACjB,YAAY,EACZ,kBAAkB,EAClB,gBAAgB,EAChB,oBAAoB,EACpB,aAAa,GACd,MAAM,4BAA4B,CAAC;AAEpC,YAAY,EACV,UAAU,EACV,OAAO,EACP,iBAAiB,EACjB,kBAAkB,EAClB,UAAU,EACV,cAAc,EACd,gBAAgB,EAChB,OAAO,EACP,WAAW,EACX,gBAAgB,EAChB,UAAU,GACX,MAAM,4BAA4B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -23,6 +23,11 @@ import {
|
|
|
23
23
|
getPrefix,
|
|
24
24
|
UNIT_EXACT_SCALE,
|
|
25
25
|
PI_EXACT_SCALE,
|
|
26
|
+
LN2_EXACT_SCALE,
|
|
27
|
+
NAMED_IRRATIONALS,
|
|
28
|
+
namedIrrationalScale,
|
|
29
|
+
irrationalPower,
|
|
30
|
+
isRationalScale,
|
|
26
31
|
decimalExactScale,
|
|
27
32
|
exactScaleOf,
|
|
28
33
|
binaryExactScale,
|
|
@@ -33,6 +38,8 @@ import {
|
|
|
33
38
|
addExactScales,
|
|
34
39
|
exactScalesEqual,
|
|
35
40
|
exactScaleToNumber,
|
|
41
|
+
clearExactScaleNumberCache,
|
|
42
|
+
exactScaleNumberCacheSize,
|
|
36
43
|
formatExactScale,
|
|
37
44
|
readScaleExpression,
|
|
38
45
|
NAMED_SCALES,
|
|
@@ -55,6 +62,8 @@ export {
|
|
|
55
62
|
DERIVED_UNITS,
|
|
56
63
|
DIMENSIONLESS,
|
|
57
64
|
DimensionMismatchError,
|
|
65
|
+
LN2_EXACT_SCALE,
|
|
66
|
+
NAMED_IRRATIONALS,
|
|
58
67
|
NAMED_SCALES,
|
|
59
68
|
PI_EXACT_SCALE,
|
|
60
69
|
SI_DIMENSION_LENGTH,
|
|
@@ -69,9 +78,11 @@ export {
|
|
|
69
78
|
UnitParseError,
|
|
70
79
|
addExactScales,
|
|
71
80
|
binaryExactScale,
|
|
81
|
+
clearExactScaleNumberCache,
|
|
72
82
|
decimalExactScale,
|
|
73
83
|
dim,
|
|
74
84
|
divideExactScales,
|
|
85
|
+
exactScaleNumberCacheSize,
|
|
75
86
|
exactScaleOf,
|
|
76
87
|
exactScaleToNumber,
|
|
77
88
|
exactScalesEqual,
|
|
@@ -82,10 +93,13 @@ export {
|
|
|
82
93
|
getUnitDef,
|
|
83
94
|
getUnitPrefix,
|
|
84
95
|
getUnitRow,
|
|
96
|
+
irrationalPower,
|
|
97
|
+
isRationalScale,
|
|
85
98
|
isUnit,
|
|
86
99
|
isUnitValue,
|
|
87
100
|
multiplyExactScales,
|
|
88
101
|
namedExactScale,
|
|
102
|
+
namedIrrationalScale,
|
|
89
103
|
powerExactScale,
|
|
90
104
|
ratioExactScale,
|
|
91
105
|
readScaleExpression,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@danielsimonjr/mathts-units",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Standalone units & dimensional-analysis for MathTS -- the Unit class, unit registry, and SI prefixes, re-exported as a focused package",
|
|
5
5
|
"author": "Daniel Simon Jr.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"build:prod": "tsup src/index.ts --format esm --clean --minify --treeshake && tsc -p tsconfig.dts.json"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@danielsimonjr/mathts-core": "^0.
|
|
34
|
+
"@danielsimonjr/mathts-core": "^0.18.0",
|
|
35
35
|
"typed-function": "^4.0.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|