@tinywork/glass 1.0.16 → 1.0.18

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 +8 -2
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export {};
1
+ import type { OutgoingHttpHeaders } from "node:http";
2
2
 
3
3
  type IGlassExtensionEvent<T> = (params: T) => Promise<T>;
4
4
  type IGlassExtensionInvokeResponse<T> = Promise<{
@@ -22,7 +22,7 @@ declare global {
22
22
 
23
23
  type Cookie = {
24
24
  name: string;
25
- origin?: string;
25
+ domain?: string;
26
26
  path?: string;
27
27
  value?: string;
28
28
  };
@@ -306,6 +306,11 @@ declare global {
306
306
  /** url为null时表示break了请求 */
307
307
  url: string | null;
308
308
  originUrl?: string | null;
309
+ response?: {
310
+ statusCode?: number;
311
+ headers?: OutgoingHttpHeaders;
312
+ body?: any;
313
+ };
309
314
  isLocal?: boolean;
310
315
  }>;
311
316
  /** 在执行请求用例时触发,用于修改config */
@@ -399,6 +404,7 @@ declare global {
399
404
  origin?: string;
400
405
  path?: string;
401
406
  }): IGlassExtensionInvokeResponse<string>;
407
+
402
408
  /** 保存文档组 */
403
409
  saveGroup(group: GroupSchema): IGlassExtensionInvokeResponse<void>;
404
410
  /** 批量保存文档组 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinywork/glass",
3
- "version": "1.0.16",
3
+ "version": "1.0.18",
4
4
  "description": "",
5
5
  "types": "index.d.ts",
6
6
  "files": [