mathjs 9.5.2 → 10.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/HISTORY.md +15 -1
- package/lib/browser/math.js +4 -4
- package/lib/browser/math.js.map +1 -1
- package/lib/cjs/constants.js +1 -1
- package/lib/cjs/core/function/config.js +1 -1
- package/lib/cjs/core/function/import.js +2 -1
- package/lib/cjs/entry/dependenciesAny.generated.js +999 -999
- package/lib/cjs/entry/dependenciesNumber.generated.js +581 -581
- package/lib/cjs/entry/impureFunctionsAny.generated.js +314 -313
- package/lib/cjs/entry/impureFunctionsNumber.generated.js +223 -222
- package/lib/cjs/entry/mainAny.js +8 -8
- package/lib/cjs/entry/mainNumber.js +8 -8
- package/lib/cjs/entry/pureFunctionsAny.generated.js +1100 -1100
- package/lib/cjs/entry/pureFunctionsNumber.generated.js +375 -375
- package/lib/cjs/entry/typeChecks.js +12 -12
- package/lib/cjs/expression/operators.js +1 -1
- package/lib/cjs/factoriesAny.js +660 -660
- package/lib/cjs/factoriesNumber.js +268 -237
- package/lib/cjs/header.js +1 -1
- package/lib/cjs/plain/bignumber/arithmetic.js +2 -2
- package/lib/cjs/plain/number/arithmetic.js +10 -10
- package/lib/cjs/plain/number/constants.js +1 -1
- package/lib/cjs/plain/number/logical.js +1 -1
- package/lib/cjs/plain/number/probability.js +2 -1
- package/lib/cjs/plain/number/trigonometry.js +1 -1
- package/lib/cjs/plain/number/utils.js +1 -1
- package/lib/cjs/type/unit/physicalConstants.js +1 -1
- package/lib/cjs/utils/array.js +14 -14
- package/lib/cjs/utils/bignumber/bitwise.js +1 -1
- package/lib/cjs/utils/customs.js +5 -5
- package/lib/cjs/utils/factory.js +3 -3
- package/lib/cjs/utils/function.js +1 -1
- package/lib/cjs/utils/is.js +23 -23
- package/lib/cjs/utils/latex.js +2 -1
- package/lib/cjs/utils/map.js +3 -3
- package/lib/cjs/utils/noop.js +1 -1
- package/lib/cjs/utils/number.js +10 -6
- package/lib/cjs/utils/object.js +8 -8
- package/lib/cjs/utils/snapshot.js +1 -1
- package/lib/cjs/utils/string.js +2 -2
- package/lib/cjs/version.js +1 -1
- package/lib/esm/core/function/import.js +2 -1
- package/lib/esm/entry/dependenciesAny.generated.js +270 -270
- package/lib/esm/entry/dependenciesNumber.generated.js +163 -163
- package/lib/esm/entry/impureFunctionsAny.generated.js +301 -301
- package/lib/esm/entry/impureFunctionsNumber.generated.js +211 -211
- package/lib/esm/entry/pureFunctionsAny.generated.js +816 -816
- package/lib/esm/entry/pureFunctionsNumber.generated.js +234 -234
- package/lib/esm/version.js +1 -1
- package/package.json +16 -16
- package/types/index.d.ts +250 -71
package/lib/cjs/header.js
CHANGED
@@ -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,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
|
|
@@ -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.
|
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
|
|
package/lib/cjs/utils/array.js
CHANGED
@@ -4,25 +4,25 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports.arraySize = arraySize;
|
7
|
-
exports.
|
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.
|
20
|
-
exports.
|
10
|
+
exports.flatten = flatten;
|
11
|
+
exports.forEach = forEach;
|
21
12
|
exports.generalize = generalize;
|
22
13
|
exports.getArrayDataType = getArrayDataType;
|
23
|
-
exports.
|
14
|
+
exports.identify = identify;
|
24
15
|
exports.initial = initial;
|
25
|
-
exports.
|
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
|
|
package/lib/cjs/utils/customs.js
CHANGED
@@ -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
|
|
package/lib/cjs/utils/factory.js
CHANGED
@@ -3,12 +3,12 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.
|
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
|
|
package/lib/cjs/utils/is.js
CHANGED
@@ -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.
|
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
|
|
package/lib/cjs/utils/latex.js
CHANGED
@@ -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
|
|
package/lib/cjs/utils/map.js
CHANGED
@@ -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.
|
13
|
-
exports.ObjectWrappingMap = void 0;
|
13
|
+
exports.toObject = toObject;
|
14
14
|
|
15
15
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
16
16
|
|
package/lib/cjs/utils/noop.js
CHANGED
@@ -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() {
|
package/lib/cjs/utils/number.js
CHANGED
@@ -3,17 +3,21 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.
|
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
|
|
package/lib/cjs/utils/object.js
CHANGED
@@ -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.
|
15
|
-
exports.
|
16
|
-
exports.
|
12
|
+
exports.deepStrictEqual = deepStrictEqual;
|
13
|
+
exports.extend = extend;
|
14
|
+
exports.get = get;
|
17
15
|
exports.hasOwnProperty = hasOwnProperty;
|
18
16
|
exports.isLegacyFactory = isLegacyFactory;
|
19
|
-
exports.
|
20
|
-
exports.
|
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"));
|
package/lib/cjs/utils/string.js
CHANGED
@@ -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
|
|
package/lib/cjs/version.js
CHANGED
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
5
5
|
});
|
6
6
|
exports.version = void 0;
|
7
|
-
var version = '
|
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'
|
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');
|