go-mokapi 0.41.1 → 0.43.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.
- package/package.json +1 -1
- package/types/http.d.ts +17 -1
package/package.json
CHANGED
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 =
|
|
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
|
/**
|