@likec4/log 1.34.2 → 1.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +4 -2
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -1241,7 +1241,7 @@ return targetC
|
|
|
1241
1241
|
};
|
|
1242
1242
|
|
|
1243
1243
|
function safeStringifyReplacer(seen) {
|
|
1244
|
-
|
|
1244
|
+
const replacer = function (key, value) {
|
|
1245
1245
|
// Handle objects with a custom `.toJSON()` method.
|
|
1246
1246
|
if (typeof value?.toJSON === 'function') {
|
|
1247
1247
|
value = value.toJSON();
|
|
@@ -1260,13 +1260,15 @@ function safeStringifyReplacer(seen) {
|
|
|
1260
1260
|
const newValue = Array.isArray(value) ? [] : {};
|
|
1261
1261
|
|
|
1262
1262
|
for (const [key2, value2] of Object.entries(value)) {
|
|
1263
|
-
newValue[key2] =
|
|
1263
|
+
newValue[key2] = replacer(key2, value2);
|
|
1264
1264
|
}
|
|
1265
1265
|
|
|
1266
1266
|
seen.delete(value);
|
|
1267
1267
|
|
|
1268
1268
|
return newValue;
|
|
1269
1269
|
};
|
|
1270
|
+
|
|
1271
|
+
return replacer;
|
|
1270
1272
|
}
|
|
1271
1273
|
|
|
1272
1274
|
function safeStringify(object, {indentation} = {}) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@likec4/log",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.35.0",
|
|
5
5
|
"bugs": "https://github.com/likec4/likec4/issues",
|
|
6
6
|
"homepage": "https://likec4.dev",
|
|
7
7
|
"author": "Denis Davydkov <denis@davydkov.com>",
|
|
@@ -34,14 +34,14 @@
|
|
|
34
34
|
"@logtape/logtape": "^0.9.1"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@types/node": "~20.19.
|
|
37
|
+
"@types/node": "~20.19.2",
|
|
38
38
|
"merge-error-cause": "^5.0.2",
|
|
39
|
-
"safe-stringify": "^1.
|
|
39
|
+
"safe-stringify": "^1.2.0",
|
|
40
40
|
"std-env": "^3.9.0",
|
|
41
41
|
"typescript": "5.8.3",
|
|
42
42
|
"unbuild": "3.5.0",
|
|
43
43
|
"wrap-error-message": "^3.0.1",
|
|
44
|
-
"@likec4/tsconfig": "1.
|
|
44
|
+
"@likec4/tsconfig": "1.35.0"
|
|
45
45
|
},
|
|
46
46
|
"scripts": {
|
|
47
47
|
"typecheck": "tsc -b --verbose",
|