@we-debug/core 0.34.1 → 0.36.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/api/badge.js +2 -0
- package/dist/api/rule.js +2 -0
- package/dist/version.js +1 -1
- package/package.json +7 -7
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.36.0](https://github.com/dlhandsome/we-debug/compare/v0.35.0...v0.36.0) (2024-11-25)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* 添加规则时更新视图 ([f303b29](https://github.com/dlhandsome/we-debug/commit/f303b29a877cb20e6dae21cb3c055b9da560d2a6))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [0.35.0](https://github.com/dlhandsome/we-debug/compare/v0.34.1...v0.35.0) (2024-11-13)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @we-debug/core
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## [0.34.1](https://github.com/dlhandsome/we-debug/compare/v0.34.0...v0.34.1) (2024-10-12)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @we-debug/core
|
package/dist/api/badge.js
CHANGED
|
@@ -9,10 +9,12 @@ var index_2 = require("../model/index");
|
|
|
9
9
|
Object.defineProperty(exports, "createBadge", { enumerable: true, get: function () { return index_2.createBadge; } });
|
|
10
10
|
function addBadge(badges) {
|
|
11
11
|
index_1.default.badges.add(badges);
|
|
12
|
+
index_1.default.event.emit('badge:update');
|
|
12
13
|
}
|
|
13
14
|
exports.addBadge = addBadge;
|
|
14
15
|
function removeBadge(badges) {
|
|
15
16
|
index_1.default.badges.remove(badges);
|
|
17
|
+
index_1.default.event.emit('badge:update');
|
|
16
18
|
}
|
|
17
19
|
exports.removeBadge = removeBadge;
|
|
18
20
|
function getBadge() {
|
package/dist/api/rule.js
CHANGED
|
@@ -29,10 +29,12 @@ function addFormRule(rule, options) {
|
|
|
29
29
|
customGroup = defaultGroup;
|
|
30
30
|
}
|
|
31
31
|
customGroup.forEach(function (k) { return (0, group_1.addRuleByGroup)(k, rule); });
|
|
32
|
+
index_1.default.event.emit('rule:update');
|
|
32
33
|
}
|
|
33
34
|
exports.addFormRule = addFormRule;
|
|
34
35
|
function removeFormRule(rule) {
|
|
35
36
|
index_1.default.rules.remove(rule);
|
|
37
|
+
index_1.default.event.emit('rule:update');
|
|
36
38
|
}
|
|
37
39
|
exports.removeFormRule = removeFormRule;
|
|
38
40
|
function getFormRule() {
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@we-debug/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.36.0",
|
|
4
4
|
"description": "a useful debug tool for weapp",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "dlhandsome"
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
},
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@we-debug/plugin-error": "0.
|
|
28
|
-
"@we-debug/plugin-launcher": "0.
|
|
29
|
-
"@we-debug/plugin-network": "0.
|
|
30
|
-
"@we-debug/plugin-router": "0.
|
|
31
|
-
"@we-debug/plugin-ui-check": "0.
|
|
27
|
+
"@we-debug/plugin-error": "0.36.0",
|
|
28
|
+
"@we-debug/plugin-launcher": "0.36.0",
|
|
29
|
+
"@we-debug/plugin-network": "0.36.0",
|
|
30
|
+
"@we-debug/plugin-router": "0.36.0",
|
|
31
|
+
"@we-debug/plugin-ui-check": "0.36.0",
|
|
32
32
|
"deepmerge": "^4.2.2"
|
|
33
33
|
},
|
|
34
34
|
"readme": "ERROR: No README data found!",
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"@types/jest": "^29.5.11",
|
|
39
39
|
"ts-jest": "^29.1.1"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "d259a05defcc5411fe82fa5d5894978e9b0a05da"
|
|
42
42
|
}
|