@we-debug/miniprogram 0.47.4 → 0.49.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/CHANGELOG.md +19 -0
- package/dist/table-view/index.js +2 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [0.49.0](https://github.com/dlhandsome/we-debug/compare/v0.48.0...v0.49.0) (2025-10-31)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* 添加文本编码器功能并更新相关引用 ([62c2267](https://github.com/dlhandsome/we-debug/commit/62c2267fa6bbe020a334d74f88b9e684516cba9c))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [0.48.0](https://github.com/dlhandsome/we-debug/compare/v0.47.4...v0.48.0) (2025-10-31)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @we-debug/miniprogram
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## [0.47.4](https://github.com/dlhandsome/we-debug/compare/v0.47.3...v0.47.4) (2025-07-09)
|
|
7
26
|
|
|
8
27
|
|
package/dist/table-view/index.js
CHANGED
|
@@ -2,6 +2,7 @@ import Debug from '@we-debug/core';
|
|
|
2
2
|
|
|
3
3
|
const store = Debug.store;
|
|
4
4
|
const { isFunc } = Debug.util;
|
|
5
|
+
const textEncoder = Debug.textEncoder;
|
|
5
6
|
|
|
6
7
|
const prefix = 'debug:tableview-';
|
|
7
8
|
|
|
@@ -91,7 +92,7 @@ Component({
|
|
|
91
92
|
calculateDataSize(data) {
|
|
92
93
|
try {
|
|
93
94
|
const jsonString = JSON.stringify(data);
|
|
94
|
-
const bytes =
|
|
95
|
+
const bytes = textEncoder.encode(jsonString).length;
|
|
95
96
|
|
|
96
97
|
if (bytes < 1024) {
|
|
97
98
|
return `${bytes} B`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@we-debug/miniprogram",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.49.0",
|
|
4
4
|
"description": "we-debug miniprogram component",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "dlhandsome"
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
},
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@we-debug/core": "0.
|
|
29
|
+
"@we-debug/core": "0.49.0"
|
|
30
30
|
},
|
|
31
31
|
"readme": "ERROR: No README data found!",
|
|
32
32
|
"_id": "@we-debug/core@0.3.5",
|
|
33
33
|
"_commitid": "6c3f04b",
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "7f082929ccf3214b4ed193c23a97f3b33844f076"
|
|
35
35
|
}
|