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

Adding options.allowDots (works for node 10.x, 12.x and 14.x) #41

Closed
wants to merge 5 commits into from

Conversation

Blagoj5
Copy link

@Blagoj5 Blagoj5 commented Jan 23, 2021

Adding new option/feature, options.allowDots that is used for skipping the sanitization of data that has .(dot). This can be useful for nested document quering for mongoDb: https://docs.mongodb.com/manual/tutorial/query-embedded-documents/

Creating new tests that include the new option

Updating the documentation (README.md) file for the new option

Adressing issue: #36

Adding new option/feature, options.allowDots that is used for skipping the sanitization of data that has .(dot). This can be useful for nested document quering for mongoDb: https://docs.mongodb.com/manual/tutorial/query-embedded-documents/

Creating new tests that include the new option

Updating the documentation (README.md) file for the new option

Adressing issue: fiznool#36
Adding new option/feature, options.allowDots that is used for skipping the sanitization of data that has .(dot). This can be useful for nested document quering for mongoDb: https://docs.mongodb.com/manual/tutorial/query-embedded-documents/

Creating new tests that include the new option

Updating the documentation (README.md) file for the new option

Adressing issue: fiznool#36
Adding new option/feature, options.allowDots that is used for skipping the sanitization of data that has .(dot). This can be useful for nested document quering for mongoDb: https://docs.mongodb.com/manual/tutorial/query-embedded-documents/

Creating new tests that include the new option

Updating the documentation (README.md) file for the new option

Adressing issue: fiznool#36
@azu
Copy link
Collaborator

azu commented Mar 18, 2021

Sorry for to delay.
Can you rebase it?

Copy link
Owner

@fiznool fiznool left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution! And apologies it has taken so long to get around to reviewing.

There are a whole bunch of whitespace/formatting changes here which makes it hard to determine what has changed, and what hasn't. Please could you resubmit without the formatting changes?

In addition, there are some conflicts with the master branch that need resolving.

Finally, please see the comments below.

index.js Outdated Show resolved Hide resolved
index.js Outdated Show resolved Hide resolved
index.js Outdated Show resolved Hide resolved
index.js Outdated Show resolved Hide resolved
index.js Outdated Show resolved Hide resolved
index.js Outdated Show resolved Hide resolved
@Blagoj5
Copy link
Author

Blagoj5 commented Mar 22, 2021

Hi,
Currently i'm unable to change/format the code, because i had a surgery couple days ago and i'm still recovering. However, when i get up i will fix the issues and do another pull request. Also it's my bad that i didn't run any linter to show me the variables where i have let instead of const (in the first version i needed them as let and forgot to return them back to const). Soon, I will make changes to the other things you marked and hopefully it will be alright this time.

@fiznool
Copy link
Owner

fiznool commented Mar 22, 2021

Hope you feel better soon 🤕

@TheodosiouTh
Copy link

TheodosiouTh commented May 12, 2021

Hello @Blagoj5,
I hope you are doing ok.

Can you give an update on the status of this pull request?
I am asking because I need this for a new feature I am building.
If you are unable to finish it I will be happy to take over this PR and complete it.

(cc. @fiznool)

@Blagoj5
Copy link
Author

Blagoj5 commented May 12, 2021

@TheodosiouTh, there are many changes to the code since then, but i should be able to get it done today or tomorrow

@TheodosiouTh
Copy link

@Blagoj5
Thank you so much for the quick response.
If you need any help I will be happy to help.

@Blagoj5
Copy link
Author

Blagoj5 commented May 12, 2021

@TheodosiouTh, I just commited the final code. You can check it up if you want and recommend me what should i change

@fiznool, when you have time, check the code and warn me if anything needs to be updated

@cor1
Copy link

cor1 commented Nov 8, 2021

an idea when this will get merged?

Copy link
Collaborator

@azu azu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@aria-mdr
Copy link

hey all, any update on when this will be merged?

fiznool added a commit that referenced this pull request Jan 14, 2022
Squashed commit of the following:

commit f85e51644ed68a74dd5fbe7a79c17e62e02aed01
Author: Tom Spencer <[email protected]>
Date:   Fri Jan 14 10:47:41 2022 +0000

    Removed unnecessary file

commit 059be6ba7fb8a4d6e80147a94b03a064f1a43fcc
Merge: 565c1ea 55a16c7
Author: Tom Spencer <[email protected]>
Date:   Fri Jan 14 10:46:46 2022 +0000

    Merge branch 'master' of github.com:Blagoj5/express-mongo-sanitize into Blagoj5-master

commit 55a16c7
Merge: 16534f2 9cc5240
Author: Blagoj <[email protected]>
Date:   Wed May 12 18:22:57 2021 +0200

    Merge github.com:fiznool/express-mongo-sanitize

commit 16534f2
Author: Blagoj <[email protected]>
Date:   Wed May 12 17:07:35 2021 +0200

    Clean code and fix tests

commit 565c1ea
Author: Tom Spencer <[email protected]>
Date:   Tue May 11 16:47:57 2021 +0100

    Bump package version to 2.1.0

commit 05e39bb
Author: Blagoj <[email protected]>
Date:   Sat Jan 23 16:40:25 2021 +0100

    feat: Adding new options (options.allowDots)

    Adding new option/feature, options.allowDots that is used for skipping the sanitization of data that has .(dot). This can be useful for nested document quering for mongoDb: https://docs.mongodb.com/manual/tutorial/query-embedded-documents/

    Creating new tests that include the new option

    Updating the documentation (README.md) file for the new option

    Adressing issue: #36

commit 287075b
Author: Blagoj <[email protected]>
Date:   Sat Jan 23 16:38:15 2021 +0100

    feat: Adding new options (options.allowDots)

    Adding new option/feature, options.allowDots that is used for skipping the sanitization of data that has .(dot). This can be useful for nested document quering for mongoDb: https://docs.mongodb.com/manual/tutorial/query-embedded-documents/

    Creating new tests that include the new option

    Updating the documentation (README.md) file for the new option

    Adressing issue: #36

commit aec9249
Author: Blagoj <[email protected]>
Date:   Sat Jan 23 16:17:53 2021 +0100

    feat: Adding new options (options.allowDots)

    Adding new option/feature, options.allowDots that is used for skipping the sanitization of data that has .(dot). This can be useful for nested document quering for mongoDb: https://docs.mongodb.com/manual/tutorial/query-embedded-documents/

    Creating new tests that include the new option

    Updating the documentation (README.md) file for the new option

    Adressing issue: #36
@fiznool
Copy link
Owner

fiznool commented Jan 14, 2022

Closed via 32c997b

@fiznool fiznool closed this Jan 14, 2022
@fiznool
Copy link
Owner

fiznool commented Jan 14, 2022

Published as v2.2.0.

Thanks to everyone for your contributions, and your patience - apologies it has taken so long to get this merged in.

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.

6 participants