335c4n0r

elasticsearch/8/move-client-configurations

No description available

Legacy
elasticsearch8migration
Public
0 downloads
0 stars
How to Use
Run this codemod on your codebase using one of the following commands

The easiest way to run this codemod without installing anything globally:

Documentation

This codemod moves the client-related configuration parameters (ignore, headers, requestTimeout, and maxRetries) from the API object to the second options object.

What Changed

Previously, ignore, headers, requestTimeout, and maxRetries could be passed directly inside the API object. Now, these parameters need to be specified in a second options object.

Now, both callbacks and promises return an object containing body, statusCode, headers, warnings, and meta.

Before

jsx

After

jsx

Ready to contribute?

Build your own codemod and share it with the community.