got 12.0.2 → 12.0.3
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.
|
@@ -701,8 +701,8 @@ export default class Options {
|
|
|
701
701
|
|
|
702
702
|
__Note #2__: This option is not enumerable and will not be merged with the instance defaults.
|
|
703
703
|
*/
|
|
704
|
-
get json():
|
|
705
|
-
set json(value:
|
|
704
|
+
get json(): unknown;
|
|
705
|
+
set json(value: unknown);
|
|
706
706
|
/**
|
|
707
707
|
The URL to request, as a string, a [`https.request` options object](https://nodejs.org/api/https.html#https_https_request_options_callback), or a [WHATWG `URL`](https://nodejs.org/api/url.html#url_class_url).
|
|
708
708
|
|
|
@@ -1102,7 +1102,7 @@ export default class Options {
|
|
|
1102
1102
|
request: RequestFunction | undefined;
|
|
1103
1103
|
username: string;
|
|
1104
1104
|
password: string;
|
|
1105
|
-
json:
|
|
1105
|
+
json: unknown;
|
|
1106
1106
|
retry: Partial<RetryOptions>;
|
|
1107
1107
|
agent: Agents;
|
|
1108
1108
|
h2session: http2wrapper.ClientHttp2Session | undefined;
|
|
@@ -1152,7 +1152,7 @@ export default class Options {
|
|
|
1152
1152
|
ALPNProtocols: string[] | undefined;
|
|
1153
1153
|
ca: string | Buffer | (string | Buffer)[] | undefined;
|
|
1154
1154
|
cert: string | Buffer | (string | Buffer)[] | undefined;
|
|
1155
|
-
key: string | Buffer | (Buffer | import("tls").KeyObject)[] | undefined;
|
|
1155
|
+
key: string | Buffer | (string | Buffer | import("tls").KeyObject)[] | undefined;
|
|
1156
1156
|
passphrase: string | undefined;
|
|
1157
1157
|
pfx: PfxType;
|
|
1158
1158
|
rejectUnauthorized: boolean | undefined;
|
|
@@ -648,7 +648,6 @@ export default class Options {
|
|
|
648
648
|
return this._internals.json;
|
|
649
649
|
}
|
|
650
650
|
set json(value) {
|
|
651
|
-
assert.any([is.object, is.undefined], value);
|
|
652
651
|
if (value !== undefined) {
|
|
653
652
|
assert.undefined(this._internals.body);
|
|
654
653
|
assert.undefined(this._internals.form);
|