superfaceai / one-sdk-js

1️⃣ One Node.js SDK for all the APIs you want to integrate with
https://superface.ai
MIT License
47 stars 3 forks source link

fix: move Config.instance() call out of global scope #245

Closed TheEdward162 closed 2 years ago

TheEdward162 commented 2 years ago

Description

Moves Config.instance() out of global scope - this was instantiating the global singleton during importing of the module, which prevented process.env modification in the importing module from having the intended effect.

This will be fixed again by #236

Motivation and Context

Bug #235

Types of changes

Checklist