@oliasoft-open-source/units 4.3.0-beta-2 → 4.3.0-beta-4
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.cjs +70 -2510
- package/dist/index.js +2 -2514
- package/dist/units-8OgTPpkQ.cjs +2584 -0
- package/dist/units-eowpZ327.js +2514 -0
- package/dist/units.cjs +35 -0
- package/dist/units.js +2 -0
- package/package.json +10 -4
package/dist/units.cjs
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var units = require('./units-8OgTPpkQ.cjs');
|
|
4
|
+
require('fraction.js');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
exports.EXP_NOTATION_RE = units.EXP_NOTATION_RE;
|
|
9
|
+
exports.SEPARATOR = units.SEPARATOR;
|
|
10
|
+
exports.altUnitsList = units.altUnitsList;
|
|
11
|
+
exports.checkAndCleanDecimalComma = units.checkAndCleanDecimalComma;
|
|
12
|
+
exports.convertAndGetValue = units.convertAndGetValue;
|
|
13
|
+
exports.convertAndGetValueStrict = units.convertAndGetValueStrict;
|
|
14
|
+
exports.convertSamePrecision = units.convertSamePrecision;
|
|
15
|
+
exports.convertTable = units.convertTable;
|
|
16
|
+
exports.getAltUnitsListByQuantity = units.getAltUnitsListByQuantity;
|
|
17
|
+
exports.getQuantities = units.getQuantities;
|
|
18
|
+
exports.getUnit = units.getUnit;
|
|
19
|
+
exports.getUnitsForQuantity = units.getUnitsForQuantity;
|
|
20
|
+
exports.getValue = units.getValue;
|
|
21
|
+
exports.isValueWithUnit = units.isValueWithUnit;
|
|
22
|
+
exports.label = units.label;
|
|
23
|
+
exports.roundNumberWithLabel = units.roundNumberWithLabel;
|
|
24
|
+
exports.showAltUnitsList = units.showAltUnitsList;
|
|
25
|
+
exports.split = units.split;
|
|
26
|
+
exports.to = units.to;
|
|
27
|
+
exports.toBase = units.toBase;
|
|
28
|
+
exports.unitFromKey = units.unitFromKey;
|
|
29
|
+
exports.unitFromQuantity = units.unitFromQuantity;
|
|
30
|
+
exports.unum = units.unum;
|
|
31
|
+
exports.unumWithUnit = units.unumWithUnit;
|
|
32
|
+
exports.validateAndClean = units.validateAndClean;
|
|
33
|
+
exports.validateNumber = units.validateNumber;
|
|
34
|
+
exports.withPrettyUnitLabel = units.withPrettyUnitLabel;
|
|
35
|
+
exports.withUnit = units.withUnit;
|
package/dist/units.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { ae as EXP_NOTATION_RE, ad as SEPARATOR, i as altUnitsList, c as checkAndCleanDecimalComma, q as convertAndGetValue, x as convertAndGetValueStrict, p as convertSamePrecision, j as convertTable, g as getAltUnitsListByQuantity, b as getQuantities, o as getUnit, a as getUnitsForQuantity, n as getValue, m as isValueWithUnit, l as label, r as roundNumberWithLabel, s as showAltUnitsList, e as split, t as to, h as toBase, u as unitFromKey, d as unitFromQuantity, f as unum, k as unumWithUnit, v as validateAndClean, z as validateNumber, y as withPrettyUnitLabel, w as withUnit } from './units-eowpZ327.js';
|
|
2
|
+
import 'fraction.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oliasoft-open-source/units",
|
|
3
|
-
"version": "4.3.0-beta-
|
|
3
|
+
"version": "4.3.0-beta-4",
|
|
4
4
|
"description": "Package for units management",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -8,8 +8,14 @@
|
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"types": "dist/index.d.ts",
|
|
10
10
|
"exports": {
|
|
11
|
-
"
|
|
12
|
-
|
|
11
|
+
".": {
|
|
12
|
+
"import": "./dist/index.js",
|
|
13
|
+
"require": "./dist/index.cjs"
|
|
14
|
+
},
|
|
15
|
+
"./dist/units": {
|
|
16
|
+
"import": "./dist/units.js",
|
|
17
|
+
"require": "./dist/units.cjs"
|
|
18
|
+
}
|
|
13
19
|
},
|
|
14
20
|
"files": [
|
|
15
21
|
"dist/**/*"
|
|
@@ -17,7 +23,7 @@
|
|
|
17
23
|
"type": "module",
|
|
18
24
|
"scripts": {
|
|
19
25
|
"compile-validators:build": "esbuild dist/validate/ajv-validators.js --bundle --allow-overwrite --platform=node --format=cjs --outfile=dist/validate/ajv-validators.js",
|
|
20
|
-
"build": "pkgroll --clean-dist --tsconfig=tsconfig.build.json && cp
|
|
26
|
+
"build": "pkgroll --clean-dist --tsconfig=tsconfig.build.json && cp README.md dist/",
|
|
21
27
|
"lint": "eslint . --fix",
|
|
22
28
|
"start": "yarn link && yarn compile-validators && tsx watch src/index.ts",
|
|
23
29
|
"test": "yarn compile-validators && jest --coverageThreshold \"{}\"",
|