@we-debug/core 0.31.9 → 0.31.11
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 +20 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4 -0
- package/dist/model/base.d.ts +2 -2
- package/dist/model/base.js +1 -2
- package/dist/types.d.ts +11 -2
- package/dist/version.js +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
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.31.11](https://github.com/dlhandsome/we-debug/compare/v0.31.10...v0.31.11) (2024-01-19)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @we-debug/core
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [0.31.10](https://github.com/dlhandsome/we-debug/compare/v0.31.9...v0.31.10) (2024-01-18)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **core:** fixed types ([b6541d0](https://github.com/dlhandsome/we-debug/commit/b6541d055c1b8eddcc53cfb01303022afabe759a))
|
|
20
|
+
* **core:** fixed types export ([48e6672](https://github.com/dlhandsome/we-debug/commit/48e667217c602150db805020f61f771bc5324c10))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
## [0.31.9](https://github.com/dlhandsome/we-debug/compare/v0.31.8...v0.31.9) (2024-01-18)
|
|
7
27
|
|
|
8
28
|
**Note:** Version bump only for package @we-debug/core
|
package/dist/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ import { ENV_TYPE, getEnv } from './utils/env';
|
|
|
11
11
|
import { DEFAULT_GROUP } from './config/group';
|
|
12
12
|
import { version } from './version';
|
|
13
13
|
declare const event: import("./base/event").Event;
|
|
14
|
+
export * from './types';
|
|
14
15
|
export { ENV_TYPE, DEFAULT_GROUP, getEnv, use, init, createCache, event, store, util, createBadge, getBadge, addBadge, removeBadge, createFormRule, getFormRule, addFormRule, removeFormRule, getGroupsAllKeys, addRuleByGroup, getRuleByGroup, removeGroupRule, setBridgeInfo, getBridgeInfo, version };
|
|
15
16
|
declare const _default: {
|
|
16
17
|
ENV_TYPE: typeof ENV_TYPE;
|
package/dist/index.js
CHANGED
|
@@ -22,6 +22,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
22
22
|
__setModuleDefault(result, mod);
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
26
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
|
+
};
|
|
25
28
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
29
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
30
|
};
|
|
@@ -64,6 +67,7 @@ var version_1 = require("./version");
|
|
|
64
67
|
Object.defineProperty(exports, "version", { enumerable: true, get: function () { return version_1.version; } });
|
|
65
68
|
var event = index_1.default.event;
|
|
66
69
|
exports.event = event;
|
|
70
|
+
__exportStar(require("./types"), exports);
|
|
67
71
|
exports.default = {
|
|
68
72
|
ENV_TYPE: env_1.ENV_TYPE,
|
|
69
73
|
DEFAULT_GROUP: group_2.DEFAULT_GROUP,
|
package/dist/model/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { IBaseManageConstructorOption } from '../types';
|
|
1
|
+
import { IBaseModelHandler, IBaseManageConstructorOption } from '../types';
|
|
2
2
|
export default class BaseManage {
|
|
3
3
|
id: number;
|
|
4
|
-
handler:
|
|
4
|
+
handler: IBaseModelHandler;
|
|
5
5
|
constructor(opt?: IBaseManageConstructorOption);
|
|
6
6
|
get prefix(): void | string;
|
|
7
7
|
emit(opt?: {}): void;
|
package/dist/model/base.js
CHANGED
|
@@ -4,12 +4,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
var index_1 = __importDefault(require("../store/index"));
|
|
7
|
-
var simple_type_function_1 = require("../utils/simple-type-function");
|
|
8
7
|
var _id = 1;
|
|
9
8
|
var BaseManage = (function () {
|
|
10
9
|
function BaseManage(opt) {
|
|
11
10
|
this.id = (opt === null || opt === void 0 ? void 0 : opt.id) || _id++;
|
|
12
|
-
this.handler = (opt === null || opt === void 0 ? void 0 : opt.handler) ||
|
|
11
|
+
this.handler = (opt === null || opt === void 0 ? void 0 : opt.handler) || {};
|
|
13
12
|
}
|
|
14
13
|
Object.defineProperty(BaseManage.prototype, "prefix", {
|
|
15
14
|
get: function () {
|
package/dist/types.d.ts
CHANGED
|
@@ -15,8 +15,17 @@ export type IEventKey = singleEventKey | singleEventKey[];
|
|
|
15
15
|
export interface IBaseModel {
|
|
16
16
|
id: number;
|
|
17
17
|
}
|
|
18
|
+
export interface IFormRuleState {
|
|
19
|
+
name?: string;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
checked?: boolean;
|
|
22
|
+
}
|
|
23
|
+
export interface IBaseModelHandler {
|
|
24
|
+
bindTap?: (state: IFormRuleState) => any;
|
|
25
|
+
bindChange?: (state: IFormRuleState) => any;
|
|
26
|
+
}
|
|
18
27
|
export interface IBaseManageConstructorOption extends IBaseModel {
|
|
19
|
-
handler:
|
|
28
|
+
handler: IBaseModelHandler;
|
|
20
29
|
}
|
|
21
30
|
export interface IPosition {
|
|
22
31
|
left?: number;
|
|
@@ -40,7 +49,7 @@ export interface IFormRuleManageConstructorOption extends IBaseManageConstructor
|
|
|
40
49
|
desc?: string;
|
|
41
50
|
meta?: string | number;
|
|
42
51
|
type?: FormRuleType;
|
|
43
|
-
state?:
|
|
52
|
+
state?: IFormRuleState;
|
|
44
53
|
}
|
|
45
54
|
export type compareFn = (a: string, b: string) => number;
|
|
46
55
|
export type WxKey = keyof WechatMiniprogram.Wx;
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@we-debug/core",
|
|
3
|
-
"version": "0.31.
|
|
3
|
+
"version": "0.31.11",
|
|
4
4
|
"description": "a useful debug tool for weapp",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "dlhandsome"
|
|
7
7
|
},
|
|
8
8
|
"main": "dist/index.js",
|
|
9
|
-
"types": "dist/
|
|
9
|
+
"types": "dist/index.d.ts",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"test": "jest"
|
|
12
12
|
},
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@we-debug/plugin-error": "0.31.
|
|
27
|
+
"@we-debug/plugin-error": "0.31.11",
|
|
28
28
|
"@we-debug/plugin-launcher": "0.31.0",
|
|
29
29
|
"@we-debug/plugin-network": "0.31.0",
|
|
30
30
|
"@we-debug/plugin-router": "0.31.0",
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"@types/jest": "^29.5.11",
|
|
39
39
|
"ts-jest": "^29.1.1"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "42043c705c466081c52fa1c8586efb8c610ba2b1"
|
|
42
42
|
}
|