@tinywork/glass 1.0.22 → 1.0.23

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/index.d.ts +3 -1
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { OutgoingHttpHeaders } from "node:http";
1
+ import type { OutgoingHttpHeaders, IncomingHttpHeaders } from "node:http";
2
2
 
3
3
  type IGlassExtensionEvent<T> = (params: T) => Promise<T>;
4
4
  type IGlassExtensionInvokeResponse<T> = Promise<{
@@ -313,6 +313,8 @@ declare global {
313
313
  body?: any;
314
314
  };
315
315
  isLocal?: boolean;
316
+ headers?: IncomingHttpHeaders;
317
+ rule?: RuleSchema;
316
318
  }>;
317
319
  /** 在执行请求用例时触发,用于修改config */
318
320
  onRequestExec?: IGlassExtensionEvent<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinywork/glass",
3
- "version": "1.0.22",
3
+ "version": "1.0.23",
4
4
  "description": "",
5
5
  "types": "index.d.ts",
6
6
  "files": [