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

Adds nested object support #7

Closed
wants to merge 5 commits into from

Conversation

chrissrogers
Copy link

This adds efficient and safe nested object and array support.

Tests are present around prototypal redefinition safety and other such maliciousness.

…bjects

Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
this ensures that parsing will not manipulate the Object prototype or override prototypes on the returned object

Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
@jonathanong
Copy link
Contributor

you should be able to use https://github.com/visionmedia/node-querystring for nested object support. this module should remain as simple as possible.

@chrissrogers
Copy link
Author

node-querystring defines its own shims, which is reasonable for its distribution model, but is not ideal for a component.

@jonathanong
Copy link
Contributor

oh you can open PRs to refactor that. not down to merge this though since there are security issues with that module and i don't want to duplicate efforts or merge in code.

@jonathanong
Copy link
Contributor

going to close this. if you want to maintain a slimmer version of qs then feel free to broadcast it or move it into this org

@jonathanong jonathanong closed this Feb 8, 2014
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