Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Traverse and change hook.data .result .query or hook.anyObj #73

Merged
merged 1 commit into from
Dec 12, 2016

Conversation

eddyystop
Copy link
Collaborator

  • Issue utility hook to trim data #37 asks for hook to trim all strings
  • BestBuy/api-playground has hook to convert all strings in .query that are "null" to null. Likely used with REST HTTP transports.
  • This hook can do the above and much more.
  • Hook uses substack/js-traverse which is reasonable in size.
  • Can use this js-traverse's get/set methods in our get/setByDot utils instead of our own code.

- Issue #37 asks for hook to trim all strings
- BestBuy/api-playground has hook to convert all strings in .query that are
"null" to null. Likely used with REST HTTP transports.
- This hook can do the above and much more.
- Uses substack/js-traverse
- Can use this repo's get/set methods in our get/setByDot utils
instead of our own code.
@ekryski
Copy link
Member

ekryski commented Dec 12, 2016

Looks pretty good to me.

@eddyystop eddyystop merged commit 4cb67e9 into master Dec 12, 2016
@eddyystop eddyystop deleted the traverse branch January 6, 2017 03:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants