async-postgres
async-postgres copied to clipboard
Hardcoded Magento Api Version
There is a clean way neither to set a different API version nor no API version at all (in case you use some unversioned API endpoints. Options should not be mutated on client creation.
https://github.com/DivanteLtd/magento2-rest-client/blob/30a67752e65a8d02eac3c7caa1ace51ea2c5f815/index.js#L19-L34
A quick workaround for now is to bring back the original value after MagentoClient initialization.
const client = Magento2Client(config.magento1.customApi)
config.magento1.customApi.version = ''