stream-chat
Advanced tools
Comparing version 8.12.1 to 8.12.2
/// <reference types="node" /> | ||
import FormData from 'form-data'; | ||
import { AscDesc, ExtendableGenerics, DefaultGenerics, OwnUserResponse, UserResponse } from './types'; | ||
import { AxiosRequestConfig } from 'axios'; | ||
/** | ||
@@ -45,2 +46,3 @@ * logChatPromiseExecution - utility function for logging the execution of a promise.. | ||
export declare function removeConnectionEventListeners(cb: (e: Event) => void): void; | ||
export declare const axiosParamsSerializer: AxiosRequestConfig['paramsSerializer']; | ||
//# sourceMappingURL=utils.d.ts.map |
{ | ||
"name": "stream-chat", | ||
"version": "8.12.1", | ||
"version": "8.12.2", | ||
"description": "JS SDK for the Stream Chat API", | ||
@@ -5,0 +5,0 @@ "author": "GetStream", |
import FormData from 'form-data'; | ||
import { AscDesc, ExtendableGenerics, DefaultGenerics, OwnUserBase, OwnUserResponse, UserResponse } from './types'; | ||
import { AxiosRequestConfig } from 'axios'; | ||
@@ -248,1 +249,14 @@ /** | ||
} | ||
export const axiosParamsSerializer: AxiosRequestConfig['paramsSerializer'] = (params) => { | ||
const newParams = []; | ||
for (const k in params) { | ||
if (Array.isArray(params[k]) || typeof params[k] === 'object') { | ||
newParams.push(`${k}=${encodeURIComponent(JSON.stringify(params[k]))}`); | ||
} else { | ||
newParams.push(`${k}=${encodeURIComponent(params[k])}`); | ||
} | ||
} | ||
return newParams.join('&'); | ||
}; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5006148
52878