mathjs 9.5.2 → 10.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. package/HISTORY.md +15 -1
  2. package/lib/browser/math.js +4 -4
  3. package/lib/browser/math.js.map +1 -1
  4. package/lib/cjs/constants.js +1 -1
  5. package/lib/cjs/core/function/config.js +1 -1
  6. package/lib/cjs/core/function/import.js +2 -1
  7. package/lib/cjs/entry/dependenciesAny.generated.js +999 -999
  8. package/lib/cjs/entry/dependenciesNumber.generated.js +581 -581
  9. package/lib/cjs/entry/impureFunctionsAny.generated.js +314 -313
  10. package/lib/cjs/entry/impureFunctionsNumber.generated.js +223 -222
  11. package/lib/cjs/entry/mainAny.js +8 -8
  12. package/lib/cjs/entry/mainNumber.js +8 -8
  13. package/lib/cjs/entry/pureFunctionsAny.generated.js +1100 -1100
  14. package/lib/cjs/entry/pureFunctionsNumber.generated.js +375 -375
  15. package/lib/cjs/entry/typeChecks.js +12 -12
  16. package/lib/cjs/expression/operators.js +1 -1
  17. package/lib/cjs/factoriesAny.js +660 -660
  18. package/lib/cjs/factoriesNumber.js +268 -237
  19. package/lib/cjs/header.js +1 -1
  20. package/lib/cjs/plain/bignumber/arithmetic.js +2 -2
  21. package/lib/cjs/plain/number/arithmetic.js +10 -10
  22. package/lib/cjs/plain/number/constants.js +1 -1
  23. package/lib/cjs/plain/number/logical.js +1 -1
  24. package/lib/cjs/plain/number/probability.js +2 -1
  25. package/lib/cjs/plain/number/trigonometry.js +1 -1
  26. package/lib/cjs/plain/number/utils.js +1 -1
  27. package/lib/cjs/type/unit/physicalConstants.js +1 -1
  28. package/lib/cjs/utils/array.js +14 -14
  29. package/lib/cjs/utils/bignumber/bitwise.js +1 -1
  30. package/lib/cjs/utils/customs.js +5 -5
  31. package/lib/cjs/utils/factory.js +3 -3
  32. package/lib/cjs/utils/function.js +1 -1
  33. package/lib/cjs/utils/is.js +23 -23
  34. package/lib/cjs/utils/latex.js +2 -1
  35. package/lib/cjs/utils/map.js +3 -3
  36. package/lib/cjs/utils/noop.js +1 -1
  37. package/lib/cjs/utils/number.js +10 -6
  38. package/lib/cjs/utils/object.js +8 -8
  39. package/lib/cjs/utils/snapshot.js +1 -1
  40. package/lib/cjs/utils/string.js +2 -2
  41. package/lib/cjs/version.js +1 -1
  42. package/lib/esm/core/function/import.js +2 -1
  43. package/lib/esm/entry/dependenciesAny.generated.js +270 -270
  44. package/lib/esm/entry/dependenciesNumber.generated.js +163 -163
  45. package/lib/esm/entry/impureFunctionsAny.generated.js +301 -301
  46. package/lib/esm/entry/impureFunctionsNumber.generated.js +211 -211
  47. package/lib/esm/entry/pureFunctionsAny.generated.js +816 -816
  48. package/lib/esm/entry/pureFunctionsNumber.generated.js +234 -234
  49. package/lib/esm/version.js +1 -1
  50. package/package.json +16 -16
  51. package/types/index.d.ts +250 -71
package/lib/cjs/header.js CHANGED
@@ -6,7 +6,7 @@
6
6
  * It features real and complex numbers, units, matrices, a large set of
7
7
  * mathematical functions, and a flexible expression parser.
8
8
  *
9
- * @version 9.5.2
9
+ * @version 10.0.0
10
10
  * @date 2021-11-03
11
11
  *
12
12
  * @license
@@ -5,9 +5,9 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.absBigNumber = absBigNumber;
7
7
  exports.addBigNumber = addBigNumber;
