@lvce-editor/main-process 6.16.0 → 6.18.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.
@@ -4516,8 +4516,14 @@ const formatMessage = ({
4516
4516
  message,
4517
4517
  sourceId
4518
4518
  }) => {
4519
- const source = sourceId ? ` (${sourceId}:${lineNumber})` : '';
4520
- return `${new Date().toISOString()} [${level}] [Window] ${message}${source}`;
4519
+ return JSON.stringify({
4520
+ category: 'Window',
4521
+ level,
4522
+ line: lineNumber,
4523
+ message,
4524
+ source: sourceId,
4525
+ timestamp: new Date().toISOString()
4526
+ });
4521
4527
  };
4522
4528
  const addListener = (webContents, logger = getOrCreateLogger()) => {
4523
4529
  webContents.on('console-message', event => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/main-process",
3
- "version": "6.16.0",
3
+ "version": "6.18.0",
4
4
  "keywords": [
5
5
  "lvce-editor",
6
6
  "electron"