ensembledata 0.1.4 → 0.1.5

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,10 +1,10 @@
1
1
  {
2
2
  "name": "ensembledata",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Node.js bindings for the EnsembleData API",
5
5
  "author": "EnsembleData <hello@ensembledata.com>",
6
6
  "contributors": [
7
- "Fayd Speare <fayd@ensembledata.com>"
7
+ "EnsembleData <hello@ensembledata.com>"
8
8
  ],
9
9
  "homepage": "https://ensembledata.com",
10
10
  "repository": {
package/src/client.js CHANGED
@@ -613,6 +613,22 @@ class YoutubeEndpoints {
613
613
  });
614
614
  }
615
615
 
616
+ /**
617
+ * @param {{ channelId: string; depth: number }} params
618
+ * @param {{ extraParams?: Record<string, any>; timeout?: number }} options
619
+ * @returns {Promise<EDResponse>}
620
+ */
621
+ channelStreams({ channelId, depth }, options = {}) {
622
+ const params = filterUndefinedValues({
623
+ ...options.extraParams,
624
+ browseId: channelId,
625
+ depth,
626
+ });
627
+ return this.#requester.get("/youtube/channel/streams", params, {
628
+ timeout: options.timeout,
629
+ });
630
+ }
631
+
616
632
  /**
617
633
  * @param {{
618
634
  * id: string;
@@ -901,30 +917,20 @@ class InstagramEndpoints {
901
917
  * @param {{
902
918
  * hashtag: string;
903
919
  * cursor?: string;
904
- * chunkSize?: number;
905
920
  * getAuthorInfo?: boolean;
906
- * alternativeMethod?: boolean;
907
921
  * }} params
908
922
  * @param {{ extraParams?: Record<string, any>; timeout?: number }} options
909
923
  * @returns {Promise<EDResponse>}
910
924
  */
911
925
  hashtagPosts(
912
- {
913
- hashtag,
914
- cursor = undefined,
915
- chunkSize = undefined,
916
- getAuthorInfo = undefined,
917
- alternativeMethod = undefined,
918
- },
926
+ { hashtag, cursor = undefined, getAuthorInfo = undefined },
919
927
  options = {},
920
928
  ) {
921
929
  const params = filterUndefinedValues({
922
930
  ...options.extraParams,
923
931
  name: hashtag,
924
932
  cursor,
925
- chunk_size: chunkSize,
926
933
  get_author_info: getAuthorInfo,
927
- alternative_method: alternativeMethod,
928
934
  });
929
935
  return this.#requester.get("/instagram/hashtag/posts", params, {
930
936
  timeout: options.timeout,
package/src/version.js CHANGED
@@ -1 +1 @@
1
- export const VERSION = "0.1.4";
1
+ export const VERSION = "0.1.5";