glitch-javascript-sdk 2.8.8 → 2.8.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
@@ -4298,7 +4298,7 @@ declare class Titles {
4298
4298
  * Initializes a play session. Handles age-gating and license verification.
4299
4299
  * Returns the CDN URL for WASM/iFrame or Signaling URL for Pixel Streaming.
4300
4300
  */
4301
- static getPlaySession<T>(title_id: string): AxiosPromise<Response<T>>;
4301
+ static getPlaySession<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
4302
4302
  /**
4303
4303
  * List all developer payouts for a title.
4304
4304
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glitch-javascript-sdk",
3
- "version": "2.8.8",
3
+ "version": "2.8.9",
4
4
  "description": "Javascript SDK for Glitch",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
package/src/api/Titles.ts CHANGED
@@ -952,8 +952,8 @@ class Titles {
952
952
  * Initializes a play session. Handles age-gating and license verification.
953
953
  * Returns the CDN URL for WASM/iFrame or Signaling URL for Pixel Streaming.
954
954
  */
955
- public static getPlaySession<T>(title_id: string): AxiosPromise<Response<T>> {
956
- return Requests.processRoute(TitlesRoute.routes.getPlaySession, {}, { title_id });
955
+ public static getPlaySession<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
956
+ return Requests.processRoute(TitlesRoute.routes.getPlaySession, {}, { title_id }, params);
957
957
  }
958
958
 
959
959
  /**