8
- exports.subtractBigNumber = subtractBigNumber;
9
- exports.multiplyBigNumber = multiplyBigNumber;
10
8
  exports.divideBigNumber = divideBigNumber;
9
+ exports.multiplyBigNumber = multiplyBigNumber;
10
+ exports.subtractBigNumber = subtractBigNumber;
11
11
  var signature1 = 'BigNumber';
12
12
  var signature2 = 'BigNumber, BigNumber';
13
13
 
@@ -5,33 +5,33 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.absNumber = absNumber;
7
7
  exports.addNumber = addNumber;
8
- exports.subtractNumber = subtractNumber;
9
- exports.multiplyNumber = multiplyNumber;
10
- exports.divideNumber = divideNumber;
11
- exports.unaryMinusNumber = unaryMinusNumber;
12
- exports.unaryPlusNumber = unaryPlusNumber;
13
8
  exports.cbrtNumber = cbrtNumber;
14
9
  exports.ceilNumber = ceilNumber;
15
10
  exports.cubeNumber = cubeNumber;
11
+ exports.divideNumber = divideNumber;
16
12
  exports.expNumber = expNumber;
17
13
  exports.expm1Number = expm1Number;
18
14
  exports.fixNumber = fixNumber;
19
15
  exports.floorNumber = floorNumber;
20
16
  exports.gcdNumber = gcdNumber;
21
17
  exports.lcmNumber = lcmNumber;
22
- exports.logNumber = logNumber;
23
18
  exports.log10Number = log10Number;
24
- exports.log2Number = log2Number;
25
19
  exports.log1pNumber = log1pNumber;
20
+ exports.log2Number = log2Number;
21
+ exports.logNumber = logNumber;
26
22
  exports.modNumber = modNumber;
23
+ exports.multiplyNumber = multiplyNumber;
24
+ exports.normNumber = normNumber;
27
25
  exports.nthRootNumber = nthRootNumber;
26
+ exports.powNumber = powNumber;
27
+ exports.roundNumber = roundNumber;
28
28
  exports.signNumber = signNumber;
29
29
  exports.sqrtNumber = sqrtNumber;
30
30
  exports.squareNumber = squareNumber;
31
+ exports.subtractNumber = subtractNumber;
32
+ exports.unaryMinusNumber = unaryMinusNumber;
33
+ exports.unaryPlusNumber = unaryPlusNumber;
31
34
  exports.xgcdNumber = xgcdNumber;
32
- exports.powNumber = powNumber;
33
- exports.roundNumber = roundNumber;
34
- exports.normNumber = normNumber;
35
35
 
36
36
  var _number = require("../../utils/number.js");
37
37
 
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.phi = exports.e = exports.tau = exports.pi = void 0;
6
+ exports.tau = exports.pi = exports.phi = exports.e = void 0;
7
7
  var pi = Math.PI;
8
8
  exports.pi = pi;
9
9
  var tau = 2 * Math.PI;
@@ -3,10 +3,10 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
+ exports.andNumber = andNumber;
6
7
  exports.notNumber = notNumber;
7
8
  exports.orNumber = orNumber;
8
9
  exports.xorNumber = xorNumber;
9
- exports.andNumber = andNumber;
10
10
  var n1 = 'number';
11
11
  var n2 = 'number, number';
12
12
 
@@ -3,8 +3,9 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
+ exports.gammaG = void 0;
6
7
  exports.gammaNumber = gammaNumber;
7
- exports.gammaP = exports.gammaG = void 0;
8
+ exports.gammaP = void 0;
8
9
 
9
10
  var _number = require("../../utils/number.js");
10
11
 
@@ -13,8 +13,8 @@ exports.asecNumber = asecNumber;
13
13
  exports.asechNumber = asechNumber;
14
14
  exports.asinNumber = asinNumber;
15
15
  exports.asinhNumber = asinhNumber;
16
- exports.atanNumber = atanNumber;
17
16
  exports.atan2Number = atan2Number;
17
+ exports.atanNumber = atanNumber;
18
18
  exports.atanhNumber = atanhNumber;
19
19
  exports.cosNumber = cosNumber;
20
20
  exports.coshNumber = coshNumber;
