one-sdk-js icon indicating copy to clipboard operation
one-sdk-js copied to clipboard

`normalizeSuperJsonDocument` function and hidden env variables resolution

Open freaz opened this issue 3 years ago • 0 comments

It is easy to miss, that without passing environment to the function env variables won't be resolved.

Main issue I see, is not expected behaviour inside SuperJson normalization.

Expected Behaviour

Not sure what would be the best, but can imagine one of the following solutions:

  1. environment will be mandatory parameter
  2. environment variables resolution will happen in separate function

Current Behavior

Silently skips resolution.

Possible Solution

Not obligatory, but suggest a fix/reason for the bug

freaz avatar Aug 31 '22 10:08 freaz