ensembledata 0.1.8 → 0.1.9

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ensembledata",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "Node.js bindings for the EnsembleData API",
5
5
  "author": "EnsembleData <hello@ensembledata.com>",
6
6
  "contributors": [
package/src/client.js CHANGED
@@ -316,12 +316,18 @@ class TiktokEndpoints {
316
316
  * url: string;
317
317
  * newVersion?: boolean;
318
318
  * downloadVideo?: boolean;
319
+ * alternativeMethod?: boolean;
319
320
  * }} params
320
321
  * @param {{ extraParams?: Record<string, any>; timeout?: number }} options
321
322
  * @returns {Promise<EDResponse>}
322
323
  */
323
324
  postInfo(
324
- { url, newVersion = undefined, downloadVideo = undefined },
325
+ {
326
+ url,
327
+ newVersion = undefined,
328
+ downloadVideo = undefined,
329
+ alternativeMethod = undefined,
330
+ },
325
331
  options = {},
326
332
  ) {
327
333
  const params = filterUndefinedValues({
@@ -329,6 +335,7 @@ class TiktokEndpoints {
329
335
  url,
330
336
  new_version: newVersion,
331
337
  download_video: downloadVideo,
338
+ alternative_method: alternativeMethod,
332
339
  });
333
340
  return this.#requester.get("/tt/post/info", params, {
334
341
  timeout: options.timeout,
@@ -340,12 +347,18 @@ class TiktokEndpoints {
340
347
  * awemeIds: string[];
341
348
  * newVersion?: boolean;
342
349
  * downloadVideo?: boolean;
350
+ * alternativeMethod?: boolean;
343
351
  * }} params
344
352
  * @param {{ extraParams?: Record<string, any>; timeout?: number }} options
345
353
  * @returns {Promise<EDResponse>}
346
354
  */
347
355
  multiPostInfo(
348
- { awemeIds, newVersion = undefined, downloadVideo = undefined },
356
+ {
357
+ awemeIds,
358
+ newVersion = undefined,
359
+ downloadVideo = undefined,
360
+ alternativeMethod = undefined,
361
+ },
349
362
  options = {},
350
363
  ) {
351
364
  const params = filterUndefinedValues({
@@ -353,6 +366,7 @@ class TiktokEndpoints {
353
366
  ids: awemeIds.join(";"),
354
367
  new_version: newVersion,
355
368
  download_video: downloadVideo,
369
+ alternative_method: alternativeMethod,
356
370
  });
357
371
  return this.#requester.get("/tt/post/multi-info", params, {
358
372
  timeout: options.timeout,
package/src/version.js CHANGED
@@ -1 +1 @@
1
- export const VERSION = "0.1.8";
1
+ export const VERSION = "0.1.9";