@douyinfe/semi-json-viewer-core 2.78.0-alpha.2 → 2.78.0-beta.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.
- package/lib/index.js +3 -0
- package/package.json +2 -2
package/lib/index.js
CHANGED
|
@@ -4271,6 +4271,9 @@ var View = class {
|
|
|
4271
4271
|
const span = document.createElement("span");
|
|
4272
4272
|
span.className = token.scopes;
|
|
4273
4273
|
span.textContent = content;
|
|
4274
|
+
if (!this._options?.autoWrap) {
|
|
4275
|
+
span.style.whiteSpace = "pre";
|
|
4276
|
+
}
|
|
4274
4277
|
container.appendChild(span);
|
|
4275
4278
|
}
|
|
4276
4279
|
currentOffset += content.length;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@douyinfe/semi-json-viewer-core",
|
|
3
|
-
"version": "2.78.0-
|
|
3
|
+
"version": "2.78.0-beta.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
],
|
|
54
54
|
"author": "",
|
|
55
55
|
"license": "MIT",
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "763dd181e5b8c00d69b15a0cec20b011532742ab"
|
|
57
57
|
}
|