mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-22 05:54:37 +08:00
Ran the following script to update engine.io and socket.io-parser package from 4.2.1 to 4.2.4 to address the security issue tracked in crbug.com/1464405: `npm run install-deps audit fix --audit-level=critical` Bug:1464405 Change-Id: I40f54d721642ad124b81a2df1307ab1d2dfecbdc Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4682214 Commit-Queue: Guangyue Xu <guangyue.xu@microsoft.com> Reviewed-by: Danil Somsikov <dsv@chromium.org>
21 lines
673 B
TypeScript
21 lines
673 B
TypeScript
/**
|
|
* Replaces every Buffer | ArrayBuffer | Blob | File in packet with a numbered placeholder.
|
|
*
|
|
* @param {Object} packet - socket.io event packet
|
|
* @return {Object} with deconstructed packet and list of buffers
|
|
* @public
|
|
*/
|
|
export declare function deconstructPacket(packet: any): {
|
|
packet: any;
|
|
buffers: any[];
|
|
};
|
|
/**
|
|
* Reconstructs a binary packet from its placeholder packet and buffers
|
|
*
|
|
* @param {Object} packet - event packet with placeholders
|
|
* @param {Array} buffers - binary buffers to put in placeholder positions
|
|
* @return {Object} reconstructed packet
|
|
* @public
|
|
*/
|
|
export declare function reconstructPacket(packet: any, buffers: any): any;
|