chore: freeze v1.1.3 filing submission build (60 levels, full-screen safe layout)

This commit is contained in:
fannyxl committed 2026-11-25 23:14:45 +08:00
commit 96c19dca82
174 files changed
+37935

No files matched your search

+31
View File
@@ -0,0 +1,31 @@
'use strict';
function safeJsonParse(text, fallback = null) {
try {
return JSON.parse(text);
} catch (error) {
return fallback;
}
}
function safeStringify(value) {
const seen = new WeakSet();
return JSON.stringify(
value,
(key, current) => {
if (typeof current === 'object' && current !== null) {
if (seen.has(current)) {
return '[Circular]';
}
seen.add(current);
}
return current;
},
2
);
}
module.exports = {
safeJsonParse,
safeStringify,
};