@logtape/pretty 1.3.5 → 1.3.7
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/util.deno.cjs +3 -1
- package/dist/util.deno.js +3 -1
- package/dist/util.deno.js.map +1 -1
- package/package.json +2 -2
package/dist/util.deno.cjs
CHANGED
|
@@ -4,7 +4,9 @@ function inspect(obj, options) {
|
|
|
4
4
|
if ("Deno" in globalThis) return Deno.inspect(obj, {
|
|
5
5
|
colors: options?.colors,
|
|
6
6
|
depth: options?.depth ?? void 0,
|
|
7
|
-
compact: options?.compact ?? true
|
|
7
|
+
compact: options?.compact ?? true,
|
|
8
|
+
getters: options?.getters,
|
|
9
|
+
showProxy: options?.showProxy
|
|
8
10
|
});
|
|
9
11
|
else {
|
|
10
12
|
const indent = options?.compact === true ? void 0 : 2;
|
package/dist/util.deno.js
CHANGED
|
@@ -3,7 +3,9 @@ function inspect(obj, options) {
|
|
|
3
3
|
if ("Deno" in globalThis) return Deno.inspect(obj, {
|
|
4
4
|
colors: options?.colors,
|
|
5
5
|
depth: options?.depth ?? void 0,
|
|
6
|
-
compact: options?.compact ?? true
|
|
6
|
+
compact: options?.compact ?? true,
|
|
7
|
+
getters: options?.getters,
|
|
8
|
+
showProxy: options?.showProxy
|
|
7
9
|
});
|
|
8
10
|
else {
|
|
9
11
|
const indent = options?.compact === true ? void 0 : 2;
|
package/dist/util.deno.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.deno.js","names":["obj: unknown","options?: InspectOptions"],"sources":["../src/util.deno.ts"],"sourcesContent":["export interface InspectOptions {\n colors?: boolean;\n depth?: number | null;\n compact?: boolean;\n getters?: boolean;\n showProxy?: boolean;\n [key: string]: unknown;\n}\n\nexport function inspect(obj: unknown, options?: InspectOptions): string {\n if (\"Deno\" in globalThis) {\n return Deno.inspect(obj, {\n colors: options?.colors,\n depth: options?.depth ?? undefined,\n compact: options?.compact ?? true,\n });\n } else {\n const indent = options?.compact === true ? undefined : 2;\n return JSON.stringify(obj, null, indent);\n }\n}\n"],"mappings":";AASA,SAAgB,QAAQA,KAAcC,SAAkC;AACtE,KAAI,UAAU,WACZ,QAAO,KAAK,QAAQ,KAAK;EACvB,QAAQ,SAAS;EACjB,OAAO,SAAS;EAChB,SAAS,SAAS,WAAW;
|
|
1
|
+
{"version":3,"file":"util.deno.js","names":["obj: unknown","options?: InspectOptions"],"sources":["../src/util.deno.ts"],"sourcesContent":["export interface InspectOptions {\n colors?: boolean;\n depth?: number | null;\n compact?: boolean;\n getters?: boolean;\n showProxy?: boolean;\n [key: string]: unknown;\n}\n\nexport function inspect(obj: unknown, options?: InspectOptions): string {\n if (\"Deno\" in globalThis) {\n return Deno.inspect(obj, {\n colors: options?.colors,\n depth: options?.depth ?? undefined,\n compact: options?.compact ?? true,\n getters: options?.getters,\n showProxy: options?.showProxy,\n });\n } else {\n const indent = options?.compact === true ? undefined : 2;\n return JSON.stringify(obj, null, indent);\n }\n}\n"],"mappings":";AASA,SAAgB,QAAQA,KAAcC,SAAkC;AACtE,KAAI,UAAU,WACZ,QAAO,KAAK,QAAQ,KAAK;EACvB,QAAQ,SAAS;EACjB,OAAO,SAAS;EAChB,SAAS,SAAS,WAAW;EAC7B,SAAS,SAAS;EAClB,WAAW,SAAS;CACrB,EAAC;MACG;EACL,MAAM,SAAS,SAAS,YAAY,gBAAmB;AACvD,SAAO,KAAK,UAAU,KAAK,MAAM,OAAO;CACzC;AACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@logtape/pretty",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.7",
|
|
4
4
|
"description": "Beautiful text formatter for LogTape—perfect for local development",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"logging",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"dist/"
|
|
79
79
|
],
|
|
80
80
|
"peerDependencies": {
|
|
81
|
-
"@logtape/logtape": "^1.3.
|
|
81
|
+
"@logtape/logtape": "^1.3.7"
|
|
82
82
|
},
|
|
83
83
|
"devDependencies": {
|
|
84
84
|
"@alinea/suite": "^0.6.3",
|