@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 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
@@ -6,4 +6,4 @@ import crypto from 'node:crypto';
6
6
  import axios from 'axios';
7
7
  import qs from 'qs';
8
8
  import { BrowserWindow } from 'electron';
9
- export { fs, qs, path, http, https, axios, crypto, BrowserWindow };
9
+ export { fs, qs, path, http, https, axios, crypto, BrowserWindow, };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinywork/glass",
3
- "version": "0.0.40",
3
+ "version": "0.0.42",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [