@danielsimonjr/mathts-units 0.1.17 → 0.2.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 +13 -1
- package/package.json +5 -5
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, BASE_UNITS, DERIVED_UNITS, ALL_UNITS, UNIT_ALIASES, getUnitDef, SI_PREFIXES, BEST_PREFIXES, getPrefix, } from '@danielsimonjr/mathts-core';
|
|
13
|
-
export type { Dimensions, UnitDef } 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, } from '@danielsimonjr/mathts-core';
|
|
13
|
+
export type { Dimensions, UnitDef, SiDimensionVector, SiDimensionOptions, } 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,UAAU,EACV,aAAa,EACb,SAAS,EACT,YAAY,EACZ,UAAU,EACV,WAAW,EACX,aAAa,EACb,SAAS,GACV,MAAM,4BAA4B,CAAC;AAEpC,YAAY,
|
|
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,GACV,MAAM,4BAA4B,CAAC;AAEpC,YAAY,EACV,UAAU,EACV,OAAO,EACP,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,4BAA4B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -7,6 +7,12 @@ import {
|
|
|
7
7
|
UnitParseError,
|
|
8
8
|
DIMENSIONLESS,
|
|
9
9
|
dim,
|
|
10
|
+
UNIT_DIMENSION_LENGTH,
|
|
11
|
+
SI_DIMENSION_LENGTH,
|
|
12
|
+
toSiDimensions,
|
|
13
|
+
toSiDimensionVector,
|
|
14
|
+
fromSiDimensions,
|
|
15
|
+
fromSiDimensionVector,
|
|
10
16
|
BASE_UNITS,
|
|
11
17
|
DERIVED_UNITS,
|
|
12
18
|
ALL_UNITS,
|
|
@@ -23,13 +29,19 @@ export {
|
|
|
23
29
|
DERIVED_UNITS,
|
|
24
30
|
DIMENSIONLESS,
|
|
25
31
|
DimensionMismatchError,
|
|
32
|
+
SI_DIMENSION_LENGTH,
|
|
26
33
|
SI_PREFIXES,
|
|
27
34
|
UNIT_ALIASES,
|
|
35
|
+
UNIT_DIMENSION_LENGTH,
|
|
28
36
|
Unit,
|
|
29
37
|
UnitParseError,
|
|
30
38
|
dim,
|
|
39
|
+
fromSiDimensionVector,
|
|
40
|
+
fromSiDimensions,
|
|
31
41
|
getPrefix,
|
|
32
42
|
getUnitDef,
|
|
33
43
|
isUnit,
|
|
34
|
-
isUnitValue
|
|
44
|
+
isUnitValue,
|
|
45
|
+
toSiDimensionVector,
|
|
46
|
+
toSiDimensions
|
|
35
47
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@danielsimonjr/mathts-units",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.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",
|
|
@@ -20,18 +20,18 @@
|
|
|
20
20
|
],
|
|
21
21
|
"scripts": {
|
|
22
22
|
"build": "tsup src/index.ts --format esm --clean && tsc -p tsconfig.dts.json",
|
|
23
|
-
"dev": "tsup src/index.ts --format esm --
|
|
23
|
+
"dev": "tsup src/index.ts --format esm --watch --onSuccess \"tsc -p tsconfig.dts.json\"",
|
|
24
24
|
"test": "bun test",
|
|
25
25
|
"test:watch": "vitest",
|
|
26
26
|
"test:coverage": "bun test --coverage",
|
|
27
|
-
"typecheck": "tsc --noEmit",
|
|
27
|
+
"typecheck": "tsc --noEmit && tsc -p tsconfig.test.json",
|
|
28
28
|
"lint": "oxlint src",
|
|
29
29
|
"lint:fix": "oxlint src --fix",
|
|
30
30
|
"clean": "rm -rf dist",
|
|
31
|
-
"build:prod": "tsup src/index.ts --format esm --
|
|
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.16.0",
|
|
35
35
|
"typed-function": "^4.0.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|