@@ -4,10 +4,10 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.isIntegerNumber = isIntegerNumber;
7
+ exports.isNaNNumber = isNaNNumber;
7
8
  exports.isNegativeNumber = isNegativeNumber;
8
9
  exports.isPositiveNumber = isPositiveNumber;
9
10
  exports.isZeroNumber = isZeroNumber;
10
- exports.isNaNNumber = isNaNNumber;
11
11
 
12
12
  var _number = require("../../utils/number.js");
13
13
 
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.createPlanckTemperature = exports.createPlanckCharge = exports.createPlanckTime = exports.createPlanckMass = exports.createPlanckLength = exports.createGravity = exports.createMolarMassC12 = exports.createMolarMass = exports.createWienDisplacement = exports.createStefanBoltzmann = exports.createSecondRadiation = exports.createSackurTetrode = exports.createMolarVolume = exports.createMolarPlanckConstant = exports.createGasConstant = exports.createLoschmidt = exports.createFirstRadiation = exports.createFaraday = exports.createBoltzmann = exports.createAvogadro = exports.createAtomicMass = exports.createEfimovFactor = exports.createWeakMixingAngle = exports.createThomsonCrossSection = exports.createRydberg = exports.createQuantumOfCirculation = exports.createNeutronMass = exports.createDeuteronMass = exports.createProtonMass = exports.createHartreeEnergy = exports.createFineStructure = exports.createFermiCoupling = exports.createElectronMass = exports.createClassicalElectronRadius = exports.createBohrRadius = exports.createJosephson = exports.createKlitzing = exports.createNuclearMagneton = exports.createMagneticFluxQuantum = exports.createInverseConductanceQuantum = exports.createConductanceQuantum = exports.createBohrMagneton = exports.createElementaryCharge = exports.createCoulomb = exports.createVacuumImpedance = exports.createElectricConstant = exports.createMagneticConstant = exports.createReducedPlanckConstant = exports.createPlanckConstant = exports.createGravitationConstant = exports.createSpeedOfLight = void 0;
6
+ exports.createWienDisplacement = exports.createWeakMixingAngle = exports.createVacuumImpedance = exports.createThomsonCrossSection = exports.createStefanBoltzmann = exports.createSpeedOfLight = exports.createSecondRadiation = exports.createSackurTetrode = exports.createRydberg = exports.createReducedPlanckConstant = exports.createQuantumOfCirculation = exports.createProtonMass = exports.createPlanckTime = exports.createPlanckTemperature = exports.createPlanckMass = exports.createPlanckLength = exports.createPlanckConstant = exports.createPlanckCharge = exports.createNuclearMagneton = exports.createNeutronMass = exports.createMolarVolume = exports.createMolarPlanckConstant = exports.createMolarMassC12 = exports.createMolarMass = exports.createMagneticFluxQuantum = exports.createMagneticConstant = exports.createLoschmidt = exports.createKlitzing = exports.createJosephson = exports.createInverseConductanceQuantum = exports.createHartreeEnergy = exports.createGravity = exports.createGravitationConstant = exports.createGasConstant = exports.createFirstRadiation = exports.createFineStructure = exports.createFermiCoupling = exports.createFaraday = exports.createElementaryCharge = exports.createElectronMass = exports.createElectricConstant = exports.createEfimovFactor = exports.createDeuteronMass = exports.createCoulomb = exports.createConductanceQuantum = exports.createClassicalElectronRadius = exports.createBoltzmann = exports.createBohrRadius = exports.createBohrMagneton = exports.createAvogadro = exports.createAtomicMass = void 0;
7
7
 
8
8
  var _factory = require("../../utils/factory.js");
9
9
 
@@ -4,25 +4,25 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.arraySize = arraySize;
7
- exports.validate = validate;
8
- exports.validateIndex = validateIndex;
9
- exports.resize = resize;
10
- exports.reshape = reshape;
11
- exports.processSizesWildcard = processSizesWildcard;
12
- exports.squeeze = squeeze;
13
- exports.unsqueeze = unsqueeze;
14
- exports.flatten = flatten;
15
- exports.map = map;
16
- exports.forEach = forEach;
7
+ exports.contains = contains;
17
8
  exports.filter = filter;
