glitch-javascript-sdk 1.6.8 → 1.6.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/dist/index.d.ts CHANGED
@@ -4552,14 +4552,14 @@ declare class Hashtags {
4552
4552
  *
4553
4553
  * @returns A promise
4554
4554
  */
4555
- static list<T>(data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
4555
+ static list<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
4556
4556
  /**
4557
4557
  * Get the top hashtags for a title, campaign, or schedule.
4558
4558
  *
4559
4559
  * @param params - e.g. { title_id: '...', limit: 10, sort: 'sum_views', start_date: 'YYYY-MM-DD', end_date: 'YYYY-MM-DD' }
4560
4560
  * @returns AxiosPromise of an array of aggregated hashtags
4561
4561
  */
4562
- static top<T>(data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
4562
+ static top<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
4563
4563
  }
4564
4564
 
4565
4565
  interface Route {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glitch-javascript-sdk",
3
- "version": "1.6.8",
3
+ "version": "1.6.9",
4
4
  "description": "Javascript SDK for Glitch",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -12,8 +12,8 @@ class Hashtags {
12
12
  *
13
13
  * @returns A promise
14
14
  */
15
- public static list<T>(data? : object, params?: Record<string, any>) : AxiosPromise<Response<T>> {
16
- return Requests.processRoute(HashtagRoute.routes.list, data, {}, params);
15
+ public static list<T>(params?: Record<string, any>) : AxiosPromise<Response<T>> {
16
+ return Requests.processRoute(HashtagRoute.routes.list, {}, {}, params);
17
17
  }
18
18
 
19
19
  /**
@@ -22,8 +22,8 @@ class Hashtags {
22
22
  * @param params - e.g. { title_id: '...', limit: 10, sort: 'sum_views', start_date: 'YYYY-MM-DD', end_date: 'YYYY-MM-DD' }
23
23
  * @returns AxiosPromise of an array of aggregated hashtags
24
24
  */
25
- public static top<T>(data? : object, params?: Record<string, any>) : AxiosPromise<Response<T>> {
26
- return Requests.processRoute(HashtagRoute.routes.top, data, {}, params);
25
+ public static top<T>(params?: Record<string, any>) : AxiosPromise<Response<T>> {
26
+ return Requests.processRoute(HashtagRoute.routes.top, {}, {}, params);
27
27
  }
28
28
 
29
29
  }