question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

upgrade path-to-regexp package?

See original GitHub issue

I filed this bug with the path-to-regexp package. However, I noticed that express@3.14.x is currently using path-to-regexp@0.1.7. I did a test install with path-to-regexp@1.7.0 and my local instance stopped having those issues in the ticket I linked to.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
dougwilsoncommented, Nov 27, 2016

Wait until the main person of the module replies to your bug. That module is part of the Express project, so it’s possible there is a bug fix made to the 0.1.x line, which has happened several times. It depends on what the issue is.

Otherwise, just provide a regular expression as your path to express directly instead of a string and you can use whatever kind of expression you desire.

0reactions
hellatancommented, Nov 30, 2016

i went with using an actual regex instead. thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

path-to-regexp - npm
The pathToRegexp function will return a regular expression object based on the provided path argument. It accepts the following arguments: path ...
Read more >
Upgrade path-to-regexp to latest · Issue #7658 - GitHub
We believe this is because the path-to-regexp package currently imported in react-router is 1.7.0 and the latest version that we are using ...
Read more >
code/node_modules/path-to-regexp - GitLab - Lnu.se
Path-to-RegExp. Turn an Express-style path string such as /user/:name into a regular expression. Note: This is a legacy branch. You should upgrade to...
Read more >
Npm update a dependency of a dependency in Node.js
Npm update has a depth paramater shown in the docs, but I don't want to update all of express' dependencies, just path-to-regexp.
Read more >
express-upgrade - npm Package Health Analysis - Snyk
express-upgrade. v0.0.1. Handle HTTP upgrade requests through Express apps For more information about how to use this package see README.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found