@tinywork/glass 0.0.40 → 0.0.42
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/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -79,7 +79,7 @@ export type FilterSchema = {
|
|
|
79
79
|
value?: string;
|
|
80
80
|
}[];
|
|
81
81
|
};
|
|
82
|
-
type RuleSchema = FilterSchema & {
|
|
82
|
+
export type RuleSchema = FilterSchema & {
|
|
83
83
|
id: string;
|
|
84
84
|
mode?: MockMode;
|
|
85
85
|
name?: string;
|
|
@@ -239,7 +239,7 @@ export interface IGlassExtension {
|
|
|
239
239
|
onDocCliUpdate?(context: IGlassContext, id: string): Promise<void>;
|
|
240
240
|
onGroupChange?(context: IGlassContext, group: GroupSchema | null, originGroup: GroupSchema | null): Promise<boolean>;
|
|
241
241
|
/** 右键请求日志 */
|
|
242
|
-
onNetLogContextMenu?(context: IGlassContext, log: NetLog, menus?: MenuItemConstructorOptions): Promise<void>;
|
|
242
|
+
onNetLogContextMenu?(context: IGlassContext, log: NetLog, menus?: MenuItemConstructorOptions[]): Promise<void>;
|
|
243
243
|
getDefaultRule?(context: IGlassContext, docs: DocSchema[], log: NetLog, rule?: {
|
|
244
244
|
id: string;
|
|
245
245
|
mode: 'None';
|
|
@@ -256,4 +256,4 @@ export interface IGlassExtension {
|
|
|
256
256
|
/** 根据doc或者log来初始化case */
|
|
257
257
|
getDefaultCase?(context: IGlassContext, docs: DocSchema[], log?: NetLog, defaultCase?: Partial<Case>): Promise<void>;
|
|
258
258
|
}
|
|
259
|
-
export { fs, qs, path, http, https, axios, crypto, BrowserWindow, type Session };
|
|
259
|
+
export { fs, qs, path, http, https, axios, crypto, BrowserWindow, type Session, type MenuItemConstructorOptions, };
|
package/dist/index.js
CHANGED