@chilfish/gallery-dl-instagram 0.2.0 → 0.2.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.
@@ -197,8 +197,11 @@ declare abstract class Extractor {
197
197
  //#endregion
198
198
  //#region src/sdk.d.ts
199
199
  interface SDKOptions {
200
- /** Custom HttpClient implementation (required). */
201
- http: HttpClient;
200
+ /**
201
+ * Custom HttpClient implementation.
202
+ * Defaults to a platform-agnostic fetch-based client when omitted.
203
+ */
204
+ http?: HttpClient;
202
205
  /**
203
206
  * Custom Storage implementation for file output.
204
207
  * Only needed if you plan to call ``download()``.
@@ -223,8 +226,8 @@ declare class InstagramSDK {
223
226
  readonly log: Logger;
224
227
  readonly config: ConfigManager;
225
228
  private readonly _csrfToken;
226
- constructor(opts: {
227
- http: HttpClient;
229
+ constructor(opts?: {
230
+ http?: HttpClient;
228
231
  storage?: Storage;
229
232
  log?: Logger;
230
233
  csrfToken?: string;
@@ -197,8 +197,11 @@ declare abstract class Extractor {
197
197
  //#endregion
198
198
  //#region src/sdk.d.ts
199
199
  interface SDKOptions {
200
- /** Custom HttpClient implementation (required). */
201
- http: HttpClient;
200
+ /**
201
+ * Custom HttpClient implementation.
202
+ * Defaults to a platform-agnostic fetch-based client when omitted.
203
+ */
204
+ http?: HttpClient;
202
205
  /**
203
206
  * Custom Storage implementation for file output.
204
207
  * Only needed if you plan to call ``download()``.
@@ -223,8 +226,8 @@ declare class InstagramSDK {
223
226
  readonly log: Logger;
224
227
  readonly config: ConfigManager;
225
228
  private readonly _csrfToken;
226
- constructor(opts: {
227
- http: HttpClient;
229
+ constructor(opts?: {
230
+ http?: HttpClient;
228
231
  storage?: Storage;
229
232
  log?: Logger;
230
233
  csrfToken?: string;