18
9
  exports.filterRegExp = filterRegExp;
19
- exports.join = join;
20
- exports.identify = identify;
10
+ exports.flatten = flatten;
11
+ exports.forEach = forEach;
21
12
  exports.generalize = generalize;
22
13
  exports.getArrayDataType = getArrayDataType;
23
- exports.last = last;
14
+ exports.identify = identify;
24
15
  exports.initial = initial;
25
- exports.contains = contains;
16
+ exports.join = join;
17
+ exports.last = last;
18
+ exports.map = map;
19
+ exports.processSizesWildcard = processSizesWildcard;
20
+ exports.reshape = reshape;
21
+ exports.resize = resize;
22
+ exports.squeeze = squeeze;
23
+ exports.unsqueeze = unsqueeze;
24
+ exports.validate = validate;
25
+ exports.validateIndex = validateIndex;
26
26
 
27
27
  var _number = require("./number.js");
28
28
 
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.bitAndBigNumber = bitAndBigNumber;
7
7
  exports.bitNotBigNumber = bitNotBigNumber;
8
8
  exports.bitOrBigNumber = bitOrBigNumber;
9
- exports.bitwise = bitwise;
10
9
  exports.bitXor = bitXor;
10
+ exports.bitwise = bitwise;
11
11
  exports.leftShiftBigNumber = leftShiftBigNumber;
12
12
  exports.rightArithShiftBigNumber = rightArithShiftBigNumber;
13
13
 
@@ -5,14 +5,14 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
+ exports.getSafeProperties = getSafeProperties;
8
9
  exports.getSafeProperty = getSafeProperty;
9
- exports.setSafeProperty = setSafeProperty;
10
- exports.isSafeProperty = isSafeProperty;
11
10
  exports.hasSafeProperty = hasSafeProperty;
12
- exports.getSafeProperties = getSafeProperties;
13
- exports.validateSafeMethod = validateSafeMethod;
14
- exports.isSafeMethod = isSafeMethod;
15
11
  exports.isPlainObject = isPlainObject;
12
+ exports.isSafeMethod = isSafeMethod;
13
+ exports.isSafeProperty = isSafeProperty;
14
+ exports.setSafeProperty = setSafeProperty;
15
+ exports.validateSafeMethod = validateSafeMethod;
16
16
 
17
17
  var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
18
18
 
@@ -3,12 +3,12 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.factory = factory;
7
- exports.sortFactories = sortFactories;
6
+ exports.assertDependencies = assertDependencies;
8
7
  exports.create = create;
8
+ exports.factory = factory;
9
9
  exports.isFactory = isFactory;
10
- exports.assertDependencies = assertDependencies;
11
10
  exports.isOptionalDependency = isOptionalDependency;
11
+ exports.sortFactories = sortFactories;
12
12
  exports.stripOptionalNotation = stripOptionalNotation;
13
13
 
14
14
  var _array = require("./array.js");
@@ -5,9 +5,9 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
+ exports.maxArgumentCount = maxArgumentCount;
8
9
  exports.memoize = memoize;
9
10
  exports.memoizeCompare = memoizeCompare;
10
- exports.maxArgumentCount = maxArgumentCount;
11
11
 
12
12
  var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
13
13
 
@@ -5,45 +5,45 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.isNumber = isNumber;
9
- exports.isBigNumber = isBigNumber;
10
- exports.isComplex = isComplex;
11
- exports.isFraction = isFraction;
12
- exports.isUnit = isUnit;
13
- exports.isString = isString;
14
- exports.isMatrix = isMatrix;
15
- exports.isCollection = isCollection;
16
- exports.isDenseMatrix = isDenseMatrix;
17
- exports.isSparseMatrix = isSparseMatrix;
18
- exports.isRange = isRange;
19
- exports.isIndex = isIndex;
20
- exports.isBoolean = isBoolean;
21
- exports.isResultSet = isResultSet;
22
- exports.isHelp = isHelp;
23
- exports.isFunction = isFunction;
24
- exports.isDate = isDate;
25
- exports.isRegExp = isRegExp;
26
- exports.isObject = isObject;
27
- exports.isNull = isNull;
28
- exports.isUndefined = isUndefined;
29
8
  exports.isAccessorNode = isAccessorNode;
