go-mokapi 0.42.0 → 0.44.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/types/http.d.ts +17 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "go-mokapi",
3
- "version": "0.42.0",
3
+ "version": "0.44.0",
4
4
  "description": "Easy and flexible API mocking",
5
5
  "homepage": "https://mokapi.io",
6
6
  "repository": {
package/types/http.d.ts CHANGED
@@ -157,12 +157,20 @@ export interface FetchOptions {
157
157
  * case Mokapi interprets it as milliseconds
158
158
  * @default "60s"
159
159
  * @example
160
- * const res = get(url, { timeout: '5m' })
160
+ * const res = fetch(url, { timeout: '5m' })
161
161
  * @example
162
162
  * // Timeout as milliseconds
163
163
  * const res = await fetch(url, { timeout: 3000 });
164
164
  */
165
165
  timeout?: number | string;
166
+
167
+ /**
168
+ * If set to true, TLS certificate verification is skipped. This allows connections
169
+ * to servers with self-signed or invalid certificates. Default is false.
170
+ * @example
171
+ * const res = fetch(url, { insecure: true })
172
+ */
173
+ insecure?: boolean
166
174
  }
167
175
 
168
176
  /**
@@ -185,6 +193,14 @@ export interface Args {
185
193
  * const res = get(url, { timeout: '5m' })
186
194
  */
187
195
  timeout?: number | string;
196
+
197
+ /**
198
+ * If set to true, TLS certificate verification is skipped. This allows connections
199
+ * to servers with self-signed or invalid certificates. Default is false.
200
+ * @example
201
+ * const res = get(url, { insecure: true })
202
+ */
203
+ insecure?: boolean
188
204
  }
189
205
 
190
206
  /**