feat:node-modules
This commit is contained in:
15
node_modules/mathjs/lib/esm/entry/configReadonly.js
generated
vendored
Normal file
15
node_modules/mathjs/lib/esm/entry/configReadonly.js
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
import _extends from "@babel/runtime/helpers/extends";
|
||||
import { DEFAULT_CONFIG } from '../core/config.js';
|
||||
import { MATRIX_OPTIONS, NUMBER_OPTIONS } from '../core/function/config.js';
|
||||
|
||||
// create a read-only version of config
|
||||
export var config = function config(options) {
|
||||
if (options) {
|
||||
throw new Error('The global config is readonly. \n' + 'Please create a mathjs instance if you want to change the default configuration. \n' + 'Example:\n' + '\n' + ' import { create, all } from \'mathjs\';\n' + ' const mathjs = create(all);\n' + ' mathjs.config({ number: \'BigNumber\' });\n');
|
||||
}
|
||||
return Object.freeze(DEFAULT_CONFIG);
|
||||
};
|
||||
_extends(config, DEFAULT_CONFIG, {
|
||||
MATRIX_OPTIONS,
|
||||
NUMBER_OPTIONS
|
||||
});
|
||||
Reference in New Issue
Block a user