Added Statistics calculation
Statistics now show calculated values
This commit is contained in:
parent
fe87374e47
commit
fc0f69dacb
2147 changed files with 141321 additions and 39 deletions
27
node_modules/@mui/x-internals/hash/stringify.js
generated
vendored
Normal file
27
node_modules/@mui/x-internals/hash/stringify.js
generated
vendored
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.stringify = stringify;
|
||||
/**
|
||||
* A JSON.stringify that handles circular references safely.
|
||||
* Fixes: https://github.com/mui/mui-x/issues/17521
|
||||
* Source: https://www.30secondsofcode.org/js/s/stringify-circular-json/
|
||||
*/
|
||||
function stringify(input) {
|
||||
const seen = new WeakSet();
|
||||
return JSON.stringify(input, (_, v) => {
|
||||
// https://github.com/mui/mui-x/issues/17855
|
||||
if (typeof window !== 'undefined' && v === window || typeof document !== 'undefined' && v === document) {
|
||||
return v.toString();
|
||||
}
|
||||
if (v !== null && typeof v === 'object') {
|
||||
if (seen.has(v)) {
|
||||
return null;
|
||||
}
|
||||
seen.add(v);
|
||||
}
|
||||
return v;
|
||||
});
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue