@spfn/core 0.1.0-alpha.85 → 0.1.0-alpha.86
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/cache/index.js +12 -1
- package/dist/cache/index.js.map +1 -1
- package/dist/client/index.d.ts +192 -46
- package/dist/client/index.js +181 -9
- package/dist/client/index.js.map +1 -1
- package/dist/client/nextjs/index.d.ts +557 -0
- package/dist/client/nextjs/index.js +371 -0
- package/dist/client/nextjs/index.js.map +1 -0
- package/dist/codegen/generators/index.js +12 -1
- package/dist/codegen/generators/index.js.map +1 -1
- package/dist/codegen/index.js +12 -1
- package/dist/codegen/index.js.map +1 -1
- package/dist/db/index.js +12 -1
- package/dist/db/index.js.map +1 -1
- package/dist/env/index.js +12 -1
- package/dist/env/index.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +13 -1
- package/dist/index.js.map +1 -1
- package/dist/logger/index.js +12 -1
- package/dist/logger/index.js.map +1 -1
- package/dist/middleware/index.js +12 -1
- package/dist/middleware/index.js.map +1 -1
- package/dist/route/index.js +15 -3
- package/dist/route/index.js.map +1 -1
- package/dist/server/index.js +13 -1
- package/dist/server/index.js.map +1 -1
- package/package.json +7 -1
package/dist/codegen/index.js
CHANGED
|
@@ -130,7 +130,18 @@ function formatConsole(metadata, colorize = true) {
|
|
|
130
130
|
}
|
|
131
131
|
if (metadata.context && Object.keys(metadata.context).length > 0) {
|
|
132
132
|
Object.entries(metadata.context).forEach(([key, value]) => {
|
|
133
|
-
|
|
133
|
+
let valueStr;
|
|
134
|
+
if (typeof value === "string") {
|
|
135
|
+
valueStr = value;
|
|
136
|
+
} else if (typeof value === "object" && value !== null) {
|
|
137
|
+
try {
|
|
138
|
+
valueStr = JSON.stringify(value);
|
|
139
|
+
} catch (error) {
|
|
140
|
+
valueStr = "[circular]";
|
|
141
|
+
}
|
|
142
|
+
} else {
|
|
143
|
+
valueStr = String(value);
|
|
144
|
+
}
|
|
134
145
|
if (colorize) {
|
|
135
146
|
parts.push(`${COLORS.dim}[${key}=${valueStr}]${COLORS.reset}`);
|
|
136
147
|
} else {
|