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

SyntaxError: Unexpected token ']'. Expected ';' after variable declaration. at /app/node_modules/validator/lib/isStrongPassword.js:18:4 #5461

Closed
webivan1 opened this issue Sep 15, 2023 · 0 comments · Fixed by #5467
Labels
bug Something isn't working

Comments

@webivan1
Copy link

What version of Bun is running?

1.0.1

What platform is your computer?

Linux 5.19.0-50-generic x86_64 unknown

What steps can reproduce the bug?

You should install validator (version 13.11.0) and upgrade the canary with the command bun upgrade --canary
I have validator package in my nestjs project and after upgrading canary I had an issue

What is the expected behavior?

No response

What do you see instead?

16 | var numberRegex = /^[0-9]$/;
17 | var symbolRegex = /^[-#!$@£%^&*()_+|~=`{}\[\]:";'<>?,.\/ ]$/;
18 | var defaultOptions = {
        ^
SyntaxError: Unexpected token ']'. Expected ';' after variable declaration.
      at /app/node_modules/validator/lib/isStrongPassword.js:18:4

Additional information

When I avoid upgrading canary I don't have any issue

@webivan1 webivan1 added the bug Something isn't working label Sep 15, 2023
Jarred-Sumner added a commit that referenced this issue Sep 15, 2023
Jarred-Sumner added a commit that referenced this issue Sep 15, 2023
* Fixes #5461

* Update runtime-transpiler.test.ts

---------

Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
paperdave pushed a commit to SuperAuguste/bun that referenced this issue Sep 18, 2023
* Fixes oven-sh#5461

* Update runtime-transpiler.test.ts

---------

Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant