go-mokapi 0.29.0 → 0.30.0

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.
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "go-mokapi",
3
- "version": "0.29.0",
3
+ "version": "0.30.0",
4
4
  "description": "Easy and flexible API mocking",
5
5
  "homepage": "https://mokapi.io",
6
6
  "repository": {
package/types/index.d.ts CHANGED
@@ -157,11 +157,16 @@ export interface HttpRequest {
157
157
  /** Object contains querystring parameters specified by OpenAPI querystring parameters. */
158
158
  readonly querystring: any;
159
159
 
160
+ /** API name where this request is specified */
161
+ readonly api: string;
162
+
160
163
  /** Path value specified by the OpenAPI path */
161
164
  readonly key: string;
162
165
 
163
166
  /** OperationId defined in OpenAPI */
164
167
  readonly operationId: string;
168
+
169
+ toString(): string
165
170
  }
166
171
 
167
172
  /**
@@ -170,7 +175,7 @@ export interface HttpRequest {
170
175
  */
171
176
  export interface HttpResponse {
172
177
  /** Object contains header parameters specified by OpenAPI header parameters. */
173
- headers: { [key: string]: string };
178
+ headers: { [key: string]: any };
174
179
 
175
180
  /** Specifies the http status used to select the OpenAPI response definition. */
176
181
  statusCode: number;
@@ -192,11 +197,16 @@ export interface Url {
192
197
  /** URL host. */
193
198
  readonly host: string;
194
199
 
200
+ /** URL port */
201
+ readonly port: number;
202
+
195
203
  /** URL path. */
196
204
  readonly path: string;
197
205
 
198
206
  /** URL query string. */
199
207
  readonly query: string;
208
+
209
+ toString(): string
200
210
  }
201
211
 
202
212
  /**