ensembledata 0.1.11 → 0.1.12

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.11",
3
+ "version": "0.1.12",
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
@@ -266,23 +266,18 @@ class TiktokEndpoints {
266
266
  }
267
267
 
268
268
  /**
269
- * @param {{
270
- * secUid: string;
271
- * alternativeMethod?: boolean;
272
- * newVersion?: boolean;
273
- * }} params
269
+ * @param {{ secUid: string; alternativeMethod?: boolean }} params
274
270
  * @param {{ extraParams?: Record<string, any>; timeout?: number }} options
275
271
  * @returns {Promise<EDResponse>}
276
272
  */
277
273
  userInfoFromSecuid(
278
- { secUid, alternativeMethod = undefined, newVersion = undefined },
274
+ { secUid, alternativeMethod = undefined },
279
275
  options = {},
280
276
  ) {
281
277
  const params = filterUndefinedValues({
282
278
  ...options.extraParams,
283
279
  secUid,
284
280
  alternative_method: alternativeMethod,
285
- new_version: newVersion,
286
281
  });
287
282
  return this.#requester.get("/tt/user/info-from-secuid", params, {
288
283
  timeout: options.timeout,
@@ -354,19 +349,15 @@ class TiktokEndpoints {
354
349
  }
355
350
 
356
351
  /**
357
- * @param {{ awemeId: string; cursor?: number; newVersion?: boolean }} params
352
+ * @param {{ awemeId: string; cursor?: number }} params
358
353
  * @param {{ extraParams?: Record<string, any>; timeout?: number }} options
359
354
  * @returns {Promise<EDResponse>}
360
355
  */
361
- postComments(
362
- { awemeId, cursor = undefined, newVersion = undefined },
363
- options = {},
364
- ) {
356
+ postComments({ awemeId, cursor = undefined }, options = {}) {
365
357
  const params = filterUndefinedValues({
366
358
  ...options.extraParams,
367
359
  aweme_id: awemeId,
368
360
  cursor,
369
- new_version: newVersion,
370
361
  });
371
362
  return this.#requester.get("/tt/post/comments", params, {
372
363
  timeout: options.timeout,
@@ -441,15 +432,14 @@ class TiktokEndpoints {
441
432
  }
442
433
 
443
434
  /**
444
- * @param {{ musicId: string; newVersion?: boolean }} params
435
+ * @param {{ musicId: string }} params
445
436
  * @param {{ extraParams?: Record<string, any>; timeout?: number }} options
446
437
  * @returns {Promise<EDResponse>}
447
438
  */
448
- musicDetails({ musicId, newVersion = undefined }, options = {}) {
439
+ musicDetails({ musicId }, options = {}) {
449
440
  const params = filterUndefinedValues({
450
441
  ...options.extraParams,
451
442
  id: musicId,
452
- new_version: newVersion,
453
443
  });
454
444
  return this.#requester.get("/tt/music/details", params, {
455
445
  timeout: options.timeout,
@@ -462,19 +452,12 @@ class TiktokEndpoints {
462
452
  * secUid: string;
463
453
  * cursor?: number;
464
454
  * pageToken?: string;
465
- * newVersion?: boolean;
466
455
  * }} params
467
456
  * @param {{ extraParams?: Record<string, any>; timeout?: number }} options
468
457
  * @returns {Promise<EDResponse>}
469
458
  */
470
459
  userFollowers(
471
- {
472
- id,
473
- secUid,
474
- cursor = undefined,
475
- pageToken = undefined,
476
- newVersion = undefined,
477
- },
460
+ { id, secUid, cursor = undefined, pageToken = undefined },
478
461
  options = {},
479
462
  ) {
480
463
  const params = filterUndefinedValues({
@@ -483,7 +466,6 @@ class TiktokEndpoints {
483
466
  secUid,
484
467
  cursor,
485
468
  page_token: pageToken,
486
- new_version: newVersion,
487
469
  });
488
470
  return this.#requester.get("/tt/user/followers", params, {
489
471
  timeout: options.timeout,
@@ -496,19 +478,12 @@ class TiktokEndpoints {
496
478
  * secUid: string;
497
479
  * cursor?: number;
498
480
  * pageToken?: string;
499
- * newVersion?: boolean;
500
481
  * }} params
501
482
  * @param {{ extraParams?: Record<string, any>; timeout?: number }} options
502
483
  * @returns {Promise<EDResponse>}
503
484
  */
504
485
  userFollowings(
505
- {
506
- id,
507
- secUid,
508
- cursor = undefined,
509
- pageToken = undefined,
510
- newVersion = undefined,
511
- },
486
+ { id, secUid, cursor = undefined, pageToken = undefined },
512
487
  options = {},
513
488
  ) {
514
489
  const params = filterUndefinedValues({
@@ -517,7 +492,6 @@ class TiktokEndpoints {
517
492
  secUid,
518
493
  cursor,
519
494
  page_token: pageToken,
520
- new_version: newVersion,
521
495
  });
522
496
  return this.#requester.get("/tt/user/followings", params, {
523
497
  timeout: options.timeout,
package/src/version.js CHANGED
@@ -1 +1 @@
1
- export const VERSION = "0.1.11";
1
+ export const VERSION = "0.1.12";