This commit is contained in:
2024-12-17 14:36:15 -08:00
parent b2dbf46d28
commit 06d106de53
17731 changed files with 3037186 additions and 144 deletions

17
backend/frontend/node_modules/tcomb/lib/stringify.js generated vendored Normal file
View File

@@ -0,0 +1,17 @@
var getFunctionName = require('./getFunctionName');
function replacer(key, value) {
if (typeof value === 'function') {
return getFunctionName(value);
}
return value;
}
module.exports = function stringify(x) {
try { // handle "Converting circular structure to JSON" error
return JSON.stringify(x, replacer, 2);
}
catch (e) {
return String(x);
}
};