File tree Expand file tree Collapse file tree 3 files changed +3461
-3280
lines changed
Expand file tree Collapse file tree 3 files changed +3461
-3280
lines changed Original file line number Diff line number Diff line change 112112 "@babel/runtime" : " ^7.23.2" ,
113113 "@types/jsonwebtoken" : " ^9.0.5" ,
114114 "@types/qs" : " ^6.9.10" ,
115- "axios" : " 0.x " ,
115+ "axios" : " ^0.29.0 " ,
116116 "faye" : " ^1.4.0" ,
117117 "follow-redirects" : " 1.15.6" ,
118118 "form-data" : " ^4.0.0" ,
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import * as https from 'https';
55import * as axios from 'axios' ;
66import * as Faye from 'faye' ;
77import { jwtDecode } from 'jwt-decode' ;
8- import AxiosProgressEvent from ' axios' ;
8+ import AxiosProgressEvent , { AxiosRequestConfig , AxiosResponse } from " axios" ;
99
1010import { Personalization } from './personalization' ;
1111import { Collections } from './collections' ;
@@ -658,8 +658,8 @@ export class StreamClient<StreamFeedGenerics extends DefaultGenerics = DefaultGe
658658 this . send ( 'request' , method , options ) ;
659659
660660 try {
661- const response = await this . request ( this . enrichKwargs ( { method, ...options } ) ) ;
662- return this . handleResponse ( response ) ;
661+ const response = await this . request < AxiosResponse < T > , T > ( this . enrichKwargs ( { method, ...options } ) ) ;
662+ return this . handleResponse < T > ( response ) ;
663663 } catch ( error ) {
664664 const err = error as StreamApiError < T > ;
665665 if ( err . response ) return this . handleResponse ( err . response ) ;
@@ -684,6 +684,7 @@ export class StreamClient<StreamFeedGenerics extends DefaultGenerics = DefaultGe
684684 timeout : 0 ,
685685 maxContentLength : Infinity ,
686686 maxBodyLength : Infinity ,
687+ // @ts -ignore
687688 onUploadProgress,
688689 } ,
689690 } ) ;
You can’t perform that action at this time.
0 commit comments