9
+ exports.isArray = void 0;
30
10
  exports.isArrayNode = isArrayNode;
31
11
  exports.isAssignmentNode = isAssignmentNode;
12
+ exports.isBigNumber = isBigNumber;
32
13
  exports.isBlockNode = isBlockNode;
14
+ exports.isBoolean = isBoolean;
15
+ exports.isChain = isChain;
16
+ exports.isCollection = isCollection;
17
+ exports.isComplex = isComplex;
33
18
  exports.isConditionalNode = isConditionalNode;
34
19
  exports.isConstantNode = isConstantNode;
20
+ exports.isDate = isDate;
21
+ exports.isDenseMatrix = isDenseMatrix;
22
+ exports.isFraction = isFraction;
23
+ exports.isFunction = isFunction;
35
24
  exports.isFunctionAssignmentNode = isFunctionAssignmentNode;
36
25
  exports.isFunctionNode = isFunctionNode;
26
+ exports.isHelp = isHelp;
27
+ exports.isIndex = isIndex;
37
28
  exports.isIndexNode = isIndexNode;
29
+ exports.isMatrix = isMatrix;
38
30
  exports.isNode = isNode;
31
+ exports.isNull = isNull;
32
+ exports.isNumber = isNumber;
33
+ exports.isObject = isObject;
39
34
  exports.isObjectNode = isObjectNode;
40
35
  exports.isOperatorNode = isOperatorNode;
41
36
  exports.isParenthesisNode = isParenthesisNode;
37
+ exports.isRange = isRange;
42
38
  exports.isRangeNode = isRangeNode;
39
+ exports.isRegExp = isRegExp;
40
+ exports.isResultSet = isResultSet;
41
+ exports.isSparseMatrix = isSparseMatrix;
42
+ exports.isString = isString;
43
43
  exports.isSymbolNode = isSymbolNode;
44
- exports.isChain = isChain;
44
+ exports.isUndefined = isUndefined;
45
+ exports.isUnit = isUnit;
45
46
  exports.typeOf = typeOf;
46
- exports.isArray = void 0;
47
47
 
48
48
  var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
49
49
 
@@ -5,9 +5,10 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
+ exports.defaultTemplate = void 0;
8
9
  exports.escapeLatex = escapeLatex;
10
+ exports.latexSymbols = exports.latexOperators = exports.latexFunctions = void 0;
9
11
  exports.toSymbol = toSymbol;
10
- exports.defaultTemplate = exports.latexFunctions = exports.latexOperators = exports.latexSymbols = void 0;
11
12
 
12
13
  var _escapeLatex = _interopRequireDefault(require("escape-latex"));
13
14
 
@@ -5,12 +5,12 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
+ exports.ObjectWrappingMap = void 0;
9
+ exports.assign = assign;
8
10
  exports.createEmptyMap = createEmptyMap;
9
11
  exports.createMap = createMap;
10
- exports.toObject = toObject;
11
12
  exports.isMap = isMap;
12
- exports.assign = assign;
13
- exports.ObjectWrappingMap = void 0;
13
+ exports.toObject = toObject;
14
14
 
15
15
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
16
16
 
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.noBignumber = noBignumber;
7
7
  exports.noFraction = noFraction;
8
- exports.noMatrix = noMatrix;
9
8
  exports.noIndex = noIndex;
9
+ exports.noMatrix = noMatrix;
10
10
  exports.noSubset = noSubset;
11
11
 
