@oliasoft-open-source/units 4.3.2-beta-2 → 4.3.2-beta-3

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var numbers = require('./units-BHUINFsv.cjs');
3
+ var numbers = require('./units-D2XQjYwC.cjs');
4
4
  require('fraction.js');
5
5
 
6
6
 
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export { a3 as ALT_UNITS, a7 as DEPRECATED_UNITS, a9 as INTERMEDIATE_CONVERSIONS, a6 as KNOWN_CONVERSIONS, aa as KNOWN_UNITS, a4 as LABELS, ab as QUANTITIES_DESCRIPTION, ac as UNITS_DESCRIPTION, a8 as UNIT_ALIASES, a5 as UNIT_FROM_KEY, O as allNumbers, i as altUnitsList, W as asFraction, S as charCount, c as checkAndCleanDecimalComma, Z as cleanNum, Y as cleanNumStr, q as convertAndGetValue, x as convertAndGetValueStrict, p as convertSamePrecision, j as convertTable, Q as displayNumber, R as displayNumberToFixed, P as formatNumber, U as fraction, g as getAltUnitsListByQuantity, T as getNumberOfDigitsToShow, b as getQuantities, o as getUnit, a as getUnitsForQuantity, n as getValue, H as isCloseTo, K as isCloseToOrGreaterThan, J as isCloseToOrLessThan, I as isDeepCloseTo, N as isEmptyValueWithUnit, V as isFraction, M as isNonNumerical, L as isNumeric, a1 as isScientificStringNum, a0 as isValidNum, m as isValueWithUnit, l as label, X as numFraction, A as round, E as roundByMagnitude, F as roundByMagnitudeToFixed, G as roundByRange, r as roundNumberWithLabel, D as roundToDecimalPrecision, B as roundToFixed, C as roundToPrecision, s as showAltUnitsList, e as split, a2 as stripLeadingZeros, t as to, h as toBase, _ as toNum, $ as toString, 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-BvWnXAYk.js';
1
+ export { a3 as ALT_UNITS, a7 as DEPRECATED_UNITS, a9 as INTERMEDIATE_CONVERSIONS, a6 as KNOWN_CONVERSIONS, aa as KNOWN_UNITS, a4 as LABELS, ab as QUANTITIES_DESCRIPTION, ac as UNITS_DESCRIPTION, a8 as UNIT_ALIASES, a5 as UNIT_FROM_KEY, O as allNumbers, i as altUnitsList, W as asFraction, S as charCount, c as checkAndCleanDecimalComma, Z as cleanNum, Y as cleanNumStr, q as convertAndGetValue, x as convertAndGetValueStrict, p as convertSamePrecision, j as convertTable, Q as displayNumber, R as displayNumberToFixed, P as formatNumber, U as fraction, g as getAltUnitsListByQuantity, T as getNumberOfDigitsToShow, b as getQuantities, o as getUnit, a as getUnitsForQuantity, n as getValue, H as isCloseTo, K as isCloseToOrGreaterThan, J as isCloseToOrLessThan, I as isDeepCloseTo, N as isEmptyValueWithUnit, V as isFraction, M as isNonNumerical, L as isNumeric, a1 as isScientificStringNum, a0 as isValidNum, m as isValueWithUnit, l as label, X as numFraction, A as round, E as roundByMagnitude, F as roundByMagnitudeToFixed, G as roundByRange, r as roundNumberWithLabel, D as roundToDecimalPrecision, B as roundToFixed, C as roundToPrecision, s as showAltUnitsList, e as split, a2 as stripLeadingZeros, t as to, h as toBase, _ as toNum, $ as toString, 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-BIJxbrYz.js';
2
2
  import 'fraction.js';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var numbers = require('../units-BHUINFsv.cjs');
3
+ var numbers = require('../units-D2XQjYwC.cjs');
4
4
  require('fraction.js');
5
5
 
6
6
 
@@ -1,2 +1,2 @@
1
- export { a1 as isScientificStringNum, a0 as isValidNum, _ as toNum, $ as toString } from '../units-BvWnXAYk.js';
1
+ export { a1 as isScientificStringNum, a0 as isValidNum, _ as toNum, $ as toString } from '../units-BIJxbrYz.js';
2
2
  import 'fraction.js';
@@ -1630,12 +1630,6 @@ const KNOWN_CONVERSIONS = Object.freeze({
1630
1630
  // (100 * 185806080000) / 8896443230521 = 2.088543423315013 - https://www.wolframalpha.com/input?i=Pa+unit
1631
1631
  "lbf/100ft2|Pa": (val) => val * 0.4788025898033584,
1632
1632
  // 8896443230521 / (185806080000 * 100) = 0.47880258980335844, // https://www.wolframalpha.com/input?i=Pa+unit
1633
- // sensor accelerometer
1634
- "g|m/s2": (val) => val * 9.81,
1635
- "m/s2|g": (val) => val / 9.81,
1636
- // sensor magnetometer
1637
- "Gs|nT": (val) => val * 1e5,
1638
- "nT/Gs": (val) => val / 1e5,
1639
1633
  // GIS Location Systems
1640
1634
  "usft|m": (val) => val * 0.30480060960121924,
1641
1635
  "lk|m": (val) => val * 0.201168,
@@ -1664,7 +1658,13 @@ const KNOWN_CONVERSIONS = Object.freeze({
1664
1658
  "kJ/kg|J/kg": (val) => val * 1e3,
1665
1659
  "J/kg|kJ/kg": (val) => val / 1e3,
1666
1660
  "BTU/lbm|J/kg": (val) => val * 2326,
1667
- "J/kg|BTU/lbm": (val) => val / 2326
1661
+ "J/kg|BTU/lbm": (val) => val / 2326,
1662
+ // sensor accelerometer
1663
+ "g|m/s2": (val) => val * 9.81,
1664
+ "m/s2|g": (val) => val / 9.81,
1665
+ // sensor magnetometer
1666
+ "Gs|nT": (val) => val * 1e5,
1667
+ "nT/Gs": (val) => val / 1e5
1668
1668
  });
1669
1669
  const DEPRECATED_UNITS = Object.freeze({
1670
1670
  "N-m": "Nm",
@@ -1632,12 +1632,6 @@ const KNOWN_CONVERSIONS = Object.freeze({
1632
1632
  // (100 * 185806080000) / 8896443230521 = 2.088543423315013 - https://www.wolframalpha.com/input?i=Pa+unit
1633
1633
  "lbf/100ft2|Pa": (val) => val * 0.4788025898033584,
1634
1634
  // 8896443230521 / (185806080000 * 100) = 0.47880258980335844, // https://www.wolframalpha.com/input?i=Pa+unit
1635
- // sensor accelerometer
1636
- "g|m/s2": (val) => val * 9.81,
1637
- "m/s2|g": (val) => val / 9.81,
1638
- // sensor magnetometer
1639
- "Gs|nT": (val) => val * 1e5,
1640
- "nT/Gs": (val) => val / 1e5,
1641
1635
  // GIS Location Systems
1642
1636
  "usft|m": (val) => val * 0.30480060960121924,
1643
1637
  "lk|m": (val) => val * 0.201168,
@@ -1666,7 +1660,13 @@ const KNOWN_CONVERSIONS = Object.freeze({
1666
1660
  "kJ/kg|J/kg": (val) => val * 1e3,
1667
1661
  "J/kg|kJ/kg": (val) => val / 1e3,
1668
1662
  "BTU/lbm|J/kg": (val) => val * 2326,
1669
- "J/kg|BTU/lbm": (val) => val / 2326
1663
+ "J/kg|BTU/lbm": (val) => val / 2326,
1664
+ // sensor accelerometer
1665
+ "g|m/s2": (val) => val * 9.81,
1666
+ "m/s2|g": (val) => val / 9.81,
1667
+ // sensor magnetometer
1668
+ "Gs|nT": (val) => val * 1e5,
1669
+ "nT/Gs": (val) => val / 1e5
1670
1670
  });
1671
1671
  const DEPRECATED_UNITS = Object.freeze({
1672
1672
  "N-m": "Nm",
package/dist/units.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var numbers = require('./units-BHUINFsv.cjs');
3
+ var numbers = require('./units-D2XQjYwC.cjs');
4
4
  require('fraction.js');
5
5
 
6
6
 
package/dist/units.js CHANGED
@@ -1,2 +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-BvWnXAYk.js';
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-BIJxbrYz.js';
2
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.2-beta-2",
3
+ "version": "4.3.2-beta-3",
4
4
  "description": "Package for units management",
5
5
  "keywords": [],
6
6
  "license": "MIT",