@steve02081504/virtual-console 0.1.0 → 0.1.1

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.
Files changed (3) hide show
  1. package/browser.mjs +1 -1
  2. package/node.mjs +1 -1
  3. package/package.json +1 -1
package/browser.mjs CHANGED
@@ -134,7 +134,7 @@ export class VirtualConsole {
134
134
 
135
135
  if (this.options.recordOutput) {
136
136
  this.outputs += formatArgs(args) + '\n'
137
- this.outputsHtml += argsToHtml(args) + '\n'
137
+ this.outputsHtml += argsToHtml(args) + '<br/>\n'
138
138
  }
139
139
 
140
140
  // 实际输出
package/node.mjs CHANGED
@@ -93,7 +93,7 @@ export class VirtualConsole extends Console {
93
93
  */
94
94
  this[method] = (...args) => {
95
95
  if (method == 'error' && this.options.error_handler && args.length === 1 && args[0] instanceof Error) return this.options.error_handler(args[0])
96
- if (this.options.recordOutput) this.outputsHtml += argsToHtml(args) + '\n'
96
+ if (this.options.recordOutput) this.outputsHtml += argsToHtml(args) + '<br/>\n'
97
97
  if (!this.options.realConsoleOutput || this.options.recordOutput) return originalMethod.apply(this, args)
98
98
  this.#loggedFreshLineId = null
99
99
  return this.#base_console[method](...args)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steve02081504/virtual-console",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "A virtual console for capturing and manipulating terminal output.",
5
5
  "main": "main.mjs",
6
6
  "type": "module",