@mldong/jeeflow 1.8.11 → 1.8.12
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/facade.js +3 -0
- package/package.json +1 -1
package/dist/facade.js
CHANGED
|
@@ -1169,6 +1169,9 @@ function toStr(v) {
|
|
|
1169
1169
|
return v;
|
|
1170
1170
|
if (v instanceof Uint8Array || Buffer.isBuffer(v))
|
|
1171
1171
|
return Buffer.from(v).toString('utf8');
|
|
1172
|
+
// 对象/数组(content 等字段前端直接传 JSON 对象):序列化为 JSON 字符串
|
|
1173
|
+
if (typeof v === 'object')
|
|
1174
|
+
return JSON.stringify(v);
|
|
1172
1175
|
return String(v);
|
|
1173
1176
|
}
|
|
1174
1177
|
function toId(v) {
|