@tinywork/glass 0.0.36 → 0.0.38

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +4 -2
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -56,8 +56,8 @@ export type NetLog = {
56
56
  realUrl: string;
57
57
  method: string;
58
58
  requestHeaders: string[][];
59
- query: string;
60
- body: any;
59
+ query?: string;
60
+ body?: any;
61
61
  statusCode?: number;
62
62
  responseHeaders?: string[][];
63
63
  resourceType?: ResourceType;
@@ -154,6 +154,8 @@ export interface IGlassContext {
154
154
  export interface IGlassExtension {
155
155
  install?(context: IGlassContext): Promise<void>;
156
156
  activate?(context: IGlassContext): Promise<void>;
157
+ /** 通过设置页面修改数据 */
158
+ onItemChange?(context: IGlassContext): Promise<void>;
157
159
  /** 要修改url时,直接在params.url = new URL方式修改 */
158
160
  onRequest?(context: IGlassContext, params: {
159
161
  url: URL;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinywork/glass",
3
- "version": "0.0.36",
3
+ "version": "0.0.38",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [