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

Array.prototype methods cause validation error in the expected transports[<method>] to be 'string' #123

Open
thirug010 opened this issue Apr 7, 2023 · 1 comment

Comments

@thirug010
Copy link

Issue: as the transports validation uses in to loop through items of array it bring the method defined array through prototype.

fix: use 'of' instead of 'in' ,because 'in' iterates over all enumerable property keys of an object * including the method cause invalid validation error, "of" only iterates through the values of objects.

@thirug010 thirug010 changed the title Array.prototype methods cause validation error in the expected transports[<mehtod>] to be 'string' Array.prototype methods cause validation error in the expected transports[<method>] to be 'string' Apr 7, 2023
@thirug010
Copy link
Author

Requested PR for this issue, Please review and merge it. ==> #125

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

No branches or pull requests

1 participant