12
12
  function noBignumber() {
@@ -3,17 +3,21 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.isInteger = isInteger;
6
+ exports.cosh = exports.cbrt = exports.atanh = exports.asinh = exports.acosh = exports.DBL_EPSILON = void 0;
7
+ exports.digits = digits;
8
+ exports.expm1 = void 0;
7
9
  exports.format = format;
10
+ exports.isInteger = isInteger;
11
+ exports.log2 = exports.log1p = exports.log10 = void 0;
12
+ exports.nearlyEqual = nearlyEqual;
13
+ exports.roundDigits = roundDigits;
14
+ exports.sinh = exports.sign = void 0;
8
15
  exports.splitNumber = splitNumber;
16
+ exports.tanh = void 0;
9
17
  exports.toEngineering = toEngineering;
10
- exports.toFixed = toFixed;
11
18
  exports.toExponential = toExponential;
19
+ exports.toFixed = toFixed;
12
20
  exports.toPrecision = toPrecision;
13
- exports.roundDigits = roundDigits;
14
- exports.digits = digits;
15
- exports.nearlyEqual = nearlyEqual;
16
- exports.tanh = exports.sinh = exports.cosh = exports.atanh = exports.asinh = exports.acosh = exports.DBL_EPSILON = exports.expm1 = exports.cbrt = exports.log1p = exports.log10 = exports.log2 = exports.sign = void 0;
17
21
 
18
22
  var _is = require("./is.js");
19
23
 
@@ -5,21 +5,21 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
+ exports.canDefineProperty = canDefineProperty;
8
9
  exports.clone = clone;
9
- exports.mapObject = mapObject;
10
- exports.extend = extend;
11
10
  exports.deepExtend = deepExtend;
12
- exports.deepStrictEqual = deepStrictEqual;
13
11
  exports.deepFlatten = deepFlatten;
14
- exports.canDefineProperty = canDefineProperty;
15
- exports.lazy = lazy;
16
- exports.traverse = traverse;
12
+ exports.deepStrictEqual = deepStrictEqual;
13
+ exports.extend = extend;
14
+ exports.get = get;
17
15
  exports.hasOwnProperty = hasOwnProperty;
18
16
  exports.isLegacyFactory = isLegacyFactory;
19
- exports.get = get;
20
- exports.set = set;
17
+ exports.lazy = lazy;
18
+ exports.mapObject = mapObject;
21
19
  exports.pick = pick;
22
20
  exports.pickShallow = pickShallow;
21
+ exports.set = set;
22
+ exports.traverse = traverse;
23
23
  exports.values = values;
24
24
 
25
25
  var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
@@ -7,8 +7,8 @@ var _typeof3 = require("@babel/runtime/helpers/typeof");
7
7
  Object.defineProperty(exports, "__esModule", {
8
8
  value: true
9
9
  });
10
- exports.validateBundle = validateBundle;
11
10
  exports.createSnapshotFromFactories = createSnapshotFromFactories;
11
+ exports.validateBundle = validateBundle;
12
12
  exports.validateTypeOf = validateTypeOf;
13
13
 
14
14
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
@@ -5,11 +5,11 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
+ exports.compareText = compareText;
8
9
  exports.endsWith = endsWith;
10
+ exports.escape = escape;
9
11
  exports.format = format;
10
12
  exports.stringify = stringify;
11
- exports.escape = escape;
12
- exports.compareText = compareText;
13
13
 
14
14
  var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
15
15
 
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.version = void 0;
7
- var version = '9.5.2'; // Note: This file is automatically generated when building math.js.
7
+ var version = '10.0.0'; // Note: This file is automatically generated when building math.js.
8
8
  // Changes made in this file will be overwritten.
9
9
 
10
10
  exports.version = version;
@@ -80,7 +80,8 @@ export function importFactory(typed, load, math, importedFactories) {
80
80
  }
81
81
  }
82
82
  } else if (isFactory(value) || name !== undefined) {
83
- var flatName = isFactory(value) ? isTransformFunctionFactory(value) ? value.fn + '.transform' : value.fn : name; // we allow importing the same function twice if it points to the same implementation
83
+ var flatName = isFactory(value) ? isTransformFunctionFactory(value) ? value.fn + '.transform' // TODO: this is ugly
84
+ : value.fn : name; // we allow importing the same function twice if it points to the same implementation
84
85
 
85
86
  if (hasOwnProperty(flatValues, flatName) && flatValues[flatName] !== value && !options.silent) {
86
87
  throw new Error('Cannot import "' + flatName + '" twice');