platformsh / platformsh-client-js

Platform.sh API client library
MIT License
8 stars 12 forks source link

Whitelist properties so we can access them without `.data` #210

Closed cuteapoot closed 1 year ago

cuteapoot commented 1 year ago

This is step zero in the process of removing Proxy objects from the JS client. This adds a number of public fields that are currently being accessed in Console via the .data property instead of accessing them directly. I have also modified the get() method on our Proxy handler in order to allow access to _links and _embedded directly instead of having to use .data or getLink()/getEmbed().