EasyPost / easypost-node

EasyPost Shipping API Client Library for Node
https://easypost.com/docs/api
MIT License
139 stars 54 forks source link

Forward params on pagination #422

Closed ralexmatthews closed 12 months ago

ralexmatthews commented 1 year ago

Description

There was an issue where sometimes when fetching the next page, we wouldn't have the original params sent along. So this stores the data used when fetching the next page in a new key on the EasyPostObject, _params, that is then added when fetching the next page.

Testing

I ran the test suite and it worked, with some modifications to make sure we can ignore the _params when comparing input to output.

Pull Request Type

Please select the option(s) that are relevant to this PR.